Paste #3522: Edit of P#3521 - Edit of P#3520 - Revised - Praise Jeebis | Bandit Killer | Up to date

Date: 2014/04/15 17:49:48 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


BanditasKing:
  type: assignment

  default constants:

    RewardAmount: 1000
    Quest Repeat Timeout: 8
    Quest Reset Timeout: 8
  interact scripts:
  - 10 BanditasKingKiller

  actions:
    on assignment:
    - trigger name:chat toggle:true
    - trigger name:click toggle:true
    - trigger name:proximity toggle:true
    - trigger name:damage toggle:true
    - execute as_npc "npc sel <npc.id>"
    - execute as_npc "npc vulnerable"

BanditasKingKiller:
  type: interact
  steps:
    1:

      click trigger:
        script:
        - run BanditasKingKillerCheckReq

      damage trigger:
        script:
          - ^random {
          - chat "<red>Oucch! <yellow>You really don't want to do that kid...!"
          - chat "<red>Aaarrggg! <yellow>Hit me again, and the guards will come.!"
          - chat "<red>Huh, I can't feel my arm...? <yellow>AH< MY ARM! WHERE IS IT?!"
          - chat "<red>Please don't hurt me! <yellow>I have never done anything bad to you!"
          - chat "<red>Heh, go jump off a bridge brat! <yellow>" }
    2:
      chat trigger:
        StartQuest:
          Trigger: /Yes/, I'll do it.
          script:
          - engage
          - flag <player> BKingKiller:Started "duration:<npc.constant[Quest Reset Timeout]>"
          - listen kill type:npc qty:1 target:BanditasKing script:BKQuestCompleted
          - Chat "<yellow>Yes, maybe now we can get the bloody Banditas to stop raiding our trade carts! Come back when he is dead, I'll reward you well."
          - narrate "<red>End The Banditas King - Quest Started"
          - disengage
        DenyQuest:
          trigger: /No/, I'm not interested sorry.
          script:
          - random {
            - chat "Alright then, come back if you change your mind"
            - chat "I guess the Banditass are too tough for ya"}
          - ZAP step:1
        proximity trigger:
          exit:
            script:
            - ZAP step:1
            click trigger:
              script:
              - run BanditasKingKillerCheckReq
        damage trigger:
          script:
          - ^random {
            - chat "<red>Oucch! <yellow>You really don't want to do that kid...!"
            - chat "<red>Aaarrggg! <yellow>Hit me again, and the guards will come.!"
            - chat "<red>Huh, I can't feel my arm...? <yellow>AH< MY ARM! WHERE IS IT?!"
            - chat "<red>Please don't hurt me! <yellow>I have never done anything bad to you!"
            - chat "<red>Heh, go jump off a bridge brat! <yellow>" }
          - zap step:1

    3:
      Click Trigger:
        - ^flag <player> BKingKiller:Claimed "duration:<npc.constant[Quest Repeat Timeout]>"
        - chat "<yellow>Yes, You actually did it! Well, they will probably have a new king tomorrow, but until then, thanks!"
        - ^give money qty:<npc.constant[RewardAmount]>
        - ^narrate "<red><npc.name> pays you <gold><npc.constant[RewardAmount]> <red><player.money.currency>."
        - ZAP step 4

    4:
      Click Trigger:
      - CHAT "Hey man, thanks for helping me. Come back tomorrow to kill some more Bandits!"

BKkillerGeneralChat:
  type: task
  script:
  - ^random {
    - chat "<yellow>Dude, if these Banditass keep going, my business will be ruined!"
    - chat "<yellow>I lost three carts yesterday... Three! I only sent out One!"
    - chat "<yellow>Nobody is willing to take the Banditas King on..."
    - chat "<yellow> Yep, took her leg right off!"}




BanditasKingKillerCheckReq:
  type: task
  script:
    - if <player.flag[BKingKiller]> == Started chat "<yellow>Hi <white><player.name><yellow>, please come back to me when you've killed <red>The Banditas King!"
      else if <player.flag[BKingKiller]> == ClaimReward chat "<white><player.name><yellow>, come over here! Come get your <gold>reward<yellow> for killing the Banditas king!"
      else if <player.flag[BKingKiller]> == Claimed chat "<yellow>Thanks for your help <white><player.name><yellow>, please come back later to help me again."
      else run BKkillerquestdetail

BKkillerquestdetail:
  type: task
  script:
  - random {
    - chat "<yellow>Hey Buddy! Yeah, You <player.Name>! Wanna kill someone for me?"
    - chat "<yellow>Wanna Job Son? Should be simple."
    - chat "<yellow>Mind giving me a hand dude?"}
  - random {
    - chat "<yellow>Kill the Banditas King Herald and I'll pay you $1000"
    - chat "<yellow>Navigate through the Banditas Caves and kill their leader for $1000"
    - chat "<yellow>The reward for killing the Banditas King will be a total of $1000"}

  - narrate "<red>Say<&co>"
  - ^narrate "  <blue>Yes<blue> <gray>or<red> No"
  - ^zap "s@BanditasKingKiller" step:2

BKQuestCompleted:
  type: task
  script:
  - ZAP s@"BKingKiller" Step 3