dts_warper.txt 39 KB

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