Jump to content
  • 0
Helena

How to properly make set equips?

Question

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

2 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0
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 by Via

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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