narien123 Posted April 10, 2015 Posted April 10, 2015 how to set player cant use 2 same Accessory 2629 in 1 char Quote
Tranquility Posted April 10, 2015 Posted April 10, 2015 From the top of my head it should roughly be something like this.. Insert in on_equip script: if(getequipid(EQI_ACC_L == 2629) || getequipid(EQI_ACC_R == 2629)) {calfunc "Example";} Put this in your custom NPC scripts. function script Example { unequip(EQI_ACC_L) && unequip(EQI_ACC_R); message strcharinfo(0),"Cant Wear More than 2 Megingjard."; } Take a look at doc/script_commands.txt for further documentation. Let me know if it works. Quote
narien123 Posted April 11, 2015 Author Posted April 11, 2015 From the top of my head it should roughly be something like this.. Insert in on_equip script: if(getequipid(EQI_ACC_L == 2629) || getequipid(EQI_ACC_R == 2629)) {calfunc "Example";} Put this in your custom NPC scripts. function script Example { unequip(EQI_ACC_L) && unequip(EQI_ACC_R); message strcharinfo(0),"Cant Wear More than 2 Megingjard."; } Take a look at doc/script_commands.txt for further documentation. Let me know if it works. Im using 3Ceam , Dont have on_equip Quote
Tranquility Posted April 11, 2015 Posted April 11, 2015 As far as this documentation says, you do:https://3ceam.googlecode.com/svn/trunk/rewrite/doc/item_db.txt Quote
Question
narien123
how to set player cant use 2 same Accessory 2629 in 1 char
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.