dts_warper.txt 39 KB

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