DaN1zera Posted March 23, 2019 Posted March 23, 2019 I made two weapons for sinx, but I did not want them to be able to equip 2 of these weapons together. I wanted a script that when equipping a weapon, it unequipped another. exist? Sorry for my english, I'm using the translator. Quote
0 Mael Posted March 26, 2019 Posted March 26, 2019 On 3/23/2019 at 11:05 AM, zDaNizera said: 32107,Adaga_da_perdicao,Adaga_da_perdicao,4,2400,,600,43,,1,4,0x00001000,7,2,2,1,1,1,1,{},{},{} My item_db is like this, how do I do? 32107,Adaga_da_perdicao,Adaga_da_perdicao,4,2400,,600,43,,1,4,0x00001000,7,2,2,1,1,1,1,{ if(getequipid(EQI_HAND_R) == 12345){ unequip(EQI_HAND_R); dispbottom "You can only equip one type of this weapon."; } else if(EQI_HAND_L == 12345){ unequip(EQI_HAND_L); dispbottom "You can only equip one type of this weapon."; } },{},{} 1 Quote
1 crazyarashi Posted March 23, 2019 Posted March 23, 2019 if(getequipid(EQI_HAND_R) == 12345){ unequip(EQI_HAND_R); dispbottom "You can only equip one type of this weapon."; } else if(EQI_HAND_L == 12345){ unequip(EQI_HAND_L); dispbottom "You can only equip one type of this weapon."; } Something simple like this should solve your problem, add it on the equip part of the item script. and replace the 12345 ID that you want to check :)) Quote
0 DaN1zera Posted March 23, 2019 Author Posted March 23, 2019 32107,Adaga_da_perdicao,Adaga_da_perdicao,4,2400,,600,43,,1,4,0x00001000,7,2,2,1,1,1,1,{},{},{} My item_db is like this, how do I do? Quote
Question
DaN1zera
I made two weapons for sinx, but I did not want them to be able to equip 2 of these weapons together.
I wanted a script that when equipping a weapon, it unequipped another. exist?
Sorry for my english, I'm using the translator.
4 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.