How to properly make set equips?

Helena

New member
Messages
238
Points
0
Emulator
rAthena
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!

 
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.

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

 
Last edited by a moderator:
Back
Top