Jump to content
  • 0

Doubts with commands on NPCs


Israel

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  07/06/16
  • Last Seen:  

Hello guys from the forum so I have 2 doubts who can help me thank you from my heart '-'

1-Doubt I have an item on my server that when equipping it changes the colors of the character, but when this item is removed, the character looks like the beginning of the game. I would like to know what command I put on the item so that when item is removed it goes back to appearances, which was before equipping the item.

 

2- Doubt I have an item enchanter on my server I would like to know what command I place so that once the item is enchanted the enchantment is not removed.

 Thanks..............

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

1.

save the current appearance data into a variable

then change the appearance to new appearance based on item

when unequipped, load the appearance from the stored variable data

 

2.

retrieve and store existing cards or enchantment into a temporary variable, then use script command items like getitem2, getitem3....etc to create the new items along with old and new enchantments

 

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