Jump to content

Deposit System


Harvin

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  39
  • Reputation:   29
  • Joined:  06/08/23
  • Last Seen:  

Deposit System

Do your server has so many headgear? Usually after new headgear is released especially when the new one has better benefit, Previous Headgear used by Player is now useles right?

This System is inspired on the ROM Adventure Book, Where Player can Deposit un-used Item, but Player will be still has benefited from it, instead lying around somewhere uselessly.

Spoiler
###########################################################################
# Deposit Database
###########################################################################
#
# Settings
#
###########################################################################
# - StorageId               Storage Id.
#   Bound                   if storage shared by account or not. (Default: true)
#   Withdraw                If item in this storage can be withdrawed after deposited. (Default: true)
#   WithdrawFee             Price to withdraw any item from this storage. (Default: 0)
#   Items:                  List of possible items.
#     - Item                Item name.
#       Amount              Item amount. (Default: 1)
#       Refine              Item refine. (Default: 0)
#       Withdraw            If this item can be withdrawed after deposited. (Default: true)
#       WithdrawFee         Price to withdraw this item from this storage. (Default: 0)
#       Script              Script to execute when the item successfully deposited. (Default: null)
###########################################################################

Header:
  Type: DEPOSIT_DB
  Version: 1

Body:
  - StorageId: 10
    Withdraw: true
    Items:
     - Item: Poring_Card
       Script: |
         bonus bInt,100;
     - Item: Fabre_Card
       Amount: 3
       Script: |
         bonus bStr,100;
  - StorageId: 11
    Items:
     - Item: Sword
       Script: |
         bonus bAgi,100;
     - Item: Sword_
       Refine: 7
       Script: |
         bonus bDex,100;

 

Video

Edited by Harvin
  • Upvote 2
  • Love 2
  • MVP 1
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Works this with HP bonus too and when, how you handled the problem, 
that the player has the current HP and not every time at the relog, the HP bonus is recalculated and therefore the player has to heal himself every time when logging in by the value he got as a bonus.

Example: Player has 500 MaxHP and gets 500 bonus HP
After logging in the player has 500/1000 HP.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  39
  • Reputation:   29
  • Joined:  06/08/23
  • Last Seen:  

Sorry never stumped on that problem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...