Sword Fetch Script


Author: Calebizzthaman
Created: 2014-08-05T21:27:12-0400
Edited: 2014-08-05T21:27:12-0400
Denizen Version: 2.0
Views: 3
Downloads: 865
Likes: 0


WGET
Description: This script gives players a quest to fetch a stone sword for a small reward! 24h COOLDOWN.

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"




Comments
No one has posted a comment! Post one below: