Paste #35586: Scripts

Date: 2016/08/25 14:19:47 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


NPC_Forgeron:
    type: assignment
    actions:
      on click:
      - ^if <player.item_in_hand.scriptname.is[==].to[<server.list_scripts>].not> {
        - queue clear
      }
      - ^adjust <pl.item_in_hand> durability:<pl.item_in_hand.max_durability> save:item_reparation
      - ^take <pl.item_in_hand>
      - ^give <player> <entry[item_reparation].result>
      - narrate "<npc.name> : C'est pas joli ça, un beau <pl.item_in_hand.display> tout neuf!"