Jump to content
  • 0
irugationz

How to break an equipment through NPC scripts?

Question

2 answers to this question

Recommended Posts

  • 0

If by break you mean when its name becomes red, you can delete the item (using delitem2 or delequip for an equipped item) then use getitem2 to add the item again, note that you need to retrieve the information about the item to recreate it, to do this you can use getinventorylist.

On delitem2 you should use "attribute" parameter as 0 (not broken) and on getiem2 "attribute" should be 1 (broken item)

 

If by break you mean destroying the item (like when a refine fails) you can simply use delitem2 / delequip or failedrefitem.

 

(the links in the commands will point you to these commands doc)

 

Hope this helps

Share this post


Link to post
Share on other sites
  • 0

Is that possible to break a player's equipment through a NPC script? How?

 

Thanks!

The only possible way via script is using delitem then getitem2(set attribute as 1)

 

While it may be easy with plugin to create a command like that...

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.