Helena 0 Posted August 7, 2013 Hello, I have troubles scripting set equipment. How to properly do this on Hercules? Here's one of the official sets scripts that I tried to modify to use with my custom set: http://ratemyserver.net/index.php?page=re_item_db&comid=164 That code being: if(!isequipped(4172,4257,4230,4272)) bonus3 bAutoSpell,"RG_INTIMIDATE",1,20; Now, doing that worked but not the way I wanted it to. The script triggers even without having those items/cards equipped. I tried another way that was recommended on rAthena: { if ((isequipped(2480)) && (isequipped(2581)) && (isequipped(2891))) { bonus bAllStats,4; bonus bMaxHPrate,5; } } ,{},{} But that did not work at all.... Anyone know where I went wrong? Thanks! Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted August 9, 2013 This, or you could even use the db/pre-re or re/item_combo_db.txt file (example, renewal file), which is now the official mean of making item combos. The way you tried and Via corrected is still supported but I personally don't reccommend that. 1 Mumbles reacted to this Quote Share this post Link to post Share on other sites
0 Mumbles 193 Posted August 7, 2013 (edited) if(!isequipped(4172,4257,4230,4272)) bonus3 bAutoSpell,"RG_INTIMIDATE",1,20; The expression reads: If the set (4172, 4257, 4230, and 4272) is NOT equipped... The ! operator (a "logical not") at the very beginning of the expression essentially reverses the check and does exactly what you said it does; the script runs when the set of items is not equipped. If you would like for your that bonus to be applied when the set is equipped, simply remove the ! from the beginning of the expression. Edited August 7, 2013 by Via Quote Share this post Link to post Share on other sites
Hello,
I have troubles scripting set equipment. How to properly do this on Hercules?
Here's one of the official sets scripts that I tried to modify to use with my custom set:
http://ratemyserver.net/index.php?page=re_item_db&comid=164
That code being:
if(!isequipped(4172,4257,4230,4272)) bonus3 bAutoSpell,"RG_INTIMIDATE",1,20;
Now, doing that worked but not the way I wanted it to. The script triggers even without having those items/cards equipped.
I tried another way that was recommended on rAthena:
{ if ((isequipped(2480)) && (isequipped(2581)) && (isequipped(2891))) { bonus bAllStats,4; bonus bMaxHPrate,5; } } ,{},{}
But that did not work at all.... Anyone know where I went wrong?
Thanks!
Share this post
Link to post
Share on other sites