flavius02.txt 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. //===== rAthena Script =======================================
  2. //= BattleGround System - Flavius Second
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.7
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Flavius Battleground.
  12. //= - Winning Team: 9 badges (11 if VIP)
  13. //= - Losing Team: 3 badges (5 if VIP)
  14. //===== Additional Comments: =================================
  15. //= 1.0 First Version.
  16. //= 1.1 Fixed NPCs being called for waiting rooms. (bugreport:4395)
  17. //= 1.2 Fixed pink crystal spawning as blue. [L0ne_W0lf]
  18. //= 1.3 Updated 'waitingroom' to support required zeny/lvl. [Kisuka]
  19. //= 1.4 Removed MaxLvl check in waitingrooms. Replaced setwall with setcell.
  20. //= 1.5 Label standardization. [Euphy]
  21. //= 1.6 Added GM management function. [Euphy]
  22. //= 1.7 Added VIP features and created a reward function. [Euphy]
  23. //============================================================
  24. // Waiting Room NPCs
  25. //============================================================
  26. bat_room,142,227,4 script Lieutenant Huvas 418,{
  27. end;
  28. OnInit:
  29. waitingroom "Battle Station",11,"start#bat_b02::OnReadyCheck",1,0,80;
  30. end;
  31. OnEnterBG:
  32. set $@FlaviusBG2_id1, waitingroom2bg("bat_b02",10,290,"start#bat_b02::OnGuillaumeQuit","");
  33. end;
  34. }
  35. bat_room,142,204,0 script Lieutenant Yukon 414,{
  36. end;
  37. OnInit:
  38. waitingroom "Battle Station",11,"start#bat_b02::OnReadyCheck",1,0,80;
  39. end;
  40. OnEnterBG:
  41. set $@FlaviusBG2_id2, waitingroom2bg("bat_b02",390,10,"start#bat_b02::OnCroixQuit","");
  42. end;
  43. }
  44. bat_room,141,220,0 warp back_bgroomb02a 1,1,bat_room,154,150
  45. bat_room,141,211,0 warp back_bgroomb02b 1,1,bat_room,154,150
  46. bat_room,2,151,3 script #bat_b02_timer 844,{
  47. end;
  48. OnInit:
  49. OnEnable:
  50. initnpctimer;
  51. end;
  52. OnStop:
  53. stopnpctimer;
  54. end;
  55. OnTimer1000:
  56. stopnpctimer;
  57. initnpctimer;
  58. set .@chk_bat_a01,getmapusers("bat_b02");
  59. if (.@chk_bat_a01 < 1) {
  60. set $@FlaviusBG2, 0;
  61. if( $@FlaviusBG2_id1 ) { bg_destroy $@FlaviusBG2_id1; set $@FlaviusBG2_id1, 0; }
  62. if( $@FlaviusBG2_id2 ) { bg_destroy $@FlaviusBG2_id2; set $@FlaviusBG2_id2, 0; }
  63. donpcevent "start#bat_b02::OnReadyCheck";
  64. }
  65. end;
  66. }
  67. // Flavius Battleground Engine
  68. //============================================================
  69. bat_b02,15,15,3 script start#bat_b02 844,{
  70. OnInit:
  71. mapwarp "bat_b02","bat_room",154,150;
  72. end;
  73. OnReadyCheck:
  74. if( $@FlaviusBG2 )
  75. end;
  76. set .@Guillaume, getwaitingroomstate(0,"Lieutenant Huvas");
  77. set .@Croix, getwaitingroomstate(0,"Lieutenant Yukon");
  78. if( !.@Guillaume && !.@Croix ) {
  79. donpcevent "#bat_b02_timer::OnStop";
  80. end;
  81. }
  82. if( .@Guillaume < 10 || .@Croix < 10 )
  83. end;
  84. set $@FlaviusBG2, 1;
  85. set $@FlaviusBG2_Victory, 0;
  86. set $@Croix_ScoreBG2, 0;
  87. set $@Guill_ScoreBG2, 0;
  88. bg_updatescore "bat_b02",$@Guill_ScoreBG2,$@Croix_ScoreBG2;
  89. donpcevent "Lieutenant Huvas::OnEnterBG";
  90. donpcevent "Lieutenant Yukon::OnEnterBG";
  91. donpcevent "OBJ#bat_b02_a::OnKill";
  92. donpcevent "OBJ#bat_b02_a::OnEnable";
  93. donpcevent "OBJ#bat_b02_b::OnKill";
  94. donpcevent "OBJ#bat_b02_b::OnEnable";
  95. donpcevent "guardian#bat_b02_a::OnKill";
  96. donpcevent "guardian#bat_b02_b::OnKill";
  97. donpcevent "guardian#bat_b02_a::OnEnable";
  98. donpcevent "guardian#bat_b02_b::OnEnable";
  99. donpcevent "cell#bat_b02_a::OnRed";
  100. donpcevent "cell#bat_b02_b::OnRed";
  101. donpcevent "time#bat_b02::OnEnable";
  102. disablenpc "Guillaume Vintenar#b02_a";
  103. disablenpc "Croix Vintenar#b02_b";
  104. disablenpc "Vintenar#bat_b02_aover";
  105. disablenpc "Vintenar#bat_b02_bover";
  106. bg_warp $@FlaviusBG2_id1,"bat_b02",87,75;
  107. bg_warp $@FlaviusBG2_id2,"bat_b02",311,224;
  108. donpcevent "countdown#bat_b02::OnEnable";
  109. initnpctimer;
  110. end;
  111. OnReset:
  112. donpcevent "OBJ#bat_b02_a::OnKill";
  113. donpcevent "OBJ#bat_b02_a::OnEnable";
  114. donpcevent "OBJ#bat_b02_b::OnKill";
  115. donpcevent "OBJ#bat_b02_b::OnEnable";
  116. donpcevent "guardian#bat_b02_a::OnKill";
  117. donpcevent "guardian#bat_b02_b::OnKill";
  118. donpcevent "guardian#bat_b02_a::OnEnable";
  119. donpcevent "guardian#bat_b02_b::OnEnable";
  120. donpcevent "cell#bat_b02_a::OnRed";
  121. donpcevent "cell#bat_b02_b::OnRed";
  122. donpcevent "time#bat_b02::OnEnable";
  123. disablenpc "Guillaume Vintenar#b02_a";
  124. disablenpc "Croix Vintenar#b02_b";
  125. disablenpc "Vintenar#bat_b02_aover";
  126. disablenpc "Vintenar#bat_b02_bover";
  127. bg_warp $@FlaviusBG2_id1,"bat_b02",87,75;
  128. bg_warp $@FlaviusBG2_id2,"bat_b02",311,224;
  129. end;
  130. OnGuillaumeQuit:
  131. OnCroixQuit:
  132. bg_leave;
  133. end;
  134. OnTimer10000:
  135. stopnpctimer;
  136. donpcevent "#bat_b02_timer::OnEnable";
  137. end;
  138. }
  139. bat_b02,1,1,3 script OBJ#bat_b02_a 844,{
  140. OnEnable:
  141. bg_monster $@FlaviusBG2_id1,"bat_b02",61,150,"Pink Crystal",1915,"OBJ#bat_b02_a::OnMyMobDead";
  142. end;
  143. OnKill:
  144. killmonster "bat_b02","OBJ#bat_b02_a::OnMyMobDead";
  145. end;
  146. OnMyMobDead:
  147. if (mobcount("bat_b02","OBJ#bat_b02_a::OnMyMobDead") < 1) {
  148. mapannounce "bat_b02", "Guillaume's Crystal has been destroyed.",bc_map,"0xFFCE00";
  149. if ($@Croix_ScoreBG2 > 0) {
  150. set $@FlaviusBG2_Victory,2;
  151. set $@Croix_ScoreBG2,$@Croix_ScoreBG2+1;
  152. enablenpc "Guillaume Vintenar#b02_a";
  153. enablenpc "Croix Vintenar#b02_b";
  154. donpcevent "time#bat_b02::OnStop";
  155. }
  156. else {
  157. set $@Croix_ScoreBG2,1;
  158. donpcevent "time#bat_b02::OnEnable";
  159. donpcevent "start#bat_b02::OnReset";
  160. }
  161. donpcevent "#bat_b02_timer::OnStop";
  162. bg_updatescore "bat_b02",$@Guill_ScoreBG2,$@Croix_ScoreBG2;
  163. bg_warp $@FlaviusBG2_id1,"bat_b02",10,290;
  164. bg_warp $@FlaviusBG2_id2,"bat_b02",390,10;
  165. donpcevent "#bat_b02_timer::OnEnable";
  166. }
  167. end;
  168. }
  169. bat_b02,1,2,3 script OBJ#bat_b02_b 844,{
  170. OnEnable:
  171. bg_monster $@FlaviusBG2_id2,"bat_b02",328,150,"Blue Crystal",1914,"OBJ#bat_b02_b::OnMyMobDead";
  172. end;
  173. OnKill:
  174. killmonster "bat_b02","OBJ#bat_b02_b::OnMyMobDead";
  175. end;
  176. OnMyMobDead:
  177. if (mobcount("bat_b02","OBJ#bat_b02_b::OnMyMobDead") < 1) {
  178. mapannounce "bat_b02", "Croix's Crystal has been destroyed.",bc_map,"0xFFCE00";
  179. if ($@Guill_ScoreBG2 > 0) {
  180. set $@FlaviusBG2_Victory,1;
  181. set $@Guill_ScoreBG2,$@Guill_ScoreBG2+1;
  182. enablenpc "Guillaume Vintenar#b02_a";
  183. enablenpc "Croix Vintenar#b02_b";
  184. donpcevent "time#bat_b02::OnStop";
  185. }
  186. else {
  187. set $@Guill_ScoreBG2,1;
  188. donpcevent "time#bat_b02::OnEnable";
  189. donpcevent "start#bat_b02::OnReset";
  190. }
  191. donpcevent "#bat_b02_timer::OnStop";
  192. bg_updatescore "bat_b02",$@Guill_ScoreBG2,$@Croix_ScoreBG2;
  193. bg_warp $@FlaviusBG2_id1,"bat_b02",10,290;
  194. bg_warp $@FlaviusBG2_id2,"bat_b02",390,10;
  195. donpcevent "#bat_b02_timer::OnEnable";
  196. }
  197. end;
  198. }
  199. bat_b02,1,3,3 script guardian#bat_b02_a 844,{
  200. OnEnable:
  201. bg_monster $@FlaviusBG2_id1,"bat_b02",108,159,"Guillaume Camp Guardian",1949,"guardian#bat_b02_a::OnMyMobDead";
  202. bg_monster $@FlaviusBG2_id1,"bat_b02",108,141,"Guillaume Camp Guardian",1949,"guardian#bat_b02_a::OnMyMobDead";
  203. end;
  204. OnKill:
  205. killmonster "bat_b02","guardian#bat_b02_a::OnMyMobDead";
  206. end;
  207. OnMyMobDead:
  208. if (mobcount("bat_b02","guardian#bat_b02_a::OnMyMobDead") < 1) {
  209. donpcevent "cell#bat_b02_a::OnGreen";
  210. mapannounce "bat_b02", "The Guardian protecting Guillaume's Crystal has been slain.",bc_map,"0xFFCE00";
  211. }
  212. end;
  213. }
  214. bat_b02,1,3,3 script guardian#bat_b02_b 844,{
  215. OnEnable:
  216. bg_monster $@FlaviusBG2_id2,"bat_b02",307,160,"Croix Camp Guardian",1949,"guardian#bat_b02_b::OnMyMobDead";
  217. bg_monster $@FlaviusBG2_id2,"bat_b02",307,138,"Croix Camp Guardian",1949,"guardian#bat_b02_b::OnMyMobDead";
  218. end;
  219. OnKill:
  220. killmonster "bat_b02","guardian#bat_b02_b::OnMyMobDead";
  221. end;
  222. OnMyMobDead:
  223. if (mobcount("bat_b02","guardian#bat_b02_b::OnMyMobDead") < 1) {
  224. donpcevent "cell#bat_b02_b::OnGreen";
  225. mapannounce "bat_b02", "The Guardian protecting Croix's Crystal has been slain.",bc_map,"0xFFCE00";
  226. }
  227. end;
  228. }
  229. bat_b02,1,4,3 script cell#bat_b02_a 844,{
  230. OnRed:
  231. setcell "bat_b02",62,149,60,151,cell_basilica,1;
  232. setcell "bat_b02",62,149,60,151,cell_walkable,0;
  233. end;
  234. OnGreen:
  235. setcell "bat_b02",62,149,60,151,cell_basilica,0;
  236. setcell "bat_b02",62,149,60,151,cell_walkable,1;
  237. end;
  238. }
  239. bat_b02,1,5,3 script cell#bat_b02_b 844,{
  240. OnRed:
  241. setcell "bat_b02",327,151,329,149,cell_basilica,1;
  242. setcell "bat_b02",327,151,329,149,cell_walkable,0;
  243. end;
  244. OnGreen:
  245. setcell "bat_b02",327,151,329,149,cell_basilica,0;
  246. setcell "bat_b02",327,151,329,149,cell_walkable,1;
  247. end;
  248. }
  249. bat_b02,1,6,1 script time#bat_b02 844,{
  250. OnEnable:
  251. donpcevent "Battle Therapist#b02_a::OnEnable";
  252. donpcevent "Battle Therapist#b02_b::OnEnable";
  253. end;
  254. OnStop:
  255. donpcevent "Battle Therapist#b02_a::OnStop";
  256. donpcevent "Battle Therapist#b02_b::OnStop";
  257. end;
  258. }
  259. bat_b02,10,294,3 script Battle Therapist#b02_a 95,{
  260. specialeffect2 EF_HEAL;
  261. mes "[Battle Therapist]";
  262. mes "Just close your eyes,";
  263. mes "and take a deep breath.";
  264. mes "You can be free from pain.";
  265. close;
  266. OnTimer25000:
  267. specialeffect EF_SANCTUARY;
  268. enablenpc "bat_b02_rp1_a_warp";
  269. end;
  270. OnTimer26000:
  271. disablenpc "bat_b02_rp1_a_warp";
  272. end;
  273. OnTimer26500:
  274. stopnpctimer;
  275. donpcevent "Battle Therapist#b02_a::OnEnable";
  276. end;
  277. OnEnable:
  278. initnpctimer;
  279. enablenpc "Battle Therapist#b02_a";
  280. end;
  281. OnStop:
  282. disablenpc "bat_b02_rp1_a_warp";
  283. disablenpc "Battle Therapist#b02_a";
  284. stopnpctimer;
  285. end;
  286. }
  287. bat_b02,10,290,0 script bat_b02_rp1_a_warp 45,10,10,{
  288. OnInit:
  289. disablenpc "bat_b02_rp1_a_warp";
  290. end;
  291. OnTouch:
  292. percentheal 100,100;
  293. warp "bat_b02",87,73;
  294. end;
  295. }
  296. bat_b02,389,14,3 script Battle Therapist#b02_b 95,{
  297. specialeffect2 EF_HEAL;
  298. mes "[Battle Therapist]";
  299. mes "Just close your eyes,";
  300. mes "and take a deep breath.";
  301. mes "You can be free from pain.";
  302. close;
  303. OnTimer25000:
  304. specialeffect EF_SANCTUARY;
  305. enablenpc "bat_b02_rp1_b_warp";
  306. end;
  307. OnTimer26000:
  308. disablenpc "bat_b02_rp1_b_warp";
  309. end;
  310. OnTimer26500:
  311. stopnpctimer;
  312. donpcevent "Battle Therapist#b02_b::OnEnable";
  313. end;
  314. OnEnable:
  315. initnpctimer;
  316. enablenpc "Battle Therapist#b02_b";
  317. end;
  318. OnStop:
  319. disablenpc "bat_b02_rp1_b_warp";
  320. disablenpc "Battle Therapist#b02_b";
  321. stopnpctimer;
  322. end;
  323. }
  324. bat_b02,389,10,0 script bat_b02_rp1_b_warp 45,9,9,{
  325. OnInit:
  326. disablenpc "bat_b02_rp1_a_warp";
  327. end;
  328. OnTouch:
  329. percentheal 100,100;
  330. warp "bat_b02",312,225;
  331. end;
  332. }
  333. bat_b02,87,76,0 script A_CODE#bat_b02 -1,5,5,{
  334. OnTouch:
  335. if (checkquest(2070) < 0)
  336. //setquest 2070;
  337. end;
  338. }
  339. bat_b02,312,224,0 script B_CODE#bat_b02 -1,5,5,{
  340. OnTouch:
  341. if (checkquest(2070) < 0)
  342. //setquest 2070;
  343. end;
  344. }
  345. bat_b02,10,294,3 script Guillaume Vintenar#b02_a 934,{
  346. if ($@FlaviusBG2_id1 == getcharid(4)) {
  347. if ($@FlaviusBG2_Victory == 1)
  348. callfunc "F_BG_Badge",1,"Guillaume","Flavius";
  349. else
  350. callfunc "F_BG_Badge",0,"Guillaume","Flavius";
  351. }
  352. bg_leave;
  353. warp "bat_room",154,150;
  354. end;
  355. OnInit:
  356. disablenpc "Guillaume Vintenar#b02_a";
  357. end;
  358. }
  359. bat_b02,389,14,3 script Croix Vintenar#b02_b 934,{
  360. if ($@FlaviusBG2_id2 == getcharid(4)) {
  361. if ($@FlaviusBG2_Victory == 2)
  362. callfunc "F_BG_Badge",1,"Croix","Flavius";
  363. else
  364. callfunc "F_BG_Badge",0,"Croix","Flavius";
  365. }
  366. bg_leave;
  367. warp "bat_room",154,150;
  368. end;
  369. OnInit:
  370. disablenpc "Croix Vintenar#b02_b";
  371. end;
  372. }
  373. bat_b02,1,5,3 script countdown#bat_b02 844,{
  374. OnInit:
  375. stopnpctimer;
  376. end;
  377. OnEnable:
  378. stopnpctimer;
  379. initnpctimer;
  380. end;
  381. OnStop:
  382. stopnpctimer;
  383. end;
  384. OnTimer7000:
  385. mapannounce "bat_b02", "Guillaume Vintenar Axl Rose : Let's attack to destroy that Crystal!",bc_map,"0xFF9900";
  386. end;
  387. OnTimer8000:
  388. mapannounce "bat_b02", "Croix Vintenar Swandery : Even though Guillaume is struggling to win against us, the victory is ours. Let's show them our power.",bc_map,"0xFF99CC";
  389. end;
  390. OnTimer1800000:
  391. mapannounce "bat_b02", "Marollo VII : Guillaume Marollo, Croix Marollo! And their followers!",bc_map,"0x99CC00";
  392. end;
  393. OnTimer1803000:
  394. mapannounce "bat_b02", "Marollo VII : Both camps are competitive, so it's hard to judge which team is superior.",bc_map,"0x99CC00";
  395. end;
  396. OnTimer1808000:
  397. mapannounce "bat_b02", "Marollo VII : This battle of Flavian is such a waste of time. I will decide victory and defeat by your progress.",bc_map,"0x99CC00";
  398. end;
  399. OnTimer1822000:
  400. mapannounce "bat_b02", "Marollo VII : If you can't accept the results, try again in another valley battle!",bc_map,"0x99CC00";
  401. end;
  402. OnTimer1825000:
  403. mapannounce "bat_b02", "Axl Rose, Swandery : Yes, sir.",bc_map,"0x99CC00";
  404. end;
  405. OnTimer1830000:
  406. donpcevent "time#bat_b02::OnStop";
  407. bg_warp $@FlaviusBG2_id1,"bat_b02",10,290;
  408. bg_warp $@FlaviusBG2_id2,"bat_b02",390,10;
  409. enablenpc "Vintenar#bat_b02_aover";
  410. enablenpc "Vintenar#bat_b02_bover";
  411. end;
  412. OnTimer1900000:
  413. mapwarp "bat_b02","bat_room",154,150;
  414. donpcevent "countdown#bat_b02::OnStop";
  415. end;
  416. }
  417. bat_b02,81,83,3 script Guillaume Camp#flag32 973,{ end; }
  418. bat_b02,94,83,3 script Guillaume Camp#flag33 973,{ end; }
  419. bat_b02,81,66,3 script Guillaume Camp#flag34 973,{ end; }
  420. bat_b02,94,66,3 script Guillaume Camp#flag35 973,{ end; }
  421. bat_b02,139,142,3 script Guillaume Camp#flag36 973,{ end; }
  422. bat_b02,139,158,3 script Guillaume Camp#flag37 973,{ end; }
  423. bat_b02,110,161,3 script Guillaume Camp#flag38 973,{ end; }
  424. bat_b02,110,137,3 script Guillaume Camp#flag39 973,{ end; }
  425. bat_b02,63,135,3 script Guillaume Camp#flag40 973,{ end; }
  426. bat_b02,63,165,3 script Guillaume Camp#flag41 973,{ end; }
  427. bat_b02,10,296,3 script Guillaume Camp#flag42 973,{ end; }
  428. bat_b02,306,233,3 script Croix Camp#flag32 974,{ end; }
  429. bat_b02,317,233,3 script Croix Camp#flag33 974,{ end; }
  430. bat_b02,306,216,3 script Croix Camp#flag34 974,{ end; }
  431. bat_b02,317,216,3 script Croix Camp#flag35 974,{ end; }
  432. bat_b02,257,158,3 script Croix Camp#flag36 974,{ end; }
  433. bat_b02,257,141,3 script Croix Camp#flag37 974,{ end; }
  434. bat_b02,297,164,3 script Croix Camp#flag38 974,{ end; }
  435. bat_b02,297,136,3 script Croix Camp#flag39 974,{ end; }
  436. bat_b02,336,161,3 script Croix Camp#flag40 974,{ end; }
  437. bat_b02,336,139,3 script Croix Camp#flag41 974,{ end; }
  438. bat_b02,389,16,3 script Croix Camp#flag42 974,{ end; }
  439. bat_b02,10,294,3 script Vintenar#bat_b02_aover 419,{
  440. set .@A_B_gap,$@Guill_ScoreBG2 - $@Croix_ScoreBG2;
  441. if ($@FlaviusBG2_id1 == getcharid(4)) {
  442. if (.@A_B_gap > 0)
  443. callfunc "F_BG_Badge",1,"Guillaume","Flavius";
  444. else if (.@A_B_gap == 0)
  445. callfunc "F_BG_Badge",0,"Guillaume","Flavius";
  446. else
  447. callfunc "F_BG_Badge",0,"Guillaume","Flavius";
  448. }
  449. else {
  450. mes "[Axl Rose]";
  451. mes "Why are you here, Croix mercenary? I am definitely sure of victory against foolish Croix such as you. Ha!";
  452. close;
  453. }
  454. bg_leave;
  455. warp "bat_room",154,150;
  456. end;
  457. OnInit:
  458. disablenpc "Vintenar#bat_b02_aover";
  459. end;
  460. }
  461. bat_b02,389,14,3 script Vintenar#bat_b02_bover 415,{
  462. set .@A_B_gap,$@Guill_ScoreBG2 - $@Croix_ScoreBG2;
  463. if ($@FlaviusBG2_id2 == getcharid(4)) {
  464. if (.@A_B_gap > 0)
  465. callfunc "F_BG_Badge",1,"Croix","Flavius";
  466. else if (.@A_B_gap == 0)
  467. callfunc "F_BG_Badge",0,"Croix","Flavius";
  468. else
  469. callfunc "F_BG_Badge",1,"Croix","Flavius";
  470. }
  471. else {
  472. mes "[Swandery]";
  473. mes "Why do you come here as a Guillaume? You will be sent to where you should be!";
  474. close;
  475. }
  476. bg_leave;
  477. warp "bat_room",154,150;
  478. end;
  479. OnInit:
  480. disablenpc "Vintenar#bat_b02_bover";
  481. end;
  482. }
  483. bat_b02,1,10,3 script Release all#b02 81,{
  484. set .@i, callfunc("F_GM_NPC",1854,0);
  485. if (.@i == -1) {
  486. mes "Cancelled.";
  487. close;
  488. } else if (.@i == 0) {
  489. end;
  490. } else {
  491. mes "May I help you?";
  492. next;
  493. switch(select("Release all.:Cancel.")) {
  494. case 1:
  495. mes "Bye.";
  496. close2;
  497. mapwarp "bat_b02","bat_room",154,150;
  498. end;
  499. case 2:
  500. mes "Cancelled.";
  501. close;
  502. }
  503. }
  504. }