Anyone can help? (If baselvl + condition) item_script

Takun

New member
Messages
3
Points
0
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!

 
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)

 
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. 

 
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)

 
Last edited by a moderator:
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

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

 
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

 
Last edited by a moderator:
Back
Top