Jump to content
  • 0

Question

Posted

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

  • 1
Posted
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 :))

  • 0
Posted
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."; } },{},{}

 

  • Upvote 1

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...