flavius_enter.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. //===== rAthena Script =======================================
  2. //= BattleGround System - Flavius Entrance NPCs
  3. //===== Description: =========================================
  4. //= [Official Conversion]
  5. //= Flavius Battleground Entrance NPCs
  6. //===== Changelogs: ==========================================
  7. //= 1.0 First Version. [L0ne_W0lf]
  8. //= 1.1 Added battle_config checks to allow this script to use the new queue interface or the previous method. [Aleos]
  9. //============================================================
  10. // Flavius Officer - Guillaume
  11. //============================================================
  12. bat_room,133,178,5 script Flavius Officer#01a 418,{
  13. if (getbattleflag("feature.bgqueue"))
  14. end;
  15. if (checkweight(1201,1) == 0) {
  16. mes "- Wait a minute !! -";
  17. mes "- Currently you're carrying -";
  18. mes "- too many items with you. -";
  19. mes "- Please try again -";
  20. mes "- after you loose some weight. -";
  21. close;
  22. }
  23. mes "[Guillaume Army Officer]";
  24. mes "Let's show the power of the Guillaume Army to those stinky Croixs!";
  25. next;
  26. switch(select("I want to join your army!:End Conversation")) {
  27. case 1:
  28. if ((BaseJob == Job_Novice) || (BaseJob == Job_Super_Novice)) {
  29. mes "[Guillaume Army Officer]";
  30. mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  31. }
  32. else {
  33. if (BaseLevel < 80) {
  34. mes "[Guillaume Army Officer]";
  35. mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  36. }
  37. else {
  38. set .@chk_urtime,checkquest(2070,PLAYTIME);
  39. if ((.@chk_urtime == 0)|| (.@chk_urtime == 1)) {
  40. mes "[Guillaume Army Officer]";
  41. mes "You seem to have just returned from the battlefield.";
  42. mes "It's too early for you to go back. Go rest, and leave the enemies to us!";
  43. }
  44. else {
  45. if (.@chk_urtime == 2)
  46. erasequest 2070;
  47. set .@mapcount2,getmapusers("bat_b01");
  48. if (.@mapcount2 > 0) {
  49. mes "[Guillaume Army Officer]";
  50. mes "I've received a report informing me that an elite corps has been dispatched to the battlefield fighting the Croixs already.";
  51. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  52. }
  53. else {
  54. if ($@FlaviusBG1 > 0) {
  55. mes "[Guillaume Army Officer]";
  56. mes "An elite corps is already standing by to be dispatched to the battlefield.";
  57. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  58. }
  59. else {
  60. mes "[Guillaume Army Officer]";
  61. mes "You definitely seem to be ready for battle!";
  62. mes "Go show the Croixs what fear truly means!";
  63. mes "Today, our cry of victory shall echo all over the battlefield!";
  64. close2;
  65. warp "bat_room",85,223;
  66. end;
  67. }
  68. }
  69. }
  70. }
  71. }
  72. break;
  73. case 2:
  74. mes "[Guillaume Army Officer]";
  75. mes "Today, we shall be victorious!";
  76. break;
  77. }
  78. close;
  79. }
  80. bat_room,133,121,1 script Flavius Officer#01b 414,{
  81. if (getbattleflag("feature.bgqueue"))
  82. end;
  83. if (checkweight(1201,1) == 0) {
  84. mes "- Wait a minute !! -";
  85. mes "- Currently you're carrying -";
  86. mes "- too many items with you. -";
  87. mes "- Please try again -";
  88. mes "- after you loose some weight. -";
  89. close;
  90. }
  91. mes "[Croix Army Officer]";
  92. mes "Let's show the Guillaumes the power of the Croix Army!";
  93. next;
  94. switch(select("I want to join your army!:End Conversation")) {
  95. case 1:
  96. if ((BaseJob == Job_Novice) || (BaseJob == Job_Super_Novice)) {
  97. mes "[Croix Army Officer]";
  98. mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  99. }
  100. else {
  101. if (BaseLevel < 80) {
  102. mes "[Croix Army Officer]";
  103. mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  104. }
  105. else {
  106. set .@chk_urtime,checkquest(2070,PLAYTIME);
  107. if ((.@chk_urtime == 0)|| (.@chk_urtime == 1)) {
  108. mes "[Croix Army Officer]";
  109. mes "You seem to have just returned from the battlefield.";
  110. mes "It's too early for you to go back. Go rest, and leave the enemies to us!";
  111. }
  112. else {
  113. if (.@chk_urtime == 2)
  114. erasequest 2070;
  115. set .@mapcount2,getmapusers("bat_b01");
  116. if (.@mapcount2 > 0) {
  117. mes "[Croix Army Officer]";
  118. mes "I've received a report informing me that an elite corps has been dispatched to the battlefield fighting the Guillaume already.";
  119. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  120. }
  121. else {
  122. if ($@FlaviusBG1 > 0) {
  123. mes "[Croix Army Officer]";
  124. mes "An elite corps is already standing by to be dispatched to the battlefield.";
  125. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  126. }
  127. else {
  128. mes "[Croix Army Officer]";
  129. mes "You definitely seem to be ready for battle!";
  130. mes "Go show the Guillaumes what fear truly means!";
  131. mes "Today, our cry of victory shall echo all over the battlefield!";
  132. close2;
  133. warp "bat_room",85,207;
  134. end;
  135. }
  136. }
  137. }
  138. }
  139. }
  140. break;
  141. case 2:
  142. mes "[Croix Army Officer]";
  143. mes "Today, we shall be victorious!";
  144. break;
  145. }
  146. close;
  147. }
  148. bat_room,135,178,5 script Guillaume Knight#3 417,{
  149. mes "[Guillaume Knight]";
  150. mes "The objective of the Flavius Battle is to score 2 points before your enemy by destroying their crystal.";
  151. next;
  152. mes "[Guillaume Knight]";
  153. mes "The crystals for both armies are protected by special barricades that cannot be destroyed by direct attacks.";
  154. next;
  155. mes "[Guillaume Knight]";
  156. mes "But they can be removed by destroying the Guardians that protect the enemy army base.";
  157. next;
  158. mes "[Guillaume Knight]";
  159. mes "The crystals are immune to every type of skill; your physical attacks are the only choice for destroying your enemy's crystal.";
  160. next;
  161. mes "[Guillaume Knight]";
  162. if (getbattleflag("feature.bgqueue"))
  163. mes "If you are ready, start by clicking the ^0000FFbattle button from the interface^000000.";
  164. else {
  165. mes "Please remember: when you join a battle, you will be receiving a token which indicates the set duration for which you cannot participate in the same type of battle.";
  166. mes "You may check the duration by pressing the Alt+U keys.";
  167. }
  168. next;
  169. mes "[Guillaume Knight]";
  170. if (getbattleflag("feature.bgqueue"))
  171. mes "Please bear in mind once you cancel, ^0000FFyou may not reapply for 1 minute^000000!";
  172. else
  173. mes "Are you ready for battle? Then apply with the recruiter next to me!";
  174. close;
  175. }
  176. bat_room,151,178,5 duplicate(Guillaume Knight#3) Guillaume Knight#4 417
  177. bat_room,135,121,1 script Croix Knight#3 413,{
  178. mes "[Croix Knight]";
  179. mes "The objective of the Flavius Battle is to score 2 points before your enemy by destroying their crystal.";
  180. next;
  181. mes "[Croix Knight]";
  182. mes "The crystals for both armies are protected by special barricades that cannot be destroyed by direct attacks.";
  183. next;
  184. mes "[Croix Knight]";
  185. mes "But they can be removed by destroying the Guardians that protect the enemy army base.";
  186. next;
  187. mes "[Croix Knight]";
  188. mes "The crystals are immune to every type of skill; your physical attacks are the only choice for destroying your enemy's crystal.";
  189. next;
  190. mes "[Croix Knight]";
  191. if (getbattleflag("feature.bgqueue"))
  192. mes "If you are ready, start by clicking the ^0000FFbattle button from the interface^000000.";
  193. else {
  194. mes "Please remember: when you join a battle, you will be receiving a token which indicates the set duration for which you cannot participate in the same type of battle.";
  195. mes "You may check the duration by pressing the Alt+U keys.";
  196. }
  197. next;
  198. mes "[Croix Knight]";
  199. if (getbattleflag("feature.bgqueue"))
  200. mes "Please bear in mind once you cancel, ^0000FFyou may not reapply for 1 minute^000000!";
  201. else
  202. mes "Are you ready for battle? Then apply with the recruiter next to me!";
  203. close;
  204. }
  205. bat_room,151,121,1 duplicate(Croix Knight#3) Croix Knight#4 413
  206. // Flavius Officer - Croix
  207. //============================================================
  208. bat_room,148,178,5 script Flavius Officer#02a 418,{
  209. if (getbattleflag("feature.bgqueue"))
  210. end;
  211. if (checkweight(1201,1) == 0) {
  212. mes "- Wait a minute !! -";
  213. mes "- Currently you're carrying -";
  214. mes "- too many items with you. -";
  215. mes "- Please try again -";
  216. mes "- after you loose some weight. -";
  217. close;
  218. }
  219. mes "[Guillaume Army Officer]";
  220. mes "Let's show the power of the Guillaume Army to those stinky Croixs!";
  221. next;
  222. switch(select("I want to join your army!:End Conversation")) {
  223. case 1:
  224. if ((BaseJob == Job_Novice) || (BaseJob == Job_Super_Novice)) {
  225. mes "[Guillaume Army Officer]";
  226. mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  227. }
  228. else {
  229. if (BaseLevel < 80) {
  230. mes "[Guillaume Army Officer]";
  231. mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  232. }
  233. else {
  234. set .@chk_urtime,checkquest(2070,PLAYTIME);
  235. if ((.@chk_urtime == 0)|| (.@chk_urtime == 1)) {
  236. mes "[Guillaume Army Officer]";
  237. mes "You seem to have just returned from the battlefield.";
  238. mes "It's too early for you to go back. Go rest, and leave the enemies to us!";
  239. }
  240. else {
  241. if (.@chk_urtime == 2)
  242. erasequest 2070;
  243. set .@mapcount2,getmapusers("bat_b02");
  244. if (.@mapcount2 > 0) {
  245. mes "[Guillaume Army Officer]";
  246. mes "I've received a report informing me that an elite corps has been dispatched to the battlefield fighting the Croixs already.";
  247. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  248. }
  249. else {
  250. if ($@FlaviusBG2 > 0) {
  251. mes "[Guillaume Army Officer]";
  252. mes "An elite corps is already standing by to be dispatched to the battlefield.";
  253. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  254. }
  255. else {
  256. mes "[Guillaume Army Officer]";
  257. mes "You definitely seem to be ready for battle!";
  258. mes "Go show the Croixs what fear truly means!";
  259. mes "Today, our cry of victory shall echo all over the battlefield!";
  260. close2;
  261. warp "bat_room",141,224;
  262. end;
  263. }
  264. }
  265. }
  266. }
  267. }
  268. break;
  269. case 2:
  270. mes "[Guillaume Army Officer]";
  271. mes "Today, we shall be victorious!";
  272. break;
  273. }
  274. close;
  275. }
  276. bat_room,148,121,1 script Flavius Officer#02b 414,{
  277. if (getbattleflag("feature.bgqueue"))
  278. end;
  279. if (checkweight(1201,1) == 0) {
  280. mes "- Wait a minute !! -";
  281. mes "- Currently you're carrying -";
  282. mes "- too many items with you. -";
  283. mes "- Please try again -";
  284. mes "- after you loose some weight. -";
  285. close;
  286. }
  287. mes "[Croix Army Officer]";
  288. mes "Let's show the power of the Croix Army to those stinky Guillaumes!";
  289. next;
  290. switch(select("I want to join your army!:End Conversation")) {
  291. case 1:
  292. if ((BaseJob == Job_Novice) || (BaseJob == Job_Super_Novice)) {
  293. mes "[Croix Army Officer]";
  294. mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  295. }
  296. else {
  297. if (BaseLevel < 80) {
  298. mes "[Croix Army Officer]";
  299. mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield.";
  300. }
  301. else {
  302. set .@chk_urtime,checkquest(2070,PLAYTIME);
  303. if ((.@chk_urtime == 0)|| (.@chk_urtime == 1)) {
  304. mes "[Croix Army Officer]";
  305. mes "You seem to have just returned from the battlefield.";
  306. mes "It's too early for you to go back. Go rest, and leave the enemies to us!";
  307. }
  308. else {
  309. if (.@chk_urtime == 2)
  310. erasequest 2070;
  311. set .@mapcount2,getmapusers("bat_b02");
  312. if (.@mapcount2 > 0) {
  313. mes "[Croix Army Officer]";
  314. mes "I've received a report informing me that an elite corps has been dispatched to the battlefield fighting the Guillaume already.";
  315. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  316. }
  317. else {
  318. if ($@FlaviusBG2 > 0) {
  319. mes "[Croix Army Officer]";
  320. mes "An elite corps is already standing by to be dispatched to the battlefield.";
  321. mes "Why don't you go wait for a while? I suggest you sharpen your weapons and prepare your supplies until then.";
  322. }
  323. else {
  324. mes "[Croix Army Officer]";
  325. mes "You definitely seem to be ready for battle!";
  326. mes "Go show the Guillaumes what fear truly means!";
  327. mes "Today, our cry of victory shall echo all over the battlefield!";
  328. close2;
  329. warp "bat_room",141,207;
  330. end;
  331. }
  332. }
  333. }
  334. }
  335. }
  336. break;
  337. case 2:
  338. mes "[Croix Army Officer]";
  339. mes "Today, we shall be victorious!";
  340. break;
  341. }
  342. close;
  343. }