Untitled

By Voluminous Owl, 1 Month ago, written in php.
  1. ra_temple,107,158,6     script  PVP Warper      808,{
  2. if (getgmlevel() > 65) goto gmbeginmenu;
  3. beginnplayer:
  4. if(Class == 0) goto nonovice;
  5. delwaitingroom;
  6. waitingroom "["+ (getmapusers("pvp_n_1-5")) +"] ["+ (getmapusers("pvp_y_8-1")) +"] ["+ (getmapusers("pvp_y_8-2")) +"] ["+ (getmapusers("pvp_y_8-3")) +"] ["+ (getmapusers("pvp_y_8-4")) +"] ["+ (getmapusers("pvp_y_8-5")) +"]",0;
  7.         mes "[PvP Warper]";
  8.         mes "Hello, ^0000CD"+strcharinfo(0)+"^000000";
  9.         mes "Welcome on the PVP Battle Rooms!";
  10.         mes "Where do you want to battle?";
  11.         mes "     ";
  12.         mes "?What happens in the PvP Room";
  13.         mes "stays in the PvP Room.";
  14.         menu    "- Battle ground ^FF0000["+ (getmapusers("pvp_n_1-5")) +"]^000000",battle,
  15.         "- The Arena",arena,
  16.         "- Guild vs. Guild ^FF0000["+ (getmapusers("pvp_n_2-5")) +"]^000000",gvgor,
  17.         "- Party vs. Party ^FF0000["+getmapusers("pvp_y_1-2")+"]^000000",pavpa;
  18.  
  19.  
  20.  
  21.         battle:
  22.                 if (getgmlevel() > 1) goto leise;
  23.                 if(countitem(607)>0) goto L_Noberry;
  24.                 if(countitem(13517)>0) goto L_Noberry;
  25.                 npctalk ""+strcharinfo(0)+" entered the Battle ground! ";
  26.                 atcommand "@size 3";
  27.                 atcommand "@undisguise";
  28.                 mapannounce "pvp_n_1-5",""+strcharinfo(0)+" ("+PVPKills+" Kills and "+PVPDeaths+" Deaths) entered the Battle Ground!",0;
  29.                 leise:
  30.                 warp "pvp_n_1-5", 0,0;
  31.                 close;
  32.  
  33.         arena:
  34.                 if (getgmlevel() > 1) goto GMundsowas;
  35.                 npctalk ""+strcharinfo(0)+" entered The Arena! ";
  36.                 mapannounce "prt_are01",""+strcharinfo(0)+" ("+PVPKills+" Kills and "+PVPDeaths+" Deaths) entered The Arena!",0;
  37.                 GMundsowas:
  38.                 warp "prt_are01", 0,0;
  39.                 close;
  40.  
  41.         pavpa:
  42.         next;
  43.         mes "[PvP Warper]";
  44.                 if (getcharid(1) == 0) {
  45.                 mes "You're not in a party.";
  46.                 } else if (getpartyleader(getcharid(1),2) != getcharid(0)) {
  47.                 mes "You are not the party leader.";
  48.                 } else {
  49.         getpartymember(getcharid(1));
  50.         if ($@partymembercount < 2) {
  51.                  mes "You need at least 2 party members for me to warp you.";
  52.                 } else {
  53.         warpparty "pvp_y_1-2",0,0, getcharid(1);
  54.         }
  55.         }
  56.         close;
  57.  
  58.  
  59.  
  60.         nonovice:
  61.         mes "[PvP Warper]";
  62.         mes "You are to weak to go in PvP!";
  63.         close;
  64.  
  65.         L_Noberry:
  66.         next;
  67.         mes "[PvP Warper]";
  68.         mes "No Berrys please.";
  69.         close;
  70.  
  71.  
  72.  
  73.  
  74.         gvgor:
  75.         next;
  76.         mes "[PvP Warper]";
  77.         mes "please insert your ^0000CDGuild name^000000";
  78.         input .@guildname$;
  79.         if (.@guildname$!=strcharinfo(2)) {
  80.                 next;
  81.                 mes "[PvP Warper]";
  82.                 mes "Sorry, but I don't think I heard";
  83.                 mes "you correctly";
  84.                 close;
  85.                 }
  86.         next;
  87.         mes "[PvP Warper]";
  88.         mes "Where you want to Begin Battle?";
  89.         menu "North",gvgnorth,"East",gvgeast,"South",gvgsouth,"West",gvgwest;
  90.  
  91.  
  92.  
  93.  
  94. gvgnorth:
  95.         mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
  96.         set @glvl, 1;
  97.         warp "pvp_n_2-5", 99,133;
  98.         close;
  99.  
  100. gvgeast:
  101.         mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
  102.         set @glvl, 1;
  103.         warp "pvp_n_2-5", 133,99;
  104.         close;
  105.  
  106. gvgsouth:
  107.         mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
  108.         set @glvl, 1;
  109.         warp "pvp_n_2-5", 100,65;
  110.         close;
  111.  
  112. gvgwest:
  113.         mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
  114.         set @glvl, 1;
  115.         warp "pvp_n_2-5", 66,99;
  116.         close;
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. gmbeginmenu:
  126.         menu "Normal Player View",beginnplayer,"Warp Player Out of Batlleground",outwarp;
  127.         outwarp:
  128. mapannounce "pvp_n_1-5","I am Sorry..But GM "+strcharinfo(0)+" has warped all players out of this map!",0;
  129. close2;
  130. sleep2 3000;
  131. mapwarp "pvp_n_1-5","prontera",156,184;
  132.  
  133.  
  134. OnPcKillEvent:
  135. if((@glvl == 1)) goto glvln;
  136. set @killer$, rid2name(killedrid);
  137. if (getmapxy(@mapname$,@mapx,@mapy,0,""+strcharinfo(0)+"") != 0) goto Cancel;
  138. if (@mapname$ != "pvp_n_1-5") end;
  139. if (strcharinfo(0)==@killer$ || "(null)"==@killer$) {
  140. mapannounce "pvp_n_1-5",""+strcharinfo(0)+" has suicided.",0; }
  141. else {
  142. mapannounce "pvp_n_1-5",""+strcharinfo(0)+" killed "+@killer$+".",0,0x0000FF; }
  143. close;
  144.  
  145. glvln:
  146. set @gglvlt, rand(1,3);
  147. if((@gglvlt == 3)) goto gglvlt;
  148. gglvlt:
  149. atcommand "@glvl +1";
  150.  
  151. OnPcLoginEvent:
  152. set @glvl, 0;
  153.  
  154.  
  155. OnPcDeadEvent:
  156. set @glvl, 0;
  157.  
  158. OnInit:
  159. finalstrikeropresents:
  160. delwaitingroom;
  161. waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
  162. sleep2 1000;
  163. delwaitingroom;
  164. waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
  165. sleep2 1000;
  166. delwaitingroom;
  167. waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
  168. sleep2 1000;
  169. delwaitingroom;
  170. waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
  171. sleep2 1000;
  172. delwaitingroom;
  173. waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
  174. sleep2 1000;
  175. delwaitingroom;
  176. waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_1-5")+" Player ",0;
  177. sleep2 1000;
  178. delwaitingroom;
  179. waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_1-5")+" Player ",0;
  180. sleep2 1000;
  181. delwaitingroom;
  182. waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_1-5")+" Player ",0;
  183. sleep2 1000;
  184. delwaitingroom;
  185. waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
  186. sleep2 1000;
  187. delwaitingroom;
  188. waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
  189. sleep2 1000;
  190. delwaitingroom;
  191. waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
  192. sleep2 1000;
  193. goto finalstrikeropresents;
  194. }
  195. pvp_n_1-5       mapflag nobranch
  196. pvp_n_1-5       mapflag nomemo
  197. pvp_n_1-5       mapflag nosave  SavePoint
  198. pvp_n_1-5       mapflag noteleport
  199. pvp_n_1-5       mapflag nowarp
  200. pvp_n_1-5       mapflag nowarpto
  201. pvp_n_1-5       mapflag nomvploot
  202. pvp_n_1-5       mapflag loadevent
  203. pvp_n_1-5       mapflag pvp_noparty
  204.  
  205. pvp_n_2-5       mapflag nobranch
  206. pvp_n_2-5       mapflag nomemo
  207. pvp_n_2-5       mapflag nosave  SavePoint
  208. pvp_n_2-5       mapflag noteleport
  209. pvp_n_2-5       mapflag nowarp
  210. pvp_n_2-5       mapflag nowarpto
  211. pvp_n_2-5       mapflag nomvploot
  212. pvp_n_2-5       mapflag loadevent
  213.  
  214. pvp_y_1-2       mapflag nobranch
  215. pvp_y_1-2       mapflag nomemo
  216. pvp_y_1-2       mapflag nosave  SavePoint
  217. pvp_y_1-2       mapflag noteleport
  218. pvp_y_1-2       mapflag nowarp
  219. pvp_y_1-2       mapflag nowarpto
  220. pvp_y_1-2       mapflag nomvploot
  221. pvp_y_1-2       mapflag loadevent
  222.  
  223. prt_are01       mapflag nobranch
  224. prt_are01       mapflag nomemo
  225. prt_are01       mapflag nosave  SavePoint
  226. prt_are01       mapflag noteleport
  227. prt_are01       mapflag nowarp
  228. prt_are01       mapflag nowarpto
  229. prt_are01       mapflag nomvploot
  230. prt_are01       mapflag loadevent