dts_warper.txt 39 KB

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