dts_warper.txt 39 KB

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