Valerian720

copy citizens guid pvp (2014)

Aug 23rd, 2017
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Description: This is a fairly elaborate set of scripts, but should be simple to implement. It requires 4 separate NPCs. I removed the need for any additional plugins outside of Denizen, and made a reliable system for a daily resetting quest. All of the configuration options are in the first part of the script. There are not a lot of options, but I tried to cover the main parts that will need changed. Feel free to edit the script to your needs, but beware that if you change anything other then the configuration values, you are on your own. This is a fairly elaborate set of quests, and definitely would take some effort to wrap your head around. If you run into any issues or have any questions, I am regularly in #denizen-dev on the esper.net irc network, so feel free to bug me.
  2.  
  3. NPCs (with suggested names):
  4. Antee - The first NPC you deal with. He has 3 quest in which he wants you to kill zombies, skeletons, and creepers. Basically a set of trials to join the PVP Guild. He sends you to the Guild Master when you finish the third.
  5.  
  6. Dread (Guild Master) - He only gives one quest as it stands, which is to go kill 1 player to be officially accepted in the guild. Once the player finishes the quest, they will gain access to the rest of the quests in the guild.
  7.  
  8. Vandaag - He provides a daily pvp quest to guild members. The quest resets 24 hours after it is finished, giving the players opportunities to continue to get items for rewards.
  9.  
  10. Gavoon - A small chain of quests to get initial gear. He rewards you some custom guild armor. Hes more for the story as hes an extremely creepy character.
  11.  
  12. Change Log:
  13. 2/5/2014 - Remove extra narrate left from debugging.
  14.  
  15.  
  16. InitiateQuest:
  17.   type: assignment
  18.   #----------------------------------
  19.   #  Congiguration Section:
  20.   #  These valus affect the Iniation
  21.   #  quest. Qty values are the number
  22.   #  of kills needed for each step,
  23.   #  and the reward values are the
  24.   #  amount of currency the player
  25.   #  gets as a reward.
  26.   #----------------------------------
  27.   default constants:
  28.     ServerName: Dreadcraft
  29.  
  30.     ZombieQty: 15
  31.     ZombieReward: 250
  32.  
  33.     SkeletonQty: 15
  34.     SkeletonReward: 250
  35.  
  36.     CreeperQty: 5
  37.     CreeperReward: 250
  38.   #  ---------- END CONFIG ----------
  39.   actions:
  40.     on assignment:
  41.     - trigger name:chat toggle:true
  42.   interact scripts:
  43.   - 10 Initiation
  44.  
  45. GuildMaster:
  46.   type: assignment
  47.   #----------------------------------
  48.   #  Congiguration Section:
  49.   #  These valus affect the Guild
  50.   #  Master's quest. The GuildNPC
  51.  #  names just reference the NPCs
  52.  #  that give the quests once
  53.  #  you've joined.
  54.   #----------------------------------
  55.   default constants:
  56.     GuildNPC1Name: Gavoon
  57.     GuildNPC2Name: Vandaag
  58.   #  ---------- END CONFIG ----------
  59.   actions:
  60.     on assignment:
  61.     - trigger name:chat toggle:true
  62.   interact scripts:
  63.     - 10 GuildMasterChallenge
  64.  
  65. SkillsQuest:
  66.   type: assignment
  67.   #----------------------------------
  68.   #  Congiguration Section:
  69.   #  These valus affect the 'Skill
  70.  #  Enhancement' quests, which the
  71.   #  player gains access to once they
  72.   #  join the guild. it consists of
  73.   #  a two step quest, where the NPC
  74.   #  has the player go kill other
  75.   #  players. The QtyOne and QtyTwo
  76.   #  values are how many players must
  77.   #  be killed in each quest step.
  78.   #  The 'InWords' values, are just
  79.   #  the 'Qty' values, expressed in
  80.   #  words (with a capital).
  81.   #----------------------------------
  82.   default constants:
  83.     QuestOneQty: 2
  84.     QtyOneInWords: Two
  85.     QuestTwoQty: 3
  86.     QtyTwoInWords: Three
  87.   #  ---------- END CONFIG ----------
  88.   actions:
  89.     on assignment:
  90.     - trigger name:chat toggle:true
  91.   interact scripts:
  92.     - 10 SkillsEnhance
  93.  
  94. DailyPVP:
  95.   type: assignment
  96.   #----------------------------------
  97.   #  Congiguration Section:
  98.   #  These valus affect the dailt pvp
  99.   #  quest. The PVPQty value is the number
  100.   #  of kills needed. The 'List'
  101.   #  values are 3 lists, upon which
  102.   #  one value from each is given as
  103.   #  a reward. The 'Qty' values are
  104.   #  how many of each reward they get.
  105.   #----------------------------------
  106.   default constants:
  107.     # Qty of kills for daily pvp
  108.     PVPQty: 2
  109.     # List of rewards for daily pvp
  110.     ArmorList: i@<util.random.int[310].to[313]>[enchantments=protection_environmental,4]
  111.     ArmorQty: 1
  112.     ResourceList: i@<util.random.int[264].to[266]>
  113.     ResourceQty: <util.random.int[1].to[10]>
  114.     MiscList: i@<util.random.int[352].to[375]>
  115.     MiscQty: <util.random.int[1].to[10]>
  116.   #  ---------- END CONFIG ----------
  117.   actions:
  118.     on assignment:
  119.     - trigger name:chat toggle:true
  120.   interact scripts:
  121.     - 10 DailyPVPQuest
  122.  
  123. #----------------------------------
  124. #  These are the item scripts for
  125. #  the reward items. You can modify
  126. #  them as you see fit, however you
  127. #  will need to go into the proper
  128. #  script and change any references.
  129. #  Eventually, I want to add a
  130. #  way to handle all this with
  131. #  constants or something.
  132. #----------------------------------
  133. GuildChest:
  134.   type: item
  135.   material: diamond_chestplate
  136.   display name: Chest of the Fallen
  137.   enchantments:
  138.   - PROTECTION_ENVIRONMENTAL:2
  139.   - DURABILITY:2
  140.   lore:
  141.   - The diamond chest of a fallen,
  142.   - Guild member. Reforged by <npc.name>
  143.  
  144. GuildLegs:
  145.   type: item
  146.   material: diamond_leggings
  147.   display name: Legplates of the Fallen
  148.   enchantments:
  149.   - PROTECTION_ENVIRONMENTAL:2
  150.   - DURABILITY:2
  151.   lore:
  152.   - These legplates definitly aren't new...
  153.  
  154. GuildSword:
  155.  type: item
  156.  material: diamond_sword
  157.  display name: Sword of the Flame
  158.  enchantments:
  159.  - FIRE_ASPECT:2
  160.  - DAMAGE_ALL:2
  161.  lore:
  162.  - Forged with raw diamonds and blaze rods,
  163.  - this sword is awarded to all PvP Guild initiates.
  164.  
  165. #----------------------------------
  166. #  Start of the quest scripts, I
  167. #  would not advise editing any-
  168. #  thing beyond here if you are not
  169. #  an experienced scripter.
  170. #----------------------------------
  171. Initiation:
  172.  Type: Interact
  173.  Steps:
  174.    1:
  175.      Click Trigger:
  176.        Script:
  177.          - ^engage
  178.          - chat "Welcome to the PVP Guild of <npc.constant[ServerName]>!"
  179.          - wait 2
  180.          - chat "Only the toughest of the tough can join us."
  181.          - wait 2
  182.          - chat "If you are interested in joining, you'll have to pass a set of challenges."
  183.          - wait 2
  184.          - chat "What do you say?"
  185.          - narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
  186.          - ^disengage
  187.      Chat Trigger:
  188.        1:
  189.           Trigger: /Yes/, I'm interested in joining the PVP Guild.
  190.           Script:
  191.             - ^engage
  192.             - chat "Very good!"
  193.             - wait 2
  194.             - chat "These challenges are to test your abilities against different opponents."
  195.             - wait 2
  196.             - chat "We will start off with simple targets, the walking dead."
  197.             - wait 2
  198.             - ^chat "I need you to go hunt down a kill <npc.constant[ZombieQty]> of these monsters. Dont let those zombies survive."
  199.             - ^listen kill type:entity name:zombie qty:1 script:ZombieCheck
  200.             - flag ZombieCount:0
  201.             - ^zap
  202.             - ^disengage
  203.        2:
  204.           Trigger: /No/, I feel Im too weak to join your Guild.
  205.           Script:
  206.             - ^engage
  207.             - chat "Its not cut out for everyone."
  208.             - wait 2
  209.             - chat "You'll be back when our members come for you..."
  210.             - ^disengage
  211.    2:    
  212.      Click Trigger:
  213.        Script:
  214.          - ^engage
  215.          - chat "You've only killed <flag.p:ZombieCount.asint> zombies..."
  216.          - wait 2
  217.          - chat "Are you too weak to handle our most basic challenge?"
  218.          - wait 2
  219.          - chat "Come back if you manage to handle the task at hand."
  220.          - ^disengage
  221.    3:
  222.      Click Trigger:
  223.        Script:
  224.          - ^engage
  225.          - chat "Ah! You managed to kill them! I must admit I didnt have much faith.."
  226.          - wait 2
  227.          - chat "Come back to me when you're ready for your next challenge."
  228.          - wait 2
  229.          - ^give money qty:<npc.constant[ZombieReward]>
  230.          - ^chat "Oh, and take these coins for yourself as a small reward."
  231.          - ^narrate "<red>You receieved <gold><npc.constant[ZombieReward]> coins<red> from <npc.name>!"
  232.          - ^flag ZombieCount:!
  233.          - ^zap step:4
  234.          - ^disengage
  235.    4:
  236.      Click Trigger:
  237.          Script:
  238.            - ^engage
  239.            - chat "Ah, now that you're back, on to the next challenge!"
  240.            - wait 3
  241.            - chat "I need you to prove yourself against opponents who are more swift and nimble!"
  242.            - ^wait 3
  243.            - ^chat "Kill <npc.constant[SkeletonQty]> skeletons to prove your agility, what do you say?"
  244.            - ^narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
  245.      Chat Trigger:
  246.        1:
  247.           Trigger: /Yes/, I will get right on that.
  248.           Script:
  249.             - ^engage
  250.             - chat "Very good!"
  251.             - wait 2
  252.             - chat "Go on now, go hunting!"
  253.             - ^listen kill type:entity name:skeleton qty:1 script:SkeleCheck
  254.             - ^flag SkeleCount:0
  255.             - ^zap step:5
  256.             - ^disengage
  257.        2:
  258.           Trigger: /No/, I wont be able to handle that.
  259.           Script:
  260.             - ^engage
  261.             - wait 2
  262.             - chat "Then leave."
  263.             - ^disengage
  264.    5:
  265.      Click Trigger:
  266.        Script:
  267.          - ^engage
  268.          - chat "You've only killed <flag.p:SkeleCount.asint> skeletons..."
  269.          - wait 2
  270.          - chat "Leave and dont come back until you are done!"
  271.          - ^disengage
  272.    6:
  273.      Click Trigger:
  274.        Script:
  275.          - ^engage
  276.          - chat "<npc.constant[SkeletonQty]> skeletons dead, very nicely done."
  277.          - wait 2
  278.          - chat "This time you really earned this reward!"
  279.          - ^give money qty:<npc.constant[SkeletonReward]>
  280.          - ^narrate "<red>You receieved <gold><npc.constant[SkeletonReward]> coins<red> from <npc.name>!"
  281.          - wait 1
  282.          - chat "Come back when you're ready for the final challenge."
  283.          - ^flag SkeleCount:!
  284.          - ^zap 7
  285.          - ^disengage
  286.    7:
  287.      Click Trigger:
  288.        Script:
  289.          - ^engage
  290.          - chat "Back for the last challenge I see!"
  291.          - wait 2
  292.          - chat "For your final challenge, I need you to prove that you can handle the toughest of foes."
  293.          - wait 2
  294.          - chat "Kill <npc.constant[CreeperQty]> creepers, and you will have proved your potential."
  295.          - wait 2
  296.          - chat "Think you can handle that?"
  297.          - narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
  298.          - ^disengage
  299.      Chat Trigger:
  300.        1:
  301.           Trigger: /Yes/, that'll be nothing.
  302.           Script:
  303.             - ^engage
  304.             - chat "Well get on your way then, I dont have all day!"
  305.             - wait 2
  306.             - chat "Return to me when you finish!"
  307.             - ^flag CreeperCount:0
  308.             - ^listen kill type:entity name:creeper qty:1 script:CreeperCheck
  309.             - ^zap step:8
  310.             - ^disengage
  311.        2:
  312.           Trigger: /No/, I wont be able to handle that.
  313.           Script:
  314.             - ^engage
  315.             - chat "Its not cut out for everyone."
  316.             - chat "You'll be back when our members come for you..."
  317.             - ^disengage
  318.    8:    
  319.      Click Trigger:
  320.        Script:
  321.          - ^engage
  322.          - chat "You've only killed <flag.p:CreeperCount.asint> Creepers..."
  323.          - wait 2
  324.          - chat "Are you too weak to handle our most basic requirement?"
  325.          - wait 2
  326.          - chat "Come back if you manage to handle the task at hand."
  327.          - ^disengage
  328.    9:
  329.      Click Trigger:
  330.        Script:
  331.          - ^engage
  332.          - chat "You made it back in one piece I see. Thats surpising, I must admit."
  333.          - wait 2
  334.          - chat "Here is a little coin for your efforts;"
  335.          - ^give money qty:<npc.constant[CreeperReward]>
  336.          - ^narrate "<red>You receieved <gold><npc.constant[CreeperReward]> coins<red> from <npc.name>!"
  337.          - wait 2
  338.          - chat "You have passed all of my challenges, and have my recomendation to join the guild."
  339.          - wait 2
  340.          - chat "Go speak to the Guild Master, he will be waiting."
  341.          - ^flag CreeperCount:!
  342.          - ^zap 10
  343.          - ^zap script:GuildMasterChallenge step:2
  344.          - ^disengage
  345.    10:
  346.      Click Trigger:
  347.        Script:
  348.          - chat "You'll need to talk to the Guild Master for further instructions."
  349.  
  350. #----------------------------------
  351. #  Task scripts used to give feed-
  352. #  back while killing zombies.
  353. #----------------------------------
  354. ZombieCheck:
  355.  Type: Task
  356.  Script:
  357.    - ^flag ZombieCount:++
  358.    - ^if <flag.p:ZombieCount.asint> >= <npc.constant[ZombieQty]> run ZombieReward
  359.      else run ZombieContinue
  360.  
  361. ZombieContinue:
  362.  Type: Task
  363.  Script:
  364.    - ^narrate "<red>*** <white>Kill Zombies - <flag.p:ZombieCount.asint>/<npc.constant[ZombieQty]> <red>***"
  365.    - ^listen kill type:entity name:zombie qty:1 script:ZombieCheck
  366.  
  367. ZombieReward:
  368.  Type: Task
  369.  Script:
  370.    - ^narrate "<red>*** <white>Kill Zombies - <flag.p:ZombieCount.asint>/<npc.constant[ZombieQty]> <red>***"
  371.    - wait 1
  372.    - ^narrate "You've killed <npc.constant[ZombieQty]> Zombies, return to <npc.name> at the PvP Guild."
  373.    - ^zap script:Initiation step:3
  374.  
  375. #----------------------------------
  376. #  Task scripts used to give feed-
  377. #  back while killing skeletons.
  378. #----------------------------------    
  379. SkeleCheck:
  380.  Type: Task
  381.  Script:
  382.    - ^flag SkeleCount:++
  383.    - ^if <flag.p:SkeleCount.asint> >= <npc.constant[SkeletonQty]> run SkeleReward
  384.      else run SkeleContinue
  385.      
  386. SkeleContinue:
  387.  Type: Task
  388.  Script:
  389.    - ^narrate "<red>*** <white>Kill Skeletons - <flag.p:SkeleCount.asint>/<npc.constant[SkeletonQty]> <red>***"
  390.    - ^listen kill type:entity name:skeleton qty:1 script:SkeleCheck
  391.  
  392. SkeleReward:
  393.  Type: Task
  394.  Script:
  395.    - ^narrate "<red>*** <white>Kill Skeletons - <flag.p:SkeleCount.asint>/<npc.constant[SkeletonQty]> <red>***"
  396.    - wait 1
  397.    - narrate "You've killed <npc.constant[SkeletonQty]> Skeletons, return to <npc.name> at the PvP Guild."
  398.    - zap script:Initiation step:6
  399.  
  400. #----------------------------------
  401. #  Task scripts used to give feed-
  402. #  back while killing creepers.
  403. #----------------------------------
  404. CreeperCheck:
  405.  Type: Task
  406.  Script:
  407.    - ^flag CreeperCount:++
  408.    - ^if <flag.p:CreeperCount.asint> >= <npc.constant[CreeperQty]> run CreeperReward
  409.      else run CreeperContinue
  410.  
  411. CreeperContinue:
  412.  Type: Task
  413.  Script:
  414.    - ^narrate "<red>*** <white>Kill Creepers - <flag.p:CreeperCount.asint>/<npc.constant[CreeperQty]> <red>***"
  415.    - ^listen kill type:entity name:creeper qty:1 script:CreeperCheck
  416.  
  417. CreeperReward:
  418.  Type: Task
  419.  Script:
  420.    - ^narrate "<red>*** <white>Kill Creepers - <flag.p:CreeperCount.asint>/<npc.constant[CreeperQty]> <red>***"
  421.    - wait 1
  422.    - NARRATE "You've killed <npc.constant[CreeperQty]> Creepers, return to <npc.name> at the PvP Guild."
  423.    - zap script:Initiation step:9
  424.  
  425. GuildMasterChallenge:
  426.  Type: Interact
  427.  Steps:
  428.    1:
  429.      click trigger:
  430.        script:
  431.        - chat "Who are you...?"
  432.    2:
  433.      Click Trigger:
  434.        Script:
  435.          - ^engage
  436.          - narrate "<dark_purple><npc.name> stares you down..."
  437.          - wait 2
  438.          - chat "Hopefully you live a little bit longer than the last few whelps, <PLAYER.name>."
  439.          - wait 2
  440.          - chat "Do you see yourself fit to join our guild?"
  441.          - narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
  442.          - ^disengage
  443.      Chat Trigger:
  444.        1:
  445.           Trigger: /Yes/, I am ready for anything.
  446.           Script:
  447.             - ^engage
  448.             - wait 2
  449.             - chat "Hunt down one of your own... Family, friend, or enemy... As long as you get some innocent blood on your hands."
  450.             - wait 2
  451.             - chat "Return to me when your finished..."
  452.             - ^listen kill type:player qty:1 script:GuildMasterReward
  453.             - ^zap step:3
  454.             - ^disengage
  455.        2:
  456.           Trigger: /No/, I need to  think about it.
  457.           Script:
  458.             - ^engage
  459.             - wait 2
  460.             - chat "Coward..."
  461.             - wait 1
  462.             - narrate "<dark_purple><npc.name> looks dissapointed."
  463.             - ^disengage
  464.    3:    
  465.      Click Trigger:
  466.        Script:
  467.          - ^engage
  468.          - chat "No blood on your hands?"
  469.          - wait 2
  470.          - chat "You know what needs to be done, whelp."
  471.          - ^disengage
  472.    4:
  473.      Click Trigger:
  474.        Script:
  475.          - ^engage
  476.          - chat "Good."
  477.          - wait 2
  478.          - chat "I will admit, you had the look of a killer about you..."
  479.          - wait 2
  480.          - chat "You have proved your worthiness to me, and solidified your place in this guild."
  481.          - wait 2
  482.          - chat "Take this sword - All guild members recieve this blade when they have proven themselves."
  483.          - wait 1
  484.          - ^give item:GuildSword
  485.          - ^narrate "<RED>You received an enchanted <aqua>Diamond Sword<red> from the Guild Master."
  486.          - wait 2
  487.          - narrate "<dark_purple><npc.name> smiles at you."
  488.          - wait 2
  489.          - ^chat "Leave nothing but ashes..."
  490.          - ^flag server PVPGuildMembers:->:<player>
  491.          - ^zap script:SkillsEnhance step:2
  492.          - ^zap script:DailyPVPQuest step:2
  493.          - ^zap step:5
  494.          - ^disengage
  495.    5:
  496.      Click Trigger:
  497.        Script:
  498.          - ^engage
  499.          - chat "Welcome back to the PVP Guild!"
  500.          - wait 1
  501.          - chat "If you are looking for a Guild task, speak to <npc.constant[GuildNPC1Name]> or <npc.constant[GuildNPC2Name]>."
  502.          - ^disengage
  503.  
  504. GuildMasterReward:
  505.  Type: Task
  506.  Script:
  507.    - ^narrate "You've killed a player in the name of the PVP Guild!! Return to the Guild Master."  
  508.    - ^zap script:GuildMasterChallenge step:4
  509.  
  510. SkillsEnhance:
  511.  Type: Interact
  512.  Steps:
  513.    1:
  514.      click trigger:
  515.        script:
  516.        - narrate "<dark_purple><npc.name> stares directly into your eyes..."
  517.        - wait 2
  518.        - chat "Are you lost..?"
  519.    2:
  520.      Click Trigger:
  521.        Script:
  522.          - ^engage
  523.          - chat "The Guild Master says you're the best new member we have..."
  524.          - wait 2
  525.          - chat "How about a little fun, <player.name>?"
  526.          - wait 2
  527.          - narrate "<dark_purple><npc.name> grins meniachly at you..."
  528.          - narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
  529.          - ^disengage
  530.      Chat Trigger:
  531.        1:
  532.           Trigger: /Yes/, lets have a little fun.
  533.           Script:
  534.             - ^engage
  535.             - wait 2
  536.             - chat "<npc.constant[QtyOneInWords]> bodies, thats all we need."
  537.             - wait 2
  538.             - chat "See you soon."
  539.             - ^listen kill type:player qty:1 script:SkillQCheck
  540.             - ^flag SkillQCount:0
  541.             - ^zap step:3
  542.             - ^disengage
  543.        2:
  544.           Trigger: /No/, I'll pass.
  545.           Script:
  546.             - ^engage
  547.             - chat "Hah, you call yourself a killer."
  548.             - wait 2
  549.             - chat "I've killed creepers with more spine than you."
  550.             - wait 1
  551.             - ^narrate "<dark_purple><npc.name> points to a statue of creeper spines."
  552.             - ^disengage
  553.    3:    
  554.      Click Trigger:
  555.        Script:
  556.          - ^engage
  557.          - wait 2
  558.          - chat "I expect you have your victims bound and gagged by now... Go finish the job. "
  559.          - wait 2
  560.          - chat "Don't keep them waiting."
  561.          - ^disengage
  562.    4:
  563.      Click Trigger:
  564.        Script:
  565.          - ^engage
  566.          - chat "Finally, <PLAYER.name>..."
  567.          - wait 2
  568.          - chat "Don't tell me how you killed them, It's more fun that way."
  569.          - wait 2
  570.          - chat "Of course, your reward!"
  571.          - ^give item:GuildChest
  572.          - ^narrate "<RED>You received a set of enchanted <aqua>Diamond Chestplate<red>."
  573.          - wait 2
  574.          - chat "Now go do something else - I have corpses to tend to."
  575.          - wait 2
  576.          - narrate "...maybe you should return to <npc.name> later..."
  577.          - ^flag SkillQCount:!
  578.          - ^flag SkillQ2
  579.          - ^zap 5
  580.          - ^disengage
  581.    5:
  582.      Click Trigger:
  583.        Script:
  584.          - ^engage
  585.          - narrate "<dark_purple><npc.name> giggles excitedly!"
  586.          - wait 2
  587.          - chat "Back for more blood, <PLAYER.name>?"
  588.          - wait 1
  589.          - ^narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
  590.          - ^disengage
  591.      Chat Trigger:
  592.        1:
  593.           Trigger: /Yes/, I am.
  594.           Script:
  595.             - ^engage
  596.             - wait 2
  597.             - chat "How delightful! I need more meat for the hounds..."
  598.             - wait 2
  599.             - chat "Go tender up some meat."
  600.             - wait 2
  601.             - chat "By 'meat', I mean humans..."
  602.             - wait 2
  603.             - ^narrate "<dark_purple><npc.name> licks his lips."
  604.             - ^listen kill type:player qty:1 script:SkillQCheck
  605.             - ^zap step:6
  606.             - ^disengage
  607.        2:
  608.           Trigger: /No/, I'll pass.
  609.           Script:
  610.             - ^engage
  611.             - chat "I guess the dogs will be eating you tonight."
  612.             - wait 2
  613.             - ^narrate "<dark_purple><npc.name> begins sharpening a knife..."
  614.             - ^disengage
  615.    6:    
  616.      Click Trigger:
  617.        Script:
  618.          - ^engage
  619.          - chat "Back so soon...?"
  620.          - wait 2
  621.          - chat "If you don't get us the meat soon, the hounds will starve..."
  622.          - wait 2
  623.          - ^chat "They only eat fresh meat, and we are all out of prisoners. Get moving!"
  624.          - ^disengage
  625.    7:
  626.      Click Trigger:
  627.        Script:
  628.          - ^engage
  629.          - narrate "<dark_purple><npc.name> begins nibbling on the 'meat' you gathered..."
  630.          - wait 2
  631.          - chat "Fantastic..."
  632.          - wait 2
  633.          - narrate "<dark_purple><npc.name> takes a large chunk of 'meat' and begins chewing on it..."
  634.          - wait 2
  635.          - narrate "<dark_purple><npc.name> reaches into his pocket..."
  636.          - wait 1
  637.          - ^give item:GuildLegs
  638.          - ^narrate "<RED>You received enchanted <aqua>Diamond Legplates."
  639.          - wait 2
  640.          - narrate "<dark_purple><npc.name> shoos you away... Still chewing..."
  641.          - wait 2
  642.          - narrate "<BLUE>You can't help but think - That human flesh wasn't for the dogs..."
  643.          - ^flag SkillQCount:!
  644.          - ^flag SkillQ2:!
  645.          - ^zap 8
  646.          - ^disengage
  647.    8:
  648.      Click Trigger:
  649.        Script:
  650.          - ^engage
  651.          - narrate "<dark_purple><npc.name> gnaws on a large chunk of what looks like beef jerky."
  652.          - wait 2
  653.          - narrate "<dark_purple><npc.name> smiles at you. Little pieces of 'meat' dotting his grin."
  654.          - narrate "<RED>You have finished this quest."
  655.          - ^disengage
  656.  
  657. SkillQCheck:
  658.  Type: Task
  659.  Script:
  660.    - ^flag SkillQCount:++
  661.    - ^if <player.flag[SkillQ2]> {
  662.      - ^if <player.flag[SkillQCount].asint> >= <npc.constant[QuestTwoQty]> run SkillQReward
  663.        else run SkillQContinue
  664.      } else {
  665.      - ^if <player.flag[SkillQCount].asint> >= <npc.constant[QuestOneQty]> run SkillQReward
  666.        else run SkillQContinue
  667.      }
  668.  
  669. SkillQContinue:
  670.  Type: Task
  671.  Script:
  672.    - ^if <player.flag[SkillQ2]> {
  673.      - ^narrate "<red>*** <white>Kill Players - <flag.p:SkillQCount.asint>/<npc.constant[QuestTwoQty]> <red>***"
  674.      } else {
  675.      - ^narrate "<red>*** <white>Kill Players - <flag.p:SkillQCount.asint>/<npc.constant[QuestOneQty]> <red>***"
  676.      }
  677.    - ^listen kill type:player qty:1 script:SkillQCheck
  678.  
  679. SkillQReward:
  680.  Type: Task
  681.  Script:
  682.    - ^if <player.flag[SkillQ2]> {
  683.      - ^narrate "<red>*** <white>Kill Players - <flag.p:SkillQCount.asint>/<npc.constant[QuestTwoQty]> <red>***"
  684.      - wait 1
  685.      - narrate "You've killed <npc.constant[QuestTwoQty]> Players, return to <npc.name> at the PvP Guild."
  686.      - zap script:SkillsEnhance step:7
  687.      } else {
  688.      - ^narrate "<red>*** <white>Kill Players - <flag.p:SkillQCount.asint>/<npc.constant[QuestOneQty]> <red>***"
  689.      - wait 1
  690.      - narrate "You've killed <npc.constant[QuestOneQty]> Players, return to <npc.name> at the PvP Guild."
  691.      - zap script:SkillsEnhance step:4
  692.      }
  693.  
  694. DailyPVPQuest:
  695.  Type: Interact
  696.  Steps:
  697.    1:
  698.      Click Trigger:
  699.        Script:
  700.          - engage
  701.          - ^random {
  702.            - narrate "<dark_purple><npc.name> smiles at you."
  703.            - narrate "<dark_purple><npc.name> jumps in circles!"
  704.            - narrate "<dark_purple><npc.name> shivers wildly."
  705.            }
  706.          - wait 2
  707.          - ^random {
  708.            - chat "Hey! Fancy seeing you here! Go play."
  709.            - chat "Don't make me call my friends!"
  710.            - chat "You! You! You don't seem to belong here..."
  711.            }
  712.    2:
  713.      Click Trigger:
  714.        Script:
  715.          - engage
  716.          - ^random {
  717.            - chat "Its so good to see you <PLAYER.name>!"
  718.            - chat "Hey there!"
  719.            - chat "Oh! Hey! <PLAYER.name>! Come over here!"
  720.            - chat "I'm so excited! I just can't contain myself!"
  721.            }
  722.          - wait 2
  723.          - ^random {
  724.            - chat "Are you up for some 'activities'?"
  725.            - chat "Are you here for your 'medication'?"
  726.            - chat "Would you like some 'candy'?"
  727.            }
  728.          - wait 2
  729.          - narrate "<BLUE>*** This is a daily quest! ***"
  730.          - wait 1
  731.          - narrate "<white>You can say, <green>Yes<white> or <green>No<white>."
  732.          - disengage
  733.      Chat Trigger:
  734.        1:
  735.           Trigger: /Yes/... I think...
  736.           Script:
  737.             - engage
  738.             - wait 2
  739.             - chat "Great! Now go beat the living hell out of <npc.constant[PVPQty]> people!"
  740.             - wait 2
  741.             - narrate "<dark_purple><npc.name> jumps in circles!"
  742.             - wait 2
  743.             - narrate "<BLUE>Go kill <npc.constant[PVPQty]> players, then return to <npc.name>!"
  744.             - wait 2
  745.             - narrate "<RED>*** Cheating *** -> AKA farming town members, or asking to kill other people for quest credit will result in a warning!"
  746.             - ^listen kill type:player qty:1 script:DPCheck id:DP_<player>
  747.             - ^flag PVPCount:0
  748.             - ^zap step:3
  749.             - disengage
  750.        2:
  751.           Trigger: /No/... Your crazy.
  752.           Script:
  753.             - chat "Whatever, Bro."
  754.    3:    
  755.      Click Trigger:
  756.        Script:
  757.          - engage
  758.          - ^random {
  759.            - chat "Go! Go! Go! Kill! Yeah!"
  760.            - chat "Woohoo! So excited! Go <PLAYER.name>!"
  761.            - chat "<PLAYER.name>! Erm.. Your not done? Booooo!"
  762.            }
  763.          - disengage
  764.    4:
  765.      Click Trigger:
  766.        Script:
  767.          - engage
  768.          - ^random {
  769.            - narrate "<dark_purple><npc.name> punches you in the mouth!"
  770.            - narrate "<dark_purple><npc.name> looks at you lovingly..."
  771.            - chat "Yes! Finally! Oh my god!"
  772.            - narrate "<dark_purple><npc.name> flails his arms wildly!"
  773.            - chat "Your finished! Hooray!"
  774.            }
  775.          - wait 2
  776.          - narrate "<BLUE>This guy is obviously insane..."
  777.          - wait 2
  778.          - narrate "<dark_purple><npc.name> throws a bag of random loot at you..."
  779.          - wait 1
  780.          - ^give <npc.constant[ArmorList]> qty:<npc.constant[ArmorQty]>
  781.          - ^give <npc.constant[ResourceList]> qty:<npc.constant[ResourceQty]>
  782.          - ^give <npc.constant[MiscList]> qty:<npc.constant[MiscQty]>
  783.          - wait 2
  784.          - ^narrate "<dark_purple><npc.name> cheers excitedly!"
  785.          - wait 2
  786.          - ^narrate "<BLUE>You have finished the PVP Daily quest! Come back tomorrow and claim your bag of loot!"
  787.          - ^zap step:5
  788.          - ^flag DPCooldown duration:24h
  789.          - ^flag server DPCooldownList:->:<player>
  790.          - disengage
  791.    5:
  792.      click trigger:
  793.        script:
  794.        - chat "Come back tomorrow for more fun!"
  795.        - wait 2
  796.        - narrate "<dark_purple><npc.name> smiles at you."
  797.        - wait 1
  798.        - narrate "<BLUE>You've already completed the Daily PVP Quest for today!!"
  799.          
  800. DPCheck:
  801.  Type: Task
  802.  Script:
  803.    - ^flag PVPCount:++
  804.    - ^if <flag.p:PVPCount.asint> >= <npc.constant[PVPQty]> runtask DPReward
  805.      else runtask DPContinue
  806.      
  807. DPContinue:
  808.  Type: Task
  809.  Script:
  810.    - ^narrate "<red>*** <white>Kill Players - <flag.p:PVPCount.asint>/<npc.constant[PVPQty]> <red>***"
  811.    - ^listen kill type:player qty:1 script:DPCheck id:DP_<player>
  812.      
  813. DPReward:
  814.  Type: Task
  815.  Script:
  816.    - ^narrate "<red>*** <white>Kill Players - <flag.p:PVPCount.asint>/<npc.constant[PVPQty]> <red>***"
  817.    - wait 1
  818.    - ^narrate "You've killed <npc.constant[PVPQty]> Players, return to <npc.name> at the PvP Guild."
  819.    - ^flag PVPCount:!
  820.    - ^zap script:DailyPVPQuest step:4
  821.  
  822. DPWorld:
  823.    type: world
  824.    events:
  825.        on time changes in w@world:
  826.        - if <server.flag[DPCooldownList]> == "null" queue clear
  827.        - foreach <server.flag[DPCooldownList].as_list> {
  828.          - if !<%value%.as_player.flag[DPCooldown]> && <[email protected][%value%]> != "2" {
  829.            - zap script:DailyPVPQuest step:2 player:%value%
  830.            - flag server DPCooldownList:<-:%value%
  831.            - if <%value%.as_player.is_online> {
  832.              - narrate player:%value% "<blue>You feel a weird chill go down your spine..."
  833.              - narrate player:%value% "<red>The PVP Guild calls for you, return soon!"
  834.              }
  835.            }
  836.          }
Advertisement
Add Comment
Please, Sign In to add comment