Jump to content
  • 0

Question

Posted

Case:
item_combo_db
item 1 combos with item 2: skil = warmwind level 4

 

 

1:2,{skill TK_SEVENWIND,4;}

 

How to do this:

 

If unequip either item1 or item 2, buffs of warm wind will be removed.

 

Thanks.

3 answers to this question

Recommended Posts

Posted

In item_combo.txt add (example with ID 5001 and 5074)

5001:5074,{ skill TK_SEVENWIND,4; }

In item_db

5001,Headset,Headset,5,20,,200,,3,,0,0xFFFFFFFE,7,2,256,,1,1,87,{},{},{ if( isequipped(5074) ) { sc_end SC_BLESSING; sc_end SC_SEVENWIND; } }
5074,Ear_Of_Angel's_Wing,Angel Wing Ears,5,20,,100,,1,,0,0xFFFFFFFF,7,2,512,,70,0,158,{},{},{ if( isequipped(5001) ) { sc_end SC_BLESSING; sc_end SC_SEVENWIND; } }

The if( isequipped(5074) ) { sc_end SC_BLESSING; sc_end SC_SEVENWIND; }

will stop blessing and sevenwind when the player will unequip an item having the 2 items equipped

Posted

In item_combo.txt add (example with ID 5001 and 5074)

5001:5074,{ skill TK_SEVENWIND,4; }

In item_db

5001,Headset,Headset,5,20,,200,,3,,0,0xFFFFFFFE,7,2,256,,1,1,87,{},{},{ if( isequipped(5074) ) { sc_end SC_BLESSING; sc_end SC_SEVENWIND; } }
5074,Ear_Of_Angel's_Wing,Angel Wing Ears,5,20,,100,,1,,0,0xFFFFFFFF,7,2,512,,70,0,158,{},{},{ if( isequipped(5001) ) { sc_end SC_BLESSING; sc_end SC_SEVENWIND; } }

The if( isequipped(5074) ) { sc_end SC_BLESSING; sc_end SC_SEVENWIND; }

will stop blessing and sevenwind when the player will unequip an item having the 2 items equipped

I tried you script as a test data.

Changed:

5001:5074,{ skill TK_SEVENWIND,4; }

To: 

5001:5074,{ skill "TK_SEVENWIND",4; }

 

 

Warm wind shows up when 2 items are equiped. But, I cannot still remove the buffs when I unequip 1 item.

 

Posted (edited)

well if u think about it, the effect is still in there, it wont end unless you unequip all the items with the bonus. *logic*



Go to item_combo_db @ re_

do this

(​your custom id) : (your custom id),{effect}

 

 

nvm my post., its stupid. on capuches post make sure u changed the item id on the bonus with your custom item iD
 

if( isequipped(5074)

isequipped(5001)

Edited by Critica

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...