Hireable Bodyguards


Author: Jeebiss
Created: 2012-10-17T02:42:31-0400
Edited: 2012-10-17T02:42:31-0400
Denizen Version: 0.76
Views: 148
Downloads: 1008
Likes: 1


WGET
Description: Offer 3 levels of hireable bodyguards. With my sentry configuration, armor/weapons do not effect the stats. The /npc moveto command that is executed just moved the NPC over a couple of blocks from the original NPC. You'll need to adjust the x, y, and z.

BARTENDER:
  Type: Interact
  Requirements:
    Mode: None
  Steps:
    1:
      Proximity Trigger:
        Script:
        - RANDOM 2
        - CHAT 'If your looking for help you can hire a mercenary from me...'
        - CHAT 'Welcome to the Skirtcrawler Pub, <PLAYER>...'
      Click Trigger:
        Script:
        - ENGAGE
        - CHAT 'Looks like your a little worn out.'
        - WAIT 2
        - CHAT "I'll have one of my boys protect ya for a price..."
        - WAIT 2
        - CHAT 'What type of help are you looking for?'
        - ^NARRATE "<RED>Say:"
        - ^NARRATE "  '<WHITE>Peon<WHITE>' - <GRAY>Low level bodyguard - <GOLD>100c"
        - ^NARRATE "  '<WHITE>Thug<WHITE>' - <GRAY>Mid level bodyguard - <GOLD>150c"
        - ^NARRATE "  '<WHITE>Brute<WHITE>' - <GRAY>High level bodyguard - <GOLD>250c"
        - DISENGAGE
      Chat Trigger:
        1:
          Trigger: I would like to hire a /peon/.
          Script:
            - ENGAGE
            - CHAT "Ah, ya just need a little protection?"
            - ^NARRATE '<RED>Right click to hire a peon.'
            - FLAG 'BARTENDERTHUG:PEON' 'DURATION:15'
            - DISENGAGE

        2:
          Trigger: I would like to hire a /thug/.
          Script:
            - ENGAGE
            - CHAT "I can call him right up for ya..."
            - ^NARRATE '<RED>Right click to hire a thug.'
            - FLAG 'BARTENDERTHUG:THUG' 'DURATION:15'
            - DISENGAGE

        3:
          Trigger: I would like to hire a /brute/.
          Script:
            - ENGAGE
            - CHAT "Lookin' for the big guns?"
            - ^NARRATE '<RED>Right click to hire a brute.'
            - FLAG 'BARTENDERTHUG:BRUTE' 'DURATION:15'
            - DISENGAGE

        4:
          Trigger: /None/, I can handle myself!
          Script:
            - CHAT "Not my fault if you wind up dead, kid."
            
BARTENDERNOMONEY:
  Type: Interact
  Requirements:
    Mode: All
    List:
    - FLAGGED 'BARTENDERTHUG'
  Steps:
    1:
      Click Trigger:
        Script:
        - ENGAGE
        - ^NARRATE "<RED>You do not have enough money to hire that bodyguard..."
        - RESET 'FLAG:BARTENDERTHUG'
        - DISENGAGE
            
BARTENDERPEON:
  Type: Interact
  Requirements:
    Mode: All
    List:
      - MONEY 100
      - FLAGGED 'BARTENDERTHUG:PEON'
  Steps:
    1:
      Click Trigger:
        Script:
          - ENGAGE
          - CHAT "Alright, <PLAYER>. His life is in your hands. Try not to get him killed too quickly."
          - TAKE MONEY QTY:100
          - EXECUTE ASNPC "npc create Peon"
          - EXECUTE ASNPC "trait sentry"
          - EXECUTE ASNPC "npc moveto --x -223.778 --y 185.62 --z 348.768"
          - ^EXECUTE ASNPC "sentry guard <PLAYER>"
          - ^EXECUTE ASNPC "sentry strength 7"
          - ^EXECUTE ASNPC "sentry armor 5"
          - ^EXECUTE ASNPC "sentry equip IRON_SWORD"
          - ^EXECUTE ASNPC "sentry equip LEATHER_HELMET"
          - ^EXECUTE ASNPC "sentry equip LEATHER_CHESTPLATE"
          - ^EXECUTE ASNPC "sentry equip LEATHER_LEGGINGS"
          - ^EXECUTE ASNPC "sentry equip LEATHER_BOOTS"
          - ^EXECUTE ASNPC "sentry respawn -1"
          - RESET 'FLAG:BARTENDERTHUG'
          - COOLDOWN 3600 'SCRIPT:BARTENDER'
          - DISENGAGE

BARTENDERTHUG:
  Type: Interact
  Requirements:
    Mode: All
    List:
      - MONEY 150
      - FLAGGED 'BARTENDERTHUG:THUG'
  Steps:
    1:
      Click Trigger:
        Script:
          - ENGAGE
          - CHAT "Alright, <PLAYER>. Thugs are ruthless - but not too smart."
          - TAKE MONEY QTY:150
          - EXECUTE ASNPC "npc create Thug"
          - EXECUTE ASNPC "trait sentry"
          - ^EXECUTE ASNPC "sentry guard <PLAYER>"
          - ^EXECUTE ASNPC "sentry strength 7"
          - ^EXECUTE ASNPC "sentry armor 6"
          - ^EXECUTE ASNPC "sentry equip IRON_SWORD"
          - ^EXECUTE ASNPC "sentry equip IRON_HELMET"
          - ^EXECUTE ASNPC "sentry equip IRON_CHESTPLATE"
          - ^EXECUTE ASNPC "sentry equip IRON_LEGGINGS"
          - ^EXECUTE ASNPC "sentry equip IRON_BOOTS"
          - ^EXECUTE ASNPC "sentry respawn -1"
          - RESET 'FLAG:BARTENDERTHUG'
          - COOLDOWN 3600 'SCRIPT:BARTENDER'
          - DISENGAGE
          
BARTENDERBRUTE:
  Type: Interact
  Requirements:
    Mode: All
    List:
      - MONEY 250
      - FLAGGED 'BARTENDERTHUG:BRUTE'
  Steps:
    1:
      Click Trigger:
        Script:
          - ENGAGE
          - CHAT "Alright, <PLAYER>. You shouldn't be worried about creepers for a while, this brute can handle his own..."
          - TAKE MONEY QTY:250
          - EXECUTE ASNPC "npc create Brute"
          - EXECUTE ASNPC "trait sentry"
          - ^EXECUTE ASNPC "sentry guard <PLAYER>"
          - ^EXECUTE ASNPC "sentry strength 8"
          - ^EXECUTE ASNPC "sentry armor 7"
          - ^EXECUTE ASNPC "sentry equip DIAMOND_SWORD"
          - ^EXECUTE ASNPC "sentry equip DIAMOND_HELMET"
          - ^EXECUTE ASNPC "sentry equip DIAMOND_CHESTPLATE"
          - ^EXECUTE ASNPC "sentry equip DIAMOND_LEGGINGS"
          - ^EXECUTE ASNPC "sentry equip DIAMOND_BOOTS"
          - ^EXECUTE ASNPC "sentry respawn -1"
          - RESET 'FLAG:BARTENDERTHUG'
          - COOLDOWN 3600 'SCRIPT:BARTENDER'
          - DISENGAGE




Comments
2014-03-03 06:51:48 - RealJohn:

um so what's the exact command for this?