Advertisement
NeonJ

Wizard Trainer NPC for TakendaRPG

Mar 7th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 18.00 KB | None | 0 0
  1. "Wizard Training Script":
  2.   type: assignment
  3.  
  4.   interact scripts:
  5.  - 10 WizardT Introduction
  6.  
  7.   actions:
  8.     on assignment:
  9.    - trigger name:chat toggle:true
  10.     - trigger name:click toggle:true
  11.    
  12. "WizardT Introduction":
  13.   type: interact
  14.   steps:
  15.     1:
  16.       click trigger:
  17.         script:
  18.        - ^runtask "script:WizardT Click Management"
  19.     2:
  20.       click trigger:
  21.         script:
  22.        - ^runtask "script:WizardT Click Management"
  23.       chat trigger:
  24.         1:
  25.           trigger: /Yes/, I would like to become a mage!
  26.           script:
  27.          - engage now
  28.           - chat "Great! That will be <white>102,400 Bells<green>, please!"
  29.           - if "<player.money>" >= 10 runtask "script:WizardT New Apprentice"
  30.             else runtask "script:WizardT Not Enough Money"
  31.           - disengage
  32.         2:
  33.           trigger: /No/, thank you.
  34.           script:
  35.          - chat "Whenever you change your mind, you know where to look."
  36.           - ^zap 1 "script:WizardT Introduction"
  37.     3:
  38.       click trigger:
  39.         script:
  40.        - ^runtask "script:WizardT Click Management"
  41.       chat trigger:
  42.         1:
  43.           trigger: I want to become a /White/ Mage!
  44.           script:
  45.          - engage now
  46.           - chat "Great! That will be <white>819,200 Bells<green>, please!"
  47.           - if "<player.money>" >= 20 runtask "script:WizardT New White"
  48.             else runtask "script:WizardT Not Enough Money"
  49.           - disengage
  50.         2:
  51.           trigger: I want to become a /Red/ Mage!
  52.           script:
  53.          - engage now
  54.           - chat "Great! That will be <white>819,200 Bells<green>, please!"
  55.           - if "<player.money>" >= 20 runtask "script:WizardT New Red"
  56.             else runtask "script:WizardT Not Enough Money"
  57.           - disengage
  58.         3:
  59.           trigger: I want to become a /Black/ Mage!
  60.           script:
  61.          - engage now
  62.           - chat "Great! That will be <white>819,200 Bells<green>, please!"
  63.           - if "<player.money>" >= 20 runtask "script:WizardT New Black"
  64.             else runtask "script:WizardT Not Enough Money"
  65.           - disengage
  66.         4:
  67.           trigger: /REGEX:\w+/
  68.           script:
  69.          - chat "I don't understand."
  70.           - ^zap 1 "script:WizardT Introduction"
  71.     4:
  72.       click trigger:
  73.         script:
  74.        - ^runtask "script:WizardT Click Management"
  75.       chat trigger:
  76.         1:
  77.           trigger: I want to become a True /White/ Mage!
  78.           script:
  79.          - engage now
  80.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  81.           - if "<player.money>" >= 30 runtask "script:WizardT New WhiteWhite"
  82.             else runtask "script:WizardT Not Enough Money"
  83.           - disengage
  84.         2:
  85.           trigger: I want to become a White-/Red/ Hybrid Mage!
  86.           script:
  87.          - engage now
  88.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  89.           - if "<player.money>" >= 30 runtask "script:WizardT New WhiteRed"
  90.             else runtask "script:WizardT Not Enough Money"
  91.           - disengage
  92.         3:
  93.           trigger: I want to become a White-/Black/ Hybrid Mage!
  94.           script:
  95.          - engage now
  96.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  97.           - if "<player.money>" >= 30 runtask "script:WizardT New WhiteBlack"
  98.             else runtask "script:WizardT Not Enough Money"
  99.           - disengage
  100.         4:
  101.           trigger: /REGEX:\w+/
  102.           script:
  103.          - chat "I don't understand."
  104.           - ^zap 1 "script:WizardT Introduction"
  105.     5:
  106.       click trigger:
  107.         script:
  108.        - ^runtask "script:WizardT Click Management"
  109.       chat trigger:
  110.         1:
  111.           trigger: I want to become a Red-/White/ Hybrid Mage!
  112.           script:
  113.          - engage now
  114.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  115.           - if "<player.money>" >= 30 runtask "script:WizardT New RedWhite"
  116.             else runtask "script:WizardT Not Enough Money"
  117.           - disengage
  118.         2:
  119.           trigger: I want to become a True /Red/ Mage!
  120.           script:
  121.          - engage now
  122.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  123.           - if "<player.money>" >= 30 runtask "script:WizardT New RedRed"
  124.             else runtask "script:WizardT Not Enough Money"
  125.           - disengage
  126.         3:
  127.           trigger: I want to become a Red-/Black/ Hybrid Mage!
  128.           script:
  129.          - engage now
  130.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  131.           - if "<player.money>" >= 30 runtask "script:WizardT New RedBlack"
  132.             else runtask "script:WizardT Not Enough Money"
  133.           - disengage
  134.         4:
  135.           trigger: /REGEX:\w+/
  136.           script:
  137.          - chat "I don't understand."
  138.           - ^zap 1 "script:WizardT Introduction"
  139.     6:
  140.       click trigger:
  141.         script:
  142.        - ^runtask "script:WizardT Click Management"
  143.       chat trigger:
  144.         1:
  145.           trigger: I want to become a Black-/White/ Hybrid Mage!
  146.           script:
  147.          - engage now
  148.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  149.           - if "<player.money>" >= 30 runtask "script:WizardT New BlackWhite"
  150.             else runtask "script:WizardT Not Enough Money"
  151.           - disengage
  152.         2:
  153.           trigger: I want to become a Black-/Red/ Hybrid Mage!
  154.           script:
  155.          - engage now
  156.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  157.           - if "<player.money>" >= 30 runtask "script:WizardT New BlackRed"
  158.             else runtask "script:WizardT Not Enough Money"
  159.           - disengage
  160.         3:
  161.           trigger: I want to become a True /Black/ Mage!
  162.           script:
  163.          - engage now
  164.           - chat "Great! That will be <white>3,276,800 Bells<green>, please!"
  165.           - if "<player.money>" >= 30 runtask "script:WizardT New BlackBlack"
  166.             else runtask "script:WizardT Not Enough Money"
  167.           - disengage
  168.         4:
  169.           trigger: /REGEX:\w+/
  170.           script:
  171.          - chat "I don't understand."
  172.           - ^zap 1 "script:WizardT Introduction"
  173.        
  174. "WizardT Click Management":
  175.   type: task
  176.   script:
  177.  - if "<player.group[member]>" runtask "script:WizardT Start Member"
  178.     else if "<player.group[apprentice]>" runtask "script:WizardT Start Apprentice"
  179.     else if "<player.group[white]>" runtask "script:WizardT Start White"
  180.     else if "<player.group[red]>" runtask "script:WizardT Start Red"
  181.     else if "<player.group[black]>" runtask "script:WizardT Start Black"
  182.     else if "<player.group[guest]>" runtask "script:WizardT Start Guest"
  183.     else runtask "script:WizardT Start Other"
  184.  
  185. "WizardT Start Member":
  186.   type: task
  187.   script:
  188.  - engage now
  189.   - chat "Hello, <aqua><player.name><green>. Welcome to The Library."
  190.   - chat "My name is <aqua><npc.name><green>. I teach people the ways of magic."
  191.   - wait 2
  192.   - chat "If you wish to learn, it will cost <white>102,400 <dark_purple>Bells<green>."
  193.   - chat "So, what do you say?"
  194.   - narrate "  <red>Available Topics:"
  195.   - narrate "    <blue>Yes<green>, I would like to become a mage!"
  196.   - narrate "    <blue>No<green>, thank you."
  197.   - ^zap 2 "script:WizardT Introduction"
  198.   - disengage
  199. "WizardT Start Apprentice":
  200.   type: task
  201.   script:
  202.  - engage now
  203.   - chat "Welcome back, <aqua><player.name><green>. Would you like to continue training?"
  204.   - chat "It will cost <white>819,200 <dark_purple>Bells<green> for the next lesson."
  205.   - chat "I can teach you the ways of <yellow>White<green>, <red>Red<green> or <gray>Black<green> magic."
  206.   - narrate "  <red>Available Topics:"
  207.   - narrate "    <green>I want become a <blue>White<green> Mage!"
  208.   - narrate "    <green>I want become a <blue>Red<green> Mage!"
  209.   - narrate "    <green>I want become a <blue>Black<green> Mage!"
  210.   - narrate "  <light_gray>NOTE: When you select a class, there's no going back."
  211.  - ^zap 3 "script:WizardT Introduction"
  212.  - disengage
  213. "WizardT Start White":
  214.  type: task
  215.  script:
  216.  - engage now
  217.  - chat "Welcome back, <aqua><player.name><green>. Are you here to further your training?"
  218.  - chat "Your final lesson will cost <white>3,276,800 <dark_purple>Bells<green>.
  219.   - chat "Which type of training would you like to learn further?"
  220.   - narrate "  <red>Available Topics:"
  221.   - narrate "    <green>I want to become a True <blue>White<green> Mage!"
  222.   - narrate "    <green>I want to become a White-<blue>Red<green> Hybrid Mage!"
  223.   - narrate "    <green>I want to become a White-<blue>Black<green> Hybrid Mage!"
  224.   - ^zap 4 "script:WizardT Introduction"
  225.   - disengage
  226. "WizardT Start Red":
  227.   type: task
  228.   script:
  229.  - engage now
  230.   - chat "Welcome back, <aqua><player.name><green>. Are you here to further your training?"
  231.   - chat "Your final lesson will cost <white>3,276,800 <dark_purple>Bells<green>.
  232.  - chat "Which type of training would you like to learn further?"
  233.  - narrate "  <red>Available Topics:"
  234.  - narrate "    <green>I want to become a Red-<blue>White<green> Hybrid Mage!"
  235.  - narrate "    <green>I want to become a True <blue>Red<green> Mage!"
  236.  - narrate "    <green>I want to become a Red-<blue>Black<green> Hybrid Mage!"
  237.  - ^zap 5 "script:WizardT Introduction"
  238.  - disengage
  239. "WizardT Start Black":
  240.  type: task
  241.  script:
  242.  - engage now
  243.  - chat "Welcome back, <aqua><player.name><green>. Are you here to further your training?"
  244.  - chat "Your final lesson will cost <white>3,276,800 <dark_purple>Bells<green>.
  245.   - chat "Which type of training would you like to learn further?"
  246.   - narrate "  <red>Available Topics:"
  247.   - narrate "    <green>I want to become a Black-<blue>White<green> Hybrid Mage!"
  248.   - narrate "    <green>I want to become a Black-<blue>Red<green> Hybrid Mage!"
  249.   - narrate "    <green>I want to become a True <blue>Black<green> Mage!"
  250.   - ^zap 6 "script:WizardT Introduction"
  251.   - disengage
  252. "WizardT Start Other":
  253.   type: task
  254.   script:
  255.  - engage now
  256.   - chat "There is nothing else I can teach you, <aqua><player.name><green>."
  257.   - ^zap 1 "script:WizardT Introduction"
  258.   - disengage
  259. "WizardT Start Guest":
  260.   type: task
  261.   script:
  262.  - engage now
  263.   - chat "Please ask <aqua>NeonJ<green> to add you to the server greylist."
  264.   - ^zap 1 "script:WizardT Introduction"
  265.   - disengage
  266.  
  267. "WizardT New Apprentice":
  268.   type: task
  269.   script:
  270.  - engage now
  271.   - chat "So, a new Apprentice Mage, is it?"
  272.   - chat "Alright, so the basics of magic is that..."
  273.   - wait 1
  274.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> the basics of magic..."
  275.   - wait 2
  276.   - chat "And there we go, that should be everything!"
  277.   - execute asserver "pex user <player.name> group set apprentice"
  278.   - execute asserver "pex reload"
  279.   - narrate "  <blue>You are now an Apprentice Mage!"
  280.   - ^zap 1 "script:WizardT Introduction"
  281.   - disengage
  282. "WizardT New White":
  283.   type: task
  284.   script:
  285.  - engage now
  286.   - chat "So, you wish to be a White Mage?"
  287.   - chat "Alright, so the basics of restoration magic..."
  288.   - wait 1
  289.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast White magic..."
  290.   - wait 2
  291.   - chat "And there we go, that should be everything!"
  292.   - execute asserver "pex user <player.name> group set white"
  293.   - execute asserver "pex reload"
  294.   - narrate "  <blue>You are now a White Mage!"
  295.   - ^zap 1 "script:WizardT Introduction"
  296.   - disengage
  297. "WizardT New Red":
  298.   type: task
  299.   script:
  300.  - engage now
  301.   - chat "So, you wish to be a Red Mage?"
  302.   - chat "Alright, so the basics of manipulation magic..."
  303.   - wait 1
  304.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast Red magic..."
  305.   - wait 2
  306.   - chat "And there we go, that should be everything!"
  307.   - execute asserver "pex user <player.name> group set red"
  308.   - execute asserver "pex reload"
  309.   - narrate "  <blue>You are now a Red Mage!"
  310.   - ^zap 1 "script:WizardT Introduction"
  311.   - disengage
  312. "WizardT New Black":
  313.   type: task
  314.   script:
  315.  - engage now
  316.   - chat "So, you wish to be a Black Mage?"
  317.   - chat "Alright, so the basics of destruction magic..."
  318.   - wait 1
  319.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast Black magic..."
  320.   - wait 2
  321.   - chat "And there we go, that should be everything!"
  322.   - execute asserver "pex user <player.name> group set black"
  323.   - execute asserver "pex reload"
  324.   - narrate "  <blue>You are now a Black Mage!"
  325.   - ^zap 1 "script:WizardT Introduction"
  326.   - disengage
  327. "WizardT New WhiteWhite":
  328.   type: task
  329.   script:
  330.  - engage now
  331.   - chat "So, you wish to be a True White Mage?"
  332.   - chat "Alright, so the advanced structures of restoration magic..."
  333.   - wait 1
  334.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast advanced White magic..."
  335.   - wait 2
  336.   - chat "And there we go, that should be everything!"
  337.   - execute asserver "pex user <player.name> group set whitewhite"
  338.   - execute asserver "pex reload"
  339.   - narrate "  <blue>You are now a True White Mage!"
  340.   - ^zap 1 "script:WizardT Introduction"
  341.   - disengage
  342. "WizardT New WhiteRed":
  343.   type: task
  344.   script:
  345.  - engage now
  346.   - chat "So, you wish to be a White-Red Hybrid Mage?"
  347.   - chat "Alright, so the basics of manipulation magic..."
  348.   - wait 1
  349.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast Red magic..."
  350.   - wait 2
  351.   - chat "And there we go, that should be everything!"
  352.   - execute asserver "pex user <player.name> group set whitered"
  353.   - execute asserver "pex reload"
  354.   - narrate "  <blue>You are now a White-Red Hybrid Mage!"
  355.   - ^zap 1 "script:WizardT Introduction"
  356.   - disengage
  357. "WizardT New WhiteBlack":
  358.   type: task
  359.   script:
  360.  - engage now
  361.   - chat "So, you wish to be a White-Black Hybrid Mage?"
  362.   - chat "Alright, so the basics of destruction magic..."
  363.   - wait 1
  364.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast Black magic..."
  365.   - wait 2
  366.   - chat "And there we go, that should be everything!"
  367.   - execute asserver "pex user <player.name> group set whiteblack"
  368.   - execute asserver "pex reload"
  369.   - narrate "  <blue>You are now a White-Black Hybrid Mage!"
  370.   - ^zap 1 "script:WizardT Introduction"
  371.   - disengage
  372. "WizardT New RedWhite":
  373.   type: task
  374.   script:
  375.  - engage now
  376.   - chat "So, you wish to be a Red-White Hybrid Mage?"
  377.   - chat "Alright, so the basics of restoration magic..."
  378.   - wait 1
  379.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast White magic..."
  380.   - wait 2
  381.   - chat "And there we go, that should be everything!"
  382.   - execute asserver "pex user <player.name> group set redwhite"
  383.   - execute asserver "pex reload"
  384.   - narrate "  <blue>You are now a Red-White Hybrid Mage!"
  385.   - ^zap 1 "script:WizardT Introduction"
  386.   - disengage
  387. "WizardT New RedRed":
  388.   type: task
  389.   script:
  390.  - engage now
  391.   - chat "So, you wish to be a True Red Mage?"
  392.   - chat "Alright, so the advanced structures of manipulation magic..."
  393.   - wait 1
  394.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast advanced Red magic..."
  395.   - wait 2
  396.   - chat "And there we go, that should be everything!"
  397.   - execute asserver "pex user <player.name> group set redred"
  398.   - execute asserver "pex reload"
  399.   - narrate "  <blue>You are now a True Red Mage!"
  400.   - ^zap 1 "script:WizardT Introduction"
  401.   - disengage
  402. "WizardT New RedBlack":
  403.   type: task
  404.   script:
  405.  - engage now
  406.   - chat "So, you wish to be a Red-Black Hybrid Mage?"
  407.   - chat "Alright, so the basics of destruction magic..."
  408.   - wait 1
  409.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast Black magic..."
  410.   - wait 2
  411.   - chat "And there we go, that should be everything!"
  412.   - execute asserver "pex user <player.name> group set redblack"
  413.   - execute asserver "pex reload"
  414.   - narrate "  <blue>You are now a Red-Black Hybrid Mage!"
  415.   - ^zap 1 "script:WizardT Introduction"
  416.   - disengage
  417. "WizardT New BlackWhite":
  418.   type: task
  419.   script:
  420.  - engage now
  421.   - chat "So, you wish to be a Black-White Hybrid Mage?"
  422.   - chat "Alright, so the basics of restoration magic..."
  423.   - wait 1
  424.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast White magic..."
  425.   - wait 2
  426.   - chat "And there we go, that should be everything!"
  427.   - execute asserver "pex user <player.name> group set blackwhite"
  428.   - execute asserver "pex reload"
  429.   - narrate "  <blue>You are now a Black-White Hybrid Mage!"
  430.   - ^zap 1 "script:WizardT Introduction"
  431.   - disengage
  432. "WizardT New BlackRed":
  433.   type: task
  434.   script:
  435.  - engage now
  436.   - chat "So, you wish to be a Black-Red Mage?"
  437.   - chat "Alright, so the basics of manipulation magic..."
  438.   - wait 1
  439.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast Red magic..."
  440.   - wait 2
  441.   - chat "And there we go, that should be everything!"
  442.   - execute asserver "pex user <player.name> group set blackred"
  443.   - execute asserver "pex reload"
  444.   - narrate "  <blue>You are now a Black-Red Hybrid Mage!"
  445.   - ^zap 1 "script:WizardT Introduction"
  446.   - disengage
  447. "WizardT New BlackBlack":
  448.   type: task
  449.   script:
  450.  - engage now
  451.   - chat "So, you wish to be a True Black Mage?"
  452.   - chat "Alright, so the advanced structures of destruction magic..."
  453.   - wait 1
  454.   - narrate "<yellow>* <aqua><npc.name><yellow> teaches <aqua><player.name><yellow> how to cast advanced Black magic..."
  455.   - wait 2
  456.   - chat "And there we go, that should be everything!"
  457.   - execute asserver "pex user <player.name> group set blackblack"
  458.   - execute asserver "pex reload"
  459.   - execute asserver "pex reload"
  460.   - narrate "  <blue>You are now a True Black Mage!"
  461.   - ^zap 1 "script:WizardT Introduction"
  462.   - disengage
  463. "WizardT Need More Money":
  464.   type: task
  465.   script:
  466.  - chat "Except, you appear to not have enough money."
  467.   - chat "Sorry, but I cannot serve people without proper payment."
  468.   - ^zap 1 "script:WizardT Introduction"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement