ajaytrix Posted August 26, 2013 Posted August 26, 2013 Case:item_combo_dbitem 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. Quote
Capuche Posted August 28, 2013 Posted August 28, 2013 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 Quote
ajaytrix Posted August 28, 2013 Author Posted August 28, 2013 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. Quote
Critica Posted August 28, 2013 Posted August 28, 2013 (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 August 28, 2013 by Critica Quote
Question
ajaytrix
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.