Advertisement
Guest User

Untitled

a guest
Jul 1st, 2014
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.69 KB | None | 0 0
  1. // ====================================================
  2. // 3 vs 3 Party Script
  3. // v3.0: New Winner detecting system, anti-partycheat, spawn and respawn points (Knx)
  4. // v2.0: With custom queueing system (Knx)
  5. // v1.0: Coded by Teny + Knx
  6. // ====================================================
  7.  
  8. // Flags
  9.  
  10. guild_vs1.gat mapflag noteleport
  11. guild_vs1.gat mapflag nomemo
  12. guild_vs1.gat mapflag nowarp
  13. guild_vs1.gat mapflag nowarpto
  14. guild_vs1.gat mapflag noicewall
  15. guild_vs1.gat mapflag noreturn
  16. guild_vs1.gat mapflag nosave SavePoint
  17. guild_vs1.gat mapflag nopenalty
  18. guild_vs1.gat mapflag noexp
  19. guild_vs1.gat mapflag nobranch
  20. guild_vs1.gat mapflag pvp_noguild
  21. guild_vs1.gat mapflag restricted 3
  22. guild_vs1.gat mapflag partylock
  23. guild_vs1.gat mapflag loadevent
  24.  
  25. guild_vs1-1.gat mapflag noteleport
  26. guild_vs1-1.gat mapflag nomemo
  27. guild_vs1-1.gat mapflag nowarp
  28. guild_vs1-1.gat mapflag nowarpto
  29. guild_vs1-1.gat mapflag noicewall
  30. guild_vs1-1.gat mapflag noreturn
  31. guild_vs1-1.gat mapflag nosave SavePoint
  32. guild_vs1-1.gat mapflag nopenalty
  33. guild_vs1-1.gat mapflag noexp
  34. guild_vs1-1.gat mapflag nobranch
  35. guild_vs1-1.gat mapflag pvp_noguild
  36. guild_vs1-1.gat mapflag restricted 3
  37. guild_vs1-1.gat mapflag partylock
  38. guild_vs1-1.gat mapflag loadevent
  39.  
  40. arena_room mapflag nochat
  41.  
  42.  
  43. //-------------------------------------------------------------------------
  44. //
  45. // Register NPC
  46. //
  47. //-------------------------------------------------------------------------
  48.  
  49. arena_room,102,100,5 script 3vs3Party 822,{
  50.  
  51. //npctalk getpartymembercount(getcharid(1));
  52.  
  53. mes "[Arena Guide]";
  54. mes "Welcome to the 3 vs 3 Party Arena!!!";
  55. mes "Would you like to compete?";
  56. next;
  57. menu "Oooh Yeeaahh!!!",L_Yes, "Nuuu", L_No;
  58. close;
  59.  
  60. L_Yes:
  61. if(@ra_map$ != "ra_in01") {//Honor, house system
  62. if($@antibot_active==0) {//Honor, activate with @quest
  63. if(callfunc("botcheck")==0){//Jason
  64. close;
  65. }
  66. }
  67. }
  68.  
  69. if (BaseLevel < 250 || Class==Job_Novice || Class==Job_Baby || Class==Job_Novice_High) goto L_Level;
  70. if (getpartymembercount(getcharid(1)) == 3 && getpartycount(getcharid(1)) == 3){
  71. set .@myparty, getcharid(1);
  72. if(.@myparty==$PP1_Team1_id|| .@myparty==$PP1_Team2_id || .@myparty==$PP2_Team1_id(1)|| .@myparty==$PP2_Team2_id(2)){
  73. mes "[Arena Guide]";
  74. mes "Your party is already playing...";
  75. close;
  76. }
  77.  
  78. getmapxy(@PRTYPRTY_city$, @PRTYPRTY_x, @PRTYPRTY_y, 0);
  79. set .@pos, arena_queue_add(2); //sets @PRTYPRTY_active=1 as well
  80.  
  81. mes "[Arena Guide]";
  82. if(.@pos==0){
  83. mes "The queue is full. Please wait a while and try again.";
  84. }else if(.@pos==-2){
  85. mes "Sorry, you and your Party need to be at least level 200. No Novices allowed either.";
  86. }else if(.@pos==-1){
  87. mes "You / your party already are on a waiting line...";
  88. }else if(.@pos==2){
  89. if($@PP1_running==0){
  90. set $@PP1_running, 1;
  91. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  92. }else if($@PP2_running==0){
  93. set $@PP2_running, 1;
  94. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  95. }else{
  96. mes "Congratulations, you are now on the waiting line for 3vs3 Party!";
  97. mes "Your position is: ^FF0000"+(.@pos-1)+"^000000";
  98. next;
  99. mes "[Arena Guide]";
  100. mes "^0000FFWhen it's your turn, you will be taken to the Arena even if you moved away from this map!";
  101. mes "^FF0000But if you logout, you will be put out of the queue.";
  102. }
  103. }else{
  104. mes "Congratulations, you are now on the waiting line for 3vs3 Party!";
  105. mes "Your position is: ^FF0000"+(.@pos-1)+"^000000";
  106. next;
  107. mes "[Arena Guide]";
  108. mes "^0000FFWhen it's your turn, you will be taken to the Arena even if you moved away from this map!";
  109. mes "^FF0000But if you logout, you will be put out of the queue.";
  110. close;
  111. }
  112. }else{
  113. mes "[Arena Guide]";
  114. mes "Sorry, you do not meet the requirements, check that your party has exactly 3 people in it and try again.";
  115. }
  116. close;
  117.  
  118. L_No:
  119. mes "[Arena Guide]";
  120. mes "Okay, please come again!";
  121. close;
  122.  
  123. L_Level:
  124. mes "[Arena Guide]";
  125. mes "Sorry, you need to be at least level 250.";
  126. close;
  127.  
  128. }
  129.  
  130. izlude,135,114,5 duplicate(3vs3Party) 3vs3Party#2 822
  131. payon, 158,233,5 duplicate(3vs3Party) 3vs3Party#3 822
  132. ra_in01,318,291,2 duplicate(3vs3Party) 3vs3Party#4 822
  133.  
  134.  
  135. //-------------------------------------------------------------------------
  136. //
  137. // ARENA 1
  138. //
  139. //-------------------------------------------------------------------------
  140.  
  141. guild_vs1.gat,0,0,0 script PARTYVSPARTY_TIMR1 -1,{
  142.  
  143. OnTimer10000:
  144. set $PP1_times_10s, $PP1_times_10s + 1;
  145.  
  146. //4 minutes
  147. if ($PP1_times_10s==24){
  148. mapannounce "guild_vs1.gat", "Everyone, you have one minute to finish this fight!!", 1;
  149. }
  150.  
  151. //4.66 minutes
  152. if ($PP1_times_10s==28){
  153. mapannounce "guild_vs1.gat", "Attention! The round is over in 20 seconds, the team with more people alive will win!", 1;
  154. }
  155.  
  156. //5 minutes - time's over
  157. if ($PP1_times_10s>=30){
  158. stopnpctimer;
  159. stopnpctimer "PPTimer1";
  160.  
  161. set .@PP1_Team1_alive, countpartyin("guild_vs1", $PP1_Team1_id);
  162. set .@PP1_Team2_alive, countpartyin("guild_vs1", $PP1_Team2_id);
  163.  
  164. if(.@PP1_Team1_alive > .@PP1_Team2_alive){
  165. //team1 wins
  166.  
  167. if($PP1_Team2_x) warpparty $PP1_Team2_city$,$PP1_Team2_x,$PP1_Team2_y,$PP1_Team2_id;
  168. else warpparty "prontera",156,173,$PP1_Team2_id;
  169.  
  170. if (getpartymembercount($PP1_Team1_id) <= 3)
  171. warpparty "lhz_cube.gat",122,74,$PP1_Team1_id;
  172. else
  173. warpparty "prontera",156,173,$PP1_Team1_id; //they cheated
  174.  
  175. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  176. +getpartyname($PP1_Team1_id)+" defeated "+getpartyname($PP1_Team2_id)+"!!", 1;
  177. sleep 10000;
  178. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  179. }else if(.@PP1_Team2_alive > .@PP1_Team1_alive){
  180. //team2 wins
  181.  
  182. if($PP1_Team1_x) warpparty $PP1_Team1_city$,$PP1_Team1_x,$PP1_Team1_y,$PP1_Team1_id;
  183. else warpparty "prontera",156,173,$PP1_Team1_id;
  184.  
  185. if (getpartymembercount($PP1_Team2_id) <= 3)
  186. warpparty "lhz_cube.gat",122,74,$PP1_Team2_id;
  187. else
  188. warpparty "prontera",156,173,$PP1_Team2_id; //they cheated
  189.  
  190. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  191. +getpartyname($PP1_Team2_id)+" defeated "+getpartyname($PP1_Team1_id)+"!!", 1;
  192. sleep 10000;
  193. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  194. }else{
  195. //draw
  196. if($PP1_Team1_x) warpparty $PP1_Team1_city$,$PP1_Team1_x,$PP1_Team1_y,$PP1_Team1_id;
  197. else warpparty "prontera",156,173,$PP1_Team1_id;
  198.  
  199. if($PP1_Team2_x) warpparty $PP1_Team2_city$,$PP1_Team2_x,$PP1_Team2_y,$PP1_Team2_id;
  200. else warpparty "prontera",156,173,$PP1_Team2_id;
  201.  
  202. mapannounce "arena_room", "The 3vs3 fight between party "
  203. +getpartyname($PP1_Team1_id)+" and "+getpartyname($PP1_Team2_id)+" was a draw!!", 1;
  204. sleep 10000;
  205. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  206. }
  207. end;
  208. }
  209.  
  210. donpcevent "PARTYVSPARTY_WINR::OnCheckWinner1";
  211.  
  212. }
  213.  
  214. guild_vs1.gat,1,1,1 script PPTimer1 -1,{
  215.  
  216. OnTimer10001:
  217. if (getpartycount($PP1_Team1_id) > 3){ set .@cheater, $PP1_Team1_id; goto L_Cheat; }
  218. if (getpartycount($PP1_Team2_id) > 3){ set .@cheater, $PP1_Team2_id; goto L_Cheat; }
  219. initnpctimer;
  220. end;
  221.  
  222. L_Cheat:
  223. stopnpctimer;
  224. stopnpctimer "PARTYVSPARTY_TIMR1";
  225. set $PP1_Team1_id, 0;
  226. set $PP1_Team2_id, 0;
  227. mapwarp "guild_vs1","prontera",156,173;
  228. mapannounce "arena_room", "Party "
  229. +getpartyname(.@cheater)+" tried to get more than 3 members during the 3vs3 fight. This match is cancelled!!", 1;
  230. sleep 10000;
  231. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  232. end;
  233. }
  234.  
  235.  
  236. //-------------------------------------------------------------------------
  237. //
  238. // ARENA 2
  239. //
  240. //-------------------------------------------------------------------------
  241.  
  242. guild_vs1-1.gat,0,0,0 script PARTYVSPARTY_TIMR2 -1,{
  243.  
  244. OnTimer10000:
  245. set $PP2_times_10s, $PP2_times_10s + 1;
  246.  
  247. //4 minutes
  248. if ($PP2_times_10s==24){
  249. mapannounce "guild_vs1-1.gat", "Everyone, you have one minute to finish this fight!!", 1;
  250. }
  251.  
  252. //4.66 minutes
  253. if ($PP2_times_10s==28){
  254. mapannounce "guild_vs1-1.gat", "Attention! The round is over in 20 seconds, the team with more people alive will win!", 1;
  255. }
  256.  
  257. //5 minutes - time's over
  258. if ($PP2_times_10s>=30){
  259. stopnpctimer;
  260. stopnpctimer "PPTimer2";
  261.  
  262. set .@PP2_Team1_alive, countpartyin("guild_vs1-1", $PP2_Team1_id);
  263. set .@PP2_Team2_alive, countpartyin("guild_vs1-1", $PP2_Team2_id);
  264.  
  265. if(.@PP2_Team1_alive > .@PP2_Team2_alive){
  266. //team1 wins
  267.  
  268. if($PP2_Team2_x) warpparty $PP2_Team2_city$,$PP2_Team2_x,$PP2_Team2_y,$PP2_Team2_id;
  269. else warpparty "prontera",156,173,$PP2_Team2_id;
  270.  
  271. if (getpartymembercount($PP2_Team1_id) <= 3)
  272. warpparty "lhz_cube.gat",122,74,$PP2_Team1_id;
  273. else
  274. warpparty "prontera",156,173,$PP2_Team1_id; //they cheated
  275.  
  276. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  277. +getpartyname($PP2_Team1_id)+" defeated "+getpartyname($PP2_Team2_id)+"!!", 1;
  278. sleep 10000;
  279. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  280. }else if(.@PP2_Team2_alive > .@PP2_Team1_alive){
  281. //team2 wins
  282.  
  283. if($PP2_Team1_x) warpparty $PP2_Team1_city$,$PP2_Team1_x,$PP2_Team1_y,$PP2_Team1_id;
  284. else warpparty "prontera",156,173,$PP2_Team1_id;
  285.  
  286. if (getpartymembercount($PP2_Team2_id) <= 3)
  287. warpparty "lhz_cube.gat",122,74,$PP2_Team2_id;
  288. else
  289. warpparty "prontera",156,173,$PP2_Team2_id; //they cheated
  290.  
  291. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  292. +getpartyname($PP2_Team2_id)+" defeated "+getpartyname($PP2_Team1_id)+"!!", 1;
  293. sleep 10000;
  294. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  295. }else{
  296. //draw
  297. if($PP2_Team1_x) warpparty $PP2_Team1_city$,$PP2_Team1_x,$PP2_Team1_y,$PP2_Team1_id;
  298. else warpparty "prontera",156,173,$PP2_Team1_id;
  299.  
  300. if($PP2_Team2_x) warpparty $PP2_Team2_city$,$PP2_Team2_x,$PP2_Team2_y,$PP2_Team2_id;
  301. else warpparty "prontera",156,173,$PP2_Team2_id;
  302.  
  303. mapannounce "arena_room", "The 3vs3 fight between party "
  304. +getpartyname($PP2_Team1_id)+" and "+getpartyname($PP2_Team2_id)+" was a draw!!", 1;
  305. sleep 10000;
  306. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  307. }
  308. end;
  309. }
  310.  
  311. donpcevent "PARTYVSPARTY_WINR::OnCheckWinner2";
  312.  
  313. }
  314.  
  315. guild_vs1-1.gat,1,1,1 script PPTimer2 -1,{
  316.  
  317. OnTimer10001:
  318. if (getpartycount($PP2_Team1_id) > 3){ set .@cheater, $PP2_Team1_id; goto L_Cheat; }
  319. if (getpartycount($PP2_Team2_id) > 3){ set .@cheater, $PP2_Team2_id; goto L_Cheat; }
  320. initnpctimer;
  321. end;
  322.  
  323. L_Cheat:
  324. stopnpctimer;
  325. stopnpctimer "PARTYVSPARTY_TIMR2";
  326. set $PP2_Team1_id, 0;
  327. set $PP2_Team2_id, 0;
  328. mapwarp "guild_vs1-1","prontera",156,173;
  329. mapannounce "arena_room", "Party "
  330. +getpartyname(.@cheater)+" tried to get more than 3 members during the 3vs3 fight. This match is cancelled!!", 1;
  331. sleep 10000;
  332. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  333. end;
  334. }
  335.  
  336.  
  337. //-------------------------------------------------------------------------
  338. //
  339. // GAME NPC
  340. //
  341. //-------------------------------------------------------------------------
  342.  
  343. guild_vs1.gat,0,0,0 script PARTYVSPARTY_WINR -1,{
  344.  
  345. mes "[Arena Guide]";
  346. mes "What are you doing here? :)";
  347. close;
  348.  
  349. OnInit:
  350. mapwarp "guild_vs1.gat","prontera",156,173;
  351. mapwarp "guild_vs1-1.gat","prontera",156,173;
  352.  
  353. set $@PP1_running, 1;
  354. set $@PP2_running, 1;
  355.  
  356. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  357. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  358.  
  359. end;
  360.  
  361. OnStart1:
  362. set $PP1_Team1_id, 0;
  363. set $PP1_Team2_id, 0;
  364. set $PP1_times_10s, 0;
  365. set $PP1_Team1_city$, 0; set $PP1_Team1_x, 0; set $PP1_Team1_y, 0;
  366. set $PP1_Team2_city$, 0; set $PP1_Team2_x, 0; set $PP1_Team2_y, 0;
  367.  
  368. if(warp_arena_queue(2,1,"guild_vs1",0,0,2) > 0){ //sets $team1id $team2id as well
  369. set $@PP1_running, 1;
  370. set $PP1_times_10s, 0;
  371. initnpctimer "PARTYVSPARTY_TIMR1";
  372. initnpctimer "PPTimer1";
  373. }else{
  374. set $@PP1_running, 0;
  375. }
  376. end;
  377.  
  378. OnStart2:
  379. set $PP2_Team1_id, 0;
  380. set $PP2_Team2_id, 0;
  381. set $PP2_times_10s, 0;
  382. set $PP2_Team1_city$, 0; set $PP2_Team1_x, 0; set $PP2_Team1_y, 0;
  383. set $PP2_Team2_city$, 0; set $PP2_Team2_x, 0; set $PP2_Team2_y, 0;
  384.  
  385. if(warp_arena_queue(2,2,"guild_vs1-1",0,0,2) > 0){ //sets $team1id $team2id as well
  386. set $@PP2_running, 1;
  387. set $PP2_times_10s, 0;
  388. initnpctimer "PARTYVSPARTY_TIMR2";
  389. initnpctimer "PPTimer2";
  390. }else{
  391. set $@PP2_running, 0;
  392. }
  393. end;
  394.  
  395. OnPCLogoutEvent:
  396. if(@PRTYPRTY_active==1)
  397. arena_queue_del(2);
  398. end;
  399.  
  400. OnPCDieEvent:
  401. getmapxy(.@mapname$, .@mapx, .@mapy, 0);
  402. if(.@mapname$=="guild_vs1" || .@mapname$=="guild_vs1-1"){
  403. if(@PRTYPRTY_x) warp @PRTYPRTY_city$,@PRTYPRTY_x,@PRTYPRTY_y;
  404. else warp "prontera",156,173;
  405. set @PRTYPRTY_city$, 0; set @PRTYPRTY_x, 0; set @PRTYPRTY_y, 0;
  406. sleep2 1000;
  407. alive;
  408. }
  409. end;
  410.  
  411. OnCheckWinner1:
  412. set .@PP1_Team1_alive, countpartyin("guild_vs1", $PP1_Team1_id);
  413. set .@PP1_Team2_alive, countpartyin("guild_vs1", $PP1_Team2_id);
  414.  
  415. if ( .@PP1_Team1_alive==0 && .@PP1_Team2_alive==0 ) goto L_NoWinner1;
  416.  
  417. if ( .@PP1_Team1_alive == 0 ) {
  418. //team2 wins
  419. stopnpctimer "PARTYVSPARTY_TIMR1";
  420. stopnpctimer "PPTimer1";
  421.  
  422. if($PP1_Team1_x) warpparty $PP1_Team1_city$,$PP1_Team1_x,$PP1_Team1_y,$PP1_Team1_id;
  423. else warpparty "prontera",156,173,$PP1_Team1_id;
  424.  
  425. if (getpartymembercount($PP1_Team2_id) <= 3)
  426. warpparty "lhz_cube.gat",122,74,$PP1_Team2_id;
  427. else
  428. warpparty "prontera",156,173,$PP1_Team2_id; //they cheated
  429.  
  430. //declare winner
  431. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  432. +getpartyname($PP1_Team2_id)+" defeated "+getpartyname($PP1_Team1_id)+"!!", 1;
  433. sleep 10000;
  434. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  435. }else if ( .@PP1_Team2_alive == 0){
  436. //team1 wins
  437. stopnpctimer "PARTYVSPARTY_TIMR1";
  438. stopnpctimer "PPTimer1";
  439.  
  440. if($PP1_Team2_x) warpparty $PP1_Team2_city$,$PP1_Team2_x,$PP1_Team2_y,$PP1_Team2_id;
  441. else warpparty "prontera",156,173,$PP1_Team2_id;
  442.  
  443. if (getpartymembercount($PP1_Team1_id) <= 3)
  444. warpparty "lhz_cube.gat",122,74,$PP1_Team1_id;
  445. else
  446. warpparty "prontera",156,173,$PP1_Team1_id; //they cheated
  447.  
  448. //declare winner
  449. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  450. +getpartyname($PP1_Team1_id)+" defeated "+getpartyname($PP1_Team2_id)+"!!", 1;
  451. sleep 10000;
  452. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  453. }else{
  454. initnpctimer "PARTYVSPARTY_TIMR1";
  455. }
  456. end;
  457.  
  458. L_NoWinner1:
  459. stopnpctimer "PARTYVSPARTY_TIMR1";
  460. stopnpctimer "PPTimer1";
  461. mapannounce "arena_room", "The 3vs3 fight between party "
  462. +getpartyname($PP1_Team1_id)+" and "+getpartyname($PP1_Team2_id)+" was a draw!!", 1;
  463. sleep 10000;
  464. donpcevent "PARTYVSPARTY_WINR::OnStart1";
  465. end;
  466.  
  467. OnCheckWinner2:
  468. set .@PP2_Team1_alive, countpartyin("guild_vs1-1", $PP2_Team1_id);
  469. set .@PP2_Team2_alive, countpartyin("guild_vs1-1", $PP2_Team2_id);
  470.  
  471. if ( .@PP2_Team1_alive==0 && .@PP2_Team2_alive==0 ) goto L_NoWinner2;
  472.  
  473. if ( .@PP2_Team1_alive == 0 ) {
  474. //team2 wins
  475. stopnpctimer "PARTYVSPARTY_TIMR2";
  476. stopnpctimer "PPTimer2";
  477.  
  478. if($PP2_Team1_x) warpparty $PP2_Team1_city$,$PP2_Team1_x,$PP2_Team1_y,$PP2_Team1_id;
  479. else warpparty "prontera",156,173,$PP2_Team1_id;
  480.  
  481. if (getpartymembercount($PP2_Team2_id) <= 3)
  482. warpparty "lhz_cube.gat",122,74,$PP2_Team2_id;
  483. else
  484. warpparty "prontera",156,173,$PP2_Team2_id; //they cheated
  485.  
  486. //declare winner
  487. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  488. +getpartyname($PP2_Team2_id)+" defeated "+getpartyname($PP2_Team1_id)+"!!", 1;
  489. sleep 10000;
  490. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  491. }else if ( .@PP2_Team2_alive == 0){
  492. //team1 wins
  493. stopnpctimer "PARTYVSPARTY_TIMR2";
  494. stopnpctimer "PPTimer2";
  495.  
  496. if($PP2_Team2_x) warpparty $PP2_Team2_city$,$PP2_Team2_x,$PP2_Team2_y,$PP2_Team2_id;
  497. else warpparty "prontera",156,173,$PP2_Team2_id;
  498.  
  499. if (getpartymembercount($PP2_Team1_id) <= 3)
  500. warpparty "lhz_cube.gat",122,74,$PP2_Team1_id;
  501. else
  502. warpparty "prontera",156,173,$PP2_Team1_id; //they cheated
  503.  
  504. //declare winner
  505. mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party "
  506. +getpartyname($PP2_Team1_id)+" defeated "+getpartyname($PP2_Team2_id)+"!!", 1;
  507. sleep 10000;
  508. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  509. }else{
  510. initnpctimer "PARTYVSPARTY_TIMR2";
  511. }
  512. end;
  513.  
  514. L_NoWinner2:
  515. stopnpctimer "PARTYVSPARTY_TIMR2";
  516. stopnpctimer "PPTimer2";
  517. mapannounce "arena_room", "The 3vs3 fight between party "
  518. +getpartyname($PP2_Team1_id)+" and "+getpartyname($PP2_Team2_id)+" was a draw!!", 1;
  519. sleep 10000;
  520. donpcevent "PARTYVSPARTY_WINR::OnStart2";
  521. end;
  522.  
  523. }
  524.  
  525.  
  526. //
  527. // Prize NPC
  528. //
  529.  
  530. lhz_cube.gat,124,74,3 script winnerPrize#3vs3 818,2,2,{
  531.  
  532. sc_end SC_ALL;
  533.  
  534. mes "[Winner Prize]";
  535. mes "Congratulations, you're the winners! Here's your prize ~ ";
  536. next;
  537. getitem 22555,1;
  538. percentheal 100,100;
  539. if(@PRTYPRTY_x) warp @PRTYPRTY_city$,@PRTYPRTY_x,@PRTYPRTY_y;
  540. else warp "prontera",156,173;
  541. set @PRTYPRTY_city$, 0; set @PRTYPRTY_x, 0; set @PRTYPRTY_y, 0;
  542. end;
  543. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement