NPC who sells other NPCs


Author: inexion
Created: 2012-10-24T14:32:27-0400
Edited: 2012-10-24T14:34:44-0400
Denizen Version: 0.76
Views: 42
Downloads: 912
Likes: 0


WGET
Description: Simple script for an NPC vendor who sells other NPCs to players

'buy some npcs':
  Type: Interact
  Requirements:
    Mode: All
  Steps:
    1:
      Click Trigger:
        Script:
        - ENGAGE
        - ^LOOK CLOSE DURATION:10
        - CHAT "Greetings <PLAYER>, would you like to take a look at some of my wares...?"
        - WAIT 1
        - CHAT "Here is my inventory for this week:"
        - CHAT "1) Sentry"
        - CHAT "2) Blacksmith"
        - CHAT "3) Trader"
        - CHAT "4) Alchemist"
        - DISENGAGE
      Chat Trigger:
          1:
            Trigger: /1/ I'd like the sentry...
            Script:
              - ENGAGE
              - CHAT "The seed is strong in this one pal.."
              - TAKE MONEY QTY:10
              - CHAT "Alright fella, whatcha want to name this scamp?"
              - DISENGAGE
              - FLAG DENIZEN TYPE:sentry
              - ZAP 2 DURATION:15
              - FINISH
          2:
            Trigger: /2/ I need a good smithy...
            Script:
              - ENGAGE
              - CHAT "This one can hit hard.."
              - TAKE MONEY QTY:10
              - CHAT "Alright fella, whatcha want to name this scamp?"
              - DISENGAGE
              - FLAG DENIZEN TYPE:blacksmith
              - ZAP 2 DURATION:15
              - FINISH
          3:
            Trigger: /3/ I need someone to dish out my goods..
            Script:
              - ENGAGE
              - CHAT "You know what I mean man, this guy will sell it all.."
              - TAKE MONEY QTY:10
              - CHAT "Alright fella, whatcha want to name this scamp?"              
              - DISENGAGE
              - FLAG DENIZEN TYPE:trader              
              - ZAP 2 DURATION:15
          4:
            Trigger: /4/ I need LSD, STAT.
            Script:
              - ENGAGE
              - CHAT "This guy's got you covered buddy..."
              - TAKE MONEY QTY:10
              - CHAT "Alright fella, whatcha want to name this scamp?"
              - DISENGAGE   
              - FLAG DENIZEN TYPE:alchemist              
              - ZAP 2 DURATION:15
    2:
      Chat Trigger:    
        1:
          Trigger: /*/
          Script:
            - FLAG DENIZEN NAME:<*>
            - ENGAGE
            - CHAT "Sounds good buddy, his new name will be...<FLAG.D:NAME>"
            - CHAT "Gimme a minute to get all this god damned paperwork settled"
            - EXECUTE ASNPC 'npc create <FLAG.D:NAME>'
            - EXECUTE ASNPC 'trait <FLAG.D:TYPE>'
            - EXECUTE ASSERVER 'npc select <FLAG.D:NAME>'
            - EXECUTE ASSERVER 'npc owner <PLAYER>'
            - DISENGAGE




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