Advertisement
Guest User

ROtoPUBG

a guest
Mar 5th, 2019
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.44 KB | None | 0 0
  1. // o Created by Mr.Kanin Temsrisuk ( Nickname : Start ( a.k.a. TARTs ) )
  2. // o สร้างโดย นายคณิน เต็มศรีสุข ( สต๊าท นามแฝง ถาด )
  3.  
  4. - script RUBGController -1,{
  5. OnInit:
  6. disablenpc "territory1#BG1";
  7. disablenpc "territory2#BG1";
  8. disablenpc "territory3#BG1";
  9. disablenpc "territory1#BG2";
  10. disablenpc "territory2#BG2";
  11. disablenpc "territory3#BG2";
  12. disablenpc "territory1#BG3";
  13. disablenpc "territory2#BG3";
  14. disablenpc "territory3#BG3";
  15. disablenpc "territory1#BG4";
  16. disablenpc "territory2#BG4";
  17. disablenpc "territory3#BG4";
  18. disablenpc "territory1#BG5";
  19. disablenpc "territory2#BG5";
  20. disablenpc "territory3#BG5";
  21. disablenpc "territory1#BG6";
  22. disablenpc "territory2#BG6";
  23. disablenpc "territory3#BG6";
  24. disablenpc "territory1#BG7";
  25. disablenpc "territory2#BG7";
  26. disablenpc "territory3#BG7";
  27. disablenpc "territory1#BG8";
  28. disablenpc "territory2#BG8";
  29. disablenpc "territory3#BG8";
  30. disablenpc "territory1#BG9";
  31. disablenpc "territory2#BG9";
  32. disablenpc "territory3#BG9";
  33. disablenpc "territory1#BG10";
  34. disablenpc "territory2#BG10";
  35. disablenpc "territory3#BG10";
  36. $town$ = "prontera";
  37. $battleGround01$ = "ein_fild04";
  38. $battleGround02$ = "harboro1";
  39. $battleGround03$ = "verus03";
  40. $battleGround04$ = "ma_fild01";
  41. $battleGround05$ = "dew_fild01";
  42. $battleGround06$ = "gef_fild00";
  43. $battleGround07$ = "pay_fild01";
  44. $battleGround08$ = "prt_fild02";
  45. $battleGround09$ = "yuno_fild02";
  46. $battleGround10$ = "ayo_fild02";
  47. $waitingGround01$ = "int_land";
  48. $waitingGround02$ = "int_land01";
  49. $waitingGround03$ = "int_land02";
  50. $waitingGround04$ = "int_land03";
  51. $waitingGround05$ = "int_land04";
  52. $currentGround01$ = "";
  53. $currentGround02$ = "";
  54. $currentGround03$ = "";
  55. $currentGround04$ = "";
  56. $currentGround05$ = "";
  57. $isGround01Playing = 0;
  58. $isGround02Playing = 0;
  59. $isGround03Playing = 0;
  60. $isGround04Playing = 0;
  61. $isGround05Playing = 0;
  62. $currentPlayerGround01 = 0;
  63. $currentPlayerGround02 = 0;
  64. $currentPlayerGround03 = 0;
  65. $currentPlayerGround04 = 0;
  66. $currentPlayerGround05 = 0;
  67. $sumTime1=0;
  68. $sumTime2=0;
  69. $sumTime3=0;
  70. $sumTime4=0;
  71. $sumTime5=0;
  72. $winnerChickenDinnerReward = 517;
  73. $healItemSmall = 605;
  74. $healItemMedium = 545;
  75. $armorEquipment01 = 2328;
  76. $armorEquipment02 = 2312;
  77. $armorEquipment03 = 2316;
  78. $headArmorEquipment01 = 5015;
  79. $headArmorEquipment02 = 5009;
  80. $headArmorEquipment03 = 2228;
  81. $explosionBullet = 6145;
  82. $explosionGrenade = 7664;
  83. $handGun = 13114;
  84. $sniperRifle = 13151;
  85. $shotgun = 13155;
  86. $grenadeLauncher = 13161;
  87. setarray $sumBattleMap$[0],$battleGround01$,$battleGround02$,$battleGround03$,$battleGround04$,$battleGround05$,$battleGround06$,$battleGround07$,$battleGround08$,$battleGround09$,$battleGround10$;
  88. setarray $sumWaitingMap[0],$waitingGround01$,$waitingGround02$,$waitingGround03$,$waitingGround04$,$waitingGround05$;
  89. setarray $sumItem[0],$healItemSmall,$healItemMedium,$armorEquipment01,$armorEquipment02,$armorEquipment03,$headArmorEquipment01,$headArmorEquipment02,$headArmorEquipment03,$explosionBullet,$explosionGrenade,$handGun,$sniperRifle,$shotgun,$grenadeLauncher;
  90. end;
  91.  
  92. OnPCLoginEvent:
  93. if(isCharacterInit==0){
  94. jobchange JOB_REBELLION;
  95. BaseLevel = 1;
  96. JobLevel = 1;
  97. StatusPoint = 0;
  98. SkillPoint = 0;
  99. //delitem 1201,1;
  100. //delitem 2301,1;
  101. percentheal 100,100;
  102. skill "KO_BAKURETSU",1,SKILL_PERM;
  103. skill "KO_BAKURETSU2",1,SKILL_PERM;
  104. skill "KO_BAKURETSU3",1,SKILL_PERM;
  105. skill "KO_HUUMARANKA",1,SKILL_PERM;
  106. isCharacterInit = 1;
  107. }
  108. else{
  109. skill "KO_BAKURETSU2",0,SKILL_PERM;
  110. skill "KO_BAKURETSU3",0,SKILL_PERM;
  111. skill "KO_BAKURETSU2",1,SKILL_PERM;
  112. skill "KO_BAKURETSU3",1,SKILL_PERM;
  113. }
  114. end;
  115.  
  116. OnPCLogoutEvent:
  117. if(strcharinfo(3)==$waitingGround01$&& $isGround01Playing == 0){
  118. $currentPlayerGround01--;
  119. if($sumTime1>=0&&$currentPlayerGround01<=1){
  120. $sumTime1 = 0;
  121. if($currentGround01$!=""){
  122. cleanmap $currentGround01$;
  123. mapwarp $currentGround01$,$town$,156,191,0;
  124. }
  125. $currentGround01$ = "";
  126. $isGround01Playing = 0;
  127. mapwarp $waitingGround01$,$town$,156,191,0;
  128. $currentPlayerGround01 = 0;
  129. }
  130. end;
  131. }else if(strcharinfo(3)==$waitingGround02$&& $isGround02Playing == 0){
  132. $currentPlayerGround02--;
  133. if($sumTime2>=0&&$currentPlayerGround02<=1){
  134. $sumTime2 = 0;
  135. if($currentGround02$!=""){
  136. cleanmap $currentGround02$;
  137. mapwarp $currentGround02$,$town$,156,191,0;
  138. }
  139. $currentGround02$ = "";
  140. $isGround02Playing = 0;
  141. }
  142. end;
  143. }else if(strcharinfo(3)==$waitingGround03$&& $isGround03Playing == 0){
  144. $currentPlayerGround03--;
  145. if($sumTime3>=0&&$currentPlayerGround03<=1){
  146. $sumTime3 = 0;
  147. if($currentGround03$!=""){
  148. cleanmap $currentGround03$;
  149. mapwarp $currentGround03$,$town$,156,191,0;
  150. }
  151. $currentGround03$ = "";
  152. $isGround01Playing = 0;
  153. }
  154. end;
  155. }else if(strcharinfo(3)==$waitingGround04$&& $isGround04Playing == 0){
  156. $currentPlayerGround04--;
  157. if($sumTime4>=0&&$currentPlayerGround04<=1){
  158. $sumTime4 = 0;
  159. if($currentGround04$!=""){
  160. cleanmap $currentGround04$;
  161. mapwarp $currentGround04$,$town$,156,191,0;
  162. }
  163. $currentGround04$ = "";
  164. $isGround04Playing = 0;
  165. }
  166. end;
  167. }else if(strcharinfo(3)==$waitingGround05$&& $isGround05Playing == 0){
  168. $currentPlayerGround05--;
  169. if($sumTime5>=0&&$currentPlayerGround05<=1){
  170. $sumTime5 = 0;
  171. if($currentGround05$!=""){
  172. cleanmap $currentGround05$;
  173. mapwarp $currentGround05$,$town$,156,191,0;
  174. }
  175. $currentGround05$ = "";
  176. $isGround05Playing = 0;
  177. }
  178. end;
  179. }
  180. if(strcharinfo(3)==$currentGround01$ && $isGround01Playing == 1){
  181. $currentPlayerGround01--;
  182. if($currentPlayerGround01<=1){
  183. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  184. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  185. cleanmap $currentGround01$;
  186. mapwarp $currentGround01$,$town$,156,191,0;
  187. $isGround01Playing = 0;
  188. $currentPlayerGround01 = 0;
  189. if($currentGround01$==$sumBattleMap$[0]){
  190. disablenpc "territory1#BG1";
  191. disablenpc "territory2#BG1";
  192. disablenpc "territory3#BG1";
  193. }
  194. else if($currentGround01$==$sumBattleMap$[1]){
  195. disablenpc "territory1#BG2";
  196. disablenpc "territory2#BG2";
  197. disablenpc "territory3#BG2";
  198. }
  199. else if($currentGround01$==$sumBattleMap$[2]){
  200. disablenpc "territory1#BG3";
  201. disablenpc "territory2#BG3";
  202. disablenpc "territory3#BG3";
  203. }
  204. else if($currentGround01$==$sumBattleMap$[3]){
  205. disablenpc "territory1#BG4";
  206. disablenpc "territory2#BG4";
  207. disablenpc "territory3#BG4";
  208. }
  209. else if($currentGround01$==$sumBattleMap$[4]){
  210. disablenpc "territory1#BG5";
  211. disablenpc "territory2#BG5";
  212. disablenpc "territory3#BG5";
  213. }
  214. else if($currentGround01$==$sumBattleMap$[5]){
  215. disablenpc "territory1#BG6";
  216. disablenpc "territory2#BG6";
  217. disablenpc "territory3#BG6";
  218. }
  219. else if($currentGround01$==$sumBattleMap$[6]){
  220. disablenpc "territory1#BG7";
  221. disablenpc "territory2#BG7";
  222. disablenpc "territory3#BG7";
  223. }
  224. else if($currentGround01$==$sumBattleMap$[7]){
  225. disablenpc "territory1#BG8";
  226. disablenpc "territory2#BG8";
  227. disablenpc "territory3#BG8";
  228. }
  229. else if($currentGround01$==$sumBattleMap$[8]){
  230. disablenpc "territory1#BG9";
  231. disablenpc "territory2#BG9";
  232. disablenpc "territory3#BG9";
  233. }
  234. else if($currentGround01$==$sumBattleMap$[9]){
  235. disablenpc "territory1#BG10";
  236. disablenpc "territory2#BG10";
  237. disablenpc "territory3#BG10";
  238. }
  239. $currentGround01$ = "";
  240. }
  241. end;
  242. }else if(strcharinfo(3)==$currentGround02$ && $isGround02Playing == 1){
  243. $currentPlayerGround02--;
  244. if($currentPlayerGround02<=1){
  245. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  246. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  247. cleanmap $currentGround02$;
  248. mapwarp $currentGround02$,$town$,156,191,0;
  249. $isGround02Playing = 0;
  250. $currentPlayerGround02 = 0;
  251. if($currentGround02$==$sumBattleMap$[0]){
  252. disablenpc "territory1#BG1";
  253. disablenpc "territory2#BG1";
  254. disablenpc "territory3#BG1";
  255. }
  256. else if($currentGround02$==$sumBattleMap$[1]){
  257. disablenpc "territory1#BG2";
  258. disablenpc "territory2#BG2";
  259. disablenpc "territory3#BG2";
  260. }
  261. else if($currentGround02$==$sumBattleMap$[2]){
  262. disablenpc "territory1#BG3";
  263. disablenpc "territory2#BG3";
  264. disablenpc "territory3#BG3";
  265. }
  266. else if($currentGround02$==$sumBattleMap$[3]){
  267. disablenpc "territory1#BG4";
  268. disablenpc "territory2#BG4";
  269. disablenpc "territory3#BG4";
  270. }
  271. else if($currentGround02$==$sumBattleMap$[4]){
  272. disablenpc "territory1#BG5";
  273. disablenpc "territory2#BG5";
  274. disablenpc "territory3#BG5";
  275. }
  276. else if($currentGround02$==$sumBattleMap$[5]){
  277. disablenpc "territory1#BG6";
  278. disablenpc "territory2#BG6";
  279. disablenpc "territory3#BG6";
  280. }
  281. else if($currentGround02$==$sumBattleMap$[6]){
  282. disablenpc "territory1#BG7";
  283. disablenpc "territory2#BG7";
  284. disablenpc "territory3#BG7";
  285. }
  286. else if($currentGround02$==$sumBattleMap$[7]){
  287. disablenpc "territory1#BG8";
  288. disablenpc "territory2#BG8";
  289. disablenpc "territory3#BG8";
  290. }
  291. else if($currentGround02$==$sumBattleMap$[8]){
  292. disablenpc "territory1#BG9";
  293. disablenpc "territory2#BG9";
  294. disablenpc "territory3#BG9";
  295. }
  296. else if($currentGround02$==$sumBattleMap$[9]){
  297. disablenpc "territory1#BG10";
  298. disablenpc "territory2#BG10";
  299. disablenpc "territory3#BG10";
  300. }
  301. $currentGround02$ = "";
  302. }
  303. end;
  304. }else if(strcharinfo(3)==$currentGround03$ && $isGround03Playing == 1){
  305. $currentPlayerGround03--;
  306. if($currentPlayerGround03<=1){
  307. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  308. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  309. cleanmap $currentGround03$;
  310. mapwarp $currentGround03$,$town$,156,191,0;
  311. $isGround03Playing = 0;
  312. $currentPlayerGround03 = 0;
  313. if($currentGround03$==$sumBattleMap$[0]){
  314. disablenpc "territory1#BG1";
  315. disablenpc "territory2#BG1";
  316. disablenpc "territory3#BG1";
  317. }
  318. else if($currentGround03$==$sumBattleMap$[1]){
  319. disablenpc "territory1#BG2";
  320. disablenpc "territory2#BG2";
  321. disablenpc "territory3#BG2";
  322. }
  323. else if($currentGround03$==$sumBattleMap$[2]){
  324. disablenpc "territory1#BG3";
  325. disablenpc "territory2#BG3";
  326. disablenpc "territory3#BG3";
  327. }
  328. else if($currentGround03$==$sumBattleMap$[3]){
  329. disablenpc "territory1#BG4";
  330. disablenpc "territory2#BG4";
  331. disablenpc "territory3#BG4";
  332. }
  333. else if($currentGround03$==$sumBattleMap$[4]){
  334. disablenpc "territory1#BG5";
  335. disablenpc "territory2#BG5";
  336. disablenpc "territory3#BG5";
  337. }
  338. else if($currentGround03$==$sumBattleMap$[5]){
  339. disablenpc "territory1#BG6";
  340. disablenpc "territory2#BG6";
  341. disablenpc "territory3#BG6";
  342. }
  343. else if($currentGround03$==$sumBattleMap$[6]){
  344. disablenpc "territory1#BG7";
  345. disablenpc "territory2#BG7";
  346. disablenpc "territory3#BG7";
  347. }
  348. else if($currentGround03$==$sumBattleMap$[7]){
  349. disablenpc "territory1#BG8";
  350. disablenpc "territory2#BG8";
  351. disablenpc "territory3#BG8";
  352. }
  353. else if($currentGround03$==$sumBattleMap$[8]){
  354. disablenpc "territory1#BG9";
  355. disablenpc "territory2#BG9";
  356. disablenpc "territory3#BG9";
  357. }
  358. else if($currentGround03$==$sumBattleMap$[9]){
  359. disablenpc "territory1#BG10";
  360. disablenpc "territory2#BG10";
  361. disablenpc "territory3#BG10";
  362. }
  363. $currentGround03$ = "";
  364. }
  365. end;
  366. }else if(strcharinfo(3)==$currentGround04$ && $isGround04Playing == 1){
  367. $currentPlayerGround04--;
  368. if($currentPlayerGround04<=1){
  369. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  370. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  371. cleanmap $currentGround04$;
  372. mapwarp $currentGround04$,$town$,156,191,0;
  373. $isGround04Playing = 0;
  374. $currentPlayerGround04 = 0;
  375. if($currentGround04$==$sumBattleMap$[0]){
  376. disablenpc "territory1#BG1";
  377. disablenpc "territory2#BG1";
  378. disablenpc "territory3#BG1";
  379. }
  380. else if($currentGround04$==$sumBattleMap$[1]){
  381. disablenpc "territory1#BG2";
  382. disablenpc "territory2#BG2";
  383. disablenpc "territory3#BG2";
  384. }
  385. else if($currentGround04$==$sumBattleMap$[2]){
  386. disablenpc "territory1#BG3";
  387. disablenpc "territory2#BG3";
  388. disablenpc "territory3#BG3";
  389. }
  390. else if($currentGround04$==$sumBattleMap$[3]){
  391. disablenpc "territory1#BG4";
  392. disablenpc "territory2#BG4";
  393. disablenpc "territory3#BG4";
  394. }
  395. else if($currentGround04$==$sumBattleMap$[4]){
  396. disablenpc "territory1#BG5";
  397. disablenpc "territory2#BG5";
  398. disablenpc "territory3#BG5";
  399. }
  400. else if($currentGround04$==$sumBattleMap$[5]){
  401. disablenpc "territory1#BG6";
  402. disablenpc "territory2#BG6";
  403. disablenpc "territory3#BG6";
  404. }
  405. else if($currentGround04$==$sumBattleMap$[6]){
  406. disablenpc "territory1#BG7";
  407. disablenpc "territory2#BG7";
  408. disablenpc "territory3#BG7";
  409. }
  410. else if($currentGround04$==$sumBattleMap$[7]){
  411. disablenpc "territory1#BG8";
  412. disablenpc "territory2#BG8";
  413. disablenpc "territory3#BG8";
  414. }
  415. else if($currentGround04$==$sumBattleMap$[8]){
  416. disablenpc "territory1#BG9";
  417. disablenpc "territory2#BG9";
  418. disablenpc "territory3#BG9";
  419. }
  420. else if($currentGround04$==$sumBattleMap$[9]){
  421. disablenpc "territory1#BG10";
  422. disablenpc "territory2#BG10";
  423. disablenpc "territory3#BG10";
  424. }
  425. $currentGround04$ = "";
  426. }
  427. end;
  428. }else if(strcharinfo(3)==$currentGround05$ && $isGround05Playing == 1){
  429. $currentPlayerGround05--;
  430. if($currentPlayerGround05<=1){
  431. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  432. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  433. cleanmap $currentGround05$;
  434. mapwarp $currentGround05$,$town$,156,191,0;
  435. $isGround05Playing = 0;
  436. $currentPlayerGround05 = 0;
  437. if($currentGround05$==$sumBattleMap$[0]){
  438. disablenpc "territory1#BG1";
  439. disablenpc "territory2#BG1";
  440. disablenpc "territory3#BG1";
  441. }
  442. else if($currentGround05$==$sumBattleMap$[1]){
  443. disablenpc "territory1#BG2";
  444. disablenpc "territory2#BG2";
  445. disablenpc "territory3#BG2";
  446. }
  447. else if($currentGround05$==$sumBattleMap$[2]){
  448. disablenpc "territory1#BG3";
  449. disablenpc "territory2#BG3";
  450. disablenpc "territory3#BG3";
  451. }
  452. else if($currentGround05$==$sumBattleMap$[3]){
  453. disablenpc "territory1#BG4";
  454. disablenpc "territory2#BG4";
  455. disablenpc "territory3#BG4";
  456. }
  457. else if($currentGround05$==$sumBattleMap$[4]){
  458. disablenpc "territory1#BG5";
  459. disablenpc "territory2#BG5";
  460. disablenpc "territory3#BG5";
  461. }
  462. else if($currentGround05$==$sumBattleMap$[5]){
  463. disablenpc "territory1#BG6";
  464. disablenpc "territory2#BG6";
  465. disablenpc "territory3#BG6";
  466. }
  467. else if($currentGround05$==$sumBattleMap$[6]){
  468. disablenpc "territory1#BG7";
  469. disablenpc "territory2#BG7";
  470. disablenpc "territory3#BG7";
  471. }
  472. else if($currentGround05$==$sumBattleMap$[7]){
  473. disablenpc "territory1#BG8";
  474. disablenpc "territory2#BG8";
  475. disablenpc "territory3#BG8";
  476. }
  477. else if($currentGround05$==$sumBattleMap$[8]){
  478. disablenpc "territory1#BG9";
  479. disablenpc "territory2#BG9";
  480. disablenpc "territory3#BG9";
  481. }
  482. else if($currentGround05$==$sumBattleMap$[9]){
  483. disablenpc "territory1#BG10";
  484. disablenpc "territory2#BG10";
  485. disablenpc "territory3#BG10";
  486. }
  487. $currentGround05$ = "";
  488. }
  489. end;
  490. }
  491. end;
  492.  
  493. OnPCDieEvent:
  494. dieCount++;
  495. callfunc("F_PlayerDead");
  496. end;
  497. }
  498.  
  499. prontera,162,193,4 script Heal 10192,{
  500. specialeffect2 EF_HEAL2;
  501. percentheal 100,100;
  502. end;
  503.  
  504. OnInit:
  505. waitingroom "Heal",0;
  506. end;
  507. }
  508.  
  509. prontera,164,169,3 script Change Job 10148 ,{
  510. if(class==JOB_GUNSLINGER){
  511. jobchange JOB_REBELLION;
  512. BaseLevel = 1;
  513. JobLevel = 1;
  514. StatusPoint = 0;
  515. SkillPoint = 0;
  516. percentheal 100,100;
  517. atcommand "@skillall";
  518. skill "KO_BAKURETSU2",0,SKILL_PERM;
  519. skill "KO_BAKURETSU3",0,SKILL_PERM;
  520. skill "KO_BAKURETSU2",1,SKILL_PERM;
  521. skill "KO_BAKURETSU3",1,SKILL_PERM;
  522. }
  523. else{
  524. jobchange JOB_GUNSLINGER;
  525. BaseLevel = 1;
  526. JobLevel = 1;
  527. StatusPoint = 0;
  528. SkillPoint = 0;
  529. percentheal 100,100;
  530. atcommand "@skillall";
  531. skill "KO_BAKURETSU2",0,SKILL_PERM;
  532. skill "KO_BAKURETSU3",0,SKILL_PERM;
  533. skill "KO_BAKURETSU2",1,SKILL_PERM;
  534. skill "KO_BAKURETSU3",1,SKILL_PERM;
  535. }
  536. end;
  537.  
  538. OnInit:
  539. waitingroom "Change Job",0;
  540. end;
  541. }
  542.  
  543. prontera,164,174,3 script Dress up 10173,{
  544. setarray .@Styles[1],
  545. getbattleflag("max_cloth_color"),
  546. getbattleflag("max_hair_style"),
  547. getbattleflag("max_hair_color");
  548. setarray .@Look[1],
  549. LOOK_CLOTHES_COLOR,
  550. LOOK_HAIR,
  551. LOOK_HAIR_COLOR;
  552. set .@s, select(" ~ cloth color: ~ hair style: ~ hair color");
  553. set .@Revert, getlook(.@Look[.@s]);
  554. set .@Style,1;
  555. while(1) {
  556. setlook .@Look[.@s], .@Style;
  557. message strcharinfo(0),"Current #"+.@Style+"";
  558. set .@menu$, " ~ Next (^0055FF"+((.@Style!=.@Styles[.@s])?.@Style+1:1)+"^000000): ~ Previous (^0055FF"+((.@Style!=1)?.@Style-1:.@Styles[.@s])+"^000000): ~ Jump to...: ~ Back to original (^0055FF"+.@Revert+"^000000)";
  559. switch(select(.@menu$)) {
  560. case 1:
  561. set .@Style, ((.@Style != .@Styles[.@s]) ? .@Style+1 : 1);
  562. break;
  563. case 2:
  564. set .@Style, ((.@Style != 1) ? .@Style-1 : .@Styles[.@s]);
  565. break;
  566. case 3:
  567. message strcharinfo(0),"Choose type 1 - "+.@Styles[.@s]+"";
  568. input .@Style,0,.@Styles[.@s];
  569. if (!.@Style)
  570. set .@Style, rand(1,.@Styles[.@s]);
  571. break;
  572. case 4:
  573. set .@Style, .@Revert;
  574. setlook .@Look[.@s], .@Revert;
  575. break;
  576. }
  577. }
  578.  
  579. OnInit:
  580. waitingroom "Dress up",0;
  581. end;
  582. }
  583.  
  584. prontera,147,174,6 script Trial Prepare 10123,{
  585. clearitem getcharid(0);
  586. for( .@i = 0; .@i < 14; .@i++ )
  587. getitem $sumItem[.@i],1;
  588. getitem $explosionBullet,999;
  589. getitem $explosionGrenade,999;
  590. skill "KO_BAKURETSU2",0,SKILL_PERM;
  591. skill "KO_BAKURETSU3",0,SKILL_PERM;
  592. skill "KO_BAKURETSU2",1,SKILL_PERM;
  593. skill "KO_BAKURETSU3",1,SKILL_PERM;
  594. end;
  595.  
  596. OnInit:
  597. waitingroom "Trial Prepare",0;
  598. end;
  599. }
  600.  
  601. prontera,156,175,4 script BattleGround 1 10201,{
  602. if($isGround01Playing==0 && $currentPlayerGround01 <100){
  603. mes "Number of players waiting "+$currentPlayerGround01+"/100";
  604. next;
  605. menu "Enter the battle room 1",L_1,"not ready yet",L_2;
  606. }else{
  607. mes "Cannot enter this room at this time.";
  608. mes "Number of players in BattleGround 1 "+$currentPlayerGround01+"/100";
  609. close;
  610. }
  611. L_1:
  612. mes "Good luck";
  613. close2;
  614. $currentPlayerGround01++;
  615. clearitem getcharid(0);
  616. skill "KO_BAKURETSU2",0,SKILL_PERM;
  617. skill "KO_BAKURETSU3",0,SKILL_PERM;
  618. skill "KO_BAKURETSU2",1,SKILL_PERM;
  619. skill "KO_BAKURETSU3",1,SKILL_PERM;
  620. mapannounce "prontera","Player "+strcharinfo(0)+" Entered BattleGround 1 Number of Players "+$currentPlayerGround01+" / 100",bc_map;
  621. warp $waitingGround01$,0,0;
  622. callfunc("waitingRoom1");
  623. end;
  624.  
  625. L_2:
  626. mes "Well";
  627. mes "You should prepare yourself first";
  628. close;
  629.  
  630. OnInit:
  631. waitingroom "BattleGround 1",0;
  632. end;
  633. }
  634.  
  635. - script waitingRoom1Timer -1,{
  636. end;
  637.  
  638. OnTimerCount:
  639. if($currentPlayerGround01<=1){
  640. end;
  641. }
  642. if($sumTime1<=0){
  643. $isGround01Playing = 1;
  644. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  645. while(.@sumMapNameToGo$==$currentGround01$||.@sumMapNameToGo$==$currentGround02$||.@sumMapNameToGo$==$currentGround03$||.@sumMapNameToGo$==$currentGround04$||.@sumMapNameToGo$==$currentGround05$)
  646. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  647. $currentGround01$ = .@sumMapNameToGo$;
  648. mapwarp $waitingGround01$,$currentGround01$,0,0,0;
  649. $sumTime1=0;
  650. if($currentGround01$==$sumBattleMap$[0])
  651. enablenpc "territory1#BG1";
  652. else if($currentGround01$==$sumBattleMap$[1])
  653. enablenpc "territory1#BG2";
  654. else if($currentGround01$==$sumBattleMap$[2])
  655. enablenpc "territory1#BG3";
  656. else if($currentGround01$==$sumBattleMap$[3])
  657. enablenpc "territory1#BG4";
  658. else if($currentGround01$==$sumBattleMap$[4])
  659. enablenpc "territory1#BG5";
  660. else if($currentGround01$==$sumBattleMap$[5])
  661. enablenpc "territory1#BG6";
  662. else if($currentGround01$==$sumBattleMap$[6])
  663. enablenpc "territory1#BG7";
  664. else if($currentGround01$==$sumBattleMap$[7])
  665. enablenpc "territory1#BG8";
  666. else if($currentGround01$==$sumBattleMap$[8])
  667. enablenpc "territory1#BG9";
  668. else if($currentGround01$==$sumBattleMap$[9])
  669. enablenpc "territory1#BG10";
  670. addtimer 180000, "waitingRoom1Timer::OnTimerCount2";
  671. addtimer 10000, "waitingRoom1Timer::OnTimerCountHint";
  672. callfunc("SpawnItemGround1");
  673. end;
  674. }else{
  675. $sumTime1 -= 5;
  676. mapannounce $waitingGround01$,"More "+$sumTime1+" Seconds will warp all players to BattleGround 1",bc_map;
  677. addtimer 5000, "waitingRoom1Timer::OnTimerCount";
  678. end;
  679. }
  680. end;
  681.  
  682. OnTimerCountHint:
  683. if($isGround01Playing == 0)
  684. end;
  685. mapannounce $currentGround01$,"2 more minutes must be within the specified distance on the map on the right on the 150-screen screen.",bc_map;
  686. callfunc("F_ViewPointRestart",$currentGround01$);
  687. end;
  688.  
  689. OnTimerCount2:
  690. if($isGround01Playing == 0)
  691. end;
  692. mapannounce $currentGround01$,"2 more minutes must be within the distance specified in the map on the right on the 100-channel screen.",bc_map;
  693. if($currentGround01$==$sumBattleMap$[0]){
  694. donpcevent "territory1#BG1::OnDoDamage";
  695. enablenpc "territory2#BG1";
  696. disablenpc "territory1#BG1";
  697. }
  698. else if($currentGround01$==$sumBattleMap$[1]){
  699. donpcevent "territory1#BG2::OnDoDamage";
  700. enablenpc "territory2#BG2";
  701. disablenpc "territory1#BG2";
  702. }
  703. else if($currentGround01$==$sumBattleMap$[2]){
  704. donpcevent "territory1#BG3::OnDoDamage";
  705. enablenpc "territory2#BG3";
  706. disablenpc "territory1#BG3";
  707. }
  708. else if($currentGround01$==$sumBattleMap$[3]){
  709. donpcevent "territory1#BG4::OnDoDamage";
  710. enablenpc "territory2#BG4";
  711. disablenpc "territory1#BG4";
  712. }
  713. else if($currentGround01$==$sumBattleMap$[4]){
  714. donpcevent "territory1#BG5::OnDoDamage";
  715. enablenpc "territory2#BG5";
  716. disablenpc "territory1#BG5";
  717. }
  718. else if($currentGround01$==$sumBattleMap$[5]){
  719. donpcevent "territory1#BG6::OnDoDamage";
  720. enablenpc "territory2#BG6";
  721. disablenpc "territory1#BG6";
  722. }
  723. else if($currentGround01$==$sumBattleMap$[6]){
  724. donpcevent "territory1#BG7::OnDoDamage";
  725. enablenpc "territory2#BG7";
  726. disablenpc "territory1#BG7";
  727. }
  728. else if($currentGround01$==$sumBattleMap$[7]){
  729. donpcevent "territory1#BG8::OnDoDamage";
  730. enablenpc "territory2#BG8";
  731. disablenpc "territory1#BG8";
  732. }
  733. else if($currentGround01$==$sumBattleMap$[8]){
  734. donpcevent "territory1#BG9::OnDoDamage";
  735. enablenpc "territory2#BG9";
  736. disablenpc "territory1#BG9";
  737. }
  738. else if($currentGround01$==$sumBattleMap$[9]){
  739. donpcevent "territory1#BG10::OnDoDamage";
  740. enablenpc "territory2#BG10";
  741. disablenpc "territory1#BG10";
  742. }
  743. if($currentPlayerGround01>1)
  744. addtimer 180000, "waitingRoom1Timer::OnTimerCount3";
  745. end;
  746.  
  747. OnTimerCount3:
  748. if($isGround01Playing == 0)
  749. end;
  750. mapannounce $currentGround01$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  751. if($currentGround01$==$sumBattleMap$[0]){
  752. donpcevent "territory2#BG1::OnDoDamage";
  753. enablenpc "territory3#BG1";
  754. disablenpc "territory2#BG1";
  755. }
  756. else if($currentGround01$==$sumBattleMap$[1]){
  757. donpcevent "territory2#BG2::OnDoDamage";
  758. enablenpc "territory3#BG2";
  759. disablenpc "territory2#BG2";
  760. }
  761. else if($currentGround01$==$sumBattleMap$[2]){
  762. donpcevent "territory2#BG3::OnDoDamage";
  763. enablenpc "territory3#BG3";
  764. disablenpc "territory2#BG3";
  765. }
  766. else if($currentGround01$==$sumBattleMap$[3]){
  767. donpcevent "territory2#BG4::OnDoDamage";
  768. enablenpc "territory3#BG4";
  769. disablenpc "territory2#BG4";
  770. }
  771. else if($currentGround01$==$sumBattleMap$[4]){
  772. donpcevent "territory2#BG5::OnDoDamage";
  773. enablenpc "territory3#BG5";
  774. disablenpc "territory2#BG5";
  775. }
  776. else if($currentGround01$==$sumBattleMap$[5]){
  777. donpcevent "territory2#BG6::OnDoDamage";
  778. enablenpc "territory3#BG6";
  779. disablenpc "territory2#BG6";
  780. }
  781. else if($currentGround01$==$sumBattleMap$[6]){
  782. donpcevent "territory2#BG7::OnDoDamage";
  783. enablenpc "territory3#BG7";
  784. disablenpc "territory2#BG7";
  785. }
  786. else if($currentGround01$==$sumBattleMap$[7]){
  787. donpcevent "territory2#BG8::OnDoDamage";
  788. enablenpc "territory3#BG8";
  789. disablenpc "territory2#BG8";
  790. }
  791. else if($currentGround01$==$sumBattleMap$[8]){
  792. donpcevent "territory2#BG9::OnDoDamage";
  793. enablenpc "territory3#BG9";
  794. disablenpc "territory2#BG9";
  795. }
  796. else if($currentGround01$==$sumBattleMap$[9]){
  797. donpcevent "territory2#BG10::OnDoDamage";
  798. enablenpc "territory3#BG10";
  799. disablenpc "territory2#BG10";
  800. }
  801. if($currentPlayerGround01>1)
  802. addtimer 180000, "waitingRoom1Timer::OnTimerCount4";
  803. end;
  804.  
  805. OnTimerCount4:
  806. if($isGround01Playing == 0)
  807. end;
  808. mapannounce $currentGround01$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  809. if($currentGround01$==$sumBattleMap$[0])
  810. donpcevent "territory3#BG1::OnDoDamage";
  811. else if($currentGround01$==$sumBattleMap$[1])
  812. donpcevent "territory3#BG2::OnDoDamage";
  813. else if($currentGround01$==$sumBattleMap$[2])
  814. donpcevent "territory3#BG3::OnDoDamage";
  815. else if($currentGround01$==$sumBattleMap$[3])
  816. donpcevent "territory3#BG4::OnDoDamage";
  817. else if($currentGround01$==$sumBattleMap$[4])
  818. donpcevent "territory3#BG5::OnDoDamage";
  819. else if($currentGround01$==$sumBattleMap$[5])
  820. donpcevent "territory3#BG6::OnDoDamage";
  821. else if($currentGround01$==$sumBattleMap$[6])
  822. donpcevent "territory3#BG7::OnDoDamage";
  823. else if($currentGround01$==$sumBattleMap$[7])
  824. donpcevent "territory3#BG8::OnDoDamage";
  825. else if($currentGround01$==$sumBattleMap$[8])
  826. donpcevent "territory3#BG9::OnDoDamage";
  827. else if($currentGround01$==$sumBattleMap$[9])
  828. donpcevent "territory3#BG10::OnDoDamage";
  829. if($currentPlayerGround01>1)
  830. addtimer 180000, "waitingRoom1Timer::OnTimerCount4";
  831. end;
  832. }
  833.  
  834. function script waitingRoom1 {
  835. if($currentPlayerGround01>=2 && $sumTime1==0){
  836. $sumTime1 = 60;
  837. if($sumTime1==60){
  838. mapannounce $waitingGround01$,"More "+$sumTime1+" Seconds will warp all players to BattleGround 1",bc_map;
  839. addtimer 5000, "waitingRoom1Timer::OnTimerCount";
  840. end;
  841. }
  842. end;
  843. }
  844. end;
  845. }
  846.  
  847. prontera,153,177,4 script BattleGround 2 10203,{
  848. if($isGround01Playing==0){
  849. mes "First full room";
  850. close;
  851. }
  852. if($isGround02Playing==0&& $currentPlayerGround02 <100){
  853. mes "Number of players waiting "+$currentPlayerGround02+"/100";
  854. next;
  855. menu "Enter the battle room 2",L_1,"ยังไม่พร้อม",L_2;
  856. }else{
  857. mes "Cannot enter this room at this time.";
  858. mes "Number of players in BattleGround 2 "+$currentPlayerGround02+"/100";
  859. close;
  860. }
  861. L_1:
  862. mes "Good luck";
  863. close2;
  864. $currentPlayerGround02++;
  865. clearitem getcharid(0);
  866. skill "KO_BAKURETSU2",0,SKILL_PERM;
  867. skill "KO_BAKURETSU3",0,SKILL_PERM;
  868. skill "KO_BAKURETSU2",1,SKILL_PERM;
  869. skill "KO_BAKURETSU3",1,SKILL_PERM;
  870. mapannounce "prontera","Player "+strcharinfo(0)+" Entered BattleGround 2 Number of Players "+$currentPlayerGround02+" / 100",bc_map;
  871. warp $waitingGround02$,0,0;
  872. callfunc("waitingRoom2");
  873. end;
  874.  
  875. L_2:
  876. mes "Well";
  877. mes "You should prepare yourself first";
  878. close;
  879.  
  880. OnInit:
  881. waitingroom "BattleGround 2",0;
  882. end;
  883. }
  884.  
  885. - script waitingRoom2Timer -1,{
  886. end;
  887.  
  888. OnTimerCount:
  889. if($currentPlayerGround02<=1){
  890. end;
  891. }
  892. if($sumTime2<=0){
  893. $isGround02Playing = 1;
  894. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  895. while(.@sumMapNameToGo$==$currentGround02$||.@sumMapNameToGo$==$currentGround02$||.@sumMapNameToGo$==$currentGround03$||.@sumMapNameToGo$==$currentGround04$||.@sumMapNameToGo$==$currentGround05$)
  896. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  897. $currentGround02$ = .@sumMapNameToGo$;
  898. mapwarp $waitingGround02$,$currentGround02$,0,0,0;
  899. $sumTime2=0;
  900. if($currentGround02$==$sumBattleMap$[0])
  901. enablenpc "territory1#BG1";
  902. else if($currentGround02$==$sumBattleMap$[1])
  903. enablenpc "territory1#BG2";
  904. else if($currentGround02$==$sumBattleMap$[2])
  905. enablenpc "territory1#BG3";
  906. else if($currentGround02$==$sumBattleMap$[3])
  907. enablenpc "territory1#BG4";
  908. else if($currentGround02$==$sumBattleMap$[4])
  909. enablenpc "territory1#BG5";
  910. else if($currentGround02$==$sumBattleMap$[5])
  911. enablenpc "territory1#BG6";
  912. else if($currentGround02$==$sumBattleMap$[6])
  913. enablenpc "territory1#BG7";
  914. else if($currentGround02$==$sumBattleMap$[7])
  915. enablenpc "territory1#BG8";
  916. else if($currentGround02$==$sumBattleMap$[8])
  917. enablenpc "territory1#BG9";
  918. else if($currentGround02$==$sumBattleMap$[9])
  919. enablenpc "territory1#BG10";
  920. addtimer 180000, "waitingRoom2Timer::OnTimerCount2";
  921. addtimer 10000, "waitingRoom2Timer::OnTimerCountHint";
  922. callfunc("SpawnItemGround2");
  923. end;
  924. }else{
  925. $sumTime2 -= 5;
  926. mapannounce $waitingGround02$,"More "+$sumTime2+" Seconds will warp all players to BattleGround 2",bc_map;
  927. addtimer 5000, "waitingRoom2Timer::OnTimerCount";
  928. end;
  929. }
  930. end;
  931.  
  932. OnTimerCountHint:
  933. if($isGround02Playing == 0)
  934. end;
  935. mapannounce $currentGround02$,"2 more minutes must be within the specified distance on the map on the right on the 150-screen screen.",bc_map;
  936. callfunc("F_ViewPointRestart",$currentGround02$);
  937. end;
  938.  
  939. OnTimerCount2:
  940. if($isGround02Playing == 0)
  941. end;
  942. mapannounce $currentGround02$,"2 more minutes must be within the distance specified in the map on the right on the 100-channel screen.",bc_map;
  943. if($currentGround02$==$sumBattleMap$[0]){
  944. donpcevent "territory1#BG1::OnDoDamage";
  945. enablenpc "territory2#BG1";
  946. disablenpc "territory1#BG1";
  947. }
  948. else if($currentGround02$==$sumBattleMap$[1]){
  949. donpcevent "territory1#BG2::OnDoDamage";
  950. enablenpc "territory2#BG2";
  951. disablenpc "territory1#BG2";
  952. }
  953. else if($currentGround02$==$sumBattleMap$[2]){
  954. donpcevent "territory1#BG3::OnDoDamage";
  955. enablenpc "territory2#BG3";
  956. disablenpc "territory1#BG3";
  957. }
  958. else if($currentGround02$==$sumBattleMap$[3]){
  959. donpcevent "territory1#BG4::OnDoDamage";
  960. enablenpc "territory2#BG4";
  961. disablenpc "territory1#BG4";
  962. }
  963. else if($currentGround02$==$sumBattleMap$[4]){
  964. donpcevent "territory1#BG5::OnDoDamage";
  965. enablenpc "territory2#BG5";
  966. disablenpc "territory1#BG5";
  967. }
  968. else if($currentGround02$==$sumBattleMap$[5]){
  969. donpcevent "territory1#BG6::OnDoDamage";
  970. enablenpc "territory2#BG6";
  971. disablenpc "territory1#BG6";
  972. }
  973. else if($currentGround02$==$sumBattleMap$[6]){
  974. donpcevent "territory1#BG7::OnDoDamage";
  975. enablenpc "territory2#BG7";
  976. disablenpc "territory1#BG7";
  977. }
  978. else if($currentGround02$==$sumBattleMap$[7]){
  979. donpcevent "territory1#BG8::OnDoDamage";
  980. enablenpc "territory2#BG8";
  981. disablenpc "territory1#BG8";
  982. }
  983. else if($currentGround02$==$sumBattleMap$[8]){
  984. donpcevent "territory1#BG9::OnDoDamage";
  985. enablenpc "territory2#BG9";
  986. disablenpc "territory1#BG9";
  987. }
  988. else if($currentGround02$==$sumBattleMap$[9]){
  989. donpcevent "territory1#BG10::OnDoDamage";
  990. enablenpc "territory2#BG10";
  991. disablenpc "territory1#BG10";
  992. }
  993. if($currentPlayerGround01>1)
  994. addtimer 180000, "waitingRoom2Timer::OnTimerCount3";
  995. end;
  996.  
  997. OnTimerCount3:
  998. if($isGround02Playing == 0)
  999. end;
  1000. mapannounce $currentGround02$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1001. if($currentGround02$==$sumBattleMap$[0]){
  1002. donpcevent "territory2#BG1::OnDoDamage";
  1003. enablenpc "territory3#BG1";
  1004. disablenpc "territory2#BG1";
  1005. }
  1006. else if($currentGround02$==$sumBattleMap$[1]){
  1007. donpcevent "territory2#BG2::OnDoDamage";
  1008. enablenpc "territory3#BG2";
  1009. disablenpc "territory2#BG2";
  1010. }
  1011. else if($currentGround02$==$sumBattleMap$[2]){
  1012. donpcevent "territory2#BG3::OnDoDamage";
  1013. enablenpc "territory3#BG3";
  1014. disablenpc "territory2#BG3";
  1015. }
  1016. else if($currentGround02$==$sumBattleMap$[3]){
  1017. donpcevent "territory2#BG4::OnDoDamage";
  1018. enablenpc "territory3#BG4";
  1019. disablenpc "territory2#BG4";
  1020. }
  1021. else if($currentGround02$==$sumBattleMap$[4]){
  1022. donpcevent "territory2#BG5::OnDoDamage";
  1023. enablenpc "territory3#BG5";
  1024. disablenpc "territory2#BG5";
  1025. }
  1026. else if($currentGround02$==$sumBattleMap$[5]){
  1027. donpcevent "territory2#BG6::OnDoDamage";
  1028. enablenpc "territory3#BG6";
  1029. disablenpc "territory2#BG6";
  1030. }
  1031. else if($currentGround02$==$sumBattleMap$[6]){
  1032. donpcevent "territory2#BG7::OnDoDamage";
  1033. enablenpc "territory3#BG7";
  1034. disablenpc "territory2#BG7";
  1035. }
  1036. else if($currentGround02$==$sumBattleMap$[7]){
  1037. donpcevent "territory2#BG8::OnDoDamage";
  1038. enablenpc "territory3#BG8";
  1039. disablenpc "territory2#BG8";
  1040. }
  1041. else if($currentGround02$==$sumBattleMap$[8]){
  1042. donpcevent "territory2#BG9::OnDoDamage";
  1043. enablenpc "territory3#BG9";
  1044. disablenpc "territory2#BG9";
  1045. }
  1046. else if($currentGround02$==$sumBattleMap$[9]){
  1047. donpcevent "territory2#BG10::OnDoDamage";
  1048. enablenpc "territory3#BG10";
  1049. disablenpc "territory2#BG10";
  1050. }
  1051. if($currentPlayerGround01>1)
  1052. addtimer 180000, "waitingRoom2Timer::OnTimerCount4";
  1053. end;
  1054.  
  1055. OnTimerCount4:
  1056. if($isGround02Playing == 0)
  1057. end;
  1058. mapannounce $currentGround02$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1059. if($currentGround02$==$sumBattleMap$[0])
  1060. donpcevent "territory3#BG1::OnDoDamage";
  1061. else if($currentGround02$==$sumBattleMap$[1])
  1062. donpcevent "territory3#BG2::OnDoDamage";
  1063. else if($currentGround02$==$sumBattleMap$[2])
  1064. donpcevent "territory3#BG3::OnDoDamage";
  1065. else if($currentGround02$==$sumBattleMap$[3])
  1066. donpcevent "territory3#BG4::OnDoDamage";
  1067. else if($currentGround02$==$sumBattleMap$[4])
  1068. donpcevent "territory3#BG5::OnDoDamage";
  1069. else if($currentGround02$==$sumBattleMap$[5])
  1070. donpcevent "territory3#BG6::OnDoDamage";
  1071. else if($currentGround02$==$sumBattleMap$[6])
  1072. donpcevent "territory3#BG7::OnDoDamage";
  1073. else if($currentGround02$==$sumBattleMap$[7])
  1074. donpcevent "territory3#BG8::OnDoDamage";
  1075. else if($currentGround02$==$sumBattleMap$[8])
  1076. donpcevent "territory3#BG9::OnDoDamage";
  1077. else if($currentGround02$==$sumBattleMap$[9])
  1078. donpcevent "territory3#BG10::OnDoDamage";
  1079. if($currentPlayerGround02>1)
  1080. addtimer 180000, "waitingRoom2Timer::OnTimerCount4";
  1081. end;
  1082. }
  1083.  
  1084. function script waitingRoom2 {
  1085. if($currentPlayerGround02>=2 && $sumTime2==0){
  1086. $sumTime2 = 60;
  1087. if($sumTime2==60){
  1088. mapannounce $waitingGround02$,"More "+$sumTime2+" Seconds will warp all players to BattleGround 2",bc_map;
  1089. addtimer 5000, "waitingRoom2Timer::OnTimerCount";
  1090. end;
  1091. }
  1092. end;
  1093. }
  1094. end;
  1095. }
  1096.  
  1097. prontera,159,177,4 script BattleGround 3 10199,{
  1098. if($isGround02Playing==0){
  1099. mes "First full room";
  1100. close;
  1101. }
  1102. if($isGround03Playing==0&& $currentPlayerGround03 <100){
  1103. mes "Number of Players waiting "+$currentPlayerGround03+"/100";
  1104. next;
  1105. menu "Enter the battle room 3",L_1,"ยังไม่พร้อม",L_2;
  1106. }else{
  1107. mes "Cannot enter this room at this time.";
  1108. mes "Number of players in BattleGround 3 "+$currentPlayerGround03+"/100";
  1109. close;
  1110. }
  1111. L_1:
  1112. mes "Good luck";
  1113. close2;
  1114. $currentPlayerGround03++;
  1115. clearitem getcharid(0);
  1116. skill "KO_BAKURETSU2",0,SKILL_PERM;
  1117. skill "KO_BAKURETSU3",0,SKILL_PERM;
  1118. skill "KO_BAKURETSU2",1,SKILL_PERM;
  1119. skill "KO_BAKURETSU3",1,SKILL_PERM;
  1120. mapannounce "prontera","Player "+strcharinfo(0)+" Entered BattleGround 3 Number of Players "+$currentPlayerGround03+" / 100",bc_map;
  1121. warp $waitingGround03$,0,0;
  1122. callfunc("waitingRoom3");
  1123. end;
  1124.  
  1125. L_2:
  1126. mes "Well";
  1127. mes "You should prepare yourself first";
  1128. close;
  1129.  
  1130. OnInit:
  1131. waitingroom "BattleGround 3",0;
  1132. end;
  1133. }
  1134.  
  1135. - script waitingRoom3Timer -1,{
  1136. end;
  1137.  
  1138. OnTimerCount:
  1139. if($currentPlayerGround03<=1){
  1140. end;
  1141. }
  1142. if($sumTime3<=0){
  1143. $isGround03Playing = 1;
  1144. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  1145. while(.@sumMapNameToGo$==$currentGround03$||.@sumMapNameToGo$==$currentGround03$||.@sumMapNameToGo$==$currentGround03$||.@sumMapNameToGo$==$currentGround04$||.@sumMapNameToGo$==$currentGround05$)
  1146. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  1147. $currentGround03$ = .@sumMapNameToGo$;
  1148. mapwarp $waitingGround03$,$currentGround03$,0,0,0;
  1149. $sumTime3=0;
  1150. if($currentGround03$==$sumBattleMap$[0])
  1151. enablenpc "territory1#BG1";
  1152. else if($currentGround03$==$sumBattleMap$[1])
  1153. enablenpc "territory1#BG2";
  1154. else if($currentGround03$==$sumBattleMap$[2])
  1155. enablenpc "territory1#BG3";
  1156. else if($currentGround03$==$sumBattleMap$[3])
  1157. enablenpc "territory1#BG4";
  1158. else if($currentGround03$==$sumBattleMap$[4])
  1159. enablenpc "territory1#BG5";
  1160. else if($currentGround03$==$sumBattleMap$[5])
  1161. enablenpc "territory1#BG6";
  1162. else if($currentGround03$==$sumBattleMap$[6])
  1163. enablenpc "territory1#BG7";
  1164. else if($currentGround03$==$sumBattleMap$[7])
  1165. enablenpc "territory1#BG8";
  1166. else if($currentGround03$==$sumBattleMap$[8])
  1167. enablenpc "territory1#BG9";
  1168. else if($currentGround03$==$sumBattleMap$[9])
  1169. enablenpc "territory1#BG10";
  1170. addtimer 180000, "waitingRoom3Timer::OnTimerCount2";
  1171. addtimer 10000, "waitingRoom3Timer::OnTimerCountHint";
  1172. callfunc("SpawnItemGround3");
  1173. end;
  1174. }else{
  1175. $sumTime3 -= 5;
  1176. mapannounce $waitingGround03$,"More "+$sumTime3+" Seconds will warp all players to BattleGround 3",bc_map;
  1177. addtimer 5000, "waitingRoom3Timer::OnTimerCount";
  1178. end;
  1179. }
  1180. end;
  1181.  
  1182. OnTimerCountHint:
  1183. if($isGround03Playing == 0)
  1184. end;
  1185. mapannounce $currentGround03$,"2 more minutes must be within the specified distance on the map on the right on the 150-screen screen.",bc_map;
  1186. callfunc("F_ViewPointRestart",$currentGround03$);
  1187. end;
  1188.  
  1189. OnTimerCount2:
  1190. mapannounce $currentGround03$,"2 more minutes must be within the distance specified in the map on the right on the 100-channel screen.",bc_map;
  1191. if($currentGround03$==$sumBattleMap$[0]){
  1192. donpcevent "territory1#BG1::OnDoDamage";
  1193. enablenpc "territory2#BG1";
  1194. disablenpc "territory1#BG1";
  1195. }
  1196. else if($currentGround03$==$sumBattleMap$[1]){
  1197. donpcevent "territory1#BG2::OnDoDamage";
  1198. enablenpc "territory2#BG2";
  1199. disablenpc "territory1#BG2";
  1200. }
  1201. else if($currentGround03$==$sumBattleMap$[2]){
  1202. donpcevent "territory1#BG3::OnDoDamage";
  1203. enablenpc "territory2#BG3";
  1204. disablenpc "territory1#BG3";
  1205. }
  1206. else if($currentGround03$==$sumBattleMap$[3]){
  1207. donpcevent "territory1#BG4::OnDoDamage";
  1208. enablenpc "territory2#BG4";
  1209. disablenpc "territory1#BG4";
  1210. }
  1211. else if($currentGround03$==$sumBattleMap$[4]){
  1212. donpcevent "territory1#BG5::OnDoDamage";
  1213. enablenpc "territory2#BG5";
  1214. disablenpc "territory1#BG5";
  1215. }
  1216. else if($currentGround03$==$sumBattleMap$[5]){
  1217. donpcevent "territory1#BG6::OnDoDamage";
  1218. enablenpc "territory2#BG6";
  1219. disablenpc "territory1#BG6";
  1220. }
  1221. else if($currentGround03$==$sumBattleMap$[6]){
  1222. donpcevent "territory1#BG7::OnDoDamage";
  1223. enablenpc "territory2#BG7";
  1224. disablenpc "territory1#BG7";
  1225. }
  1226. else if($currentGround03$==$sumBattleMap$[7]){
  1227. donpcevent "territory1#BG8::OnDoDamage";
  1228. enablenpc "territory2#BG8";
  1229. disablenpc "territory1#BG8";
  1230. }
  1231. else if($currentGround03$==$sumBattleMap$[8]){
  1232. donpcevent "territory1#BG9::OnDoDamage";
  1233. enablenpc "territory2#BG9";
  1234. disablenpc "territory1#BG9";
  1235. }
  1236. else if($currentGround03$==$sumBattleMap$[9]){
  1237. donpcevent "territory1#BG10::OnDoDamage";
  1238. enablenpc "territory2#BG10";
  1239. disablenpc "territory1#BG10";
  1240. }
  1241. if($currentPlayerGround03>1)
  1242. addtimer 180000, "waitingRoom3Timer::OnTimerCount3";
  1243. end;
  1244.  
  1245. OnTimerCount3:
  1246. if($isGround03Playing == 0)
  1247. end;
  1248. mapannounce $currentGround03$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1249. if($currentGround03$==$sumBattleMap$[0]){
  1250. donpcevent "territory2#BG1::OnDoDamage";
  1251. enablenpc "territory3#BG1";
  1252. disablenpc "territory2#BG1";
  1253. }
  1254. else if($currentGround03$==$sumBattleMap$[1]){
  1255. donpcevent "territory2#BG2::OnDoDamage";
  1256. enablenpc "territory3#BG2";
  1257. disablenpc "territory2#BG2";
  1258. }
  1259. else if($currentGround03$==$sumBattleMap$[2]){
  1260. donpcevent "territory2#BG3::OnDoDamage";
  1261. enablenpc "territory3#BG3";
  1262. disablenpc "territory2#BG3";
  1263. }
  1264. else if($currentGround03$==$sumBattleMap$[3]){
  1265. donpcevent "territory2#BG4::OnDoDamage";
  1266. enablenpc "territory3#BG4";
  1267. disablenpc "territory2#BG4";
  1268. }
  1269. else if($currentGround03$==$sumBattleMap$[4]){
  1270. donpcevent "territory2#BG5::OnDoDamage";
  1271. enablenpc "territory3#BG5";
  1272. disablenpc "territory2#BG5";
  1273. }
  1274. else if($currentGround03$==$sumBattleMap$[5]){
  1275. donpcevent "territory2#BG6::OnDoDamage";
  1276. enablenpc "territory3#BG6";
  1277. disablenpc "territory2#BG6";
  1278. }
  1279. else if($currentGround03$==$sumBattleMap$[6]){
  1280. donpcevent "territory2#BG7::OnDoDamage";
  1281. enablenpc "territory3#BG7";
  1282. disablenpc "territory2#BG7";
  1283. }
  1284. else if($currentGround03$==$sumBattleMap$[7]){
  1285. donpcevent "territory2#BG8::OnDoDamage";
  1286. enablenpc "territory3#BG8";
  1287. disablenpc "territory2#BG8";
  1288. }
  1289. else if($currentGround03$==$sumBattleMap$[8]){
  1290. donpcevent "territory2#BG9::OnDoDamage";
  1291. enablenpc "territory3#BG9";
  1292. disablenpc "territory2#BG9";
  1293. }
  1294. else if($currentGround03$==$sumBattleMap$[9]){
  1295. donpcevent "territory2#BG10::OnDoDamage";
  1296. enablenpc "territory3#BG10";
  1297. disablenpc "territory2#BG10";
  1298. }
  1299. if($currentPlayerGround03>1)
  1300. addtimer 180000, "waitingRoom3Timer::OnTimerCount4";
  1301. end;
  1302.  
  1303. OnTimerCount4:
  1304. if($isGround03Playing == 0)
  1305. end;
  1306. mapannounce $currentGround03$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1307. if($currentGround03$==$sumBattleMap$[0])
  1308. donpcevent "territory3#BG1::OnDoDamage";
  1309. else if($currentGround03$==$sumBattleMap$[1])
  1310. donpcevent "territory3#BG2::OnDoDamage";
  1311. else if($currentGround03$==$sumBattleMap$[2])
  1312. donpcevent "territory3#BG3::OnDoDamage";
  1313. else if($currentGround03$==$sumBattleMap$[3])
  1314. donpcevent "territory3#BG4::OnDoDamage";
  1315. else if($currentGround03$==$sumBattleMap$[4])
  1316. donpcevent "territory3#BG5::OnDoDamage";
  1317. else if($currentGround03$==$sumBattleMap$[5])
  1318. donpcevent "territory3#BG6::OnDoDamage";
  1319. else if($currentGround03$==$sumBattleMap$[6])
  1320. donpcevent "territory3#BG7::OnDoDamage";
  1321. else if($currentGround03$==$sumBattleMap$[7])
  1322. donpcevent "territory3#BG8::OnDoDamage";
  1323. else if($currentGround03$==$sumBattleMap$[8])
  1324. donpcevent "territory3#BG9::OnDoDamage";
  1325. else if($currentGround03$==$sumBattleMap$[9])
  1326. donpcevent "territory3#BG10::OnDoDamage";
  1327. if($currentPlayerGround03>1)
  1328. addtimer 180000, "waitingRoom3Timer::OnTimerCount4";
  1329. end;
  1330. }
  1331.  
  1332. function script waitingRoom3 {
  1333. if($currentPlayerGround03>=2 && $sumTime3==0){
  1334. $sumTime3 = 60;
  1335. if($sumTime3==60){
  1336. mapannounce $waitingGround03$,"More "+$sumTime3+" Seconds will warp all players to BattleGround 3",bc_map;
  1337. addtimer 5000, "waitingRoom3Timer::OnTimerCount";
  1338. end;
  1339. }
  1340. end;
  1341. }
  1342. end;
  1343. }
  1344.  
  1345. prontera,151,179,4 script BattleGround 4 10200,{
  1346. if($isGround03Playing==0){
  1347. mes "First full room";
  1348. close;
  1349. }
  1350. if($isGround04Playing==0&& $currentPlayerGround04 <100){
  1351. mes "Number of Players waiting "+$currentPlayerGround04+"/100";
  1352. next;
  1353. menu "Enter the battle room 4",L_1,"ยังไม่พร้อม",L_2;
  1354. }else{
  1355. mes "Cannot enter this room at this time.";
  1356. mes "Number of players in BattleGround 4 "+$currentPlayerGround04+"/100";
  1357. close;
  1358. }
  1359. L_1:
  1360. mes "Good luck";
  1361. close2;
  1362. $currentPlayerGround04++;
  1363. clearitem getcharid(0);
  1364. skill "KO_BAKURETSU2",0,SKILL_PERM;
  1365. skill "KO_BAKURETSU3",0,SKILL_PERM;
  1366. skill "KO_BAKURETSU2",1,SKILL_PERM;
  1367. skill "KO_BAKURETSU3",1,SKILL_PERM;
  1368. mapannounce "prontera","Player "+strcharinfo(0)+" Entered BattleGround 4 Number of Players "+$currentPlayerGround04+" / 100",bc_map;
  1369. warp $waitingGround04$,0,0;
  1370. callfunc("waitingRoom4");
  1371. end;
  1372.  
  1373. L_2:
  1374. mes "Well";
  1375. mes "You should prepare yourself first";
  1376. close;
  1377.  
  1378. OnInit:
  1379. waitingroom "BattleGround 4",0;
  1380. end;
  1381. }
  1382.  
  1383. - script waitingRoom4Timer -1,{
  1384. end;
  1385.  
  1386. OnTimerCount:
  1387. if($currentPlayerGround04<=1){
  1388. end;
  1389. }
  1390. if($sumTime4<=0){
  1391. $isGround04Playing = 1;
  1392. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  1393. while(.@sumMapNameToGo$==$currentGround04$||.@sumMapNameToGo$==$currentGround04$||.@sumMapNameToGo$==$currentGround04$||.@sumMapNameToGo$==$currentGround04$||.@sumMapNameToGo$==$currentGround05$)
  1394. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  1395. $currentGround04$ = .@sumMapNameToGo$;
  1396. mapwarp $waitingGround04$,$currentGround04$,0,0,0;
  1397. $sumTime4=0;
  1398. if($currentGround04$==$sumBattleMap$[0])
  1399. enablenpc "territory1#BG1";
  1400. else if($currentGround04$==$sumBattleMap$[1])
  1401. enablenpc "territory1#BG2";
  1402. else if($currentGround04$==$sumBattleMap$[2])
  1403. enablenpc "territory1#BG3";
  1404. else if($currentGround04$==$sumBattleMap$[3])
  1405. enablenpc "territory1#BG4";
  1406. else if($currentGround04$==$sumBattleMap$[4])
  1407. enablenpc "territory1#BG5";
  1408. else if($currentGround04$==$sumBattleMap$[5])
  1409. enablenpc "territory1#BG6";
  1410. else if($currentGround04$==$sumBattleMap$[6])
  1411. enablenpc "territory1#BG7";
  1412. else if($currentGround04$==$sumBattleMap$[7])
  1413. enablenpc "territory1#BG8";
  1414. else if($currentGround04$==$sumBattleMap$[8])
  1415. enablenpc "territory1#BG9";
  1416. else if($currentGround04$==$sumBattleMap$[9])
  1417. enablenpc "territory1#BG10";
  1418. addtimer 180000, "waitingRoom4Timer::OnTimerCount2";
  1419. addtimer 10000, "waitingRoom4Timer::OnTimerCountHint";
  1420. callfunc("SpawnItemGround4");
  1421. end;
  1422. }else{
  1423. $sumTime4 -= 5;
  1424. mapannounce $waitingGround04$,"More "+$sumTime4+" Seconds will warp all players to BattleGround 4",bc_map;
  1425. addtimer 5000, "waitingRoom4Timer::OnTimerCount";
  1426. end;
  1427. }
  1428. end;
  1429.  
  1430. OnTimerCountHint:
  1431. if($isGround04Playing == 0)
  1432. end;
  1433. mapannounce $currentGround04$,"2 more minutes must be within the specified distance on the map on the right on the 150-screen screen.",bc_map;
  1434. callfunc("F_ViewPointRestart",$currentGround04$);
  1435. end;
  1436.  
  1437. OnTimerCount2:
  1438. if($isGround04Playing == 0)
  1439. end;
  1440. mapannounce $currentGround04$,"2 more minutes must be within the distance specified in the map on the right on the 100-channel screen.",bc_map;
  1441. if($currentGround04$==$sumBattleMap$[0]){
  1442. donpcevent "territory1#BG1::OnDoDamage";
  1443. enablenpc "territory2#BG1";
  1444. disablenpc "territory1#BG1";
  1445. }
  1446. else if($currentGround04$==$sumBattleMap$[1]){
  1447. donpcevent "territory1#BG2::OnDoDamage";
  1448. enablenpc "territory2#BG2";
  1449. disablenpc "territory1#BG2";
  1450. }
  1451. else if($currentGround04$==$sumBattleMap$[2]){
  1452. donpcevent "territory1#BG3::OnDoDamage";
  1453. enablenpc "territory2#BG3";
  1454. disablenpc "territory1#BG3";
  1455. }
  1456. else if($currentGround04$==$sumBattleMap$[3]){
  1457. donpcevent "territory1#BG4::OnDoDamage";
  1458. enablenpc "territory2#BG4";
  1459. disablenpc "territory1#BG4";
  1460. }
  1461. else if($currentGround04$==$sumBattleMap$[4]){
  1462. donpcevent "territory1#BG5::OnDoDamage";
  1463. enablenpc "territory2#BG5";
  1464. disablenpc "territory1#BG5";
  1465. }
  1466. else if($currentGround04$==$sumBattleMap$[5]){
  1467. donpcevent "territory1#BG6::OnDoDamage";
  1468. enablenpc "territory2#BG6";
  1469. disablenpc "territory1#BG6";
  1470. }
  1471. else if($currentGround04$==$sumBattleMap$[6]){
  1472. donpcevent "territory1#BG7::OnDoDamage";
  1473. enablenpc "territory2#BG7";
  1474. disablenpc "territory1#BG7";
  1475. }
  1476. else if($currentGround04$==$sumBattleMap$[7]){
  1477. donpcevent "territory1#BG8::OnDoDamage";
  1478. enablenpc "territory2#BG8";
  1479. disablenpc "territory1#BG8";
  1480. }
  1481. else if($currentGround04$==$sumBattleMap$[8]){
  1482. donpcevent "territory1#BG9::OnDoDamage";
  1483. enablenpc "territory2#BG9";
  1484. disablenpc "territory1#BG9";
  1485. }
  1486. else if($currentGround04$==$sumBattleMap$[9]){
  1487. donpcevent "territory1#BG10::OnDoDamage";
  1488. enablenpc "territory2#BG10";
  1489. disablenpc "territory1#BG10";
  1490. }
  1491. if($currentPlayerGround04>1)
  1492. addtimer 180000, "waitingRoom4Timer::OnTimerCount3";
  1493. end;
  1494.  
  1495. OnTimerCount3:
  1496. if($isGround04Playing == 0)
  1497. end;
  1498. mapannounce $currentGround04$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1499. if($currentGround04$==$sumBattleMap$[0]){
  1500. donpcevent "territory2#BG1::OnDoDamage";
  1501. enablenpc "territory3#BG1";
  1502. disablenpc "territory2#BG1";
  1503. }
  1504. else if($currentGround04$==$sumBattleMap$[1]){
  1505. donpcevent "territory2#BG2::OnDoDamage";
  1506. enablenpc "territory3#BG2";
  1507. disablenpc "territory2#BG2";
  1508. }
  1509. else if($currentGround04$==$sumBattleMap$[2]){
  1510. donpcevent "territory2#BG3::OnDoDamage";
  1511. enablenpc "territory3#BG3";
  1512. disablenpc "territory2#BG3";
  1513. }
  1514. else if($currentGround04$==$sumBattleMap$[3]){
  1515. donpcevent "territory2#BG4::OnDoDamage";
  1516. enablenpc "territory3#BG4";
  1517. disablenpc "territory2#BG4";
  1518. }
  1519. else if($currentGround04$==$sumBattleMap$[4]){
  1520. donpcevent "territory2#BG5::OnDoDamage";
  1521. enablenpc "territory3#BG5";
  1522. disablenpc "territory2#BG5";
  1523. }
  1524. else if($currentGround04$==$sumBattleMap$[5]){
  1525. donpcevent "territory2#BG6::OnDoDamage";
  1526. enablenpc "territory3#BG6";
  1527. disablenpc "territory2#BG6";
  1528. }
  1529. else if($currentGround04$==$sumBattleMap$[6]){
  1530. donpcevent "territory2#BG7::OnDoDamage";
  1531. enablenpc "territory3#BG7";
  1532. disablenpc "territory2#BG7";
  1533. }
  1534. else if($currentGround04$==$sumBattleMap$[7]){
  1535. donpcevent "territory2#BG8::OnDoDamage";
  1536. enablenpc "territory3#BG8";
  1537. disablenpc "territory2#BG8";
  1538. }
  1539. else if($currentGround04$==$sumBattleMap$[8]){
  1540. donpcevent "territory2#BG9::OnDoDamage";
  1541. enablenpc "territory3#BG9";
  1542. disablenpc "territory2#BG9";
  1543. }
  1544. else if($currentGround04$==$sumBattleMap$[9]){
  1545. donpcevent "territory2#BG10::OnDoDamage";
  1546. enablenpc "territory3#BG10";
  1547. disablenpc "territory2#BG10";
  1548. }
  1549. if($currentPlayerGround04>1)
  1550. addtimer 180000, "waitingRoom4Timer::OnTimerCount4";
  1551. end;
  1552.  
  1553. OnTimerCount4:
  1554. if($isGround04Playing == 0)
  1555. end;
  1556. mapannounce $currentGround04$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1557. if($currentGround04$==$sumBattleMap$[0])
  1558. donpcevent "territory3#BG1::OnDoDamage";
  1559. else if($currentGround04$==$sumBattleMap$[1])
  1560. donpcevent "territory3#BG2::OnDoDamage";
  1561. else if($currentGround04$==$sumBattleMap$[2])
  1562. donpcevent "territory3#BG3::OnDoDamage";
  1563. else if($currentGround04$==$sumBattleMap$[3])
  1564. donpcevent "territory3#BG4::OnDoDamage";
  1565. else if($currentGround04$==$sumBattleMap$[4])
  1566. donpcevent "territory3#BG5::OnDoDamage";
  1567. else if($currentGround04$==$sumBattleMap$[5])
  1568. donpcevent "territory3#BG6::OnDoDamage";
  1569. else if($currentGround04$==$sumBattleMap$[6])
  1570. donpcevent "territory3#BG7::OnDoDamage";
  1571. else if($currentGround04$==$sumBattleMap$[7])
  1572. donpcevent "territory3#BG8::OnDoDamage";
  1573. else if($currentGround04$==$sumBattleMap$[8])
  1574. donpcevent "territory3#BG9::OnDoDamage";
  1575. else if($currentGround04$==$sumBattleMap$[9])
  1576. donpcevent "territory3#BG10::OnDoDamage";
  1577. if($currentPlayerGround04>1)
  1578. addtimer 180000, "waitingRoom4Timer::OnTimerCount4";
  1579. end;
  1580. }
  1581.  
  1582. function script waitingRoom4 {
  1583. if($currentPlayerGround04>=2 && $sumTime4==0){
  1584. $sumTime4 = 60;
  1585. if($sumTime4==60){
  1586. mapannounce $waitingGround04$,"More "+$sumTime4+" Seconds will warp all players to BattleGround 4",bc_map;
  1587. addtimer 5000, "waitingRoom4Timer::OnTimerCount";
  1588. end;
  1589. }
  1590. end;
  1591. }
  1592. end;
  1593. }
  1594.  
  1595. prontera,161,179,4 script BattleGround 5 10202,{
  1596. if($isGround04Playing==0){
  1597. mes "First full room";
  1598. close;
  1599. }
  1600. if($isGround05Playing==0&& $currentPlayerGround05 <100){
  1601. mes "Number of Players waiting "+$currentPlayerGround05+"/100";
  1602. next;
  1603. menu "Enter the battle room 5",L_1,"ยังไม่พร้อม",L_2;
  1604. }else{
  1605. mes "Cannot enter this room at this time.";
  1606. mes "Number of players in BattleGround 5 "+$currentPlayerGround05+"/100";
  1607. close;
  1608. }
  1609. L_1:
  1610. mes "Good luck";
  1611. close2;
  1612. $currentPlayerGround05++;
  1613. clearitem getcharid(0);
  1614. skill "KO_BAKURETSU2",0,SKILL_PERM;
  1615. skill "KO_BAKURETSU3",0,SKILL_PERM;
  1616. skill "KO_BAKURETSU2",1,SKILL_PERM;
  1617. skill "KO_BAKURETSU3",1,SKILL_PERM;
  1618. mapannounce "prontera","Player "+strcharinfo(0)+" Entered BattleGround 5 Number of Players "+$currentPlayerGround05+" / 100",bc_map;
  1619. warp $waitingGround05$,0,0;
  1620. callfunc("waitingRoom5");
  1621. end;
  1622.  
  1623. L_2:
  1624. mes "Well";
  1625. mes "You should prepare yourself first";
  1626. close;
  1627.  
  1628. OnInit:
  1629. waitingroom "BattleGround 5",0;
  1630. end;
  1631. }
  1632.  
  1633. - script waitingRoom5Timer -1,{
  1634. end;
  1635.  
  1636. OnTimerCount:
  1637. if($currentPlayerGround05<=1){
  1638. end;
  1639. }
  1640. if($sumTime5<=0){
  1641. $isGround05Playing = 1;
  1642. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  1643. while(.@sumMapNameToGo$==$currentGround05$||.@sumMapNameToGo$==$currentGround05$||.@sumMapNameToGo$==$currentGround05$||.@sumMapNameToGo$==$currentGround05$||.@sumMapNameToGo$==$currentGround05$)
  1644. .@sumMapNameToGo$ = $sumBattleMap$[rand(0,10)];
  1645. $currentGround05$ = .@sumMapNameToGo$;
  1646. mapwarp $waitingGround05$,$currentGround05$,0,0,0;
  1647. $sumTime5=0;
  1648. if($currentGround05$==$sumBattleMap$[0])
  1649. enablenpc "territory1#BG1";
  1650. else if($currentGround05$==$sumBattleMap$[1])
  1651. enablenpc "territory1#BG2";
  1652. else if($currentGround05$==$sumBattleMap$[2])
  1653. enablenpc "territory1#BG3";
  1654. else if($currentGround05$==$sumBattleMap$[3])
  1655. enablenpc "territory1#BG4";
  1656. else if($currentGround05$==$sumBattleMap$[4])
  1657. enablenpc "territory1#BG5";
  1658. else if($currentGround05$==$sumBattleMap$[5])
  1659. enablenpc "territory1#BG6";
  1660. else if($currentGround05$==$sumBattleMap$[6])
  1661. enablenpc "territory1#BG7";
  1662. else if($currentGround05$==$sumBattleMap$[7])
  1663. enablenpc "territory1#BG8";
  1664. else if($currentGround05$==$sumBattleMap$[8])
  1665. enablenpc "territory1#BG9";
  1666. else if($currentGround05$==$sumBattleMap$[9])
  1667. enablenpc "territory1#BG10";
  1668. addtimer 180000, "waitingRoom5Timer::OnTimerCount2";
  1669. addtimer 10000, "waitingRoom5Timer::OnTimerCountHint";
  1670. callfunc("SpawnItemGround5");
  1671. end;
  1672. }else{
  1673. $sumTime5 -= 5;
  1674. mapannounce $waitingGround05$,"More "+$sumTime5+" Seconds will warp all players to BattleGround 5",bc_map;
  1675. addtimer 5000, "waitingRoom5Timer::OnTimerCount";
  1676. end;
  1677. }
  1678. end;
  1679.  
  1680. OnTimerCountHint:
  1681. if($isGround05Playing == 0)
  1682. end;
  1683. mapannounce $currentGround05$,"2 more minutes must be within the specified distance on the map on the right on the 150-screen screen.",bc_map;
  1684. callfunc("F_ViewPointRestart",$currentGround05$);
  1685. end;
  1686.  
  1687. OnTimerCount2:
  1688. if($isGround05Playing == 0)
  1689. end;
  1690. mapannounce $currentGround05$,"2 more minutes must be within the distance specified in the map on the right on the 100-channel screen.",bc_map;
  1691. if($currentGround05$==$sumBattleMap$[0]){
  1692. donpcevent "territory1#BG1::OnDoDamage";
  1693. enablenpc "territory2#BG1";
  1694. disablenpc "territory1#BG1";
  1695. }
  1696. else if($currentGround05$==$sumBattleMap$[1]){
  1697. donpcevent "territory1#BG2::OnDoDamage";
  1698. enablenpc "territory2#BG2";
  1699. disablenpc "territory1#BG2";
  1700. }
  1701. else if($currentGround05$==$sumBattleMap$[2]){
  1702. donpcevent "territory1#BG3::OnDoDamage";
  1703. enablenpc "territory2#BG3";
  1704. disablenpc "territory1#BG3";
  1705. }
  1706. else if($currentGround05$==$sumBattleMap$[3]){
  1707. donpcevent "territory1#BG4::OnDoDamage";
  1708. enablenpc "territory2#BG4";
  1709. disablenpc "territory1#BG4";
  1710. }
  1711. else if($currentGround05$==$sumBattleMap$[4]){
  1712. donpcevent "territory1#BG5::OnDoDamage";
  1713. enablenpc "territory2#BG5";
  1714. disablenpc "territory1#BG5";
  1715. }
  1716. else if($currentGround05$==$sumBattleMap$[5]){
  1717. donpcevent "territory1#BG6::OnDoDamage";
  1718. enablenpc "territory2#BG6";
  1719. disablenpc "territory1#BG6";
  1720. }
  1721. else if($currentGround05$==$sumBattleMap$[6]){
  1722. donpcevent "territory1#BG7::OnDoDamage";
  1723. enablenpc "territory2#BG7";
  1724. disablenpc "territory1#BG7";
  1725. }
  1726. else if($currentGround05$==$sumBattleMap$[7]){
  1727. donpcevent "territory1#BG8::OnDoDamage";
  1728. enablenpc "territory2#BG8";
  1729. disablenpc "territory1#BG8";
  1730. }
  1731. else if($currentGround05$==$sumBattleMap$[8]){
  1732. donpcevent "territory1#BG9::OnDoDamage";
  1733. enablenpc "territory2#BG9";
  1734. disablenpc "territory1#BG9";
  1735. }
  1736. else if($currentGround05$==$sumBattleMap$[9]){
  1737. donpcevent "territory1#BG10::OnDoDamage";
  1738. enablenpc "territory2#BG10";
  1739. disablenpc "territory1#BG10";
  1740. }
  1741. if($currentPlayerGround05>1)
  1742. addtimer 180000, "waitingRoom5Timer::OnTimerCount3";
  1743. end;
  1744.  
  1745. OnTimerCount3:
  1746. if($isGround05Playing == 0)
  1747. end;
  1748. mapannounce $currentGround05$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1749. if($currentGround05$==$sumBattleMap$[0]){
  1750. donpcevent "territory2#BG1::OnDoDamage";
  1751. enablenpc "territory3#BG1";
  1752. disablenpc "territory2#BG1";
  1753. }
  1754. else if($currentGround05$==$sumBattleMap$[1]){
  1755. donpcevent "territory2#BG2::OnDoDamage";
  1756. enablenpc "territory3#BG2";
  1757. disablenpc "territory2#BG2";
  1758. }
  1759. else if($currentGround05$==$sumBattleMap$[2]){
  1760. donpcevent "territory2#BG3::OnDoDamage";
  1761. enablenpc "territory3#BG3";
  1762. disablenpc "territory2#BG3";
  1763. }
  1764. else if($currentGround05$==$sumBattleMap$[3]){
  1765. donpcevent "territory2#BG4::OnDoDamage";
  1766. enablenpc "territory3#BG4";
  1767. disablenpc "territory2#BG4";
  1768. }
  1769. else if($currentGround05$==$sumBattleMap$[4]){
  1770. donpcevent "territory2#BG5::OnDoDamage";
  1771. enablenpc "territory3#BG5";
  1772. disablenpc "territory2#BG5";
  1773. }
  1774. else if($currentGround05$==$sumBattleMap$[5]){
  1775. donpcevent "territory2#BG6::OnDoDamage";
  1776. enablenpc "territory3#BG6";
  1777. disablenpc "territory2#BG6";
  1778. }
  1779. else if($currentGround05$==$sumBattleMap$[6]){
  1780. donpcevent "territory2#BG7::OnDoDamage";
  1781. enablenpc "territory3#BG7";
  1782. disablenpc "territory2#BG7";
  1783. }
  1784. else if($currentGround05$==$sumBattleMap$[7]){
  1785. donpcevent "territory2#BG8::OnDoDamage";
  1786. enablenpc "territory3#BG8";
  1787. disablenpc "territory2#BG8";
  1788. }
  1789. else if($currentGround05$==$sumBattleMap$[8]){
  1790. donpcevent "territory2#BG9::OnDoDamage";
  1791. enablenpc "territory3#BG9";
  1792. disablenpc "territory2#BG9";
  1793. }
  1794. else if($currentGround05$==$sumBattleMap$[9]){
  1795. donpcevent "territory2#BG10::OnDoDamage";
  1796. enablenpc "territory3#BG10";
  1797. disablenpc "territory2#BG10";
  1798. }
  1799. if($currentPlayerGround05>1)
  1800. addtimer 180000, "waitingRoom5Timer::OnTimerCount4";
  1801. end;
  1802.  
  1803. OnTimerCount4:
  1804. if($isGround05Playing == 0)
  1805. end;
  1806. mapannounce $currentGround05$,"2 more minutes must be within the distance specified in the map on the right on the 50-channel screen.",bc_map;
  1807. if($currentGround05$==$sumBattleMap$[0])
  1808. donpcevent "territory3#BG1::OnDoDamage";
  1809. else if($currentGround05$==$sumBattleMap$[1])
  1810. donpcevent "territory3#BG2::OnDoDamage";
  1811. else if($currentGround05$==$sumBattleMap$[2])
  1812. donpcevent "territory3#BG3::OnDoDamage";
  1813. else if($currentGround05$==$sumBattleMap$[3])
  1814. donpcevent "territory3#BG4::OnDoDamage";
  1815. else if($currentGround05$==$sumBattleMap$[4])
  1816. donpcevent "territory3#BG5::OnDoDamage";
  1817. else if($currentGround05$==$sumBattleMap$[5])
  1818. donpcevent "territory3#BG6::OnDoDamage";
  1819. else if($currentGround05$==$sumBattleMap$[6])
  1820. donpcevent "territory3#BG7::OnDoDamage";
  1821. else if($currentGround05$==$sumBattleMap$[7])
  1822. donpcevent "territory3#BG8::OnDoDamage";
  1823. else if($currentGround05$==$sumBattleMap$[8])
  1824. donpcevent "territory3#BG9::OnDoDamage";
  1825. else if($currentGround05$==$sumBattleMap$[9])
  1826. donpcevent "territory3#BG10::OnDoDamage";
  1827. if($currentPlayerGround05>1)
  1828. addtimer 180000, "waitingRoom5Timer::OnTimerCount4";
  1829. end;
  1830. }
  1831.  
  1832. function script waitingRoom5 {
  1833. if($currentPlayerGround05>=2 && $sumTime5==0){
  1834. $sumTime5 = 60;
  1835. if($sumTime5==60){
  1836. mapannounce $waitingGround05$,"More "+$sumTime5+" Seconds will warp all players to BattleGround 5",bc_map;
  1837. addtimer 5000, "waitingRoom5Timer::OnTimerCount";
  1838. end;
  1839. }
  1840. end;
  1841. }
  1842. end;
  1843. }
  1844.  
  1845. function script F_PlayerDead {
  1846. atcommand "@dropall";
  1847. if(strcharinfo(3)==$currentGround01$ && $isGround01Playing == 1){
  1848. $currentPlayerGround01--;
  1849. mapannounce strcharinfo(3),"Player "+strcharinfo(0)+" ได้ถูกฆ่า จำนวนผู้เหลือรอด "+$currentPlayerGround01+" / 100",bc_map;
  1850. if($currentPlayerGround01<=1){
  1851. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  1852. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  1853. callfunc("MatchEndGround1");
  1854. }
  1855. }
  1856. else if(strcharinfo(3)==$currentGround02$&& $isGround02Playing == 1){
  1857. $currentPlayerGround02--;
  1858. mapannounce strcharinfo(3),"Player "+strcharinfo(0)+" ได้ถูกฆ่า จำนวนผู้เหลือรอด "+$currentPlayerGround02+" / 100",bc_map;
  1859. if($currentPlayerGround02<=1){
  1860. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  1861. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  1862. callfunc("MatchEndGround2");
  1863. }
  1864. }
  1865. else if(strcharinfo(3)==$currentGround03$&& $isGround03Playing == 1){
  1866. $currentPlayerGround03--;
  1867. mapannounce strcharinfo(3),"Player "+strcharinfo(0)+" ได้ถูกฆ่า จำนวนผู้เหลือรอด "+$currentPlayerGround03+" / 100",bc_map;
  1868. if($currentPlayerGround03<=1){
  1869. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  1870. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  1871. callfunc("MatchEndGround3");
  1872. }
  1873. }else if(strcharinfo(3)==$currentGround04$&& $isGround04Playing == 1){
  1874. $currentPlayerGround04--;
  1875. mapannounce strcharinfo(3),"Player "+strcharinfo(0)+" ได้ถูกฆ่า จำนวนผู้เหลือรอด "+$currentPlayerGround04+" / 100",bc_map;
  1876. if($currentPlayerGround04<=1){
  1877. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  1878. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  1879. callfunc("MatchEndGround4");
  1880. }
  1881. }else if(strcharinfo(3)==$currentGround05$&& $isGround05Playing == 1){
  1882. $currentPlayerGround05--;
  1883. mapannounce strcharinfo(3),"Player "+strcharinfo(0)+" ได้ถูกฆ่า จำนวนผู้เหลือรอด "+$currentPlayerGround05+" / 100",bc_map;
  1884. if($currentPlayerGround05<=1){
  1885. getmapxy(.@map$,.@x,.@y,UNITTYPE_PC);
  1886. makeitem $winnerChickenDinnerReward,1,.@map$,.@x,.@y;
  1887. callfunc("MatchEndGround5");
  1888. }
  1889. }
  1890. end;
  1891. }
  1892.  
  1893. - script MatchEndGround1Timer -1,{
  1894. OnRoom1End:
  1895. cleanmap $currentGround01$;
  1896. mapwarp $currentGround01$,$town$,156,191,0;
  1897. $currentGround01$ = "";
  1898. $isGround01Playing = 0;
  1899. $currentPlayerGround01 = 0;
  1900. end;
  1901. }
  1902.  
  1903. function script MatchEndGround1 {
  1904. mapannounce $currentGround01$,"20 more seconds will warp all players from this map",bc_map;
  1905. addtimer 20000, "MatchEndGround1Timer::OnRoom1End";
  1906. if($currentGround01$==$sumBattleMap$[0]){
  1907. disablenpc "territory1#BG1";
  1908. disablenpc "territory2#BG1";
  1909. disablenpc "territory3#BG1";
  1910. }
  1911. else if($currentGround01$==$sumBattleMap$[1]){
  1912. disablenpc "territory1#BG2";
  1913. disablenpc "territory2#BG2";
  1914. disablenpc "territory3#BG2";
  1915. }
  1916. else if($currentGround01$==$sumBattleMap$[2]){
  1917. disablenpc "territory1#BG3";
  1918. disablenpc "territory2#BG3";
  1919. disablenpc "territory3#BG3";
  1920. }
  1921. else if($currentGround01$==$sumBattleMap$[3]){
  1922. disablenpc "territory1#BG4";
  1923. disablenpc "territory2#BG4";
  1924. disablenpc "territory3#BG4";
  1925. }
  1926. else if($currentGround01$==$sumBattleMap$[4]){
  1927. disablenpc "territory1#BG5";
  1928. disablenpc "territory2#BG5";
  1929. disablenpc "territory3#BG5";
  1930. }
  1931. else if($currentGround01$==$sumBattleMap$[5]){
  1932. disablenpc "territory1#BG6";
  1933. disablenpc "territory2#BG6";
  1934. disablenpc "territory3#BG6";
  1935. }
  1936. else if($currentGround01$==$sumBattleMap$[6]){
  1937. disablenpc "territory1#BG7";
  1938. disablenpc "territory2#BG7";
  1939. disablenpc "territory3#BG7";
  1940. }
  1941. else if($currentGround01$==$sumBattleMap$[7]){
  1942. disablenpc "territory1#BG8";
  1943. disablenpc "territory2#BG8";
  1944. disablenpc "territory3#BG8";
  1945. }
  1946. else if($currentGround01$==$sumBattleMap$[8]){
  1947. disablenpc "territory1#BG9";
  1948. disablenpc "territory2#BG9";
  1949. disablenpc "territory3#BG9";
  1950. }
  1951. else if($currentGround01$==$sumBattleMap$[9]){
  1952. disablenpc "territory1#BG10";
  1953. disablenpc "territory2#BG10";
  1954. disablenpc "territory3#BG10";
  1955. }
  1956. end;
  1957. }
  1958.  
  1959. - script MatchEndGround2Timer -1,{
  1960. OnRoom2End:
  1961. cleanmap $currentGround02$;
  1962. mapwarp $currentGround02$,$town$,156,191,0;
  1963. $currentGround02$ = "";
  1964. $isGround02Playing = 0;
  1965. $currentPlayerGround02 = 0;
  1966. end;
  1967. }
  1968.  
  1969. function script MatchEndGround2 {
  1970. mapannounce $currentGround02$,"20 more seconds will warp all players from this map",bc_map;
  1971. addtimer 20000, "MatchEndGround2Timer::OnRoom2End";
  1972. if($currentGround02$==$sumBattleMap$[0]){
  1973. disablenpc "territory1#BG1";
  1974. disablenpc "territory2#BG1";
  1975. disablenpc "territory3#BG1";
  1976. }
  1977. else if($currentGround02$==$sumBattleMap$[1]){
  1978. disablenpc "territory1#BG2";
  1979. disablenpc "territory2#BG2";
  1980. disablenpc "territory3#BG2";
  1981. }
  1982. else if($currentGround02$==$sumBattleMap$[2]){
  1983. disablenpc "territory1#BG3";
  1984. disablenpc "territory2#BG3";
  1985. disablenpc "territory3#BG3";
  1986. }
  1987. else if($currentGround02$==$sumBattleMap$[3]){
  1988. disablenpc "territory1#BG4";
  1989. disablenpc "territory2#BG4";
  1990. disablenpc "territory3#BG4";
  1991. }
  1992. else if($currentGround02$==$sumBattleMap$[4]){
  1993. disablenpc "territory1#BG5";
  1994. disablenpc "territory2#BG5";
  1995. disablenpc "territory3#BG5";
  1996. }
  1997. else if($currentGround02$==$sumBattleMap$[5]){
  1998. disablenpc "territory1#BG6";
  1999. disablenpc "territory2#BG6";
  2000. disablenpc "territory3#BG6";
  2001. }
  2002. else if($currentGround02$==$sumBattleMap$[6]){
  2003. disablenpc "territory1#BG7";
  2004. disablenpc "territory2#BG7";
  2005. disablenpc "territory3#BG7";
  2006. }
  2007. else if($currentGround02$==$sumBattleMap$[7]){
  2008. disablenpc "territory1#BG8";
  2009. disablenpc "territory2#BG8";
  2010. disablenpc "territory3#BG8";
  2011. }
  2012. else if($currentGround02$==$sumBattleMap$[8]){
  2013. disablenpc "territory1#BG9";
  2014. disablenpc "territory2#BG9";
  2015. disablenpc "territory3#BG9";
  2016. }
  2017. else if($currentGround02$==$sumBattleMap$[9]){
  2018. disablenpc "territory1#BG10";
  2019. disablenpc "territory2#BG10";
  2020. disablenpc "territory3#BG10";
  2021. }
  2022. end;
  2023. }
  2024.  
  2025. - script MatchEndGround3Timer -1,{
  2026. OnRoom3End:
  2027. cleanmap $currentGround03$;
  2028. mapwarp $currentGround03$,$town$,156,191,0;
  2029. $currentGround03$ = "";
  2030. $isGround03Playing = 0;
  2031. $currentPlayerGround03 = 0;
  2032. end;
  2033. }
  2034.  
  2035. function script MatchEndGround3 {
  2036. mapannounce $currentGround03$,"20 more seconds will warp all players from this map",bc_map;
  2037. addtimer 20000, "MatchEndGround3Timer::OnRoom3End";
  2038. if($currentGround03$==$sumBattleMap$[0]){
  2039. disablenpc "territory1#BG1";
  2040. disablenpc "territory2#BG1";
  2041. disablenpc "territory3#BG1";
  2042. }
  2043. else if($currentGround03$==$sumBattleMap$[1]){
  2044. disablenpc "territory1#BG2";
  2045. disablenpc "territory2#BG2";
  2046. disablenpc "territory3#BG2";
  2047. }
  2048. else if($currentGround03$==$sumBattleMap$[2]){
  2049. disablenpc "territory1#BG3";
  2050. disablenpc "territory2#BG3";
  2051. disablenpc "territory3#BG3";
  2052. }
  2053. else if($currentGround03$==$sumBattleMap$[3]){
  2054. disablenpc "territory1#BG4";
  2055. disablenpc "territory2#BG4";
  2056. disablenpc "territory3#BG4";
  2057. }
  2058. else if($currentGround03$==$sumBattleMap$[4]){
  2059. disablenpc "territory1#BG5";
  2060. disablenpc "territory2#BG5";
  2061. disablenpc "territory3#BG5";
  2062. }
  2063. else if($currentGround03$==$sumBattleMap$[5]){
  2064. disablenpc "territory1#BG6";
  2065. disablenpc "territory2#BG6";
  2066. disablenpc "territory3#BG6";
  2067. }
  2068. else if($currentGround03$==$sumBattleMap$[6]){
  2069. disablenpc "territory1#BG7";
  2070. disablenpc "territory2#BG7";
  2071. disablenpc "territory3#BG7";
  2072. }
  2073. else if($currentGround03$==$sumBattleMap$[7]){
  2074. disablenpc "territory1#BG8";
  2075. disablenpc "territory2#BG8";
  2076. disablenpc "territory3#BG8";
  2077. }
  2078. else if($currentGround03$==$sumBattleMap$[8]){
  2079. disablenpc "territory1#BG9";
  2080. disablenpc "territory2#BG9";
  2081. disablenpc "territory3#BG9";
  2082. }
  2083. else if($currentGround03$==$sumBattleMap$[9]){
  2084. disablenpc "territory1#BG10";
  2085. disablenpc "territory2#BG10";
  2086. disablenpc "territory3#BG10";
  2087. }
  2088. end;
  2089. }
  2090.  
  2091. - script MatchEndGround4Timer -1,{
  2092. OnRoom4End:
  2093. cleanmap $currentGround04$;
  2094. mapwarp $currentGround04$,$town$,156,191,0;
  2095. $currentGround04$ = "";
  2096. $isGround04Playing = 0;
  2097. $currentPlayerGround04 = 0;
  2098. end;
  2099. }
  2100.  
  2101. function script MatchEndGround4 {
  2102. mapannounce $currentGround04$,"20 more seconds will warp all players from this map",bc_map;
  2103. addtimer 20000, "MatchEndGround4Timer::OnRoom4End";
  2104. if($currentGround04$==$sumBattleMap$[0]){
  2105. disablenpc "territory1#BG1";
  2106. disablenpc "territory2#BG1";
  2107. disablenpc "territory3#BG1";
  2108. }
  2109. else if($currentGround04$==$sumBattleMap$[1]){
  2110. disablenpc "territory1#BG2";
  2111. disablenpc "territory2#BG2";
  2112. disablenpc "territory3#BG2";
  2113. }
  2114. else if($currentGround04$==$sumBattleMap$[2]){
  2115. disablenpc "territory1#BG3";
  2116. disablenpc "territory2#BG3";
  2117. disablenpc "territory3#BG3";
  2118. }
  2119. else if($currentGround04$==$sumBattleMap$[3]){
  2120. disablenpc "territory1#BG4";
  2121. disablenpc "territory2#BG4";
  2122. disablenpc "territory3#BG4";
  2123. }
  2124. else if($currentGround04$==$sumBattleMap$[4]){
  2125. disablenpc "territory1#BG5";
  2126. disablenpc "territory2#BG5";
  2127. disablenpc "territory3#BG5";
  2128. }
  2129. else if($currentGround04$==$sumBattleMap$[5]){
  2130. disablenpc "territory1#BG6";
  2131. disablenpc "territory2#BG6";
  2132. disablenpc "territory3#BG6";
  2133. }
  2134. else if($currentGround04$==$sumBattleMap$[6]){
  2135. disablenpc "territory1#BG7";
  2136. disablenpc "territory2#BG7";
  2137. disablenpc "territory3#BG7";
  2138. }
  2139. else if($currentGround04$==$sumBattleMap$[7]){
  2140. disablenpc "territory1#BG8";
  2141. disablenpc "territory2#BG8";
  2142. disablenpc "territory3#BG8";
  2143. }
  2144. else if($currentGround04$==$sumBattleMap$[8]){
  2145. disablenpc "territory1#BG9";
  2146. disablenpc "territory2#BG9";
  2147. disablenpc "territory3#BG9";
  2148. }
  2149. else if($currentGround04$==$sumBattleMap$[9]){
  2150. disablenpc "territory1#BG10";
  2151. disablenpc "territory2#BG10";
  2152. disablenpc "territory3#BG10";
  2153. }
  2154. end;
  2155. }
  2156.  
  2157. - script MatchEndGround5Timer -1,{
  2158. OnRoom5End:
  2159. cleanmap $currentGround05$;
  2160. mapwarp $currentGround05$,$town$,156,191,0;
  2161. $currentGround05$ = "";
  2162. $isGround05Playing = 0;
  2163. $currentPlayerGround05 = 0;
  2164. end;
  2165. }
  2166.  
  2167. function script MatchEndGround5 {
  2168. mapannounce $currentGround05$,"20 more seconds will warp all players from this map",bc_map;
  2169. addtimer 20000, "MatchEndGround5Timer::OnRoom5End";
  2170. if($currentGround05$==$sumBattleMap$[0]){
  2171. disablenpc "territory1#BG1";
  2172. disablenpc "territory2#BG1";
  2173. disablenpc "territory3#BG1";
  2174. }
  2175. else if($currentGround05$==$sumBattleMap$[1]){
  2176. disablenpc "territory1#BG2";
  2177. disablenpc "territory2#BG2";
  2178. disablenpc "territory3#BG2";
  2179. }
  2180. else if($currentGround05$==$sumBattleMap$[2]){
  2181. disablenpc "territory1#BG3";
  2182. disablenpc "territory2#BG3";
  2183. disablenpc "territory3#BG3";
  2184. }
  2185. else if($currentGround05$==$sumBattleMap$[3]){
  2186. disablenpc "territory1#BG4";
  2187. disablenpc "territory2#BG4";
  2188. disablenpc "territory3#BG4";
  2189. }
  2190. else if($currentGround05$==$sumBattleMap$[4]){
  2191. disablenpc "territory1#BG5";
  2192. disablenpc "territory2#BG5";
  2193. disablenpc "territory3#BG5";
  2194. }
  2195. else if($currentGround05$==$sumBattleMap$[5]){
  2196. disablenpc "territory1#BG6";
  2197. disablenpc "territory2#BG6";
  2198. disablenpc "territory3#BG6";
  2199. }
  2200. else if($currentGround05$==$sumBattleMap$[6]){
  2201. disablenpc "territory1#BG7";
  2202. disablenpc "territory2#BG7";
  2203. disablenpc "territory3#BG7";
  2204. }
  2205. else if($currentGround05$==$sumBattleMap$[7]){
  2206. disablenpc "territory1#BG8";
  2207. disablenpc "territory2#BG8";
  2208. disablenpc "territory3#BG8";
  2209. }
  2210. else if($currentGround05$==$sumBattleMap$[8]){
  2211. disablenpc "territory1#BG9";
  2212. disablenpc "territory2#BG9";
  2213. disablenpc "territory3#BG9";
  2214. }
  2215. else if($currentGround05$==$sumBattleMap$[9]){
  2216. disablenpc "territory1#BG10";
  2217. disablenpc "territory2#BG10";
  2218. disablenpc "territory3#BG10";
  2219. }
  2220. end;
  2221. }
  2222.  
  2223. function script SpawnItemGround1 {
  2224. freeloop(1);
  2225. .@count = 0;
  2226. //Healing
  2227. while ( .@count < 50 ) {
  2228. do {
  2229. .@x = rand(1,500);
  2230. .@y = rand(1,500);
  2231. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2232. .@sumToDropItem = $sumItem[rand(0,1)];
  2233. makeitem .@sumToDropItem,1,$currentGround01$,.@x,.@y;
  2234. .@count++;
  2235. }
  2236. .@count = 0;
  2237. //Armor
  2238. while ( .@count < 50 ) {
  2239. do {
  2240. .@x = rand(1,500);
  2241. .@y = rand(1,500);
  2242. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2243. .@sumToDropItem = $sumItem[rand(2,7)];
  2244. makeitem .@sumToDropItem,1,$currentGround01$,.@x,.@y;
  2245. .@count++;
  2246. }
  2247. .@count = 0;
  2248. //Ammo
  2249. while ( .@count < 120 ) {
  2250. do {
  2251. .@x = rand(1,500);
  2252. .@y = rand(1,500);
  2253. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2254. .@sumToDropItem = $sumItem[8];
  2255. makeitem .@sumToDropItem,rand(1,10),$currentGround01$,.@x,.@y;
  2256. .@count++;
  2257. }
  2258. .@count = 0;
  2259. //Bomb
  2260. while ( .@count < 30 ) {
  2261. do {
  2262. .@x = rand(1,500);
  2263. .@y = rand(1,500);
  2264. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2265. .@sumToDropItem = $sumItem[9];
  2266. makeitem .@sumToDropItem,rand(1,2),$currentGround01$,.@x,.@y;
  2267. .@count++;
  2268. }
  2269. .@count = 0;
  2270. //Shotgun
  2271. while ( .@count < 50 ) {
  2272. do {
  2273. .@x = rand(1,500);
  2274. .@y = rand(1,500);
  2275. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2276. .@sumToDropItem = $sumItem[12];
  2277. makeitem .@sumToDropItem,1,$currentGround01$,.@x,.@y;
  2278. .@count++;
  2279. }
  2280. .@count = 0;
  2281. //Handgun
  2282. while ( .@count < 50 ) {
  2283. do {
  2284. .@x = rand(1,500);
  2285. .@y = rand(1,500);
  2286. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2287. .@sumToDropItem = $sumItem[10];
  2288. makeitem .@sumToDropItem,1,$currentGround01$,.@x,.@y;
  2289. .@count++;
  2290. }
  2291. .@count = 0;
  2292. //Sniper Rifle
  2293. while ( .@count < 25 ) {
  2294. do {
  2295. .@x = rand(1,500);
  2296. .@y = rand(1,500);
  2297. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2298. .@sumToDropItem = $sumItem[11];
  2299. makeitem .@sumToDropItem,1,$currentGround01$,.@x,.@y;
  2300. .@count++;
  2301. }
  2302. .@count = 0;
  2303. //Grenade Launcher
  2304. while ( .@count < 25 ) {
  2305. do {
  2306. .@x = rand(1,500);
  2307. .@y = rand(1,500);
  2308. } while (!checkcell($currentGround01$,.@x,.@y,cell_chkpass));
  2309. .@sumToDropItem = $sumItem[13];
  2310. makeitem .@sumToDropItem,1,$currentGround01$,.@x,.@y;
  2311. .@count++;
  2312. }
  2313. .@count = 0;
  2314. freeloop(0);
  2315. end;
  2316. }
  2317.  
  2318. function script SpawnItemGround2 {
  2319. freeloop(1);
  2320. .@count = 0;
  2321. //Healing
  2322. while ( .@count < 50 ) {
  2323. do {
  2324. .@x = rand(1,500);
  2325. .@y = rand(1,500);
  2326. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2327. .@sumToDropItem = $sumItem[rand(0,1)];
  2328. makeitem .@sumToDropItem,1,$currentGround02$,.@x,.@y;
  2329. .@count++;
  2330. }
  2331. .@count = 0;
  2332. //Armor
  2333. while ( .@count < 50 ) {
  2334. do {
  2335. .@x = rand(1,500);
  2336. .@y = rand(1,500);
  2337. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2338. .@sumToDropItem = $sumItem[rand(2,7)];
  2339. makeitem .@sumToDropItem,1,$currentGround02$,.@x,.@y;
  2340. .@count++;
  2341. }
  2342. .@count = 0;
  2343. //Ammo
  2344. while ( .@count < 120 ) {
  2345. do {
  2346. .@x = rand(1,500);
  2347. .@y = rand(1,500);
  2348. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2349. .@sumToDropItem = $sumItem[8];
  2350. makeitem .@sumToDropItem,rand(1,10),$currentGround02$,.@x,.@y;
  2351. .@count++;
  2352. }
  2353. .@count = 0;
  2354. //Bomb
  2355. while ( .@count < 30 ) {
  2356. do {
  2357. .@x = rand(1,500);
  2358. .@y = rand(1,500);
  2359. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2360. .@sumToDropItem = $sumItem[9];
  2361. makeitem .@sumToDropItem,rand(1,2),$currentGround02$,.@x,.@y;
  2362. .@count++;
  2363. }
  2364. .@count = 0;
  2365. //Shotgun
  2366. while ( .@count < 50 ) {
  2367. do {
  2368. .@x = rand(1,500);
  2369. .@y = rand(1,500);
  2370. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2371. .@sumToDropItem = $sumItem[12];
  2372. makeitem .@sumToDropItem,1,$currentGround02$,.@x,.@y;
  2373. .@count++;
  2374. }
  2375. .@count = 0;
  2376. //Handgun
  2377. while ( .@count < 50 ) {
  2378. do {
  2379. .@x = rand(1,500);
  2380. .@y = rand(1,500);
  2381. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2382. .@sumToDropItem = $sumItem[10];
  2383. makeitem .@sumToDropItem,1,$currentGround02$,.@x,.@y;
  2384. .@count++;
  2385. }
  2386. .@count = 0;
  2387. //Sniper Rifle
  2388. while ( .@count < 25 ) {
  2389. do {
  2390. .@x = rand(1,500);
  2391. .@y = rand(1,500);
  2392. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2393. .@sumToDropItem = $sumItem[11];
  2394. makeitem .@sumToDropItem,1,$currentGround02$,.@x,.@y;
  2395. .@count++;
  2396. }
  2397. .@count = 0;
  2398. //Grenade Launcher
  2399. while ( .@count < 25 ) {
  2400. do {
  2401. .@x = rand(1,500);
  2402. .@y = rand(1,500);
  2403. } while (!checkcell($currentGround02$,.@x,.@y,cell_chkpass));
  2404. .@sumToDropItem = $sumItem[13];
  2405. makeitem .@sumToDropItem,1,$currentGround02$,.@x,.@y;
  2406. .@count++;
  2407. }
  2408. .@count = 0;
  2409. freeloop(0);
  2410. end;
  2411. }
  2412.  
  2413. function script SpawnItemGround3 {
  2414. freeloop(1);
  2415. .@count = 0;
  2416. //Healing
  2417. while ( .@count < 50 ) {
  2418. do {
  2419. .@x = rand(1,500);
  2420. .@y = rand(1,500);
  2421. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2422. .@sumToDropItem = $sumItem[rand(0,1)];
  2423. makeitem .@sumToDropItem,1,$currentGround03$,.@x,.@y;
  2424. .@count++;
  2425. }
  2426. .@count = 0;
  2427. //Armor
  2428. while ( .@count < 50 ) {
  2429. do {
  2430. .@x = rand(1,500);
  2431. .@y = rand(1,500);
  2432. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2433. .@sumToDropItem = $sumItem[rand(2,7)];
  2434. makeitem .@sumToDropItem,1,$currentGround03$,.@x,.@y;
  2435. .@count++;
  2436. }
  2437. .@count = 0;
  2438. //Ammo
  2439. while ( .@count < 120 ) {
  2440. do {
  2441. .@x = rand(1,500);
  2442. .@y = rand(1,500);
  2443. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2444. .@sumToDropItem = $sumItem[8];
  2445. makeitem .@sumToDropItem,rand(1,10),$currentGround03$,.@x,.@y;
  2446. .@count++;
  2447. }
  2448. .@count = 0;
  2449. //Bomb
  2450. while ( .@count < 30 ) {
  2451. do {
  2452. .@x = rand(1,500);
  2453. .@y = rand(1,500);
  2454. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2455. .@sumToDropItem = $sumItem[9];
  2456. makeitem .@sumToDropItem,rand(1,2),$currentGround03$,.@x,.@y;
  2457. .@count++;
  2458. }
  2459. .@count = 0;
  2460. //Shotgun
  2461. while ( .@count < 50 ) {
  2462. do {
  2463. .@x = rand(1,500);
  2464. .@y = rand(1,500);
  2465. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2466. .@sumToDropItem = $sumItem[12];
  2467. makeitem .@sumToDropItem,1,$currentGround03$,.@x,.@y;
  2468. .@count++;
  2469. }
  2470. .@count = 0;
  2471. //Handgun
  2472. while ( .@count < 50 ) {
  2473. do {
  2474. .@x = rand(1,500);
  2475. .@y = rand(1,500);
  2476. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2477. .@sumToDropItem = $sumItem[10];
  2478. makeitem .@sumToDropItem,1,$currentGround03$,.@x,.@y;
  2479. .@count++;
  2480. }
  2481. .@count = 0;
  2482. //Sniper Rifle
  2483. while ( .@count < 25 ) {
  2484. do {
  2485. .@x = rand(1,500);
  2486. .@y = rand(1,500);
  2487. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2488. .@sumToDropItem = $sumItem[11];
  2489. makeitem .@sumToDropItem,1,$currentGround03$,.@x,.@y;
  2490. .@count++;
  2491. }
  2492. .@count = 0;
  2493. //Grenade Launcher
  2494. while ( .@count < 25 ) {
  2495. do {
  2496. .@x = rand(1,500);
  2497. .@y = rand(1,500);
  2498. } while (!checkcell($currentGround03$,.@x,.@y,cell_chkpass));
  2499. .@sumToDropItem = $sumItem[13];
  2500. makeitem .@sumToDropItem,1,$currentGround03$,.@x,.@y;
  2501. .@count++;
  2502. }
  2503. .@count = 0;
  2504. freeloop(0);
  2505. end;
  2506. }
  2507.  
  2508. function script SpawnItemGround4 {
  2509. freeloop(1);
  2510. .@count = 0;
  2511. //Healing
  2512. while ( .@count < 50 ) {
  2513. do {
  2514. .@x = rand(1,500);
  2515. .@y = rand(1,500);
  2516. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2517. .@sumToDropItem = $sumItem[rand(0,1)];
  2518. makeitem .@sumToDropItem,1,$currentGround04$,.@x,.@y;
  2519. .@count++;
  2520. }
  2521. .@count = 0;
  2522. //Armor
  2523. while ( .@count < 50 ) {
  2524. do {
  2525. .@x = rand(1,500);
  2526. .@y = rand(1,500);
  2527. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2528. .@sumToDropItem = $sumItem[rand(2,7)];
  2529. makeitem .@sumToDropItem,1,$currentGround04$,.@x,.@y;
  2530. .@count++;
  2531. }
  2532. .@count = 0;
  2533. //Ammo
  2534. while ( .@count < 120 ) {
  2535. do {
  2536. .@x = rand(1,500);
  2537. .@y = rand(1,500);
  2538. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2539. .@sumToDropItem = $sumItem[8];
  2540. makeitem .@sumToDropItem,rand(1,10),$currentGround04$,.@x,.@y;
  2541. .@count++;
  2542. }
  2543. .@count = 0;
  2544. //Bomb
  2545. while ( .@count < 30 ) {
  2546. do {
  2547. .@x = rand(1,500);
  2548. .@y = rand(1,500);
  2549. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2550. .@sumToDropItem = $sumItem[9];
  2551. makeitem .@sumToDropItem,rand(1,2),$currentGround04$,.@x,.@y;
  2552. .@count++;
  2553. }
  2554. .@count = 0;
  2555. //Shotgun
  2556. while ( .@count < 50 ) {
  2557. do {
  2558. .@x = rand(1,500);
  2559. .@y = rand(1,500);
  2560. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2561. .@sumToDropItem = $sumItem[12];
  2562. makeitem .@sumToDropItem,1,$currentGround04$,.@x,.@y;
  2563. .@count++;
  2564. }
  2565. .@count = 0;
  2566. //Handgun
  2567. while ( .@count < 50 ) {
  2568. do {
  2569. .@x = rand(1,500);
  2570. .@y = rand(1,500);
  2571. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2572. .@sumToDropItem = $sumItem[10];
  2573. makeitem .@sumToDropItem,1,$currentGround04$,.@x,.@y;
  2574. .@count++;
  2575. }
  2576. .@count = 0;
  2577. //Sniper Rifle
  2578. while ( .@count < 25 ) {
  2579. do {
  2580. .@x = rand(1,500);
  2581. .@y = rand(1,500);
  2582. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2583. .@sumToDropItem = $sumItem[11];
  2584. makeitem .@sumToDropItem,1,$currentGround04$,.@x,.@y;
  2585. .@count++;
  2586. }
  2587. .@count = 0;
  2588. //Grenade Launcher
  2589. while ( .@count < 25 ) {
  2590. do {
  2591. .@x = rand(1,500);
  2592. .@y = rand(1,500);
  2593. } while (!checkcell($currentGround04$,.@x,.@y,cell_chkpass));
  2594. .@sumToDropItem = $sumItem[13];
  2595. makeitem .@sumToDropItem,1,$currentGround04$,.@x,.@y;
  2596. .@count++;
  2597. }
  2598. .@count = 0;
  2599. freeloop(0);
  2600. end;
  2601. }
  2602.  
  2603. function script SpawnItemGround5 {
  2604. freeloop(1);
  2605. .@count = 0;
  2606. //Healing
  2607. while ( .@count < 50 ) {
  2608. do {
  2609. .@x = rand(1,500);
  2610. .@y = rand(1,500);
  2611. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2612. .@sumToDropItem = $sumItem[rand(0,1)];
  2613. makeitem .@sumToDropItem,1,$currentGround05$,.@x,.@y;
  2614. .@count++;
  2615. }
  2616. .@count = 0;
  2617. //Armor
  2618. while ( .@count < 50 ) {
  2619. do {
  2620. .@x = rand(1,500);
  2621. .@y = rand(1,500);
  2622. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2623. .@sumToDropItem = $sumItem[rand(2,7)];
  2624. makeitem .@sumToDropItem,1,$currentGround05$,.@x,.@y;
  2625. .@count++;
  2626. }
  2627. .@count = 0;
  2628. //Ammo
  2629. while ( .@count < 120 ) {
  2630. do {
  2631. .@x = rand(1,500);
  2632. .@y = rand(1,500);
  2633. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2634. .@sumToDropItem = $sumItem[8];
  2635. makeitem .@sumToDropItem,rand(1,10),$currentGround05$,.@x,.@y;
  2636. .@count++;
  2637. }
  2638. .@count = 0;
  2639. //Bomb
  2640. while ( .@count < 30 ) {
  2641. do {
  2642. .@x = rand(1,500);
  2643. .@y = rand(1,500);
  2644. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2645. .@sumToDropItem = $sumItem[9];
  2646. makeitem .@sumToDropItem,rand(1,2),$currentGround05$,.@x,.@y;
  2647. .@count++;
  2648. }
  2649. .@count = 0;
  2650. //Shotgun
  2651. while ( .@count < 50 ) {
  2652. do {
  2653. .@x = rand(1,500);
  2654. .@y = rand(1,500);
  2655. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2656. .@sumToDropItem = $sumItem[12];
  2657. makeitem .@sumToDropItem,1,$currentGround05$,.@x,.@y;
  2658. .@count++;
  2659. }
  2660. .@count = 0;
  2661. //Handgun
  2662. while ( .@count < 50 ) {
  2663. do {
  2664. .@x = rand(1,500);
  2665. .@y = rand(1,500);
  2666. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2667. .@sumToDropItem = $sumItem[10];
  2668. makeitem .@sumToDropItem,1,$currentGround05$,.@x,.@y;
  2669. .@count++;
  2670. }
  2671. .@count = 0;
  2672. //Sniper Rifle
  2673. while ( .@count < 25 ) {
  2674. do {
  2675. .@x = rand(1,500);
  2676. .@y = rand(1,500);
  2677. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2678. .@sumToDropItem = $sumItem[11];
  2679. makeitem .@sumToDropItem,1,$currentGround05$,.@x,.@y;
  2680. .@count++;
  2681. }
  2682. .@count = 0;
  2683. //Grenade Launcher
  2684. while ( .@count < 25 ) {
  2685. do {
  2686. .@x = rand(1,500);
  2687. .@y = rand(1,500);
  2688. } while (!checkcell($currentGround05$,.@x,.@y,cell_chkpass));
  2689. .@sumToDropItem = $sumItem[13];
  2690. makeitem .@sumToDropItem,1,$currentGround05$,.@x,.@y;
  2691. .@count++;
  2692. }
  2693. .@count = 0;
  2694. freeloop(0);
  2695. end;
  2696. }
  2697.  
  2698. ein_fild04,185,207,0 script territory1#BG1 2248,150,150,{
  2699. end;
  2700.  
  2701. OnTouch:
  2702. dispbottom("คุณเข้า Safe Zone แล้ว");
  2703. end;
  2704.  
  2705. OnDoDamage:
  2706. addrid(1);
  2707. getmapxy(.@null$, .@px, .@py, 0);
  2708. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2709. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  2710. heal -10,-10;
  2711. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2712.  
  2713. end;
  2714. }
  2715.  
  2716. ein_fild04,185,207,0 script territory2#BG1 2252,100,100,{
  2717. end;
  2718.  
  2719. OnTouch:
  2720. dispbottom("คุณเข้า Safe Zone แล้ว");
  2721. end;
  2722.  
  2723. OnDoDamage:
  2724. addrid(1);
  2725. getmapxy(.@null$, .@px, .@py, 0);
  2726. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2727. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  2728. heal -25,-25;
  2729. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2730.  
  2731. end;
  2732. }
  2733.  
  2734. ein_fild04,185,207,0 script territory3#BG1 2251,50,50,{
  2735. end;
  2736.  
  2737. OnTouch:
  2738. dispbottom("คุณเข้า Safe Zone แล้ว");
  2739. end;
  2740.  
  2741. OnDoDamage:
  2742. addrid(1);
  2743. getmapxy(.@null$, .@px, .@py, 0);
  2744. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2745. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  2746. heal -50,-50;
  2747. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2748.  
  2749. end;
  2750. }
  2751.  
  2752. ein_fild04,1,1,0 script #BG1 139,500,500,{
  2753. end;
  2754.  
  2755. OnViewPointRestart:
  2756. addrid(1);
  2757. viewpoint 1,185,207,1,0xFF0000;
  2758. end;
  2759. }
  2760.  
  2761. harboro1,194,162,0 script territory1#BG2 2248,150,150,{
  2762. end;
  2763.  
  2764. OnTouch:
  2765. dispbottom("คุณเข้า Safe Zone แล้ว");
  2766. end;
  2767.  
  2768. OnDoDamage:
  2769. addrid(1);
  2770. getmapxy(.@null$, .@px, .@py, 0);
  2771. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2772. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  2773. heal -10,-10;
  2774. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2775.  
  2776. end;
  2777. }
  2778.  
  2779. harboro1,194,162,0 script territory2#BG2 2252,100,100,{
  2780. end;
  2781.  
  2782. OnTouch:
  2783. dispbottom("คุณเข้า Safe Zone แล้ว");
  2784. end;
  2785.  
  2786. OnDoDamage:
  2787. addrid(1);
  2788. getmapxy(.@null$, .@px, .@py, 0);
  2789. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2790. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  2791. heal -25,-25;
  2792. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2793.  
  2794. end;
  2795. }
  2796.  
  2797. harboro1,194,162,0 script territory3#BG2 2251,50,50,{
  2798. end;
  2799.  
  2800. OnTouch:
  2801. dispbottom("คุณเข้า Safe Zone แล้ว");
  2802. end;
  2803.  
  2804. OnDoDamage:
  2805. addrid(1);
  2806. getmapxy(.@null$, .@px, .@py, 0);
  2807. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2808. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  2809. heal -50,-50;
  2810. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2811.  
  2812. end;
  2813. }
  2814.  
  2815. harboro1,1,1,0 script #BG2 139,500,500,{
  2816. end;
  2817.  
  2818. OnViewPointRestart:
  2819. addrid(1);
  2820. viewpoint 1,194,162,1,0xFF0000;
  2821. end;
  2822. }
  2823.  
  2824. verus03,122,170,0 script territory1#BG3 2248,150,150,{
  2825. end;
  2826.  
  2827. OnTouch:
  2828. dispbottom("คุณเข้า Safe Zone แล้ว");
  2829. end;
  2830.  
  2831. OnDoDamage:
  2832. addrid(1);
  2833. getmapxy(.@null$, .@px, .@py, 0);
  2834. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2835. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  2836. heal -10,-10;
  2837. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2838.  
  2839. end;
  2840. }
  2841.  
  2842. verus03,122,170,0 script territory2#BG3 2252,100,100,{
  2843. end;
  2844.  
  2845. OnTouch:
  2846. dispbottom("คุณเข้า Safe Zone แล้ว");
  2847. end;
  2848.  
  2849. OnDoDamage:
  2850. addrid(1);
  2851. getmapxy(.@null$, .@px, .@py, 0);
  2852. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2853. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  2854. heal -25,-25;
  2855. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2856.  
  2857. end;
  2858. }
  2859.  
  2860. verus03,122,170,0 script territory3#BG3 2251,50,50,{
  2861. end;
  2862.  
  2863. OnTouch:
  2864. dispbottom("คุณเข้า Safe Zone แล้ว");
  2865. end;
  2866.  
  2867. OnDoDamage:
  2868. addrid(1);
  2869. getmapxy(.@null$, .@px, .@py, 0);
  2870. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2871. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  2872. heal -50,-50;
  2873. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2874.  
  2875. end;
  2876. }
  2877.  
  2878. verus03,1,1,0 script #BG3 139,500,500,{
  2879. end;
  2880.  
  2881. OnViewPointRestart:
  2882. addrid(1);
  2883. viewpoint 1,122,170,1,0xFF0000;
  2884. end;
  2885. }
  2886.  
  2887. ma_fild01,205,187,0 script territory1#BG4 2248,150,150,{
  2888. end;
  2889.  
  2890. OnTouch:
  2891. dispbottom("คุณเข้า Safe Zone แล้ว");
  2892. end;
  2893.  
  2894. OnDoDamage:
  2895. addrid(1);
  2896. getmapxy(.@null$, .@px, .@py, 0);
  2897. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2898. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  2899. heal -10,-10;
  2900. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2901.  
  2902. end;
  2903. }
  2904.  
  2905. ma_fild01,205,187,0 script territory2#BG4 2252,100,100,{
  2906. end;
  2907.  
  2908. OnTouch:
  2909. dispbottom("คุณเข้า Safe Zone แล้ว");
  2910. end;
  2911.  
  2912. OnDoDamage:
  2913. addrid(1);
  2914. getmapxy(.@null$, .@px, .@py, 0);
  2915. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2916. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  2917. heal -25,-25;
  2918. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2919.  
  2920. end;
  2921. }
  2922.  
  2923. ma_fild01,205,187,0 script territory3#BG4 2251,50,50,{
  2924. end;
  2925.  
  2926. OnTouch:
  2927. dispbottom("คุณเข้า Safe Zone แล้ว");
  2928. end;
  2929.  
  2930. OnDoDamage:
  2931. addrid(1);
  2932. getmapxy(.@null$, .@px, .@py, 0);
  2933. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2934. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  2935. heal -50,-50;
  2936. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2937.  
  2938. end;
  2939. }
  2940.  
  2941. ma_fild01,1,1,0 script #BG4 139,500,500,{
  2942. end;
  2943.  
  2944. OnViewPointRestart:
  2945. addrid(1);
  2946. viewpoint 1,205,187,1,0xFF0000;
  2947. end;
  2948. }
  2949.  
  2950. dew_fild01,197,207,0 script territory1#BG5 2248,150,150,{
  2951. end;
  2952.  
  2953. OnTouch:
  2954. dispbottom("คุณเข้า Safe Zone แล้ว");
  2955. end;
  2956.  
  2957. OnDoDamage:
  2958. addrid(1);
  2959. getmapxy(.@null$, .@px, .@py, 0);
  2960. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2961. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  2962. heal -10,-10;
  2963. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2964.  
  2965. end;
  2966. }
  2967.  
  2968. dew_fild01,197,207,0 script territory2#BG5 2252,100,100,{
  2969. end;
  2970.  
  2971. OnTouch:
  2972. dispbottom("คุณเข้า Safe Zone แล้ว");
  2973. end;
  2974.  
  2975. OnDoDamage:
  2976. addrid(1);
  2977. getmapxy(.@null$, .@px, .@py, 0);
  2978. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2979. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  2980. heal -25,-25;
  2981. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  2982.  
  2983. end;
  2984. }
  2985.  
  2986. dew_fild01,197,207,0 script territory3#BG5 2251,50,50,{
  2987. end;
  2988.  
  2989. OnTouch:
  2990. dispbottom("คุณเข้า Safe Zone แล้ว");
  2991. end;
  2992.  
  2993. OnDoDamage:
  2994. addrid(1);
  2995. getmapxy(.@null$, .@px, .@py, 0);
  2996. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  2997. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  2998. heal -50,-50;
  2999. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3000.  
  3001. end;
  3002. }
  3003.  
  3004. dew_fild01,1,1,0 script #BG5 139,500,500,{
  3005. end;
  3006.  
  3007. OnViewPointRestart:
  3008. addrid(1);
  3009. viewpoint 1,197,207,1,0xFF0000;
  3010. end;
  3011. }
  3012.  
  3013. gef_fild00,156,231,0 script territory1#BG6 2248,150,150,{
  3014. end;
  3015.  
  3016. OnTouch:
  3017. dispbottom("คุณเข้า Safe Zone แล้ว");
  3018. end;
  3019.  
  3020. OnDoDamage:
  3021. addrid(1);
  3022. getmapxy(.@null$, .@px, .@py, 0);
  3023. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3024. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  3025. heal -10,-10;
  3026. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3027.  
  3028. end;
  3029. }
  3030.  
  3031. gef_fild00,156,231,0 script territory2#BG6 2252,100,100,{
  3032. end;
  3033.  
  3034. OnTouch:
  3035. dispbottom("คุณเข้า Safe Zone แล้ว");
  3036. end;
  3037.  
  3038. OnDoDamage:
  3039. addrid(1);
  3040. getmapxy(.@null$, .@px, .@py, 0);
  3041. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3042. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  3043. heal -25,-25;
  3044. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3045.  
  3046. end;
  3047. }
  3048.  
  3049. gef_fild00,156,231,0 script territory3#BG6 2251,50,50,{
  3050. end;
  3051.  
  3052. OnTouch:
  3053. dispbottom("คุณเข้า Safe Zone แล้ว");
  3054. end;
  3055.  
  3056. OnDoDamage:
  3057. addrid(1);
  3058. getmapxy(.@null$, .@px, .@py, 0);
  3059. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3060. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  3061. heal -50,-50;
  3062. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3063.  
  3064. end;
  3065. }
  3066.  
  3067. gef_fild00,1,1,0 script #BG6 139,500,500,{
  3068. end;
  3069.  
  3070. OnViewPointRestart:
  3071. addrid(1);
  3072. viewpoint 1,156,231,1,0xFF0000;
  3073. end;
  3074. }
  3075.  
  3076. pay_fild01,187,201,0 script territory1#BG7 2248,150,150,{
  3077. end;
  3078.  
  3079. OnTouch:
  3080. dispbottom("คุณเข้า Safe Zone แล้ว");
  3081. end;
  3082.  
  3083. OnDoDamage:
  3084. addrid(1);
  3085. getmapxy(.@null$, .@px, .@py, 0);
  3086. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3087. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  3088. heal -10,-10;
  3089. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3090.  
  3091. end;
  3092. }
  3093.  
  3094. pay_fild01,187,201,0 script territory2#BG7 2252,100,100,{
  3095. end;
  3096.  
  3097. OnTouch:
  3098. dispbottom("คุณเข้า Safe Zone แล้ว");
  3099. end;
  3100.  
  3101. OnDoDamage:
  3102. addrid(1);
  3103. getmapxy(.@null$, .@px, .@py, 0);
  3104. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3105. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  3106. heal -25,-25;
  3107. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3108.  
  3109. end;
  3110. }
  3111.  
  3112. pay_fild01,187,201,0 script territory3#BG7 2251,50,50,{
  3113. end;
  3114.  
  3115. OnTouch:
  3116. dispbottom("คุณเข้า Safe Zone แล้ว");
  3117. end;
  3118.  
  3119. OnDoDamage:
  3120. addrid(1);
  3121. getmapxy(.@null$, .@px, .@py, 0);
  3122. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3123. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  3124. heal -50,-50;
  3125. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3126.  
  3127. end;
  3128. }
  3129.  
  3130. pay_fild01,1,1,0 script #BG7 139,500,500,{
  3131. end;
  3132.  
  3133. OnViewPointRestart:
  3134. addrid(1);
  3135. viewpoint 1,187,201,1,0xFF0000;
  3136. end;
  3137. }
  3138.  
  3139. prt_fild02,194,206,0 script territory1#BG8 2248,150,150,{
  3140. end;
  3141.  
  3142. OnTouch:
  3143. dispbottom("คุณเข้า Safe Zone แล้ว");
  3144. end;
  3145.  
  3146. OnDoDamage:
  3147. addrid(1);
  3148. getmapxy(.@null$, .@px, .@py, 0);
  3149. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3150. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  3151. heal -10,-10;
  3152. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3153.  
  3154. end;
  3155. }
  3156.  
  3157. prt_fild02,194,206,0 script territory2#BG8 2252,100,100,{
  3158. end;
  3159.  
  3160. OnTouch:
  3161. dispbottom("คุณเข้า Safe Zone แล้ว");
  3162. end;
  3163.  
  3164. OnDoDamage:
  3165. addrid(1);
  3166. getmapxy(.@null$, .@px, .@py, 0);
  3167. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3168. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  3169. heal -25,-25;
  3170. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3171.  
  3172. end;
  3173. }
  3174.  
  3175. prt_fild02,194,206,0 script territory3#BG8 2251,50,50,{
  3176. end;
  3177.  
  3178. OnTouch:
  3179. dispbottom("คุณเข้า Safe Zone แล้ว");
  3180. end;
  3181.  
  3182. OnDoDamage:
  3183. addrid(1);
  3184. getmapxy(.@null$, .@px, .@py, 0);
  3185. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3186. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  3187. heal -50,-50;
  3188. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3189.  
  3190. end;
  3191. }
  3192.  
  3193. prt_fild02,1,1,0 script #BG8 139,500,500,{
  3194. end;
  3195.  
  3196. OnViewPointRestart:
  3197. addrid(1);
  3198. viewpoint 1,194,206,1,0xFF0000;
  3199. end;
  3200. }
  3201.  
  3202. yuno_fild02,193,216,0 script territory1#BG9 2248,150,150,{
  3203. end;
  3204.  
  3205. OnTouch:
  3206. dispbottom("คุณเข้า Safe Zone แล้ว");
  3207. end;
  3208.  
  3209. OnDoDamage:
  3210. addrid(1);
  3211. getmapxy(.@null$, .@px, .@py, 0);
  3212. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3213. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  3214. heal -10,-10;
  3215. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3216.  
  3217. end;
  3218. }
  3219.  
  3220. yuno_fild02,193,216,0 script territory2#BG9 2252,100,100,{
  3221. end;
  3222.  
  3223. OnTouch:
  3224. dispbottom("คุณเข้า Safe Zone แล้ว");
  3225. end;
  3226.  
  3227. OnDoDamage:
  3228. addrid(1);
  3229. getmapxy(.@null$, .@px, .@py, 0);
  3230. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3231. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  3232. heal -25,-25;
  3233. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3234.  
  3235. end;
  3236. }
  3237.  
  3238. yuno_fild02,193,216,0 script territory3#BG9 2251,50,50,{
  3239. end;
  3240.  
  3241. OnTouch:
  3242. dispbottom("คุณเข้า Safe Zone แล้ว");
  3243. end;
  3244.  
  3245. OnDoDamage:
  3246. addrid(1);
  3247. getmapxy(.@null$, .@px, .@py, 0);
  3248. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3249. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  3250. heal -50,-50;
  3251. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3252.  
  3253. end;
  3254. }
  3255.  
  3256. yuno_fild02,1,1,0 script #BG9 139,500,500,{
  3257. end;
  3258.  
  3259. OnViewPointRestart:
  3260. addrid(1);
  3261. viewpoint 1,193,216,1,0xFF0000;
  3262. end;
  3263. }
  3264.  
  3265. ayo_fild02,196,149,0 script territory1#BG10 2248,150,150,{
  3266. end;
  3267.  
  3268. OnTouch:
  3269. dispbottom("คุณเข้า Safe Zone แล้ว");
  3270. end;
  3271.  
  3272. OnDoDamage:
  3273. addrid(1);
  3274. getmapxy(.@null$, .@px, .@py, 0);
  3275. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3276. if(distance(.@px, .@py, .@nx, .@ny) < 150)
  3277. heal -10,-10;
  3278. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3279.  
  3280. end;
  3281. }
  3282.  
  3283. ayo_fild02,196,149,0 script territory2#BG10 2252,100,100,{
  3284. end;
  3285.  
  3286. OnTouch:
  3287. dispbottom("คุณเข้า Safe Zone แล้ว");
  3288. end;
  3289.  
  3290. OnDoDamage:
  3291. addrid(1);
  3292. getmapxy(.@null$, .@px, .@py, 0);
  3293. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3294. if(distance(.@px, .@py, .@nx, .@ny) > 100)
  3295. heal -25,-25;
  3296. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3297.  
  3298. end;
  3299. }
  3300.  
  3301. ayo_fild02,196,149,0 script territory3#BG10 2251,50,50,{
  3302. end;
  3303.  
  3304. OnTouch:
  3305. dispbottom("คุณเข้า Safe Zone แล้ว");
  3306. end;
  3307.  
  3308. OnDoDamage:
  3309. addrid(1);
  3310. getmapxy(.@null$, .@px, .@py, 0);
  3311. getmapxy(.@null$, .@nx, .@ny, 1, strnpcinfo(3));
  3312. if(distance(.@px, .@py, .@nx, .@ny) > 50)
  3313. heal -50,-50;
  3314. addtimer 10000, ""+strnpcinfo(0)+"::OnDoDamage";
  3315.  
  3316. end;
  3317. }
  3318.  
  3319. ayo_fild02,1,1,0 script #BG10 139,500,500,{
  3320. end;
  3321.  
  3322. OnViewPointRestart:
  3323. addrid(1);
  3324. viewpoint 1,196,149,1,0xFF0000;
  3325. end;
  3326. }
  3327.  
  3328. function script F_ViewPointRestart {
  3329. if(getarg(0) == $battleGround01$){
  3330. donpcevent " #BG1::OnViewPointRestart";
  3331. }
  3332. else if(getarg(0) == $battleGround02$){
  3333. donpcevent " #BG2::OnViewPointRestart";
  3334. }
  3335. else if(getarg(0) == $battleGround03$){
  3336. donpcevent " #BG3::OnViewPointRestart";
  3337. }
  3338. else if(getarg(0) == $battleGround04$){
  3339. donpcevent " #BG4::OnViewPointRestart";
  3340. }
  3341. else if(getarg(0) == $battleGround05$){
  3342. donpcevent " #BG5::OnViewPointRestart";
  3343. }
  3344. else if(getarg(0) == $battleGround06$){
  3345. donpcevent " #BG6::OnViewPointRestart";
  3346. }
  3347. else if(getarg(0) == $battleGround07$){
  3348. donpcevent " #BG7::OnViewPointRestart";
  3349. }
  3350. else if(getarg(0) == $battleGround08$){
  3351. donpcevent " #BG8::OnViewPointRestart";
  3352. }
  3353. else if(getarg(0) == $battleGround09$){
  3354. donpcevent " #BG9::OnViewPointRestart";
  3355. }
  3356. else if(getarg(0) == $battleGround10$){
  3357. donpcevent " #BG10::OnViewPointRestart";
  3358. }
  3359. end;
  3360. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement