Jump to content
  • 0

weapon owner script


joelolopez

Question


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

a item_db script

that makes a weapon useless if the "signed weapon"(weapon with name of the owner)

is not equals to the name of the character who equipped the signed weapon :3

 

ex.

 

inuyasha's katana equipped by character "sesshoumaru"

(the on equip effects will not activate if the bearer is sesshoumaru)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

I think there is no script for this yet..if they have it you are lucky bro..but im 70% sure there is no script for these /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

A theory that I was thinking of is using the card value each individual player has when the item is signed.

 

I don't know how the number is determined nor do I know how it links to the character itself...

However i've produced 3 items on the same character and they produced the same card ID.

 

If we can somehow link this value with the character's ID then check if the ID matches with the current character that has the item

then do whatever script.

Edited by Evelynn
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

@Evelynn, The solution to what your looking for, can be found with the documentation listed in script_commands.txt.

 

Just run this check in the OnEquip section of the weapon.
 

if( ( getcharid(0) & 65535 ) != (getequipcardid(4,2)) ){unequip(4);}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

Ah thank you for showing me where it could be done.

 

I don't scroll through the script command.txt since it's quite a documentation.

 

I'm glad I was able to word out what was needed to be done though.

 

Thanks again (:

Edited by Evelynn
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...