SwordScript:
type: assignment
interact scripts:
- 10 SwordStart
SwordStart:
type: interact
steps:
1:
click trigger:
script:
- chat "Hi there <player.name>! I'm <npc.name>!"
- wait 1
- chat "Anyways, could you help me get something?"
chat trigger:
1:
trigger: /Yes/, I can help you out, what do you need?
script:
- chat "I need a stone sword! If you could find one I'd be glad to reward ya!"
- narrate "Go get <npc.name> a stone sword!"
- zap step:2
2:
trigger: /No/ I do not have time for this!
script:
- chat "Fine then. I'll find someone else!"
2:
click trigger:
script:
- if <player.inventory.contains[STONE_SWORD].qty[1]> {
- ^TAKE STONE_SWORD QTY:1
- chat "Oh great you have it!"
- wait 1
- chat "Here is your reward!"
- GIVE MONEY QTY:800
- narrate "<npc.name> has rewarded you with <gold>$350!"
- narrate "<blue>You have completed this quest! You must wait 2 hours to do it again!"
- zap step:3
} else {
- chat "Come back to me when you have the sword!"
}
3:
click trigger:
script:
- cooldown duration:2h global "script:SwordStart"