dts_warper.txt 39 KB

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