UPVPM

By Aeromas, 1 Month ago, written in cpp.
  1. // Created by: Aeromas
  2. // Ultimate PvP Manager
  3. // Contains 1-1, 1-2, 2-1, 2-2, and also 3rd job PvP!
  4. // 3ceAM Version
  5. // Version:
  6. // 1.0
  7.  
  8. prontera,150,150,4      script  Ultimate PvP    89,{
  9.  
  10. if( #firsttalkpvp == 0)
  11. {
  12.  
  13.         set .upvp$, "[Ultimate PvP Manager]";
  14.         mes .upvp$;
  15.         mes "^FF0000 Explanation of NPC:^000000";
  16.         mes " ";
  17.         mes "Hello, I am "+.upvp$+".";
  18.         mes "I manage your pvp selection.";
  19.         mes "I will let you choose from:";
  20.         mes "^FF0000 Novice, 1-1, 1-2, 2-1, 2-2, baby, 3rd job PvP, extended PvP, and regular PvP (All classes allowed)!^000000";
  21.         mes "Also I host seperate class PvP, for any seperate class to battle out their same type.";
  22.         mes "So please come back to me when you would like to PvP!";
  23.         set #firsttalkpvp, 1;
  24.         close;
  25. } else
  26.         {
  27.                 mes .upvp$;
  28.                 mes "What kind of PvP would you like to play?";
  29.                 mes " "
  30.                 mes "WARNING: You MUST meet the requirements for the PvP you are trying to join in order to PvP.";
  31.                 menu "Regular PvP (All Classes allowed)",regpvp,"Seperate Class PvP",seppvp,"Novice PvP",novpvp,"1-1 PvP",1stpvp,"1-2 PvP",12pvp,"2-1 PvP (2nd First Job Classes Only)",21pvp,"Trascended PvP",22pvp,"Extended Class PvP",extpvp,"3rd Job PvP",3rdpvp;
  32.                
  33. regpvp:
  34.  
  35.         mes .upvp$;
  36.         mes "Hello there "+strcharinfo(0)+".";
  37.         mes "Would you like to attend PvP?";
  38.         menu "Yes please.",yessplz,"No thanks.",nothx;
  39. yessplz:
  40.         mes .upvp$;
  41.         mes "Okay then, I will now warp you to the PvP arena.";
  42.         end;
  43.         warp "guild_vs2",50,50;
  44. nothx:
  45.         mes upvp$;
  46.         mes "Oh okay, well stop by later if you decide to change your mind!";
  47.         close;
  48.                
  49. seppvp:
  50.  
  51.         mes .upvp$;
  52.         mes "Please choose your type of class to PvP.";
  53.         menu "1-1 Classes",1stclasses,"1-2 Classes",12classes,"2-1 Classes",21classes,"Transcendent Classes",22classes"Baby Classes",bbclasses,"3rd Classes",3rdclasses,"Extended Classes",extendedpvp;
  54. 1stclasses:
  55.         menu "Swordsman PvP",swrdpvp,"Acolyte PvP",acopvp,"Mage PvP",magpvp,"Thief PvP",thipvp,"Merchant PvP",merpvp,"Archer PvP",arcpvp;
  56.        
  57. 12classes:
  58.         menu "Knight PvP",knipvp,"Crusader PvP",crupvp,"Priest PvP",pripvp,"Monk PvP",monpvp,"Wizard PvP",wizpvp,"Sage PvP",sagpvp,"Assassin PvP",asspvp,"Rogue PvP",rogpvp,"Blacksmith PvP",blapvp,"Alchemist PvP",alcpvp,"Hunter PvP",hunpvp,"Bard/Dancer PvP",bardanpvp;
  59.        
  60. 21classes:
  61.         menu "Reborn Swordsman PvP",rswrdpvp,"Reborn Acolyte PvP",racopvp,"Reborn Mage PvP",rmagpvp,"Reborn Thief PvP",rthipvp,"Reborn Merchant PvP",rmerpvp,"Reborn Archer PvP",rarcpvp;
  62.  
  63. 22classes:
  64.         menu "Lord Knight PvP",lordpvp,"Paladin PvP",palapvp,"High Priest PvP",highpvp,"Champion PvP",chapvp,
  65. "High Wizard PvP",hwizpvp,"Scholar/Professor PvP",scholprofpvp,"Assassin Cross PvP",assapvp,"Stalker PvP",stalkpvp,"Mastersmith/Whitesmith PvP",mastwhitpvp,"Creator/Biochemist PvP",creabiopvp,"Sniper PvP",snippvp,"Clown/Gypsy PvP",clogyppvp;
  66.  
  67. 3rdclasses:
  68.         menu "Rune Knight PvP",runepvp,"Royal Guard PvP",royalpvp,"Arch Bishop PvP",archpvp,"Shura PvP",shurapvp,"Warlock PvP",warlpvp,"Sorcerer PvP",sorcpvp,"Guillotine Cross PvP",guillpvp,"Shadow Chaser PvP",shadopvp,"Mechanic PvP",mechpvp,"Genetic PvP",genepvp,"Ranger PvP",rangpvp,"Minstrel/Wanderer PvP",minwandpvp;
  69.  
  70. bbclasses:
  71.         menu "Baby Swordsman PvP",bbyswrdpvp,"Baby Acolyte PvP",bacopvp,"Baby Mage PvP",bmagpvp,"Baby Thief PvP",bthipvp,"Baby Merchant PvP",bmerpvp,"Baby Archer PvP",barcpvp,"Baby Knight PvP",bknipvp,"Baby Crusader PvP",bcrupvp,"Baby Priest PvP",bpripvp,"Baby Monk PvP",bmonpvp,"Baby Wizard PvP",bwizpvp,"Baby Sage PvP",bsagepvp,"Baby Assassin PvP",bassapvp,"Baby Rogue PvP",brogpvp,"Baby Blacksmith PvP",bblacpvp,"Baby Alchemist PvP",balcpvp,"Baby Hunter PvP",bhunpvp,"Baby Bard/Dancer PvP",bbarddanpvp;
  72.  
  73. //
  74. ///
  75. // Extended PvP
  76. ///
  77. //
  78.        
  79. extendedpvp:
  80.         menu "Taekwon PvP",taekwonpvp,"Gunslinger PvP",gunslingpvp,"Soul Linker",soullinkpvp;
  81.        
  82. //
  83. ///
  84. // Novice PvP
  85. ///
  86. //
  87.  
  88. novpvp:
  89.  
  90.         if((@job&EAJ_BASEMASK) == EAJ_NOVICE)
  91.                 {
  92.                         mes "Alright, you're a Novice.";
  93.                         mes "So, would you like to join Novice PvP?";
  94.                                 menu "Yes please",yesplz2,"No thanks.",nothx2;
  95.                                
  96. yessplz2:
  97.         mes .upvp$;
  98.         mes "Okay then, I will now warp you to the PvP arena.";
  99.         end;
  100.         warp "guild_vs2",50,50;
  101. nothx2:
  102.         mes upvp$;
  103.         mes "Oh okay, well stop by later if you decide to change your mind!";
  104.         close;
  105.         }
  106.         else
  107.                 mes "You aren't a Novice, please come back as the right class.";
  108.                 close;
  109.                        
  110. //
  111. ///
  112. // 1-1 Class PvP
  113. ///
  114. //
  115.                
  116. 1stpvp:
  117.         mes .upvp$;
  118.         if (@job&EAJ_1_1)
  119.                 mes "Alright, you're a 1-1 Class.";
  120.                 mes "So, would you like to join 1-1 PvP?";
  121.                 menu "Yes please",yesplz3,"No thanks.",nothx3;
  122. yessplz3:
  123.         mes .upvp$;
  124.         mes "Okay then, I will now warp you to the PvP arena.";
  125.         end;
  126.         warp "guild_vs2",50,50;
  127. nothx3:
  128.         mes upvp$;
  129.         mes "Oh okay, well stop by later if you decide to change your mind!";
  130.         close;
  131.        
  132. //
  133. ///
  134. // 1-2 Class PvP
  135. ///
  136. //     
  137.  
  138. 12pvp:
  139.          mes .upvp$;
  140.          if (@job&EAJ_1_2)
  141.          mes "Alright, you're a 1-1 Class.";
  142.          mes "So, would you like to join 1-2 PvP?";
  143.          menu "Yes please",yesplz4,"No thanks.",nothx3;
  144. yesplz4:
  145.         mes .upvp$;
  146.         mes "Okay then, I will now warp you to the PvP arena.";
  147.         end;
  148.         warp "guild_vs2",50,50;
  149. nothx4:
  150.         mes upvp$;
  151.         mes "Oh okay, well stop by later if you decide to change your mind!";
  152.         close;
  153.        
  154. //
  155. ///
  156. // 2-1 Class PvP
  157. ///
  158. //
  159.  
  160. 21pvp:
  161.         mes .upvp$;
  162.         if (@job&EAJ_2_1)
  163.         mes "Alright, you're a 2-1 Class.";
  164.         mes "So, would you like to join 2-1 PvP?";
  165.         menu "Yes please",yesplz5,"No thanks.",nothx5;
  166. yessplz5:
  167.         mes .upvp$;
  168.         mes "Okay then, I will now warp you to the PvP arena.";
  169.         end;
  170.         warp "guild_vs2",50,50;
  171. nothx5:
  172.         mes upvp$;
  173.         mes "Oh okay, well stop by later if you decide to change your mind!";
  174.         close;
  175.        
  176. //
  177. ///
  178. // 2-2 Class PvP
  179. ///
  180. //
  181.  
  182. 22pvp:
  183.         mes .upvp$;
  184.         if (@job&EAJ_2_2)
  185.         mes "Alright, you're a 2-2 Class.";
  186.         mes "So, would you like to join 2-2 PvP?";
  187.         menu "Yes please",yesplz6,"No thanks.",nothx6;
  188. yessplz6:
  189.         mes .upvp$;
  190.         mes "Okay then, I will now warp you to the PvP arena.";
  191.         end;
  192.         warp "guild_vs2",50,50;
  193. nothx6:
  194.         mes upvp$;
  195.         mes "Oh okay, well stop by later if you decide to change your mind!";
  196.         close;
  197. extpvp:
  198.         mes .upvp$;
  199.         if (@job&EAJ_GUNSLINGER || @job&EAJ_SOUL_LINKER || @job&EAJ_TAEKWON)
  200.                 mes "Alright, you're an Extended Class.";
  201.                 mes "So, would you like to join Extended PvP?";
  202.                 menu "Yes please",yesplz7,"No thanks.",nothx7;
  203. yessplz7:
  204.         mes .upvp$;
  205.         mes "Okay then, I will now warp you to the PvP arena.";
  206.         end;
  207.         warp "guild_vs2",50,50;
  208. nothx7:
  209.         mes upvp$;
  210.         mes "Oh okay, well stop by later if you decide to change your mind!";
  211.         close;
  212.        
  213. //
  214. ///
  215. // 3rd Class PvP
  216. ///
  217. //
  218.        
  219. 3rdpvp:
  220.         mes .upvp$;
  221.         if (@job&EAJ_3_1 || @job&EAJ_3_2)
  222.                 mes "Alright, you're a 3rd Class.";
  223.                 mes "So, would you like to join 3rd Class PvP?";
  224.                 menu "Yes please",yesplz8,"No thanks.",nothx8;
  225. yessplz8:
  226.         mes .upvp$;
  227.         mes "Okay then, I will now warp you to the PvP arena.";
  228.         end;
  229.         warp "guild_vs2",50,50;
  230. nothx8:
  231.         mes upvp$;
  232.         mes "Oh okay, well stop by later if you decide to change your mind!";
  233.         close;
  234.