How to break an equipment through NPC scripts?

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

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

 
Back
Top