Jump to content
  • 0
Takun

Anyone can help? (If baselvl + condition) item_script

Question

Can anyone help on this item script?

      

EXP Gain +10%
Drop Rate +10%
	if Base Lv is above 80, HP +200 & SP +80 and EXP Gain & Drop Rate bonus will be removed after reaching Base Lv 80.

 

Thank you!

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

You didn't say what you are stuck at, so I will assume you are just new to hercules and don't know where to look for docs.

 

For bonuses conceded by equipment, item bonus docs is the place to go. You can use general script commands, but for character bonuses, item bonus docs is where you will find the commands specific for items.

 

You can check it here: https://github.com/HerculesWS/Hercules/blob/stable/doc/item_bonus.md (it is also in your hercules copy, at doc/item_bonus.md)

Share this post


Link to post
Share on other sites
  • 0
59 minutes ago, KirieZ said:

You didn't say what you are stuck at, so I will assume you are just new to hercules and don't know where to look for docs.

 

For bonuses conceded by equipment, item bonus docs is the place to go. You can use general script commands, but for character bonuses, item bonus docs is where you will find the commands specific for items.

 

You can check it here: https://github.com/HerculesWS/Hercules/blob/stable/doc/item_bonus.md (it is also in your hercules copy, at doc/item_bonus.md)

Hello, i am aware of the item scripts but the question is how to script that description?

 

<if Base Lv is above 80, HP +200 & SP +80 and EXP Gain & Drop Rate bonus will be removed after reaching Base Lv 80.>

^This one.

 

Cause i have copied the item script from RMS on this one. https://ratemyserver.net/index.php?page=item_db&item_id=2751 but when I tried testing it, it's not working. 

Share this post


Link to post
Share on other sites
  • 0

this script seems fine. May you post your entire item db entry? And please, explain what "not working" means for you (e.g. no effect at all, effect not exactly as expected, etc)

Edited by KirieZ

Share this post


Link to post
Share on other sites
  • 0

This crazy item will change completely when you level up!

----------------------

Base Lv <= 80:

Exp Gain +10%

Drop Rate +10%

--------------------

Base Lv > 80:

HP+200

SP+80

---------------------

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

Script: <"
        if(BaseLevel<80) {
            bonus2 bExpAddRace,RC_All,10;
            bonus2 bDropAddRace,RC_All,10;
        }
        if(BaseLevel>80) {
            bonus bMaxHP,200;
            bonus bMaxSP,80;
        }

    ">

Just add this to your desired equipment in item_db.conf

Edited by naouemi

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.