dts_warper.txt 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335
  1. //===== rAthena Script =======================================
  2. //= Dungeon Teleport Service
  3. //===== By: ==================================================
  4. //= Evera
  5. //===== Current Version: =====================================
  6. //= 2.9
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Cool Event Corp NPCs vs. Kafra Dungeon Teleport Service and voting system.
  12. //= This is a special event on official servers where there's a
  13. //= big competition between Kafra Corp. and Cool Event Corp.
  14. //= To warp to selected levels of certain dungeons.
  15. //
  16. // Global Variables in use:
  17. // Voting Time check: $DTS_Time
  18. // Cool Event Corp. Vote Numbers: $DTS_JondaVotes
  19. // Kafra Vote Numbers: $DTS_KafraVotes
  20. // Winner: $DTS_Result
  21. // Teleport Service Period Check: $DTS_PeriodCheck
  22. // Kafra Points: $DTS_KafraWins
  23. // Cool Event Corp. Points: $DTS_JondaWins
  24. // Setitem Check: $DTS_VoteCount
  25. // For Detailed information on what each varibale does, see
  26. // the "Vote Globalvar Girl#yuno" NPC at the end of the file.
  27. // Character Variable in use: lhz_vote (how many times player has voted, keeps htem from re-voting.)
  28. //===== Additional Comments: =================================
  29. //= 1.0 Initial release [Evera]
  30. //= 1.1 SVN release, removed from major town (found true info after research),
  31. //= put more arg(2) parameters, fixed a few bugs [Evera]
  32. //= 1.2 Mushed some variables together, optimized a bit [Evera]
  33. //= 1.3 Removed selfconfig [Evera]
  34. //= 1.4 Changed global variables to read from 3 global variables, updated names,
  35. //= fixed array bug [Evera]
  36. //= 1.5 Mushed voting varialbes into 1 variable. [Evera]
  37. //= 1.6 Removed Duplicates [Silent]
  38. //= 1.7 Fixed bug of DTS_Admin not running by itself [Evera]
  39. //= 1.8 Changed requirement to lvl 60 [Evera]
  40. //= 1.9 Removed global eligibility option [Evera]
  41. //= 2.0 Fixed zeny bug [Evera]
  42. //= 2.1 Fixed headers with and updated with newer information [Evera]
  43. //= 2.2 Changed dtseligible 2 to MISC_QUEST|128, to clean up variable usage. [Evera]
  44. //= Also added F_ClearGarbage function to the scripts. [Evera]
  45. //= 2.3 Changed dtseligible to be $dtsday when MISC_QUEST|128
  46. //= Added $dtsday for vote session counter
  47. //= Fixed bug that involved having both warpers enabled at the same time. [Evera]
  48. //= New $dtsday system and bug fix[Evera]
  49. //= 2.3a fixed 2 bugs with comparision [Lupus]
  50. //= 2.3b corrected Glast warp coords [Lupus] 2.3c Bailand -> Bayalan
  51. //= 2.4 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
  52. //= 2.5 Converted from Aegis file. (11.3) [L0ne_W0lf]
  53. //= 2.6 Moved Morroc NPCs to Morroc Ruins. [L0ne_W0lf]
  54. //= 2.7 Fixed a typo, a - to a +. Not sure how that happened. [L0ne_w0lf]
  55. //= 2.8 Corrected another typo this time in a variable.
  56. //= 2.9 Added GM management function. [Euphy]
  57. //============================================================
  58. einbroch,246,70,0 script Vote Timer#ein -1,{
  59. OnInit:
  60. if ($dts) {
  61. set $dts,0;
  62. set $dtsvote,0;
  63. set $dtsday,0;
  64. }
  65. initnpctimer;
  66. end;
  67. OnEnable:
  68. initnpctimer;
  69. end;
  70. OnTimer60000:
  71. // A part that keeps the same status even after a server shut down
  72. if ($DTS_Result == 1) {
  73. if ($DTS_JondaWins == 0) {
  74. donpcevent "Vote Timer2#ein::OnEnable";
  75. }
  76. else if ($DTS_JondaWins == 1) {
  77. if ($DTS_KafraWins < 2) {
  78. donpcevent "Vote Timer2#ein::OnEnable";
  79. }
  80. else {
  81. donpcevent "Vote Timer3#ein::OnEnable";
  82. }
  83. }
  84. else {
  85. if ($DTS_KafraWins < 2) {
  86. donpcevent "Vote Timer2#ein::OnEnable";
  87. }
  88. else {
  89. donpcevent "Vote Timer3#ein::OnEnable";
  90. }
  91. }
  92. stopnpctimer;
  93. }
  94. else if ($DTS_Result == 2) {
  95. if ($DTS_JondaWins == 0) {
  96. donpcevent "Vote Timer2#ein::OnEnable";
  97. }
  98. else if ($DTS_JondaWins == 1) {
  99. if ($DTS_KafraWins < 2) {
  100. donpcevent "Vote Timer2#ein::OnEnable";
  101. }
  102. else {
  103. donpcevent "Vote Timer4#ein::OnEnable";
  104. }
  105. }
  106. else {
  107. if ($DTS_KafraWins < 2) {
  108. donpcevent "Vote Timer2#ein::OnEnable";
  109. }
  110. else {
  111. donpcevent "Vote Timer4#ein::OnEnable";
  112. }
  113. }
  114. stopnpctimer;
  115. }
  116. else {
  117. if ($DTS_Time == 1440) {
  118. if (($DTS_JondaVotes >= 20) || ($DTS_KafraVotes >= 20)) {
  119. if ($DTS_JondaVotes > $DTS_KafraVotes) {
  120. if ($DTS_JondaWins == 0) {
  121. if ($DTS_KafraWins < 2) {
  122. set $DTS_KafraWins,$DTS_KafraWins+1;
  123. set $DTS_Result,1;
  124. set $DTS_Time,0;
  125. donpcevent "Scrutiny Association#6::OnEnable";
  126. donpcevent "Vote Timer2#ein::OnEnable";
  127. }
  128. else if ($DTS_KafraWins == 2) {
  129. set $DTS_Result,1;
  130. set $DTS_Time,0;
  131. donpcevent "Scrutiny Association#6::OnEnable";
  132. donpcevent "Vote Timer2#ein::OnEnable";
  133. }
  134. }
  135. else if ($DTS_JondaWins == 1) {
  136. if ($DTS_KafraWins < 2) {
  137. set $DTS_KafraWins,$DTS_KafraWins+1;
  138. set $DTS_Result,1;
  139. set $DTS_Time,0;
  140. donpcevent "Scrutiny Association#6::OnEnable";
  141. donpcevent "Vote Timer2#ein::OnEnable";
  142. }
  143. else {
  144. set $DTS_Time,0;
  145. set $DTS_Result,1;
  146. donpcevent "Scrutiny Association#6::OnEnable";
  147. donpcevent "Vote Timer3#ein::OnEnable";
  148. }
  149. }
  150. else {
  151. if ($DTS_KafraWins < 2) {
  152. set $DTS_KafraWins,$DTS_KafraWins+1;
  153. set $DTS_Result,1;
  154. set $DTS_Time,0;
  155. donpcevent "Scrutiny Association#6::OnEnable";
  156. donpcevent "Vote Timer2#ein::OnEnable";
  157. }
  158. else {
  159. set $DTS_Result,1;
  160. set $DTS_Time,0;
  161. donpcevent "Scrutiny Association#6::OnEnable";
  162. donpcevent "Vote Timer3#ein::OnEnable";
  163. }
  164. }
  165. }
  166. else {
  167. if ($DTS_KafraWins == 0) {
  168. if ($DTS_JondaWins < 2) {
  169. set $DTS_JondaWins,$DTS_JondaWins+1;
  170. set $DTS_Result,2;
  171. set $DTS_Time,0;
  172. donpcevent "Scrutiny Association#7::OnEnable";
  173. donpcevent "Vote Timer2#ein::OnEnable";
  174. }
  175. else {
  176. set $DTS_Result,2;
  177. set $DTS_Time,0;
  178. donpcevent "Scrutiny Association#7::OnEnable";
  179. donpcevent "Vote Timer2#ein::OnEnable";
  180. }
  181. }
  182. else if ($DTS_KafraWins == 1) {
  183. if ($DTS_JondaWins < 2) {
  184. set $DTS_JondaWins,$DTS_JondaWins+1;
  185. set $DTS_Result,2;
  186. set $DTS_Time,0;
  187. donpcevent "Scrutiny Association#7::OnEnable";
  188. donpcevent "Vote Timer2#ein::OnEnable";
  189. }
  190. else {
  191. set $DTS_Result,2;
  192. set $DTS_Time,0;
  193. donpcevent "Scrutiny Association#7::OnEnable";
  194. donpcevent "Vote Timer4#ein::OnEnable";
  195. }
  196. }
  197. else {
  198. if ($DTS_JondaWins < 2) {
  199. set $DTS_JondaWins,$DTS_JondaWins+1;
  200. set $DTS_Result,2;
  201. set $DTS_Time,0;
  202. donpcevent "Scrutiny Association#7::OnEnable";
  203. donpcevent "Vote Timer2#ein::OnEnable";
  204. }
  205. else {
  206. set $DTS_Result,2;
  207. set $DTS_Time,0;
  208. donpcevent "Scrutiny Association#7::OnEnable";
  209. donpcevent "Vote Timer4#ein::OnEnable";
  210. }
  211. }
  212. }
  213. }
  214. else {
  215. set $DTS_Result,3;
  216. set $DTS_Time,0;
  217. donpcevent "Vote Timer#ein::OnEnable";
  218. }
  219. }
  220. else {
  221. set $DTS_Time,$DTS_Time+1;
  222. donpcevent "Vote Timer#ein::OnEnable";
  223. }
  224. }
  225. end;
  226. }
  227. einbroch,245,71,0 script Vote Timer2#ein -1,{
  228. OnEnable:
  229. initnpctimer;
  230. end;
  231. OnTimer60000:
  232. stopnpctimer;
  233. if ($DTS_PeriodCheck == 8640) {
  234. set $DTS_PeriodCheck,0;
  235. set $DTS_Result,0;
  236. set $DTS_KafraVotes,0;
  237. set $DTS_JondaVotes,0;
  238. set $DTS_VoteCount,$DTS_VoteCount+1;
  239. donpcevent "Vote Timer#ein::OnEnable";
  240. }
  241. else {
  242. set $DTS_PeriodCheck,$DTS_PeriodCheck+1;
  243. donpcevent "Vote Timer2#ein::OnEnable";
  244. }
  245. end;
  246. }
  247. einbroch,246,71,0 script Vote Timer3#ein -1,{
  248. OnEnable:
  249. initnpctimer;
  250. end;
  251. OnTimer60000:
  252. stopnpctimer;
  253. if ($DTS_PeriodCheck == 8640) {
  254. set $DTS_PeriodCheck,0; //Global Variable
  255. set $DTS_Result,0; //Global Variable
  256. set $DTS_KafraVotes,0; //Global Variable
  257. set $DTS_JondaVotes,0; //Global Variable
  258. set $DTS_JondaWins,$DTS_JondaWins-1;
  259. set $DTS_VoteCount,$DTS_VoteCount+1;
  260. donpcevent "Vote Timer#ein::OnEnable";
  261. }
  262. else {
  263. set $DTS_PeriodCheck,$DTS_PeriodCheck+1; //Global Variable
  264. donpcevent "Vote Timer3#ein::OnEnable";
  265. }
  266. end;
  267. }
  268. einbroch,247,71,0 script Vote Timer4#ein -1,{
  269. OnEnable:
  270. initnpctimer;
  271. end;
  272. OnTimer60000:
  273. stopnpctimer;
  274. if ($DTS_PeriodCheck == 8640) {
  275. set $DTS_PeriodCheck,0; //Global Variable
  276. set $DTS_Result,0; //Global Variable
  277. set $DTS_KafraVotes,0; //Global Variable
  278. set $DTS_JondaVotes,0; //Global Variable
  279. set $DTS_KafraWins,$DTS_KafraWins-1;
  280. set $DTS_VoteCount,$DTS_VoteCount+1;
  281. donpcevent "Vote Timer#ein::OnEnable";
  282. }
  283. else {
  284. set $DTS_PeriodCheck,$DTS_PeriodCheck+1; //Global Variable
  285. donpcevent "Vote Timer4#ein::OnEnable";
  286. }
  287. end;
  288. }
  289. // Voting Poll NPCs Kafras and Cool Corp.
  290. // Cool Event Staff should actually be Cool Event Voting Staff
  291. // names had to be shortened to keep them unique.
  292. function script F_VoteKafra {
  293. callfunc "F_ClearGarbage"; //Clear outdated, unused variables
  294. switch(getarg(0)){
  295. case 1: cutin "kafra_01",2; break;
  296. case 2: cutin "kafra_02",2; break;
  297. case 3: cutin "kafra_03",2; break;
  298. case 4: cutin "kafra_04",2; break;
  299. case 5: cutin "kafra_05",2; break;
  300. case 6: cutin "kafra_06",2; break;
  301. case 7: cutin "kafra_07",2; break;
  302. case 8: cutin "kafra_08",2; break;
  303. case 9: cutin "kafra_09",2; break;
  304. }
  305. mes "[Kafra Voting Staff]";
  306. mes "Greetings, adventurer.";
  307. mes "As you may be aware, we";
  308. mes "are holding an election to";
  309. mes "determine which company will";
  310. mes "provide the Dungeon Teleport";
  311. mes "Service. How may I help you?";
  312. next;
  313. switch(select("Reason for Election:Cast a Vote:Use Teleport Service:Cancel")) {
  314. case 1:
  315. mes "[Kafra Voting Staff]";
  316. mes "Cool Event Corp and the";
  317. mes "Kafra Corporation have both";
  318. mes "been planning to provide a";
  319. mes "Teleport Service to dungeons.";
  320. next;
  321. mes "[Kafra Voting Staff]";
  322. mes "But due to technological";
  323. mes "limitations, only one company";
  324. mes "can serve as provider for this";
  325. mes "Dungeon Teleport Service at a";
  326. mes "time. There, both companies have agreed to hold special elections.";
  327. next;
  328. mes "[Kafra Voting Staff]";
  329. mes "Each company has its own";
  330. mes "policies and guarantees in";
  331. mes "regards to the Dungeon Teleport Service, and in this election, the";
  332. mes "customers will ultimately decide and choose what's best for them.";
  333. next;
  334. mes "[Kafra Voting Staff]";
  335. mes "For now, the Dungeon";
  336. mes "Teleport Service will be";
  337. mes "provided in a series of trial periods. This way, customers can";
  338. mes "see the benefits of both companies before making the final decision.";
  339. next;
  340. mes "[Kafra Voting Staff]";
  341. mes "If you are qualified,";
  342. mes "please vote in each election";
  343. mes "to decide which company will";
  344. mes "provide the Dungeon Teleport";
  345. mes "Service for the next trial period. Thank you for your support~";
  346. break;
  347. case 2:
  348. //if (lhz_boss < 17) {
  349. // mes "[Kafra Voting Staff]";
  350. // mes "Oh, I'm so sorry, but you";
  351. // mes "are currently not qualified to";
  352. // mes "vote. For voting qualification";
  353. // mes "information, please visit the";
  354. // mes "Al De Baran Kafra Headquarters.";
  355. // mes "Thank you and have a nice day.";
  356. // close2;
  357. // cutin "",255;
  358. // end;
  359. //}
  360. //else {
  361. if ($DTS_Result == 0) {
  362. if (lhz_vote <= $DTS_VoteCount) {
  363. mes "[Kafra Voting Staff]";
  364. mes "We, the Kafra Corporation,";
  365. mes "are planning to provide the";
  366. mes "Dungeon Teleport Service";
  367. mes "to the following dungeons...";
  368. next;
  369. mes " ";
  370. mes " ";
  371. if ($DTS_KafraWins == 0) {
  372. mes "^FF0000Toy Factory, Level 2^000000";
  373. }
  374. else if ($DTS_KafraWins == 1) {
  375. mes "^FF0000Toy Factory, Level 2^000000";
  376. mes "^FF0000Al De Baran Clock Tower, Level 3 ^000000";
  377. }
  378. else {
  379. mes "^FF0000Toy Factory, Level 2^000000";
  380. mes "^FF0000Al De Baran Clock Tower, Level 3 Lava Dungeon, Level 2^000000";
  381. }
  382. next;
  383. mes "[Kafra Voting Staff]";
  384. mes "If you are interested in";
  385. mes "a Teleport Service to this";
  386. mes "area, then please vote for";
  387. mes "us. Would you like to vote";
  388. mes "for the Kafra Corporation?";
  389. next;
  390. switch(select("No:Yes")) {
  391. case 1:
  392. mes "[Kafra Voting Staff]";
  393. mes "I understand. But if you";
  394. mes "happen to change your mind,";
  395. mes "you are welcome to come back";
  396. mes "at any time. Thank you and";
  397. mes "have a good day, adventurer.";
  398. break;
  399. case 2:
  400. set lhz_vote,$DTS_VoteCount+1;
  401. set $DTS_KafraVotes,$DTS_KafraVotes+1;
  402. mes "[Kafra Voting Staff]";
  403. mes "Thanks for your vote!";
  404. mes "We'll continue to do our best";
  405. mes "to provide the highest quality";
  406. mes "service to our customers. Have";
  407. mes "a good day and remember that the Kafra service is on your side~";
  408. break;
  409. }
  410. }
  411. else {
  412. mes "[Kafra Voting Staff]";
  413. mes "I'm sorry, but you've ";
  414. mes "already participated in";
  415. mes "this election. When the next";
  416. mes "election comes, you will be";
  417. mes "able to vote once again.";
  418. mes "Thank you for your support~";
  419. }
  420. }
  421. else if ($DTS_Result == 3) {
  422. if (lhz_vote <= $DTS_VoteCount) {
  423. mes "[Kafra Voting Staff]";
  424. mes "After totalling the number of";
  425. mes "votes from the last election,";
  426. mes "we have concluded that the";
  427. mes "minimum voter participation";
  428. mes "condition was not satisfied.";
  429. next;
  430. mes "[Kafra Voting Staff]";
  431. mes "Therefore, another election to";
  432. mes "determine which company will";
  433. mes "provide the Dungeon Teleport";
  434. mes "Service will be held. The Kafra";
  435. mes "Corporation will teleport to";
  436. mes "the following dungeons...";
  437. next;
  438. mes " ";
  439. mes " ";
  440. if ($DTS_KafraWins == 0) {
  441. mes "^FF0000Toy Factory, Level 2^000000";
  442. }
  443. else if ($DTS_KafraWins == 1) {
  444. mes "^FF0000Toy Factory, Level 2^000000";
  445. mes "^FF0000Al De Baran Clock Tower, Level 3 ^000000";
  446. }
  447. else {
  448. mes "^FF0000Toy Factory, Level 2^000000";
  449. mes "^FF0000Al De Baran Clock Tower, Level 3 Lava Dungeon, Level 2^000000";
  450. }
  451. next;
  452. mes "[Kafra Voting Staff]";
  453. mes "If you are interested in";
  454. mes "a Teleport Service to these";
  455. mes "areas, then please vote for";
  456. mes "us. Would you like to vote";
  457. mes "for the Kafra Corporation?";
  458. next;
  459. switch(select("No:Yes")) {
  460. case 1:
  461. mes "[Kafra Voting Staff]";
  462. mes "I understand. But if you";
  463. mes "happen to change your mind,";
  464. mes "you are welcome to come back";
  465. mes "at any time. Thank you and";
  466. mes "have a good day, adventurer.";
  467. break;
  468. case 2:
  469. set lhz_vote,$DTS_VoteCount+1;
  470. set $DTS_KafraVotes,$DTS_KafraVotes+1;
  471. mes "[Kafra Voting Staff]";
  472. mes "Thanks for your vote!";
  473. mes "We'll continue to do our best";
  474. mes "to provide the highest quality";
  475. mes "service to our customers. Have";
  476. mes "a good day and remember that the Kafra service is on your side~";
  477. break;
  478. }
  479. }
  480. else {
  481. mes "[Kafra Voting Staff]";
  482. mes "After totalling the number of";
  483. mes "votes from the last election,";
  484. mes "we have concluded that the";
  485. mes "minimum voter participation";
  486. mes "condition was not satisfied.";
  487. next;
  488. mes "[Kafra Voting Staff]";
  489. mes "Therefore, another election to";
  490. mes "determine which company will";
  491. mes "provide the Dungeon Teleport";
  492. mes "Service will be held. However,";
  493. mes "since you've already voted, you cannot vote again in this election.";
  494. next;
  495. mes "[Kafra Voting Staff]";
  496. mes "Your participation in these";
  497. mes "elections is much appreciated,";
  498. mes "and we encourage you to vote";
  499. mes "again during the next election.";
  500. mes "Thank you and have a nice day~";
  501. }
  502. }
  503. else {
  504. mes "[Kafra Voting Staff]";
  505. mes "I'm sorry, but there are";
  506. mes "no elections taking place at";
  507. mes "this time. When the polls are";
  508. mes "open, we encourage you to take";
  509. mes "part and voice your opinions.";
  510. mes "Thank you for your support~";
  511. }
  512. //}
  513. break;
  514. case 3:
  515. if ($DTS_Result == 2) {
  516. mes "[Kafra Voting Staff]";
  517. mes "Thank you for choosing the";
  518. mes "Dungeon Teleport Service.";
  519. mes "Please keep in mind that the";
  520. mes "Free Warp Tickets and Kafra";
  521. mes "Special Reserve Points do not";
  522. mes "apply in this special service.";
  523. next;
  524. if ($DTS_KafraWins == 0) {
  525. switch(select("Toy Factory, Level 2 -> 4,000 z:Cancel")) {
  526. case 1:
  527. if (Zeny >= 4000) {
  528. cutin "",255;
  529. set Zeny, Zeny-4000;
  530. warp "xmas_dun02",130,123;
  531. end;
  532. }
  533. else {
  534. mes "[Kafra Voting Staff]";
  535. mes "I'm sorry, but you don't";
  536. mes "have enough money to pay";
  537. mes "the 4,000 zeny fee to teleport";
  538. mes "to the Toy Factory. Please";
  539. mes "check your funds again.";
  540. }
  541. break;
  542. case 2:
  543. mes "[Kafra Voting Staff]";
  544. mes "We, here at Kafra Corporation,";
  545. mes "are always endeavoring to provide you with the best services. We hope that we meet your adventuring needs and standards of excellence.";
  546. break;
  547. }
  548. }
  549. else if ($DTS_KafraWins == 1) {
  550. switch(select("Toy Factory, Level 2 -> 4,000 z:Clock Tower, Level 3 -> 4,000 z:Cancel")) {
  551. case 1:
  552. if (Zeny >= 4000) {
  553. set Zeny, Zeny-4000;
  554. cutin "kafra_09",255;
  555. warp "xmas_dun02",130,123;
  556. end;
  557. }
  558. else {
  559. mes "[Kafra Voting Staff]";
  560. mes "I'm sorry, but you don't";
  561. mes "have enough money to pay";
  562. mes "the 4,000 zeny fee to teleport";
  563. mes "to the Toy Factory. Please";
  564. mes "check your funds again.";
  565. }
  566. break;
  567. case 2:
  568. if (Zeny >= 4000) {
  569. set Zeny, Zeny-4000;
  570. cutin "kafra_09",255;
  571. warp "alde_dun03",265,22;
  572. end;
  573. }
  574. else {
  575. mes "[Kafra Voting Staff]";
  576. mes "I'm sorry, but you don't";
  577. mes "have enough money to pay";
  578. mes "the 4,000 zeny fee to teleport";
  579. mes "to the Clock Tower. Please";
  580. mes "check your funds again.";
  581. }
  582. break;
  583. case 3:
  584. mes "[Kafra Voting Staff]";
  585. mes "We, here at Kafra Corporation,";
  586. mes "are always endeavoring to provide you with the best services. We hope that we meet your adventuring needs and standards of excellence.";
  587. break;
  588. }
  589. }
  590. else {
  591. switch(select("Toy Factory, Level 2 -> 4,000 z:Clock Tower, Level 3 -> 4,000 z:Lava Dungeon, Level 2 -> 4,000 z:Cancel")) {
  592. case 1:
  593. if (Zeny >= 4000) {
  594. set Zeny, Zeny-4000;
  595. cutin "kafra_09",255;
  596. warp "xmas_dun02",130,123;
  597. end;
  598. }
  599. else {
  600. mes "[Kafra Voting Staff]";
  601. mes "I'm sorry, but you don't";
  602. mes "have enough money to pay";
  603. mes "the 4,000 zeny fee to teleport";
  604. mes "to the Toy Factory. Please";
  605. mes "check your funds again.";
  606. }
  607. break;
  608. case 2:
  609. if (Zeny >= 4000) {
  610. set Zeny, Zeny-4000;
  611. cutin "kafra_09",255;
  612. warp "alde_dun03",265,22;
  613. end;
  614. }
  615. else {
  616. mes "[Kafra Voting Staff]";
  617. mes "I'm sorry, but you don't";
  618. mes "have enough money to pay";
  619. mes "the 4,000 zeny fee to teleport";
  620. mes "to the Clock Tower. Please";
  621. mes "check your funds again.";
  622. }
  623. break;
  624. case 3:
  625. if (Zeny >= 4000) {
  626. set Zeny, Zeny-4000;
  627. cutin "kafra_09",255;
  628. warp "mag_dun02",47,40;
  629. end;
  630. }
  631. else {
  632. mes "[Kafra Voting Staff]";
  633. mes "I'm sorry, but you don't";
  634. mes "have enough money to pay";
  635. mes "the 4,000 zeny fee to teleport";
  636. mes "to the Lava Dungeon. Please";
  637. mes "check your funds again.";
  638. }
  639. break;
  640. case 4:
  641. mes "[Kafra Voting Staff]";
  642. mes "We, here at Kafra Corporation,";
  643. mes "are always endeavoring to provide you with the best services. We hope that we meet your adventuring needs and standards of excellence.";
  644. break;
  645. }
  646. }
  647. }
  648. else if ($DTS_Result == 1) {
  649. mes "[Kafra Voting Staff]";
  650. mes "I'm sorry, but because of";
  651. mes "the results from the most";
  652. mes "recent election, Cool Event";
  653. mes "Corp. is currently handling";
  654. mes "the Dungeon Teleport Service. We apologize for the inconvenience.";
  655. }
  656. else {
  657. mes "[Kafra Voting Staff]";
  658. mes "I'm sorry, but the";
  659. mes "Dungeon Teleport Service";
  660. mes "is not active during the voting";
  661. mes "period. Once the election is";
  662. mes "over, the Dungeon Teleport";
  663. mes "Service will become available.";
  664. }
  665. break;
  666. case 4:
  667. mes "[Kafra Voting Staff]";
  668. mes "We, here at Kafra Corporation,";
  669. mes "are always endeavoring to provide you with the best services. We hope that we meet your adventuring needs and standards of excellence.";
  670. break;
  671. }
  672. close2;
  673. cutin "",255;
  674. end;
  675. }
  676. yuno,162,191,4 script Kafra Voting Staff#yuno 861,{
  677. callfunc "F_VoteKafra",9;
  678. }
  679. prontera,164,125,4 script Kafra Voting Staff#prt 116,{
  680. callfunc "F_VoteKafra",2;
  681. }
  682. moc_ruins,97,133,4 script Kafra Voting Staff#moc 4_M_ZONDAMAN,{
  683. callfunc "F_VoteKafra",2;
  684. }
  685. geffen,122,37,4 script Kafra Voting Staff#gef 116,{
  686. callfunc "F_VoteKafra",2;
  687. }
  688. payon,158,182,4 script Kafra Voting Staff#pay 116,{
  689. callfunc "F_VoteKafra",2;
  690. }
  691. alberta,119,70,4 script Kafra Voting Staff#alb 116,{
  692. callfunc "F_VoteKafra",2;
  693. }
  694. aldebaran,145,102,4 script Kafra Voting Staff#alde 116,{
  695. callfunc "F_VoteKafra",2;
  696. }
  697. lighthalzen,163,60,4 script Kafra Voting Staff#lght 861,{
  698. callfunc "F_VoteKafra",9;
  699. }
  700. - script Cool Event Staff::VotingStaffCCE 874,{
  701. callfunc "F_ClearGarbage"; //Clear outdated, unused variables
  702. cutin "zonda_01",2;
  703. mes "[Cool Event Corp. Voting Staff]";
  704. mes "Hello! Don't forget to make";
  705. mes "your voice be heard and make";
  706. mes "sure you vote in the elections";
  707. mes "between Cool Event Corp. and";
  708. mes "Kafra Corporation for control of the Dungeon Teleport Service!";
  709. next;
  710. switch(select("Reason for Election:Cast a Vote:Use Teleport Service:Cancel")) {
  711. case 1:
  712. mes "[Cool Event Corp. Voting Staff]";
  713. mes "Cool Event Corp. has been";
  714. mes "planning to provide a new";
  715. mes "Dungeon Teleport Service to";
  716. mes "its customers, a service not";
  717. mes "already provided by the Kafra";
  718. mes "Corporation. However...";
  719. next;
  720. mes "[Cool Event Corp. Voting Staff]";
  721. mes "Kafra Corporation, which";
  722. mes "already monopolizes the";
  723. mes "public teleportation market,";
  724. mes "actually also had plans to";
  725. mes "provide a similar service.";
  726. next;
  727. mes "[Cool Event Corp. Voting Staff]";
  728. mes "Because of technological";
  729. mes "limitations, only one company";
  730. mes "can be chosen as the provider";
  731. mes "of this Dungeon Teleport Service. Hence, we will let the customers";
  732. mes "decide through these elections.";
  733. next;
  734. mes "[Cool Event Corp. Voting Staff]";
  735. mes "Multiple elections will be";
  736. mes "held so that our customers";
  737. mes "can test out the special services of each company for themselves.";
  738. mes "However, keep in mind that you must be eligible in order to vote.";
  739. next;
  740. mes "[Cool Event Corp. Voting Staff]";
  741. mes "For voter eligibility";
  742. mes "details, please visit our";
  743. mes "headquarters in the city of";
  744. mes "Lighthalzen located in the";
  745. mes "Schwaltzvalt Republic.";
  746. mes "Thank you for your time.";
  747. break;
  748. case 2:
  749. //if (lhz_boss < 17) {
  750. // mes "[Cool Event Corp. Voting Staff]";
  751. // mes "I'm sorry, but you are not";
  752. // mes "eligible to vote at this time.";
  753. // mes "Please visit our headquarters";
  754. // mes "in Lighthalzen for information";
  755. // mes "related to acquiring voting rights. Thank you for your time.";
  756. // close2;
  757. // cutin "zonda_01",255;
  758. // end;
  759. //}
  760. //else {
  761. if ($DTS_Result == 0) {
  762. if (lhz_vote <= $DTS_VoteCount) {
  763. mes "[Cool Event Corp. Voting Staff]";
  764. mes "Cool Event Corp.,";
  765. mes "if chosen to provide the";
  766. mes "Dungeon Teleport Service,";
  767. mes "will teleport adventurers to";
  768. mes "the following dungeons...";
  769. next;
  770. mes " ";
  771. mes " ";
  772. if ($DTS_JondaWins == 0) {
  773. mes "^FF0000Byalan Dungeon, Level 3^000000";
  774. }
  775. else if ($DTS_JondaWins == 1) {
  776. mes "^FF0000Byalan Dungeon, Level 3^000000";
  777. mes "^FF0000Clock Tower, 3rd Floor^000000";
  778. }
  779. else {
  780. mes "^FF0000Byalan Dungeon, Level 3^000000";
  781. mes "^FF0000Clock Tower, 3rd Floor^000000";
  782. mes "^FF0000Glast Heim Entrance^000000";
  783. }
  784. next;
  785. mes "[Cool Event Corp. Voting Staff]";
  786. mes "If you are interested in";
  787. mes "these destinations, then";
  788. mes "it would be in your best";
  789. mes "interest to vote for us.";
  790. mes "Would you like to vote";
  791. mes "for Cool Event Corp.?";
  792. next;
  793. switch(select("No:Yes")) {
  794. case 1:
  795. mes "[Cool Event Corp. Voting Staff]";
  796. mes "Ah, I see... Well, if you";
  797. mes "happen to change your mind,";
  798. mes "feel free to come back and";
  799. mes "cast your vote for Cool Event";
  800. mes "Corp, alright? Have a nice day~";
  801. break;
  802. case 2:
  803. set lhz_vote,$DTS_VoteCount+1;
  804. set $DTS_JondaVotes,$DTS_JondaVotes+1;
  805. mes "[Cool Event Corp. Voting Staff]";
  806. mes "Thank you for your vote!";
  807. mes "It's customers like you who";
  808. mes "ensure the success and great";
  809. mes "service that you have come to";
  810. mes "expect from Cool Event Corp.";
  811. mes "Thank you and have a nice day~";
  812. break;
  813. }
  814. }
  815. else {
  816. mes "[Cool Event Corp. Voting Staff]";
  817. mes "I'm sorry, but you've";
  818. mes "already cast your vote";
  819. mes "in this election. However,";
  820. mes "please don't let that stop you";
  821. mes "from voting for Cool Event";
  822. mes "Corp. in the next election~";
  823. }
  824. }
  825. else if ($DTS_Result == 3) {
  826. if (lhz_vote <= $DTS_VoteCount) {
  827. mes "[Cool Event Corp. Voting Staff]";
  828. mes "Unfortunately, there wasn't";
  829. mes "enough voter turnout in the";
  830. mes "last election, so we're holding";
  831. mes "another election to determine";
  832. mes "which company will provide the";
  833. mes "Dungeon Teleport Service.";
  834. next;
  835. mes "[Cool Event Corp. Voting Staff]";
  836. mes "Cool Event Corp.,";
  837. mes "if chosen to provide the";
  838. mes "Dungeon Teleport Service,";
  839. mes "will teleport adventurers to";
  840. mes "the following dungeons...";
  841. next;
  842. mes " ";
  843. mes " ";
  844. if ($DTS_JondaWins == 0) {
  845. mes "^FF0000Byalan Dungeon, Level 3^000000";
  846. }
  847. else if ($DTS_JondaWins == 1) {
  848. mes "^FF0000Byalan Dungeon, Level 3^000000";
  849. mes "^FF0000Clock Tower, 3rd Floor^000000";
  850. }
  851. else {
  852. mes "^FF0000Byalan Dungeon, Level 3^000000";
  853. mes "^FF0000Clock Tower, 3rd Floor^000000";
  854. mes "^FF0000Glast Heim Entrance^000000";
  855. }
  856. next;
  857. mes "[Cool Event Corp. Voting Staff]";
  858. mes "If you are interested in";
  859. mes "these destinations, then";
  860. mes "it would be in your best";
  861. mes "interest to vote for us.";
  862. mes "Would you like to vote";
  863. mes "for Cool Event Corp.?";
  864. next;
  865. switch(select("No:Yes")) {
  866. case 1:
  867. mes "[Cool Event Corp. Voting Staff]";
  868. mes "Ah, I see... Well, if you";
  869. mes "happen to change your mind,";
  870. mes "feel free to come back and";
  871. mes "cast your vote for Cool Event";
  872. mes "Corp, alright? Have a nice day~";
  873. break;
  874. case 2:
  875. set lhz_vote,$DTS_VoteCount+1;
  876. set $DTS_JondaVotes,$DTS_JondaVotes+1;
  877. mes "[Cool Event Corp. Voting Staff]";
  878. mes "Thank you for your vote!";
  879. mes "It's customers like you who";
  880. mes "ensure the success and great";
  881. mes "service that you have come to";
  882. mes "expect from Cool Event Corp.";
  883. mes "Thank you and have a nice day~";
  884. break;
  885. }
  886. }
  887. else {
  888. mes "[Cool Event Corp. Voting Staff]";
  889. mes "Unfortunately, there wasn't";
  890. mes "enough voter turnout in the";
  891. mes "last election, so we're holding";
  892. mes "another election to determine";
  893. mes "which company will provide the";
  894. mes "Dungeon Teleport Service.";
  895. next;
  896. mes "[Cool Event Corp. Voting Staff]";
  897. mes "We appreciate that";
  898. mes "you've already participated";
  899. mes "in this second election by";
  900. mes "casting your vote. Thank";
  901. mes "you for your support~";
  902. }
  903. }
  904. else {
  905. mes "[Cool Event Corp. Voting Staff]";
  906. mes "I'm sorry, but an election is";
  907. mes "not currently being held at this time. Please come and cast your";
  908. mes "vote at the next election to decide which company will provide the";
  909. mes "Dungeon Teleport Service.";
  910. }
  911. //}
  912. break;
  913. case 3:
  914. if ($DTS_Result == 1) {
  915. mes "[Cool Event Corp. Voting Staff]";
  916. mes "Please remember that we";
  917. mes "cannot accept Free Warp Tickets";
  918. mes "or award Special Reserve Points";
  919. mes "for this service. Now, please";
  920. mes "choose your destination.";
  921. next;
  922. if ($DTS_JondaWins == 0) {
  923. switch(select("Byalan Dungeon, Level 3 -> 4,000 z:Cancel")) {
  924. case 1:
  925. if (Zeny >= 4000) {
  926. set Zeny, Zeny-4000;
  927. cutin "zonda_01",255;
  928. warp "iz_dun02",234,206;
  929. end;
  930. }
  931. else {
  932. mes "[Cool Event Corp. Voting Staff]";
  933. mes "I'm sorry, but you do";
  934. mes "not have enough zeny to";
  935. mes "teleport to this destination.";
  936. mes "The teleport fee is 4,000 zeny.";
  937. }
  938. break;
  939. case 2:
  940. mes "[Cool Event Corp. Voting Staff]";
  941. mes "Always be assured that";
  942. mes "Cool Event Corp. will do";
  943. mes "everything in its power to";
  944. mes "ensure the satisfaction of";
  945. mes "its customers, young and old";
  946. mes "and big and small. Thank you~";
  947. break;
  948. }
  949. }
  950. else if ($DTS_JondaWins == 1) {
  951. switch(select("Byalan Dungeon, Level 3 -> 4,000 z:Clock Tower, 3rd Floor -> 4,000 z:Cancel")) {
  952. case 1:
  953. if (Zeny >= 4000) {
  954. set Zeny, Zeny-4000;
  955. cutin "zonda_01",255;
  956. warp "iz_dun02",234,206;
  957. end;
  958. }
  959. else {
  960. mes "[Cool Event Corp. Voting Staff]";
  961. mes "I'm sorry, but you do";
  962. mes "not have enough zeny to";
  963. mes "teleport to this destination.";
  964. mes "The teleport fee is 4,000 zeny.";
  965. }
  966. break;
  967. case 2:
  968. if (Zeny >= 4000) {
  969. set Zeny, Zeny-4000;
  970. cutin "zonda_01",255;
  971. warp "c_tower3",64,143;
  972. end;
  973. }
  974. else {
  975. mes "[Cool Event Corp. Voting Staff]";
  976. mes "I'm sorry, but you do";
  977. mes "not have enough zeny to";
  978. mes "teleport to this destination.";
  979. mes "The teleport fee is 4,000 zeny.";
  980. }
  981. break;
  982. case 3:
  983. mes "[Cool Event Corp. Voting Staff]";
  984. mes "Always be assured that";
  985. mes "Cool Event Corp. will do";
  986. mes "everything in its power to";
  987. mes "ensure the satisfaction of";
  988. mes "its customers, young and old";
  989. mes "and big and small. Thank you~";
  990. break;
  991. }
  992. }
  993. else {
  994. mes "[Cool Event Corp. Voting Staff]";
  995. mes "Please remember that we";
  996. mes "cannot accept Free Warp Tickets";
  997. mes "or award Special Reserve Points";
  998. mes "for this service. Now, please";
  999. mes "choose your destination.";
  1000. next;
  1001. switch(select("Byalan Dungeon, Level 3 -> 4,000 z:Clock Tower, 3rd Floor -> 4,000 z:Glast Heim Entrance -> 4,000 z:Cancel")) {
  1002. case 1:
  1003. if (Zeny >= 4000) {
  1004. set Zeny, Zeny-4000;
  1005. cutin "zonda_01",255;
  1006. warp "iz_dun02",234,206;
  1007. end;
  1008. }
  1009. else {
  1010. mes "[Cool Event Corp. Voting Staff]";
  1011. mes "I'm sorry, but you do";
  1012. mes "not have enough zeny to";
  1013. mes "teleport to this destination.";
  1014. mes "The teleport fee is 4,000 zeny.";
  1015. }
  1016. break;
  1017. case 2:
  1018. if (Zeny >= 4000) {
  1019. set Zeny, Zeny-4000;
  1020. cutin "zonda_01",255;
  1021. warp "c_tower3",64,143;
  1022. end;
  1023. }
  1024. else {
  1025. mes "[Cool Event Corp. Voting Staff]";
  1026. mes "I'm sorry, but you do";
  1027. mes "not have enough zeny to";
  1028. mes "teleport to this destination.";
  1029. mes "The teleport fee is 4,000 zeny.";
  1030. }
  1031. break;
  1032. case 3:
  1033. if (Zeny >= 4000) {
  1034. set Zeny, Zeny-4000;
  1035. cutin "zonda_01",255;
  1036. warp "glast_01",368,303;
  1037. end;
  1038. }
  1039. else {
  1040. mes "[Cool Event Corp. Voting Staff]";
  1041. mes "I'm sorry, but you do";
  1042. mes "not have enough zeny to";
  1043. mes "teleport to this destination.";
  1044. mes "The teleport fee is 4,000 zeny.";
  1045. }
  1046. break;
  1047. case 4:
  1048. mes "[Cool Event Corp. Voting Staff]";
  1049. mes "Always be assured that";
  1050. mes "Cool Event Corp. will do";
  1051. mes "everything in its power to";
  1052. mes "ensure the satisfaction of";
  1053. mes "its customers, young and old";
  1054. mes "and big and small. Thank you~";
  1055. break;
  1056. }
  1057. }
  1058. }
  1059. else if ($DTS_Result == 2) {
  1060. mes "[Cool Event Corp. Voting Staff]";
  1061. mes "I'm sorry, but Cool Event";
  1062. mes "Corp. does not currently offer";
  1063. mes "the Dungeon Teleport Service";
  1064. mes "due to the results of the last";
  1065. mes "election. Please vote for us";
  1066. mes "next time, alright? Good day~";
  1067. }
  1068. else {
  1069. mes "[Cool Event Corp. Voting Staff]";
  1070. mes "I'm sorry, but the";
  1071. mes "Dungeon Teleport Service is";
  1072. mes "unavailable during elections";
  1073. mes "and will be reactivated after the election results are announced.";
  1074. mes "Thank you and have a nice day.";
  1075. }
  1076. break;
  1077. case 4:
  1078. mes "[Cool Event Corp. Voting Staff]";
  1079. mes "Cool Event Corp. is always";
  1080. mes "working to make sure that";
  1081. mes "not only are our customers";
  1082. mes "satisfied, but that we also";
  1083. mes "exceed your utmost standards.";
  1084. mes "Thank you and have a good day.";
  1085. break;
  1086. }
  1087. close2;
  1088. cutin "zonda_01",255;
  1089. end;
  1090. }
  1091. yuno,153,191,6 duplicate(VotingStaffCCE) Cool Event Staff#yuno 874
  1092. prontera,147,125,6 duplicate(VotingStaffCCE) Cool Event Staff#prt 874
  1093. moc_ruins,104,133,6 duplicate(VotingStaffCCE) Cool Event Staff#moc 874
  1094. geffen,117,37,6 duplicate(VotingStaffCCE) Cool Event Staff#gef 874
  1095. payon,153,182,6 duplicate(VotingStaffCCE) Cool Event Staff#pay 874
  1096. alberta,114,70,6 duplicate(VotingStaffCCE) Cool Event Staff#alb 874
  1097. aldebaran,138,102,6 duplicate(VotingStaffCCE) Cool Event Staff#alde 874
  1098. lighthalzen,154,60,6 duplicate(VotingStaffCCE) Cool Event Staff#lhz 874
  1099. yuno,103,225,0 script Scrutiny Association#5 -1,{
  1100. OnInit:
  1101. initnpctimer;
  1102. end;
  1103. OnEnable:
  1104. initnpctimer;
  1105. end;
  1106. OnTimer7200000:
  1107. stopnpctimer;
  1108. if (($DTS_Result == 0) || ($DTS_Result == 3)) {
  1109. announce "Currently, the Dungeon Teleport Service Provider Election is being held in all major cities. Your participation is appreciated.",bc_all,"0x70dbdb";
  1110. }
  1111. donpcevent "Scrutiny Association#5::OnEnable";
  1112. end;
  1113. }
  1114. einbroch,248,71,0 script Scrutiny Association#6 -1,{
  1115. OnEnable:
  1116. initnpctimer;
  1117. end;
  1118. OnTimer1000:
  1119. announce "All the votes for the Dungeon Teleport Service Provider Election have been received and counted.",bc_all,"0x70dbdb";
  1120. end;
  1121. OnTimer5000:
  1122. announce "The results are now in...",bc_all,"0x70dbdb";
  1123. end;
  1124. OnTimer10000:
  1125. announce "This time, Cool Event Corp. will be the Dungeon Teleport Service Provider.",bc_all,"0x70dbdb";
  1126. end;
  1127. OnTimer15000:
  1128. announce "Many thanks to all of you who have voted and shown your support.",bc_all,"0x70dbdb";
  1129. stopnpctimer;
  1130. end;
  1131. }
  1132. einbroch,249,71,0 script Scrutiny Association#7 -1,{
  1133. OnEnable:
  1134. initnpctimer;
  1135. end;
  1136. OnTimer1000:
  1137. announce "All the votes for the Dungeon Teleport Service Provider Election have been received and counted.",bc_all,"0x70dbdb";
  1138. end;
  1139. OnTimer5000:
  1140. announce "The results are now in...",bc_all,"0x70dbdb";
  1141. end;
  1142. OnTimer10000:
  1143. announce "This time, Kafra Corporation will be the Dungeon Teleport Service Provider.",bc_all,"0x70dbdb";
  1144. end;
  1145. OnTimer15000:
  1146. announce "Many thanks to all of you who have voted and shown your support.",bc_all,"0x70dbdb";
  1147. stopnpctimer;
  1148. end;
  1149. }
  1150. /*
  1151. // GM only NPC used for modifying values related to the DTS system.
  1152. // Disabled in official script.
  1153. sec_in02,17,160,4 script Vote Globalvar Girl#yuno 864,{
  1154. callfunc "F_GM_NPC";
  1155. mes "[Christy's Maid]";
  1156. mes "Lady Christy!";
  1157. next;
  1158. if (callfunc("F_GM_NPC",1854,0) == 1) {
  1159. mes "[Christy's Maid]";
  1160. mes "I am Lady Christy's Maid.";
  1161. next;
  1162. switch(select("Globalvar Check:Setitem Zero:Change Glbalvar")) {
  1163. case 1:
  1164. mes "Current GlobalVar are";
  1165. next;
  1166. mes "[Christy's Maid]";
  1167. mes "Global 1 - Voting Time check : "+$DTS_Time+"";
  1168. mes "Global 2 - Cool Event Corp. Vote Numbers : "+$DTS_JondaVotes+"";
  1169. mes "Global 3 - Kafra Vote Numbers : "+$DTS_KafraVotes+"";
  1170. mes "Global 4 - Winner : "+$DTS_Result+"";
  1171. mes "Global 5 - Teleport Service Period Check: "+$DTS_PeriodCheck+"";
  1172. mes "Global 6 - Kafra Points : "+$DTS_KafraWins+"";
  1173. mes "Global 7 - Cool Event Corp. Points : "+$DTS_JondaWins+"";
  1174. mes "Global 8 - Setitem Check : "+$DTS_VoteCount+"";
  1175. next;
  1176. mes "[Christy's Maid]";
  1177. mes "Current Setitem value is "+lhz_vote+".";
  1178. close;
  1179. case 2:
  1180. set lhz_vote,0;
  1181. close;
  1182. case 3:
  1183. mes "[Christy's Maid]";
  1184. mes "Which Globalvar value would you like to change?";
  1185. next;
  1186. switch(select("1 - Voting Time:2 - Cool Event Corp. Vote Numbers:3 - Kafra Vote Numbers:4 - Winner:5 - Teleport Service Period:6 - Kafra Warp Number:7 - Cool Event Corp. Warp Number:8 - Setitem Value")) {
  1187. case 1:
  1188. mes "[Christy's Maid]";
  1189. mes "Please enter a number among 0 and 1000.";
  1190. next;
  1191. input .@input;
  1192. if ((.@input < 0) || (.@input > 1000)) {
  1193. mes "[Christy's Maid]";
  1194. mes "The value is incorrect.";
  1195. close;
  1196. }
  1197. set $DTS_Time,.@input;
  1198. mes "[Christy's Maid]";
  1199. mes "The value has been modified.";
  1200. close;
  1201. case 2:
  1202. mes "[Christy's Maid]";
  1203. mes "Please enter a number among 0 and 1000.";
  1204. next;
  1205. input .@input;
  1206. if ((.@input < 0) || (.@input > 1000)) {
  1207. mes "[Christy's Maid]";
  1208. mes "The value is incorrect.";
  1209. close;
  1210. }
  1211. set $DTS_JondaVotes,.@input;
  1212. mes "[Christy's Maid]";
  1213. mes "The value has been modified.";
  1214. close;
  1215. case 3:
  1216. mes "[Christy's Maid]";
  1217. mes "Please enter a number among 0 and 1000.";
  1218. next;
  1219. input .@input;
  1220. if ((.@input < 0) || (.@input > 1000)) {
  1221. mes "[Christy's Maid]";
  1222. mes "The value is incorrect.";
  1223. close;
  1224. }
  1225. set $DTS_KafraVotes,.@input;
  1226. mes "[Christy's Maid]";
  1227. mes "The value has been modified.";
  1228. close;
  1229. case 4:
  1230. mes "[Christy's Maid]";
  1231. mes "Please enter a number among 0 and 3.";
  1232. next;
  1233. input .@input;
  1234. if ((.@input < 0) || (.@input > 3)) {
  1235. mes "[Christy's Maid]";
  1236. mes "The value is incorrect.";
  1237. close;
  1238. }
  1239. set $DTS_Result,.@input;
  1240. mes "[Christy's Maid]";
  1241. mes "The value has been modified.";
  1242. close;
  1243. case 5:
  1244. mes "[Christy's Maid]";
  1245. mes "Please enter a number among 0 and 1000.";
  1246. next;
  1247. input .@input;
  1248. if ((.@input < 0) || (.@input > 1000)) {
  1249. mes "[Christy's Maid]";
  1250. mes "The value is incorrect.";
  1251. close;
  1252. }
  1253. set $DTS_PeriodCheck,.@input;
  1254. mes "[Christy's Maid]";
  1255. mes "The value has been modified.";
  1256. close;
  1257. case 6:
  1258. mes "[Christy's Maid]";
  1259. mes "Please enter a number among 0 and 2.";
  1260. next;
  1261. input .@input;
  1262. if ((.@input < 0) || (.@input > 2)) {
  1263. mes "[Christy's Maid]";
  1264. mes "The value is incorrect.";
  1265. close;
  1266. }
  1267. set $DTS_KafraWins,.@input;
  1268. mes "[Christy's Maid]";
  1269. mes "The value has been modified.";
  1270. close;
  1271. case 7:
  1272. mes "[Christy's Maid]";
  1273. mes "Please enter a number among 0 and 2.";
  1274. next;
  1275. input .@input;
  1276. if ((.@input < 0) || (.@input > 2)) {
  1277. mes "[Christy's Maid]";
  1278. mes "The value is incorrect.";
  1279. close;
  1280. }
  1281. set $DTS_JondaWins,.@input;
  1282. mes "[Christy's Maid]";
  1283. mes "The value has been modified.";
  1284. close;
  1285. case 8:
  1286. mes "[Christy's Maid]";
  1287. mes "Please enter a number among 0 and 10000.";
  1288. next;
  1289. input .@input;
  1290. if ((.@input < 0) || (.@input > 10000)) {
  1291. mes "[Christy's Maid]";
  1292. mes "The value is incorrect.";
  1293. close;
  1294. }
  1295. set $DTS_VoteCount,.@input;
  1296. mes "[Christy's Maid]";
  1297. mes "The value has been modified.";
  1298. close;
  1299. }
  1300. }
  1301. }
  1302. else {
  1303. mes "[Christy's Maid]";
  1304. mes "Lady Christy...";
  1305. close;
  1306. }
  1307. }
  1308. */