flavius01.txt 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. //===== eAthena Script =======================================
  2. // BattleGround System - Flavius
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= eAthena 1.0
  9. //===== Description: =========================================
  10. //= [AEGIS Conversion]
  11. //= Flavius Battleground.
  12. //= - Winning Team: 9 badges
  13. //= - Losing Team: 3 badge
  14. //===== Additional Comments: =================================
  15. //= 1.0 First Version.
  16. //= 1.1 Fixed pink crystal spawning as blue. [L0ne_W0lf]
  17. //============================================================
  18. // Waiting Room NPCs
  19. //============================================================
  20. bat_room,86,227,4 script Lieutenant Ator 418,{
  21. end;
  22. OnInit:
  23. waitingroom "Battle Station",10,"start#bat_b01::OnReadyCheck",1;
  24. end;
  25. OnEnterBG:
  26. set $@FlaviusBG1_id1, waitingroom2bg("bat_b01",10,290,"start#bat_b01::OnGuillaumeQuit","");
  27. end;
  28. }
  29. bat_room,85,204,0 script Lieutenant Thelokus 414,{
  30. end;
  31. OnInit:
  32. waitingroom "Battle Station",10,"start#bat_b01::OnReadyCheck",1;
  33. end;
  34. OnEnterBG:
  35. set $@FlaviusBG1_id2, waitingroom2bg("bat_b01",390,10,"start#bat_b01::OnCroixQuit","");
  36. end;
  37. }
  38. bat_room,85,220,0 warp back_bgroomb01a 1,1,bat_room,154,150
  39. bat_room,85,211,0 warp back_bgroomb01b 1,1,bat_room,154,150
  40. bat_room,2,151,3 script #bat_b01_timer 844,{
  41. end;
  42. OnInit:
  43. OnEnable:
  44. initnpctimer;
  45. end;
  46. OnStop:
  47. stopnpctimer;
  48. end;
  49. OnTimer1000:
  50. stopnpctimer;
  51. initnpctimer;
  52. set .@chk_bat_a01,getmapusers("bat_b01");
  53. if (.@chk_bat_a01 < 1) {
  54. set $@FlaviusBG1, 0;
  55. if( $@FlaviusBG1_id1 ) { bg_destroy $@FlaviusBG1_id1; set $@FlaviusBG1_id1, 0; }
  56. if( $@FlaviusBG1_id2 ) { bg_destroy $@FlaviusBG1_id2; set $@FlaviusBG1_id2, 0; }
  57. donpcevent "start#bat_b01::OnReadyCheck";
  58. }
  59. end;
  60. }
  61. // Flavius Battleground Engine
  62. //============================================================
  63. bat_b01,15,15,3 script start#bat_b01 844,{
  64. OnInit:
  65. mapwarp "bat_b01","bat_room",154,150;
  66. end;
  67. OnReadyCheck:
  68. if( $@FlaviusBG1 )
  69. end;
  70. set .@Guillaume, getwaitingroomstate(0,"Lieutenant Ator");
  71. set .@Croix, getwaitingroomstate(0,"Lieutenant Thelokus");
  72. if( !.@Guillaume && !.@Croix ) {
  73. donpcevent "#bat_b01_timer::OnStop";
  74. end;
  75. }
  76. if( .@Guillaume < 10 || .@Croix < 10 )
  77. end;
  78. set $@FlaviusBG1, 1;
  79. set $@FlaviusBG1_Victory, 0;
  80. set $@Croix_ScoreBG1, 0;
  81. set $@Guill_ScoreBG1, 0;
  82. bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
  83. donpcevent "Lieutenant Ator::OnEnterBG";
  84. donpcevent "Lieutenant Thelokus::OnEnterBG";
  85. donpcevent "OBJ#bat_b01_a::Onkill";
  86. donpcevent "OBJ#bat_b01_a::OnEnable";
  87. donpcevent "OBJ#bat_b01_b::Onkill";
  88. donpcevent "OBJ#bat_b01_b::OnEnable";
  89. donpcevent "guardian#bat_b01_a::Onkill";
  90. donpcevent "guardian#bat_b01_b::Onkill";
  91. donpcevent "guardian#bat_b01_a::OnEnable";
  92. donpcevent "guardian#bat_b01_b::OnEnable";
  93. donpcevent "cell#bat_b01_a::Onred";
  94. donpcevent "cell#bat_b01_b::Onred";
  95. donpcevent "time#bat_b01::OnEnable";
  96. disablenpc "Guillaume Vintenar#b01_a";
  97. disablenpc "Croix Vintenar#b01_b";
  98. disablenpc "Vintenar#bat_b01_aover";
  99. disablenpc "Vintenar#bat_b01_bover";
  100. bg_warp $@FlaviusBG1_id1,"bat_b01",87,75;
  101. bg_warp $@FlaviusBG1_id2,"bat_b01",311,224;
  102. donpcevent "countdown#bat_b01::OnEnable";
  103. initnpctimer;
  104. end;
  105. OnReset:
  106. donpcevent "OBJ#bat_b01_a::Onkill";
  107. donpcevent "OBJ#bat_b01_a::OnEnable";
  108. donpcevent "OBJ#bat_b01_b::Onkill";
  109. donpcevent "OBJ#bat_b01_b::OnEnable";
  110. donpcevent "guardian#bat_b01_a::Onkill";
  111. donpcevent "guardian#bat_b01_b::Onkill";
  112. donpcevent "guardian#bat_b01_a::OnEnable";
  113. donpcevent "guardian#bat_b01_b::OnEnable";
  114. donpcevent "cell#bat_b01_a::Onred";
  115. donpcevent "cell#bat_b01_b::Onred";
  116. donpcevent "time#bat_b01::OnEnable";
  117. disablenpc "Guillaume Vintenar#b01_a";
  118. disablenpc "Croix Vintenar#b01_b";
  119. disablenpc "Vintenar#bat_b01_aover";
  120. disablenpc "Vintenar#bat_b01_bover";
  121. bg_warp $@FlaviusBG1_id1,"bat_b01",87,75;
  122. bg_warp $@FlaviusBG1_id2,"bat_b01",311,224;
  123. end;
  124. OnGuillaumeQuit:
  125. OnCroixQuit:
  126. bg_leave;
  127. end;
  128. OnTimer10000:
  129. stopnpctimer;
  130. donpcevent "#bat_b01_timer::OnEnable";
  131. end;
  132. }
  133. bat_b01,1,1,3 script OBJ#bat_b01_a 844,{
  134. OnEnable:
  135. bg_monster $@FlaviusBG1_id1,"bat_b01",61,150,"Pink Crystal",1915,"OBJ#bat_b01_a::OnMyMobDead";
  136. end;
  137. Onkill:
  138. killmonster "bat_b01","OBJ#bat_b01_a::OnMyMobDead";
  139. end;
  140. OnMyMobDead:
  141. if (mobcount("bat_b01","OBJ#bat_b01_a::OnMyMobDead") < 1) {
  142. mapannounce "bat_b01", "Guillaume's Crystal has been destroyed.",bc_map,"0xFFCE00";
  143. if ($@Croix_ScoreBG1 > 0) {
  144. set $@FlaviusBG1_Victory,2;
  145. set $@Croix_ScoreBG1,$@Croix_ScoreBG1+1;
  146. enablenpc "Guillaume Vintenar#b01_a";
  147. enablenpc "Croix Vintenar#b01_b";
  148. donpcevent "time#bat_b01::Onstop";
  149. }
  150. else {
  151. set $@Croix_ScoreBG1,1;
  152. donpcevent "time#bat_b01::OnEnable";
  153. donpcevent "start#bat_b01::onReset";
  154. }
  155. donpcevent "#bat_b01_timer::OnStop";
  156. bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
  157. bg_warp $@FlaviusBG1_id1,"bat_b01",10,290;
  158. bg_warp $@FlaviusBG1_id2,"bat_b01",390,10;
  159. donpcevent "#bat_b01_timer::OnEnable";
  160. }
  161. end;
  162. }
  163. bat_b01,1,2,3 script OBJ#bat_b01_b 844,{
  164. OnEnable:
  165. bg_monster $@FlaviusBG1_id2,"bat_b01",328,150,"Blue Crystal",1914,"OBJ#bat_b01_b::OnMyMobDead";
  166. end;
  167. Onkill:
  168. killmonster "bat_b01","OBJ#bat_b01_b::OnMyMobDead";
  169. end;
  170. OnMyMobDead:
  171. if (mobcount("bat_b01","OBJ#bat_b01_b::OnMyMobDead") < 1) {
  172. mapannounce "bat_b01", "Croix's Crystal has been destroyed.",bc_map,"0xFFCE00";
  173. if ($@Guill_ScoreBG1 > 0) {
  174. set $@FlaviusBG1_Victory,1;
  175. set $@Guill_ScoreBG1,$@Guill_ScoreBG1+1;
  176. enablenpc "Guillaume Vintenar#b01_a";
  177. enablenpc "Croix Vintenar#b01_b";
  178. donpcevent "time#bat_b01::Onstop";
  179. }
  180. else {
  181. set $@Guill_ScoreBG1,1;
  182. donpcevent "time#bat_b01::OnEnable";
  183. donpcevent "start#bat_b01::onReset";
  184. }
  185. donpcevent "#bat_b01_timer::OnStop";
  186. bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
  187. bg_warp $@FlaviusBG1_id1,"bat_b01",10,290;
  188. bg_warp $@FlaviusBG1_id2,"bat_b01",390,10;
  189. donpcevent "#bat_b01_timer::OnEnable";
  190. }
  191. end;
  192. }
  193. bat_b01,1,3,3 script guardian#bat_b01_a 844,{
  194. OnEnable:
  195. bg_monster $@FlaviusBG1_id1,"bat_b01",108,159,"Guillaume Camp Guardian",1949,"guardian#bat_b01_a::OnMyMobDead";
  196. bg_monster $@FlaviusBG1_id1,"bat_b01",108,141,"Guillaume Camp Guardian",1949,"guardian#bat_b01_a::OnMyMobDead";
  197. end;
  198. Onkill:
  199. killmonster "bat_b01","guardian#bat_b01_a::OnMyMobDead";
  200. end;
  201. OnMyMobDead:
  202. if (mobcount("bat_b01","guardian#bat_b01_a::OnMyMobDead") < 1) {
  203. donpcevent "cell#bat_b01_a::Ongreen";
  204. mapannounce "bat_b01", "The Guardian protecting Guillaume's Crystal has been slain.",bc_map,"0xFFCE00";
  205. }
  206. end;
  207. }
  208. bat_b01,1,3,3 script guardian#bat_b01_b 844,{
  209. OnEnable:
  210. bg_monster $@FlaviusBG1_id2,"bat_b01",307,160,"Croix Camp Guardian",1949,"guardian#bat_b01_b::OnMyMobDead";
  211. bg_monster $@FlaviusBG1_id2,"bat_b01",307,138,"Croix Camp Guardian",1949,"guardian#bat_b01_b::OnMyMobDead";
  212. end;
  213. Onkill:
  214. killmonster "bat_b01","guardian#bat_b01_b::OnMyMobDead";
  215. end;
  216. OnMyMobDead:
  217. if (mobcount("bat_b01","guardian#bat_b01_b::OnMyMobDead") < 1) {
  218. donpcevent "cell#bat_b01_b::Ongreen";
  219. mapannounce "bat_b01", "The Guardian protecting Croix's Crystal has been slain.",bc_map,"0xFFCE00";
  220. }
  221. end;
  222. }
  223. bat_b01,1,4,3 script cell#bat_b01_a 844,{
  224. Onred:
  225. setwall "bat_b01",60,149,2,6,0,"Guillaume_wall1-1";
  226. setwall "bat_b01",62,149,2,0,0,"Guillaume_wall1-2";
  227. setwall "bat_b01",62,151,2,2,0,"Guillaume_wall1-3";
  228. setwall "bat_b01",60,151,2,4,0,"Guillaume_wall1-4";
  229. end;
  230. Ongreen:
  231. delwall "Guillaume_wall1-1";
  232. delwall "Guillaume_wall1-2";
  233. delwall "Guillaume_wall1-3";
  234. delwall "Guillaume_wall1-4";
  235. end;
  236. }
  237. bat_b01,1,5,3 script cell#bat_b01_b 844,{
  238. Onred:
  239. setwall "bat_b01",327,149,2,6,0,"Croix_wall1-1";
  240. setwall "bat_b01",329,149,2,0,0,"Croix_wall1-2";
  241. setwall "bat_b01",329,151,2,2,0,"Croix_wall1-3";
  242. setwall "bat_b01",327,151,2,4,0,"Croix_wall1-4";
  243. end;
  244. Ongreen:
  245. delwall "Croix_wall1-1";
  246. delwall "Croix_wall1-2";
  247. delwall "Croix_wall1-3";
  248. delwall "Croix_wall1-4";
  249. end;
  250. }
  251. bat_b01,1,6,1 script time#bat_b01 844,{
  252. OnEnable:
  253. donpcevent "Battle Therapist#b01_a::OnEnable";
  254. donpcevent "Battle Therapist#b01_b::OnEnable";
  255. end;
  256. Onstop:
  257. donpcevent "Battle Therapist#b01_a::OnStop";
  258. donpcevent "Battle Therapist#b01_b::OnStop";
  259. end;
  260. }
  261. bat_b01,10,294,3 script Battle Therapist#b01_a 95,{
  262. specialeffect2 EF_HEAL;
  263. mes "[Battle Therapist]";
  264. mes "Just close your eyes,";
  265. mes "and take a deep breath.";
  266. mes "You can be free from pain.";
  267. close;
  268. OnTimer25000:
  269. specialeffect EF_SANCTUARY;
  270. enablenpc "bat_b01_rp1_a_warp";
  271. end;
  272. OnTimer26000:
  273. disablenpc "bat_b01_rp1_a_warp";
  274. end;
  275. OnTimer26500:
  276. stopnpctimer;
  277. donpcevent "Battle Therapist#b01_a::onEnable";
  278. end;
  279. OnEnable:
  280. initnpctimer;
  281. enablenpc "Battle Therapist#b01_a";
  282. end;
  283. Onstop:
  284. disablenpc "bat_b01_rp1_a_warp";
  285. disablenpc "Battle Therapist#b01_a";
  286. stopnpctimer;
  287. end;
  288. }
  289. bat_b01,10,290,0 script bat_b01_rp1_a_warp 45,10,10,{
  290. OnInit:
  291. disablenpc "bat_b01_rp1_a_warp";
  292. end;
  293. OnTouch:
  294. percentheal 100,100;
  295. warp "bat_b01",87,73;
  296. end;
  297. }
  298. bat_b01,389,14,3 script Battle Therapist#b01_b 95,{
  299. specialeffect2 EF_HEAL;
  300. mes "[Battle Therapist]";
  301. mes "Just close your eyes,";
  302. mes "and take a deep breath.";
  303. mes "You can be free from pain.";
  304. close;
  305. OnTimer25000:
  306. specialeffect EF_SANCTUARY;
  307. enablenpc "bat_b01_rp1_b_warp";
  308. end;
  309. OnTimer26000:
  310. disablenpc "bat_b01_rp1_b_warp";
  311. end;
  312. OnTimer26500:
  313. stopnpctimer;
  314. donpcevent "Battle Therapist#b01_b::OnEnable";
  315. end;
  316. OnEnable:
  317. initnpctimer;
  318. enablenpc "Battle Therapist#b01_b";
  319. end;
  320. Onstop:
  321. disablenpc "bat_b01_rp1_b_warp";
  322. disablenpc "Battle Therapist#b01_b";
  323. stopnpctimer;
  324. end;
  325. }
  326. bat_b01,389,10,0 script bat_b01_rp1_b_warp 45,9,9,{
  327. OnInit:
  328. disablenpc "bat_b01_rp1_a_warp";
  329. end;
  330. OnTouch:
  331. percentheal 100,100;
  332. warp "bat_b01",312,225;
  333. end;
  334. }
  335. bat_b01,87,76,0 script A_CODE#bat_b01 -1,5,5,{
  336. OnTouch:
  337. if (checkquest(2070) < 0)
  338. setquest 2070;
  339. end;
  340. }
  341. bat_b01,312,224,0 script B_CODE#bat_b01 -1,5,5,{
  342. OnTouch:
  343. if (checkquest(2070) < 0)
  344. setquest 2070;
  345. end;
  346. }
  347. bat_b01,10,294,3 script Guillaume Vintenar#b01_a 934,{
  348. if ($@FlaviusBG1_id1 == getcharid(4)) {
  349. if ($@FlaviusBG1_Victory == 1) {
  350. set .@your_medal,countitem(7829);
  351. set .@medal_gap,500 - .@your_medal;
  352. if (.@medal_gap > 8) {
  353. mes "[Axl Rose]";
  354. mes "Blessed Guillaume!";
  355. mes "Let's enjoy our glorious victory!";
  356. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  357. close2;
  358. getitem 7829,9; //BF_Badge2
  359. }
  360. else {
  361. mes "[Axl Rose]";
  362. mes "Blessed Guillaume!";
  363. mes "Let's enjoy our glorious victory!";
  364. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  365. close2;
  366. getitem 7829,.@medal_gap; //BF_Badge2
  367. }
  368. }
  369. else {
  370. set .@your_medal,countitem(7829);
  371. set .@medal_gap,500 - .@your_medal;
  372. if (.@medal_gap > 2) {
  373. mes "[Axl Rose]";
  374. mes "You lost, but you're dedicated to this battle.";
  375. mes "This is a reward for your great dedication by Guillaume Marollo!";
  376. mes "Just take this defeat as a lesson, next time you will definitely win.";
  377. close2;
  378. getitem 7829,3; //BF_Badge2
  379. }
  380. else {
  381. mes "[Axl Rose]";
  382. mes "You lost, but you're dedicated to this battle.";
  383. mes "This is a reward for your great dedication by Guillaume Marollo!";
  384. mes "Just take this defeat as a lesson, next time you will definitely win.";
  385. close2;
  386. getitem 7829,.@medal_gap; //BF_Badge2
  387. }
  388. }
  389. }
  390. bg_leave;
  391. warp "bat_room",154,150;
  392. end;
  393. OnInit:
  394. disablenpc "Guillaume Vintenar#b01_a";
  395. end;
  396. }
  397. bat_b01,389,14,3 script Croix Vintenar#b01_b 934,{
  398. if ($@FlaviusBG1_id2 == getcharid(4)) {
  399. if ($@FlaviusBG1_Victory == 2) {
  400. set .@your_medal,countitem(7829);
  401. set .@medal_gap,500 - .@your_medal;
  402. if (.@medal_gap > 8) {
  403. mes "[Swandery]";
  404. mes "Blessed Croix!";
  405. mes "Let's enjoy our glorious victory!";
  406. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  407. close2;
  408. getitem 7829,9; //BF_Badge2
  409. }
  410. else {
  411. mes "[Swandery]";
  412. mes "Blessed Croix!";
  413. mes "Let's enjoy our glorious victory!";
  414. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  415. close2;
  416. getitem 7829,.@medal_gap; //BF_Badge2
  417. }
  418. }
  419. else {
  420. set .@your_medal,countitem(7829);
  421. set .@medal_gap,500 - .@your_medal;
  422. if (.@medal_gap > 2) {
  423. mes "[Swandery]";
  424. mes "Oh, "+strcharinfo(0)+". Don't be sad.";
  425. mes "Even though we didn't win, we did our best.";
  426. mes "This is a Royal gift from Croix, and please don't forget this battle. We will win the next one.";
  427. close2;
  428. getitem 7829,3; //BF_Badge2
  429. }
  430. else {
  431. mes "[Swandery]";
  432. mes "Oh, "+strcharinfo(0)+". Don't be sad.";
  433. mes "Even though we didn't win, we did our best.";
  434. mes "This is a Royal gift from Croix, and please don't forget this battle. We will win the next one.";
  435. close2;
  436. getitem 7829,.@medal_gap; //BF_Badge2
  437. }
  438. }
  439. }
  440. bg_leave;
  441. warp "bat_room",154,150;
  442. end;
  443. OnInit:
  444. disablenpc "Croix Vintenar#b01_b";
  445. end;
  446. }
  447. bat_b01,1,5,3 script countdown#bat_b01 844,{
  448. OnInit:
  449. stopnpctimer;
  450. end;
  451. OnEnable:
  452. stopnpctimer;
  453. initnpctimer;
  454. end;
  455. Onstop:
  456. stopnpctimer;
  457. end;
  458. OnTimer7000:
  459. mapannounce "bat_b01", "Guillaume Vintenar Axl Rose : Let's attack to destroy that Crystal!",bc_map,"0xFF9900";
  460. end;
  461. OnTimer8000:
  462. mapannounce "bat_b01", "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";
  463. end;
  464. OnTimer1800000:
  465. mapannounce "bat_b01", "Marollo VII : Guillaume Marollo, Croix Marollo! And their followers!",bc_map,"0x99CC00";
  466. end;
  467. OnTimer1803000:
  468. mapannounce "bat_b01", "Marollo VII : Both camps are competitive, so it's hard to judge which team is superior.",bc_map,"0x99CC00";
  469. end;
  470. OnTimer1808000:
  471. mapannounce "bat_b01", "Marollo VII : This battle of Flavian is such a waste of time. I will decide victory and defeat by your progress.",bc_map,"0x99CC00";
  472. end;
  473. OnTimer1822000:
  474. mapannounce "bat_b01", "Marollo VII : If you can't accept the results, try again in another valley battle!",bc_map,"0x99CC00";
  475. end;
  476. OnTimer1825000:
  477. mapannounce "bat_b01", "Axl Rose, Swandery : Yes, sir.",bc_map,"0x99CC00";
  478. end;
  479. OnTimer1830000:
  480. donpcevent "time#bat_b01::Onstop";
  481. bg_warp $@FlaviusBG1_id1,"bat_b01",10,290;
  482. bg_warp $@FlaviusBG1_id2,"bat_b01",390,10;
  483. enablenpc "Vintenar#bat_b01_aover";
  484. enablenpc "Vintenar#bat_b01_bover";
  485. end;
  486. OnTimer1900000:
  487. mapwarp "bat_b01","bat_room",154,150;
  488. donpcevent "countdown#bat_b01::Onstop";
  489. end;
  490. }
  491. bat_b01,81,83,3 script Guillaume Camp#flag21 973,{ end; }
  492. bat_b01,94,83,3 script Guillaume Camp#flag22 973,{ end; }
  493. bat_b01,81,66,3 script Guillaume Camp#flag23 973,{ end; }
  494. bat_b01,94,66,3 script Guillaume Camp#flag24 973,{ end; }
  495. bat_b01,139,142,3 script Guillaume Camp#flag25 973,{ end; }
  496. bat_b01,139,158,3 script Guillaume Camp#flag26 973,{ end; }
  497. bat_b01,110,161,3 script Guillaume Camp#flag27 973,{ end; }
  498. bat_b01,110,137,3 script Guillaume Camp#flag28 973,{ end; }
  499. bat_b01,63,135,3 script Guillaume Camp#flag29 973,{ end; }
  500. bat_b01,63,165,3 script Guillaume Camp#flag30 973,{ end; }
  501. bat_b01,10,296,3 script Guillaume Camp#flag31 973,{ end; }
  502. bat_b01,306,233,3 script Croix Camp#flag21 974,{ end; }
  503. bat_b01,317,233,3 script Croix Camp#flag22 974,{ end; }
  504. bat_b01,306,216,3 script Croix Camp#flag23 974,{ end; }
  505. bat_b01,317,216,3 script Croix Camp#flag24 974,{ end; }
  506. bat_b01,257,158,3 script Croix Camp#flag25 974,{ end; }
  507. bat_b01,257,141,3 script Croix Camp#flag26 974,{ end; }
  508. bat_b01,297,164,3 script Croix Camp#flag27 974,{ end; }
  509. bat_b01,297,136,3 script Croix Camp#flag28 974,{ end; }
  510. bat_b01,336,161,3 script Croix Camp#flag29 974,{ end; }
  511. bat_b01,336,139,3 script Croix Camp#flag30 974,{ end; }
  512. bat_b01,389,16,3 script Croix Camp#flag31 974,{ end; }
  513. bat_b01,10,294,3 script Vintenar#bat_b01_aover 419,{
  514. set .@A_B_gap,$@Guill_ScoreBG1 - $@Croix_ScoreBG1;
  515. if ($@FlaviusBG1_id1 == getcharid(4)) {
  516. if (.@A_B_gap > 0) {
  517. set .@your_medal,countitem(7829);
  518. set .@medal_gap,500 - .@your_medal;
  519. if (.@medal_gap > 8) {
  520. mes "[Axl Rose]";
  521. mes "Blessed Guillaume!";
  522. mes "Let's enjoy our glorious victory!";
  523. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  524. close2;
  525. getitem 7829,9; //BF_Badge2
  526. }
  527. else {
  528. mes "[Axl Rose]";
  529. mes "Blessed Guillaume!";
  530. mes "Let's enjoy our glorious victory!";
  531. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  532. close2;
  533. getitem 7829,.@medal_gap; //BF_Badge2
  534. }
  535. }
  536. else if (.@A_B_gap == 0) {
  537. set .@your_medal,countitem(7829);
  538. set .@medal_gap,500 - .@your_medal;
  539. if (.@medal_gap > 2) {
  540. mes "[Axl Rose]";
  541. mes "You lost, but you're dedicated to this battle.";
  542. mes "This is a reward for your great dedication by Guillaume Marollo!";
  543. mes "Just take this defeat as a lesson, next time you will definitely win.";
  544. close2;
  545. getitem 7829,3; //BF_Badge2
  546. }
  547. else {
  548. mes "[Axl Rose]";
  549. mes "You lost, but you're dedicated to this battle.";
  550. mes "This is a reward for your great dedication by Guillaume Marollo!";
  551. mes "Just take this defeat as a lesson, next time you will definitely win.";
  552. close2;
  553. getitem 7829,.@medal_gap; //BF_Badge2
  554. }
  555. }
  556. else {
  557. set .@your_medal,countitem(7829);
  558. set .@medal_gap,500 - .@your_medal;
  559. if (.@medal_gap > 2) {
  560. mes "[Axl Rose]";
  561. mes "You lost, but you're dedicated to this battle.";
  562. mes "This is a reward for your great dedication by Guillaume Marollo!";
  563. mes "Just take this defeat as a lesson, next time you will definitely win.";
  564. close2;
  565. getitem 7829,3; //BF_Badge2
  566. }
  567. else {
  568. mes "[Axl Rose]";
  569. mes "You lost, but you're dedicated to this battle.";
  570. mes "This is a reward for your great dedication by Guillaume Marollo!";
  571. mes "Just take this defeat as a lesson, next time you will definitely win.";
  572. close2;
  573. getitem 7829,.@medal_gap; //BF_Badge2
  574. }
  575. }
  576. }
  577. else {
  578. mes "[Axl Rose]";
  579. mes "Why are you here, Croix mercenary? I am definitely sure of victory against foolish Croix such as you. Ha!";
  580. close;
  581. }
  582. bg_leave;
  583. warp "bat_room",154,150;
  584. end;
  585. OnInit:
  586. disablenpc "Vintenar#bat_b01_aover";
  587. end;
  588. }
  589. bat_b01,389,14,3 script Vintenar#bat_b01_bover 415,{
  590. set .@A_B_gap,$@Guill_ScoreBG1 - $@Croix_ScoreBG1;
  591. if ($@FlaviusBG1_id2 == getcharid(4)) {
  592. if (.@A_B_gap > 0) {
  593. set .@your_medal,countitem(7829);
  594. set .@medal_gap,500 - .@your_medal;
  595. if (.@medal_gap > 2) {
  596. mes "[Swandery]";
  597. mes "Oh, "+strcharinfo(0)+". Don't be sad.";
  598. mes "Even though we didn't win, we did our best.";
  599. mes "This is a Royal gift from Croix, and please don't forget this battle. We will win the next one.";
  600. close2;
  601. getitem 7829,3; //BF_Badge2
  602. }
  603. else {
  604. mes "[Swandery]";
  605. mes "Oh, "+strcharinfo(0)+". Don't be sad.";
  606. mes "Even though we didn't win, we did our best.";
  607. mes "This is a Royal gift from Croix, and please don't forget this battle. We will win the next one.";
  608. close2;
  609. getitem 7829,.@medal_gap; //BF_Badge2
  610. }
  611. }
  612. else if (.@A_B_gap == 0) {
  613. set .@your_medal,countitem(7829);
  614. set .@medal_gap,500 - .@your_medal;
  615. if (.@medal_gap > 2) {
  616. mes "[Swandery]";
  617. mes "Oh, "+strcharinfo(0)+". Don't be sad.";
  618. mes "Even though we didn't win, we did our best.";
  619. mes "This is a Royal gift from Croix, and please don't forget this battle. We will win the next one.";
  620. close2;
  621. getitem 7829,3; //BF_Badge2
  622. }
  623. else {
  624. mes "[Swandery]";
  625. mes "Oh, "+strcharinfo(0)+". Don't be sad.";
  626. mes "Even though we didn't win, we did our best.";
  627. mes "This is a Royal gift from Croix, and please don't forget this battle. We will win the next one.";
  628. close2;
  629. getitem 7829,.@medal_gap; //BF_Badge2
  630. }
  631. }
  632. else {
  633. set .@your_medal,countitem(7829);
  634. set .@medal_gap,500 - .@your_medal;
  635. if (.@medal_gap > 8) {
  636. mes "[Swandery]";
  637. mes "Blessed Croix!";
  638. mes "Let's enjoy our glorious victory!";
  639. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  640. close2;
  641. getitem 7829,9; //BF_Badge2
  642. }
  643. else {
  644. mes "[Swandery]";
  645. mes "Blessed Croix!";
  646. mes "Let's enjoy our glorious victory!";
  647. mes ""+strcharinfo(0)+", it's a sign reflecting victory.";
  648. close2;
  649. getitem 7829,.@medal_gap; //BF_Badge2
  650. }
  651. }
  652. }
  653. else {
  654. mes "[Swandery]";
  655. mes "Why do you come here as a Guillaume? You will be sent to where you should be!";
  656. close;
  657. }
  658. bg_leave;
  659. warp "bat_room",154,150;
  660. end;
  661. OnInit:
  662. disablenpc "Vintenar#bat_b01_bover";
  663. end;
  664. }
  665. /*
  666. bat_b01,1,10,3 script Release all#b01 81,{
  667. input .@input,0,2000;
  668. if (.@input == 0) {
  669. mes "Cancelled.";
  670. close;
  671. }
  672. else if (.@input == 1854) {
  673. mes "May I help you?";
  674. next;
  675. switch(select("Release all.:Cancel.")) {
  676. case 1:
  677. mes "Bye.";
  678. close2;
  679. mapwarp "bat_b01","bat_room",154,150;
  680. end;
  681. case 2:
  682. mes "Cancelled.";
  683. close;
  684. }
  685. }
  686. }
  687. */