Paste #35600: Edit of P#35599 - Untitled Paste

Date: 2016/08/26 13:33:16 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 <pl.item_in_hand.scriptname||null> == null {
        - queue clear
      }
      - ^adjust <pl.item_in_hand> durability:<pl.item_in_hand.max_durability>/<pl.item_in_hand.max_durability> save:item_reparation
      - ^take <pl.item_in_hand>
      - inventory set d:<player.inventory> o:i@<entry[item_reparation].result> slot:<pl.item_in_hand.slot>
      - narrate "<npc.name> : C'est pas joli ça, un beau <pl.item_in_hand> tout neuf!"