diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-24 09:27:15 -0700 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-24 09:27:15 -0700 |
commit | 418dd821c91ae19723a7b7b531e64b9c4565d555 (patch) | |
tree | b361a1823a08e654e5969dcdea97da05f4f7cd90 /npc/quests/quests_geffen.txt | |
parent | 835d55b07858202198564bc6c2ff0888a7f78d31 (diff) | |
parent | e3afdc2af4c5e50c79237ee092e25f39b7428e47 (diff) | |
download | hercules-418dd821c91ae19723a7b7b531e64b9c4565d555.tar.gz hercules-418dd821c91ae19723a7b7b531e64b9c4565d555.tar.bz2 hercules-418dd821c91ae19723a7b7b531e64b9c4565d555.tar.xz hercules-418dd821c91ae19723a7b7b531e64b9c4565d555.zip |
Merge pull request #201 from Michieru/master
Super-Mega Thanks to Michieru!
NPC Changelog (might be incomplete, did my best)
- npc/battleground/bg_common.txt
-- 1.4 Added GM management function. [Euphy]
- npc/battleground/flavius/flavius01.txt
-- 1.4 Label standardization. [Euphy]
-- 1.5 Added GM management function. [Euphy]
- npc/battleground/flavius/flavius02.txt
-- 1.5 Label standardization. [Euphy]
-- 1.6 Added GM management function. [Euphy]
- npc/battleground/tierra/tierra01.txt
-- 1.4 Label standardization. [Euphy]
-- 1.5 Added GM management function. [Euphy]
- npc/battleground/tierra/tierra02.txt
-- 1.3 Label standardization. [Euphy]
-- 1.4 Added GM management function. [Euphy]
- npc/cities/ayothaya.txt
-- 1.9 Updated Renewal warp coordinates.
- npc/cities/izlude.txt
-- 1.9a A part of Kylick's dialogue is Pre-Renewal only. [Euphy]
- npc/cities/yuno.txt
-- 1.5 Added Renewal coordinates for Payon and Izlude. [Euphy]
- npc/events/bossnia.txt
-- 1.2 Moved spawns and warps (by Masao) to this file. [Euphy]
- npc/events/easter_2010.txt
-- 1.0 First version. [Euphy]
- npc/events/gdevent_aru.txt
-- 1.2 Added GM management function. [Euphy]
- npc/events/gdevent_sch.txt
-- 1.2 Added GM management function. [Euphy]
- npc/events/god_se_festival.txt
-- 1.1 Added GM management function. [Euphy]
- npc/jobs/2-2/rogue.txt
-- impossible get a Gladius [3]. (bugreport:481) [Samuray22]
- npc/jobs/2-2e/SoulLinker.txt
-- 1.6 Updated to match the latest official script. [Euphy]
- npc/kafras/kafras.txt
-- 1.1a Fixed Pre-RE Call and some leftovers. [Lemongrass]
-- 1.1b Enabled saving in Izlude duplicates (RE). [Euphy]
- npc/merchants/alchemist.txt
-- 1.8 Moved Craft Book Merchant to Renewal path. [Euphy]
- npc/mobs/citycleaners.txt
-- 1.2 Split spawns into Pre-RE/RE and Town files. [Euphy]
- npc/mobs/towns.txt
-- 1.0 First version.
- npc/other/Global_Functions.txt
-- 2.17 Renamed 'F_RandMes' to 'F_Rand'. [Euphy]
-- 2.18 Removed useless 'getJobName' function. [Euphy]
- npc/other/acolyte_warp.txt
-- 1.0 First version. [Euphy]
- npc/other/arena/arena_aco.txt
-- 1.3 Label standardization. [Euphy]
-- 1.4 Script updates, and removed two level restrictions. [Euphy]
-- 1.5 Added GM management function. [Euphy]
- npc/other/arena/arena_lvl50.txt
-- 1.2 Label standardization. [Euphy]
-- 1.3 Script updates. [Euphy]
- npc/other/arena/arena_lvl60.txt
-- 1.3 Label standardization. [Euphy]
-- 1.4 Script updates. [Euphy]
- npc/other/arena/arena_lvl70.txt
-- 1.2 Label standardization. [Euphy]
-- 1.3 Script updates. [Euphy]
- npc/other/arena/arena_lvl80.txt
-- 1.2 Label standardization. [Euphy]
-- 1.3 Script updates, and removed a level restriction. [Euphy]
- npc/other/arena/arena_party.txt
-- 1.4 Label standardization and bug fixes. [Euphy]
-- 1.5 Script updates, and removed a level restriction. [Euphy]
- npc/other/arena/arena_room.txt
-- 1.2 Label standardization, disabled GM NPCs. [Euphy]
-- 1.2a Added Renewal level checksk. [Euphy]
-- 1.3 Script updates. [Euphy]
-- 1.4 Added GM management function. [Euphy]
- npc/other/hugel_bingo.txt
-- 1.9 Some optimization/standardization. [Euphy]
- npc/other/marriage.txt
-- 1.3 Changed permanent global variables to temporary ones. [Euphy]
-- 1.4 Added GM management function. [Euphy]
- npc/other/pvp.txt
-- 2.4 Fixed incorrect use of 'close' and some cleaning. [Joseph]
-- 2.5 Renewal/Pre-Renewal split. [Euphy]
- npc/other/turbo_track.txt
-- 1.1 Updated RE/Pre-RE EXP. [Euphy]
-- 1.2 Added Renewal features. [Euphy]
- npc/pre-re/cities/yuno.txt
-- 1.0 First version.
- npc/pre-re/kafras/kafras.txt
-- 1.0 First version.
- npc/pre-re/merchants/ammo_boxes.txt
-- 1.0 First version, Pre-Renewal duplicates.
- npc/pre-re/merchants/ammo_dealer.txt
-- 1.0 First version, Pre-Renewal duplicates.
- npc/pre-re/merchants/shops.txt
-- 1.1 Moved Izlude shops to pre-re/re paths. [Streusel]
- npc/pre-re/mobs/citycleaners.txt
-- 1.0 First version, Pre-Renewal spawns.
- npc/pre-re/other/bulletin_boards.txt
-- 1.0 Moved Izlude NPCs to Pre-RE/RE paths.
- npc/pre-re/other/msg_boards.txt
-- 1.0 Moved Izlude NPCs to Pre-RE path.
- npc/pre-re/other/pvp.txt
-- 1.0 First version, Pre-Renewal.
- npc/pre-re/other/resetskill.txt
-- 1.0 First version. [L0ne_W0lf]
- npc/pre-re/other/turbo_track.txt
-- 1.0 Split Peco Peco Manager NPC.
- npc/pre-re/quests/first_class/tu_archer.txt
-- 1.0 First version. [Euphy]
- npc/pre-re/quests/monstertamers.txt
-- 1.0 Moved Izlude NPC to pre-re/re paths.
- npc/pre-re/quests/quests_13_1.txt
-- 1.0 Moved Izlude NPC to pre-re/re paths. [Euphy]
- npc/pre-re/quests/quests_nameless.txt
-- 1.0 Moved Dorian to pre-re/re paths.
- npc/pre-re/quests/quests_veins.txt
-- 1.0 First version.
- npc/pre-re/warps/other/arena.txt
-- 1.0 First version, Pre-Renewal warps.
- npc/quests/dandelion_request.txt
-- 1.3 Added GM management function. [Euphy]
- npc/quests/eye_of_hellion.txt
-- 2.0 Updated EXP rewards.
-- 2.1 Updated RE/Pre-RE EXP. [Euphy]
- npc/quests/first_class/tu_archer.txt
-- 1.1 optimized [Lupus]
-- 1.2 fixed Weight check
- npc/quests/first_class/tu_magician01.txt
-- 1.4 Updated to match the official script. [Euphy]
- npc/quests/first_class/tu_merchant.txt
-- 1.1 Fixed bugs, optimized [Lupus]
-- 1.2 fixed Weight check
- npc/quests/first_class/tu_sword.txt
-- 1.5 Added Renewal Izlude coordinates.
-- 1.6 Added Pre-Renewal support. [Euphy]
- npc/quests/first_class/tu_thief01.txt
-- 1.5 Added Pre-Renewal support. [Euphy]
- npc/quests/mage_solution.txt
-- 1.0 Split from Pre-Renewal Mage job quest. [Zopokx]
- npc/quests/okolnir.txt
-- 1.1 Some bug fixes. [Toshiro90/Euphy]
- npc/quests/partyrelay.txt
-- 1.2 Updated RE/Pre-RE EXP. [Euphy]
- npc/quests/quests_13_1.txt
-- 3.1 Updated RE/Pre-RE EXP. [Euphy]
-- 3.2 Updated ep13_start and dialog to match official script. [Joseph]
-- 3.3 Updated to match the latest official script. [Euphy]
-- 3.3a Added Izlude RE coordinates. [Euphy]
-- 3.4 Added GM management function and NPC. [Euphy]
- npc/quests/quests_alberta.txt
-- 2.6 Updated RE/Pre-RE EXP. [Euphy]
- npc/quests/quests_amatsu.txt
-- 1.5 Added questlog support. [Euphy]
- npc/quests/quests_geffen.txt
-- 1.5 Added Number Match Game. [Euphy]
- npc/quests/quests_juperos.txt
-- 1.8 Updated RE/Pre-RE EXP. [Euphy]
-- 1.9 Added GM management NPC. [Euphy]
- npc/quests/quests_niflheim.txt
-- Updated to Aegis 10.3 Standed, added Message Delivery Quest.
-- 1.6 Added questlog support. [Euphy]
- npc/quests/quests_veins.txt
-- Added Veins Thor Volcano Base Quest NPC. [L0ne_W0lf]
- npc/quests/seals/god_global.txt
-- 1.2 Renewal script update. [Euphy]
- npc/quests/seals/god_weapon_creation.txt
-- 1.3 Renewal script update. [Euphy]
- npc/quests/seals/seal_status.txt
-- 1.0 Translated from the official. [L0ne_W0lf]
-- 1.1 Now checks proper char vars. [L0ne_W0lf]
-- 1.2 Cleaning. [Euphy]
-- 1.3 Renewal script update. [Euphy]
- npc/quests/seals/sleipnir_seal.txt
-- 1.4 Renewal script update. [Euphy]
- npc/quests/skills/novice_skills.txt
-- 1.8 Added Baby support. [Zopokx]
- npc/quests/skills/rogue_skills.txt
-- 1.8 Some cleaning. [Euphy]
- npc/quests/skills/sage_skills.txt
-- 1.5 Optimized. [Euphy]
- npc/re/airports/izlude.txt
-- 1.0 Updated to match the new Izlude Map. [Masao]
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/cities/dicastes.txt
-- 1.3 Updated to match official script. [SkittleNugget]
- npc/re/cities/izlude.txt
-- 1.1 Updated to match the official script. [Euphy]
-- 1.2 Added Channel Warper and Izlude duplicates. [Euphy]
- npc/re/cities/jawaii.txt
-- 1.1 Moved "Honeymoon Helper" NPC.
-- 1.2 Added Izlude duplicates. [Euphy]
- npc/re/cities/malangdo.txt
-- 1.2 Moved "Odgnalam" coordinates.
-- 1.3 Fixed dialogues.
-- 1.4 Dialogue edits, source iRO.
-- 1.5 Added Izlude duplicates.
- npc/re/cities/malaya.txt
-- 0.1 Alberta sailors only. [Euphy]
-- 0.2 Adapted from Masao's conversion.
-- 1.0 Added remaining NPCs.
- npc/re/cities/yuno.txt
-- 1.0 First version.
- npc/re/guides/guides_alberta.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_aldebaran.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_amatsu.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_ayothaya.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_brasilis.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_comodo.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_dewata.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_dicastes.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_einbroch.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_geffen.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_gonryun.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_hugel.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_izlude.txt
-- 1.2 Added Renewal Izlude viewpoint coordinates.
-- 1.3 Navigation system update. [Euphy]
-- 1.4 Added Izlude duplicates. [Euphy]
- npc/re/guides/guides_juno.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_lighthalzen.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_louyang.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_lutie.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_malaya.txt
-- 1.0 First version. [Euphy]
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_mora.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_morroc.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_moscovia.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_niflheim.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_payon.txt
-- 1.2 Navigation system update. [Euphy]
- npc/re/guides/guides_prontera.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_rachel.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_umbala.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/guides_veins.txt
-- 1.1 Navigation system update. [Euphy]
- npc/re/guides/navigation.txt
-- 1.0 First version.
- npc/re/guild/invest_main.txt
-- 1.1 Added GM management function. [Euphy]
- npc/re/jobs/3-1/guillotine_cross.txt
-- 1.4 Added missing labels. [Joseph]
-- 1.5 Added GM management function. [Euphy]
- npc/re/jobs/3-2/royal_guard.txt
-- 1.2 Added GM management function. [Euphy]
- npc/re/jobs/3-2/sura.txt
-- 1.3 Added GM management function. [Euphy]
- npc/re/jobs/novice/novice.txt
-- 1.0 First version, hand scripted from iRO. [Kisuka]
-- 1.5 Replaced with the official kRO scripts. [Euphy]
- npc/re/jobs/repair.txt
-- 1.0 First version.
-- 1.1 Added GM management function. [Euphy]
- npc/re/kafras/kafras.txt
-- 1.2 Added Port Malaya Kafras. [Euphy]
-- 1.3 Added Eden Group Kafra. [Euphy]
-- 1.3a Moved Rune Knight Kafra from job file. [Euphy]
-- 1.4 Added Izlude duplicates. [Euphy]
- npc/re/merchants/3rd_trader.txt
-- 1.3 Added Malangdo/Mora Points NPC. [Euphy]
-- 1.4 Updated to match the official scripts. [Euphy]
-- 1.5 Added Izlude duplicates. [Euphy]
- npc/re/merchants/advanced_refiner.txt
-- 1.0 Added Malangdo Refiner "Holink". [Euphy]
- npc/re/merchants/alchemist.txt
-- 1.0 Split Geneticist shop from main file. [Euphy]
- npc/re/merchants/ammo_boxes.txt
-- 1.0 First version, Renewal duplicates.
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/merchants/ammo_dealer.txt
-- 1.0 First version, Renewal duplicates.
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/merchants/card_separation.txt
-- 1.1 Added "Richard" NPC. [Euphy]
- npc/re/merchants/enchan_mora.txt
-- 1.2 Bug fixes (bugreport:7930) [DeadlySilence]
- npc/re/merchants/enchan_upg.txt
-- 1.0 First version.
-- 1.1 Standardizing, grammar and bug fixes. [Euphy]
- npc/re/merchants/flute.txt
-- 1.2a Fixed some conditions. [Euphy]
- npc/re/merchants/renters.txt
-- 2.2 Updated to match the official scripts. [Euphy]
- npc/re/merchants/shops.txt
-- 1.7 Added Izlude duplicates. [Euphy]
- npc/re/mobs/citycleaners.txt
-- 1.0 First version, Renewal spawns.
- npc/re/mobs/dungeons/ecl_tdun.txt
-- 1.0 First version. [Euphy]
- npc/re/mobs/dungeons/mal_dun.txt
-- 1.2 Added Pouring spawn, source iRO. [Euphy]
- npc/re/mobs/fields/eclage.txt
-- 1.0 First version. [Euphy]
- npc/re/mobs/towns.txt
-- 1.0 First version, Renewal spawns.
- npc/re/other/bulletin_boards.txt
-- 1.0 Moved Izlude NPCs to Pre-RE/RE paths.
- npc/re/other/item_merge.txt
-- 1.0 First version, currently useless/disabled.
- npc/re/other/mail.txt
-- 1.0 First version, Renewal duplicates.
- npc/re/other/mercenary_rent.txt
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/other/pvp.txt
-- 1.0 First version, Renewal.
- npc/re/other/resetskill.txt
-- 1.0 First version, Renewal script.
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/other/stone_change.txt
-- 1.0 First version.
- npc/re/other/turbo_track.txt
-- 1.0 Split Mount Manager NPC.
- npc/re/quests/eden/71-85.txt
-- 1.3 Updated to match the official scripts. [Euphy]
- npc/re/quests/eden/eden_iro.txt
-- 1.0 First version.
-- 1.1 Edited and added more NPCs, lots of placeholders. [Euphy]
- npc/re/quests/eden/eden_quests.txt
-- 1.5 Added GM management function. [Euphy]
- npc/re/quests/first_class/tu_archer.txt
-- 1.0 First version. [Euphy]
- npc/re/quests/homun_s.txt
-- Genetic quest to mutate a level 99 evolved Homunculus
-- 1.0 First Version, entirely custom. [Masao]
- npc/re/quests/magic_books.txt
-- 1.1 Optimized. [Euphy]
-- 1.1a Updated NPC name to "Master Velofos". [Euphy]
- npc/re/quests/monstertamers.txt
-- 1.0 Moved Izlude NPC to pre-re/re paths.
- npc/re/quests/mrsmile.txt
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/quests/quests_13_1.txt
-- 1.0 Moved Izlude NPC to pre-re/re paths. [Euphy]
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/quests/quests_izlude.txt
-- 1.1 Added Izlude duplicates. [Euphy]
- npc/re/quests/quests_lighthalzen.txt
-- 1.2 Added Izlude duplicates. [Euphy]
- npc/re/quests/quests_malangdo.txt
-- 1.4a Dialogue edits, source iRO.
-- 1.5 Added Cat Gamers.
-- 1.6 Added GM management function.
- npc/re/quests/quests_malaya.txt
-- 0.4 Added "Cautious Village" and subsequent quests [DeadlySilence]
-- 0.5 Added "Bakonawa Extermination" quest. [Euphy]
-- 1.0 Added "Nurse in Port Malaya" and "Pintados Festival" quests. [Euphy]
-- 1.1 Added GM management function and NPC. [Euphy]
- npc/re/quests/quests_mora.txt
-- 1.1 Added GM management function and NPCs. [Euphy]
- npc/re/quests/quests_morocc.txt
-- 1.1 Added new warpers for Satan Morroc maps. [Euphy]
- npc/re/quests/quests_nameless.txt
-- 1.0 Moved Dorian to pre-re/re paths.
- npc/re/warps/cities/eclage.txt
-- 1.0a Disabled quest warp. [Euphy]
- npc/re/warps/cities/izlude.txt
-- 1.7 Updated to match the official scripts. [Euphy]
-- 1.8 Added Izlude & Prontera Field 8 duplicates. [Euphy]
- npc/re/warps/cities/malaya.txt
-- 1.1 Updated to match official scripts. [Masao]
-- 1.2 Added official Jeepney warp scripts. [Euphy]
- npc/re/warps/fields/prontera_fild.txt
-- 1.3a Moved Izlude warp to other file. [Euphy]
-- 1.4 Commented moc_fild20 warps replaced with new NPCs. [Euphy]
-- 1.5 Added Prontera Field 8 duplicates. [Euphy]
- npc/re/warps/other/arena.txt
-- 1.0 First version, Renewal warps.
- npc/re/warps/other/jobquests.txt
-- 2.3 Added exit warps (job_exit) for 2nd class quests. [Euphy]
- npc/warps/fields/glastheim.txt
-- 1.5 Fixed random warp coordinates. [Euphy]
- npc/warps/other/arena.txt
-- 1.3 Split Izlude warps into Pre-Renewal/Renewal paths. [Euphy]
-- 1.4 Added GM management function. [Euphy]
Diffstat (limited to 'npc/quests/quests_geffen.txt')
-rw-r--r-- | npc/quests/quests_geffen.txt | 282 |
1 files changed, 273 insertions, 9 deletions
diff --git a/npc/quests/quests_geffen.txt b/npc/quests/quests_geffen.txt index b7f4550d7..a220fd654 100644 --- a/npc/quests/quests_geffen.txt +++ b/npc/quests/quests_geffen.txt @@ -1,20 +1,19 @@ -//===== rAthena Script ======================================= +//===== Hercules Script ====================================== //= Quest NPCs related to Geffen -//===== By: ================================================== +//===== By: ================================================== //= kobra_k88 & Samuray22 -//===== Current Version: ===================================== -//= 1.4 -//===== Compatible With: ===================================== -//= rAthena 7.15 + -//===== Description: ========================================= +//===== Current Version: ===================================== +//= 1.5 +//===== Description: ========================================= //= Welding Mask and Headset Quests. -//===== Additional Comments: ================================= +//===== Additional Comments: ================================= //= 1.1 Fixed exploits [Lupus] //= 1.2 Removed Duplicates [Silent] //= 1.3 Updated "Welding Mask" Quest to the Official one. [Samuray22] //= 1.3a replaced item "names" with item id. Added missing [Lupus] //= 1.4 Updated welding mask and headset quests. [L0ne_W0lf] -//============================================================ +//= 1.5 Added Number Match Game. [Euphy] +//============================================================ // Blacksmith: 'Welding Mask' Quest //============================================================ @@ -162,3 +161,268 @@ geffen_in,30,71,4 script Eric 83,{ close; } } + +// Number Match Game :: gef_yagu +//============================================================ +geffen,122,77,4 script Nia#yagu 700,{ + mes "[Nia]"; + mes "Hello, I'm Nia, the fifth"; + mes "disciple of Mawong, the"; + mes "gaming mastermind. Now,"; + mes "how would you like to play a"; + mes "Number Match game with me?"; + next; + switch(select("Number Match Game?:Practice Number Match:Play Number Match:Record Holder:Cancel")) { + case 1: + mes "[Nia]"; + mes "Ah, well, the objective of"; + mes "the Number Match game is to"; + mes "guess the number I'm thinking"; + mes "of. Of course, there are a few"; + mes "rules that limit the numbers"; + mes "that I can choose from."; + next; + mes "[Nia]"; + mes "All the numbers that I make"; + mes "up must be 3 digits, I can't"; + mes "use 0 for any of the digits,"; + mes "and I can't use the same"; + mes "number for any of the digits"; + mes "more than once."; + next; + mes "[Nia]"; + mes "So, for example, I can't"; + mes "use the numbers 103, 112,"; + mes "252, or 701. Those numbers"; + mes "either have a 0, or they use"; + mes "the same number in the digits"; + mes "more than once. Got it now?"; + next; + mes "[Nia]"; + mes "Now, you only get 5 guesses,"; + mes "and after each guess, I'll tell"; + mes "you how many digits you guessed"; + mes "correctly, followed by the number of correctly guessed digits in"; + mes "the correct digit place."; + next; + mes "[Nia]"; + mes "For example, let's say the"; + mes "number I come up with is 168."; + mes "If your first guess is 678, then you guessed two of the digits,"; + mes "6 and 8, correctly. However,"; + mes "only 8 is in the correct place."; + next; + mes "[Nia]"; + mes "You know, it'd be a good idea"; + mes "if you try the Practice Mode"; + mes "first. Then, when you're more"; + mes "comfortable, play the actual"; + mes "Number Match game. Don't forget that speed counts for your score!"; + next; + mes "[Nia]"; + mes "Ah, if you happen to"; + mes "make a new record in the"; + mes "Number Match game, you'll"; + mes "have your name recorded,"; + mes "so don't miss this chance for"; + mes "fame and maybe even fortune~"; + close; + case 2: + mes "[Nia]"; + mes "Great, let's do a practice"; + mes "Number Match game. Please"; + mes "try to guess my number, okay?"; + mes "If you want to cancel, then please enter a number greater than 1,000."; + set .@practice,1; + break; + case 3: + mes "[Nia]"; + mes "Great, let's play Number Match!"; + mes "You will have 5 chances to guess the number that I'm thinking of."; + mes "If you want to cancel, then please enter a number greater than 1,000."; + set .@practice,0; + break; + case 4: + set .@name_record$, $050908_minus1_yagu$; + if (.@name_record$ == "") //custom + set .@name_record$,"(null)"; + set .@score_record, $050908_minus1_yagu; + set .@score_min, .@score_record / 60; + set .@score_sec, .@score_record % 60; + mes "[Nia]"; + mes "^ff0000" + .@name_record$ + "^000000 is the"; + mes "record holder for the Number"; + mes "Match game with a time of"; + mes "^ff0000" + .@score_min + " minutes, " + .@score_sec + " seconds^000000."; + close; + case 5: + mes "[Nia]"; + mes "Take care of yourself,"; + mes "adventurer. If you ever"; + mes "feel like playing a Number"; + mes "Match game, come and talk"; + mes "to me, alright? See you~"; + close; + } + next; + + // Generate 3 digits of a number. + while(1) { + set .@yagu100, rand(1,9); + set .@yagu10, rand(1,9); + set .@yagu1, rand(1,9); + if ((.@yagu100 != .@yagu10) && (.@yagu100 != .@yagu1) && (.@yagu10 != .@yagu1)) { + // Store the actual number (unofficial). + set .@yagu, (100*.@yagu100) + (10*.@yagu10) + .@yagu1; + break; + } + } + + // The official time calculation is based on ServerTime, + // an int HHMMSS equivalent to atoi(gettimestr("%H%M%S",7)). + // UNIX time is really a better way to do this. + set .@start_time, gettimetick(2); + + while(1) { + + // Guess a number that meets all conditions. + while(1) { + if (input(.@input,100,999) != 0) { + mes "[Nia]"; + mes "You've canceled the"; + mes "Number Match game."; + close; + } + set .@input100, .@input / 100; + set .@input10, (.@input % 100) / 10; + set .@input1, .@input % 10; + if ((.@input100 > 0) && (.@input10 > 0) && (.@input1 > 0)) { + if ((.@input100 != .@input10) && (.@input100 != .@input1) && (.@input10 != .@input1)) + break; + } + mes "[Nia]"; + mes "You entered one of the"; + mes "digits as 0, or input the"; + mes "same numerical value in"; + mes "the digits more than once."; + mes "Please enter another guess."; + next; + } + + set .@retry, .@retry+1; + mes "[Nia]"; + mes "^ff0000"+strcharinfo(0)+"^000000,"; + mes "your guess is ^0000ff"+.@input+"^000000."; + mes "Give me a moment to"; + mes "come up with your results."; + next; + + // Correct digits in correct locations. + set .@strike,0; + if (.@yagu100 == .@input100) + set .@strike, .@strike+1; + if (.@yagu10 == .@input10) + set .@strike, .@strike+1; + if (.@yagu1 == .@input1) + set .@strike, .@strike+1; + + // Correct digits in incorrect locations. + set .@ball,0; + if ((.@yagu100 == .@input10) || (.@yagu100 == .@input1)) + set .@ball, .@ball+1; + if ((.@yagu10 == .@input100) || (.@yagu10 == .@input1)) + set .@ball, .@ball+1; + if ((.@yagu1 == .@input100) || (.@yagu1 == .@input10)) + set .@ball, .@ball+1; + + if (.@strike == 3) { + if (.@practice) { + mes "[Nia]"; + mes "Yes, the number that"; + mes "I guessed was ^ff0000"+.@yagu+"^000000!"; + mes "Congratulations, you"; + mes "just won this practice"; + mes "game! Now you should be"; + mes "ready for the real thing~"; + close; + } else { + + // Calculate final time and check against the previous record. + set .@end_time, gettimetick(2); + if (.@end_time < .@start_time) + set .@end_time, .@end_time + 3600; + set .@total_time, .@end_time - .@start_time; + set .@total_min, .@total_time / 60; + set .@total_sec, .@total_time % 60; + set .@name_record$, $050908_minus1_yagu$; + if (.@name_record$ == "") //custom + set .@name_record$,"(null)"; + set .@score_record, $050908_minus1_yagu; + set .@score_min, .@score_record / 60; + set .@score_sec, .@score_record % 60; + + if (.@score_record >= .@total_time || !.@score_record) { //custom (second condition) + set $050908_minus1_yagu$, strcharinfo(0); + set $050908_minus1_yagu, .@total_time; + mes "[Nia]"; + mes "Great! You guessed"; + mes "my number, which was"; + mes "^ff0000" + .@yagu + "^000000. You finished in"; + mes "^ff0000" + .@total_min + " minutes, " + .@total_sec + " seconds^000000,"; + mes "breaking the previous record"; + mes "of ^ff0000" + .@score_min + " minutes, " + .@score_sec + " seconds^000000."; + next; + mes "[Nia]"; + mes "^ff0000" + .@name_record$ + "^000000"; + mes "set that old record,"; + mes "but now you are the"; + mes "new person to beat in the"; + mes "Match Game. Congratulations"; + mes "for setting a new record!"; + close; + } + mes "[Nia]"; + mes "Nice work, you guessed"; + mes "my number! The answer, of"; + mes "course, was ^ff0000" + .@yagu + "^000000. You managed"; + mes "to guess this number correctly"; + mes "in ^ff0000" + .@total_min + " minutes, " + .@total_sec + " seconds^000000."; + next; + mes "[Nia]"; + mes "^ff0000" + .@name_record$ + "^000000 is"; + mes "the current Number Match"; + mes "record holder with a time"; + mes "of ^ff0000" + .@score_min + " minutes, " + .@score_sec + " seconds^000000."; + mes "Good luck, and hopefully you"; + mes "can break this record someday~"; + close; + } + } else { + if (.@practice) { + mes "[Nia]"; + mes "Your guess has ^ff0000" + .@ball + "^000000 of the"; + mes "correct numbers. ^ff0000" + .@strike + "^000000 of the"; + mes "digits in your guess have"; + mes "the correct number in the"; + mes "correct digit placement."; + mes "Alright, try it again~"; + next; + } else { + mes "[Nia]"; + mes "Your last guess had ^ff0000" + .@ball + "^000000"; + mes "of the correct numbers,"; + mes "and ^ff0000" + .@strike + "^000000 digits in your guess"; + mes "had the correct number in"; + mes "the correct digit placement."; + switch(.@retry) { + case 1: mes "You have four guesses left."; break; + case 2: mes "You have three guesses left."; break; + case 3: mes "You have two guesses left."; break; + case 4: mes "You only have one guess left..."; break; + case 5: mes "The answer was ^ff0000" + .@yagu + "^000000."; close; + } + next; + } + } + } +} |