Jump to content
  • 0

dual item


narien123

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  39
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

how to set player cant use 2 same  Accessory 2629 in 1 char 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   17
  • Joined:  01/29/15
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  39
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

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 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   17
  • Joined:  01/29/15
  • Last Seen:  

As far as this documentation says, you do:
https://3ceam.googlecode.com/svn/trunk/rewrite/doc/item_db.txt

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