NPC_Blacksmith: type: assignment interact scripts: - 10 Blacksmith actions: on assignment: - trigger name:chat toggle:true radius:2 - trigger name:click toggle:true Blacksmith: type: interact steps: '1': click trigger: script: - narrate " : Greeting, i am , i can repair your Ditem for 0,10 money" - wait 2 - narrate " : To begin hold the item that you want to repair in your hand, and confirm me by saying <&9>Yes or <&9>No" chat trigger: 'oui': trigger: '/yes/' script: - - if == null { + - if && == null { - narrate " : If you want me to repair your Ditem, you must hold it in your hand" - queue clear } else { - ^adjust durability:0 save:item_reparation - ^take - ^money take qty:0.10 - ^inventory set d: o:i@ slot: - ^narrate " : <&7>--> Repair done!" - random { - narrate " : Goodbye !" - narrate " : See you soon !" } - queue clear } 'non': trigger: '/no/' script: - random { - narrate " : Ok !" - narrate " : Ok then !" } - queue clear