Jump to content
  • 0

itemscript combo


ajaytrix

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

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.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

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.

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...