diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-06-18 21:58:47 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-06-19 14:19:55 -0700 |
commit | bae4b92e560c2694eaaf0e8b4d9e95e56204471b (patch) | |
tree | 4acc120f6a94cfbf9694bf344658493de5aaa67b /world | |
parent | 319f80526f8585ecadaec986e37c9bd326f4d363 (diff) | |
download | serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.gz serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.bz2 serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.xz serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.zip |
Move to a subdirectory
Diffstat (limited to 'world')
714 files changed, 62512 insertions, 0 deletions
diff --git a/world/conf/.gitignore b/world/conf/.gitignore new file mode 100644 index 00000000..2c43e911 --- /dev/null +++ b/world/conf/.gitignore @@ -0,0 +1 @@ +/*_local.conf diff --git a/world/conf/char_athena.conf b/world/conf/char_athena.conf new file mode 100644 index 00000000..a719a5be --- /dev/null +++ b/world/conf/char_athena.conf @@ -0,0 +1,125 @@ +// Athena Character configuration file. + +// Option to force a player to create an e-mail. +// If a player have default e-mail, and if you activate this option, the player can only connect in the game (to arrive on a map) like follow: +// - Create at least 1 character +// - Select 1 character +// - Select DEL to enter his/her e-mail. (if OK is choosen, client says to the player: 'invalid e-mail') +// - If his/her e-mail is correct, the player enter in the game (an e-mail is saved definitively). +// - If his/her e-mail is incorrect, he/she have 'incorrect e-mail' and must select again DEL. +// - After entering in the game (when the player arrives on a map), DEL and SEL/OK button work normaly for all next connections. +// Resume: If a player have "incorrect/invalid e-mail" when he/she click on 'OK' button, +// the player must click 'DEL' button and register his/her NEW e-mail to enter in the game +// So, default is 0, because administrator must explain to their players before to activate this option. +email_creation: 0 + +// Is Character server in maintainence mode? +char_maintenance: 0 + +// Enable or disable creation of new characters. +char_new: 0 + +// Maximum users able to connect to the server. Set to 0 for unlimited. +max_connect_user: 0 + +// It's to check IP of a player between char-server and other servers (part of anti-hacking system) +// If player doesn't have same IP, connection is refused. +// Set to 0/off/no to not check IP of player. +// Set to 1/on/yes if you want to check (default) +// Note: if you enable this option, be sure that your (local/lan/wan) players use correct ip (in xml file) to contact servers, +// and that your LAN is correctly configured (!), and that LAN configuration of eathena is right. +check_ip_flag: yes + +// How often should the server save all files? (In seconds) +autosave_time: 15 + +// Character server flatfile database +char_txt: save/athena.txt + +// Choose to create or not backup file (yes/no, 0/1, etc...) +// default is 'no', because backup file take time for nothing. Actually, there is no problem on characters file creation and save. +backup_txt_flag: no + +// Character server flatfile database (backup) +backup_txt: save/athena_backup.txt + +// Start point, Map name followed by coordinates (x,y) +start_point: 042-2.gat,26,26 + +// Starting weapon for new characters +start_weapon: 0 + +// Starting armor for new characters +start_armor: 0 + +// Starting zeny for new characters +start_zeny: 50 + +// Name used for unknown characters +unknown_char_name: Unknown + +// Log Filename +char_log_filename: log/char.log + +// Allow or not identical name for characters but with a different case (upper/lower): +// example: Test-test-TEST-TesT; Value: 0 not allowed (default), 1 allowed +name_ignoring_case: 0 + +// Manage possible letters/symbol in the name of charater. Control character (0x00-0x1f) are never accepted. Possible values are: +// 0: no restriction (default) +// 1: only letters/symbols in 'char_name_letters' option. +// 2: Letters/symbols in 'char_name_letters' option are forbidden. All others are possibles. +char_name_option: 1 + +// Set the letters/symbols that you want use with the 'char_name_option' option. +// Note: add 'space' between 2 others letters/symbols. +// default: void. +// char_name_letters: [ ] { } , . | - # @ ! ~ ` ; : " " ? / \ = + < > +// Note: some characters are problematic: +// : is used as a separator +char_name_letters: a b c d e f g h i j k l m n o p r s t q u v w x y z A B C D E F G H I J K L M N O P R S T Q U V W X Y Z 1 2 3 4 5 6 7 8 9 0 - _ + = ! @ $ % ^ & * ( ) ; ' < > , . ? / ~ ` | \ + +// Filename of the file which receives the online players list in text +online_txt_filename: online.txt + +// Filename of the file which receives the online players list, but in html version +online_html_filename: online.html + +// Choose how to display online players. +// (sorting operation with a lot of online players can take time on a slow computer) +// 0: no sorting (default) +// 1: by alphabetical order of their name +// 2: by number of their zenys +// 3: by their base level +// 4: by their job (and job level inside the same job) +// 5: by alphabetical order of their actual map location +online_sorting_option: 0 + +// Choose which columns that you want display in the online files. Do the addition of these values: +// (if value is 0, no file is done) +// 1: name (just the name, no function like 'GM') +// 2: job +// 4: levels +// 8: map name +// 16: mapname and coordonates +// 32: zenys +// 64: name (with 'GM' if the player is a GM) +// default value: 1 (only name) +online_display_option: 64 + +// minimum GM level to display 'GM' when we want to display it (default: 1) +online_gm_display_min_level: 60 + +// refresh time (in sec) of the html file in the explorer (default 20) +online_refresh_html: 20 + +// Anti-freeze system enable +anti_freeze_enable: 0 +// Anti-freeze system interval (in seconds) +anti_freeze_interval: 6 + +// If you want use an additional configuration file, uncomment and use this parameter +//import: path/additional_configuration_file + +// local settings for this server in this file +import: conf/char_local.conf diff --git a/world/conf/char_local.conf.example b/world/conf/char_local.conf.example new file mode 100644 index 00000000..1d55c977 --- /dev/null +++ b/world/conf/char_local.conf.example @@ -0,0 +1,22 @@ +// Athena Character local configuration file. + +// Server Communication username and password. +userid: s1 +passwd: p1 + +// Server name, no more than 19 characters +server_name: The Mana World + +// Wisp name for server: used to send wisp from server to players (between 4 to 23 characters) +wisp_server_name: Server + +// Login Server IP +login_ip:81.161.192.4 +// Login Server Port +login_port: 6901 + +// Character Server IP +char_ip:81.161.192.4 +// Character Server Port +char_port: 6122 + diff --git a/world/conf/inter_athena.conf b/world/conf/inter_athena.conf new file mode 100644 index 00000000..72a88bd9 --- /dev/null +++ b/world/conf/inter_athena.conf @@ -0,0 +1,31 @@ +// Athena InterServer configuration. + +// Storage flatfile database, used for Karfa storage. +storage_txt: save/storage.txt + +// Party flatfile database, for party names, members and other party info. +party_txt: save/party.txt + +// Guild flatfile database, for guild names, members, and other guild info. +guild_txt: save/guild.txt + +// Pet flatfile database, for pet names, and other pet info. +pet_txt: save/pet.txt + +// Castle flatfile database, for emperium war castles, etc. +castle_txt: save/castle.txt + +// Inter Log Filename +inter_log_filename: log/inter.log + +// Level range for sharing within a party +party_share_level: 10 + +// The lowest GM level on your server +lowest_gm_level: 1 + +// How often the GM accounts will be reloaded by the map-server in minutes +read_gm_interval: 10 + + + diff --git a/world/conf/lan_support.conf b/world/conf/lan_support.conf new file mode 100644 index 00000000..2f49419c --- /dev/null +++ b/world/conf/lan_support.conf @@ -0,0 +1,58 @@ +// Note: this file is used by both the char-server and the login-server + +// This file is necessary to connect to your server locally: +// by using it's internal (LAN) IP address, or localhost (127.0.0.1) + +// The default version treats you LAN as localhost only, +// which is fine if you have only one computer +// You only need to change this file if you have a public server +// AND want to connect from other machines in the LAN +// (for an nonpublic server it would be best to leave localhost as LAN +// and treat the rest of your LAN as the WAN) + +// Note: if you set up this file to point to your real LAN, you will not +// be able to do: +// mana --server localhost --port 6901 +// or mana --server 127.0.0.1 --port 6901 +// because of the check_ip_flag: yes option +// (which will become mandatory in the next release of the server) +// instead do: +// mana --server 192.168.1.100 --port 6901 +// or maybe, depending on how your /etc/hosts and /etc/host.conf are setup, +// mana --server ben-desktop --port 6901 +// or mana --server ben-desktop.local --port 6901 + +// Note that only one IP is used, so you can't put different char servers +// on different machines (unless you do some internal port-forwarding) + + +// the IP LAN players should use to connect to the char-server +lan_char_ip: 127.0.0.1 +// lan_char_ip: 192.168.1.100 + +// the IP that LAN players should use to connect to the map-server +lan_map_ip: 127.0.0.1 +// lan_map_ip: 192.168.1.100 + +// put here the Subnet mask of your LAN +// see output of ifconfig (Linux) or ipconfig (Windows) +subnet: 127.0.0.1 +subnetmask: 255.255.255.255 +// subnetmask: 255.0.0.0 + + +// Common subnets (if you have a subnet that is not one of these, +// you probably don't need to be reading this) + +// subnet: 10.0.0.0 +// subnetmask: 255.0.0.0 + +// subnet: 172.16.0.0 +// subnetmask: 255.240.0.0 + +// subnet: 192.168.0.0 +// subnetmask: 255.255.0.0 + +// Many home routers only use a portion: +// subnet: 192.168.1.0 +// subnetmask: 255.255.255.0 diff --git a/world/map/conf/.gitignore b/world/map/conf/.gitignore new file mode 100644 index 00000000..e21c4275 --- /dev/null +++ b/world/map/conf/.gitignore @@ -0,0 +1,5 @@ +/*_local.conf +/help.txt +/magic.conf +/motd.txt +/spells-build diff --git a/world/map/conf/atcommand_athena.conf b/world/map/conf/atcommand_athena.conf new file mode 100644 index 00000000..82204f1a --- /dev/null +++ b/world/map/conf/atcommand_athena.conf @@ -0,0 +1,7 @@ +// Athena atcommand Configuration file. +// Translated by Peter Kieser <pfak@telus.net> + + +// local settings for this server in this file +import: conf/atcommand_local.conf + diff --git a/world/map/conf/atcommand_local.conf.example b/world/map/conf/atcommand_local.conf.example new file mode 100644 index 00000000..0e87addc --- /dev/null +++ b/world/map/conf/atcommand_local.conf.example @@ -0,0 +1,497 @@ +// Athena atcommand Local Configuration file. + +// Set here the symbol that you want to use for your commands +// Only 1 character is get (default is '@'). You can set any character, +// except control-character (0x00-0x1f), '%' (party chat speaking) and '/' (standard ragnarok GM commands) +// With default character, all commands begin by a '@': <example> @revive +command_symbol: @ + + +// 0: normal player commands + +// Displays helpfile in Athena base directory. +help: 0 + +// Give server time. (6 same commands) +time: 0 +date: 0 +server_date: 0 +serverdate: 0 +server_time: 0 +servertime: 0 + +// To change your (own) email (characters protection) +// note: this command doesn't check email itself, but check structure of the email (xxx@xxx) +// if you want be sure of each e-mail disable this option (value: 100) +email: 0 + +// To become GM (need password; password is set in login_athena.conf). +// special!: only a non-GM (player with gm level 0) need to have this command. +// if you change the value, be sure of what you do! +// To be able to create a gm with @gm, you must: +// - give a level to level_new_gm (parameter of login_athena.conf) (not 0) +// - enable to level 0 the @gm command (atcommand_athena.conf) (default 100) - Only level 0 can give access to this command +// - enable gm commands to normal player (battle_athena.conf, atcommand_gm_only parameter) +// - and normal player must give correct password when he use the @gm command (gm_pass paramter in login_athena.conf) +gm: 100 + + +//------------------------- +// 40: "Dev" + +// Broadcast to the whole server +broadcast: 40 + +// Broadcast to the map you are on +local_broadcast: 40 + +// Suicide your character. +die: 40 + +// Locate someone on a map, returns your coordinates if the person isn't on. +where: 40 + +// Spawns you to set points in major cities. +go: 40 + +// Warp yourself to a person. +goto: 40 + +// follow a player (including warping to them) +follow: 40 + +// Disconnects a user from the server (1 command + right click menu for GM "(name) force to quit"). +kick: 40 + +// Returns list of logged in characters with their position. +who: 40 + +// Returns list of logged in characters with their party/guild. +whogroup: 40 + +// Returns list of logged in characters with their position in a specifical map. +whomap: 40 + +// Returns list of logged in characters with their party/guild in a specifical map. +whomapgroup: 40 + +// Like @who+@who2+who3, but only for GM. +whogm: 40 + +// Enables you to view other characters stats. +charstats: 40 + +// Heals a person to full HP/SP. +heal: 40 + +// GM Hide (hides you from monsters and most reporting functions). +// To hide from other players use @invisible +hide: 40 + +// Enables you to to jump randomly on a map (that you are already on). +jump: 40 + +// Warps you to your last save point. +return: 40 + +// Warp yourself to a certain map, at (x,y) coordinates. +warp: 40 + +// Changes GM clothes color (2 same commands) +dye: 40 +ccolor: 40 + +// Changes own hair style. +hairstyle: 40 + +// Changes own hair color. +haircolor: 40 + +// Deletes all your items. +itemreset: 40 + +// Sets your spawn point (aka save point). +save: 40 + +// Send text to the GM log +log: 40 +l: 40 + +// Send text to the GM log and local chat +tee: 40 +t: 40 + +//-------------------- +// 50: Event coordinators + +// make yourself invisible to everyone +invisible: 50 + +// make yourself visible to everyone +visible: 50 + +// Spawns a monster, and a certain amount +spawn: 50 + +//Summons a monster, and a certain amount +summon: 50 + +//-------------------- +// 60: "GM" + +// Enable all wispers for a player +inall: 60 + +// Disable all wispers for a player +exall: 60 + +// Shows Stats Of All Characters Online +charstatsall: 60 + +// Turns PVP (Person v. Person) off on a map. +pvpoff: 60 + +// Enables PVP on a map. +pvpon: 60 + +// Sets the speed you can walk/attack at. Default is 150. +speed: 60 + +// Kill all monsters in map (with drops) +killmonster: 60 + +// Kill all monsters in map (without drops) +killmonster2: 60 + +// Check which characters are online from a characters IP address +ipcheck: 60 + +// store all your items +storeall: 60 + +// allow other players to hit you out of pvp +killable: 60 + +// look up a skill by name +skillid: 60 + +// use a skill by id +useskill: 60 + +// make another player killable +charkillable: 60 + +// Resurects yourself. +alive: 60 + +// Levels your character to specified level (adds to your level). +blvl: 60 + +// Raises your job level (3 same commands). +jlvl: 60 + +// Unmute a player +unmute: 60 + +// Sets another persons base level. +charblvl: 60 + +// Changes the sex of an online player (all characters on the account) +charchangesex: 60 + +// Remove items from a character +chardelitem: 60 + +// Sets another persons job level. +charjlvl: 60 + +// Gives another character status points +charstpoint: 60 + +// Gives another character skill points +charskpoint: 60 + +// Resets another character's stats +charreset: 60 + +// Resets another character's status, skills +charstreset: 60 +charskreset: 60 + +// resets a char back to when it was first created +charwipe: 60 + +// Saves the respawn point of another character. +charsave: 60 + +// Kill another character without hitting them. +kill: 60 + +// Enable hitting a player even when not in pvp +killer: 60 + +// Warps a character to you +recall: 60 + +// Revives a character, and heals them. +revive: 60 + +// Warp another person to a certain map, at (x,y) coordinates +charwarp: 60 + +// Change Status of your character +str: 60 +agi: 60 +vit: 60 +int: 60 +dex: 60 +luk: 60 + +// Gets all skills +allskills: 60 + +// sets GM stats to maximum +allstats: 60 + +// Gives you job points. +stpoint: 60 + +// Gives you skill points of desired amount. +skpoint: 60 + +// To block definitively a player +block: 60 + +// To unblock a player +unblock: 60 + +// To ban a player for a limited time +ban: 60 + +// To unban a player +unban: 60 + +// To send specified character in jails +jail: 60 + +// To discharge a prisoner +unjail: 60 + +// drop a players possessions on the ground +chardropall: 60 + +// put a players possessions in storage +charstoreall: 60 + +// iterate over players +// forward +hugo: 60 +// backward +linus: 60 + +//---------------------- +// 80: "eA Dev" + +// set magic properties on a char +setmagic: 80 + +// list magic properties on a char +magicinfo: 80 + +// Set your character display options. (Visual effects of your character) +option: 80 + +// Gives you money (zeny) of desired amount. +zeny: 80 + +// Changes another character's zenny +charzeny: 80 + +// Set options on another character. +charoption: 80 + +// Create a static warp portal that lasts until the next reboot +addwarp: 80 + +// Set the map you are on to day. +day: 80 + +// Kills everyone on the server. +doom: 80 + +// Kills everyone on the map you are on. +doommap: 80 + +// Set the map you are currently on to night. +night: 80 + +// Recalls Everyone To Your Coordinates +recallall: 80 + +// Revives all players on the map. +raisemap: 80 + +// Revives all players on the server. +raise: 80 + +// Enables a NPC. +enablenpc: 80 + +// Disables a NPC. +disablenpc: 80 + +// Move a NPC +npcmove: 80 + +// turn skills on for a map +skillon: 80 + +// turn skills off for a map +skilloff: 80 + +// Enables lost skills. +lostskill: 80 + +// find id of item by name +idsearch: 80 + +// Creates an item of your choosing, either Item ID or Name (1 command + /item). +item: 80 + +// Creates weapon of desired element. +produce: 80 + +// ?? +itemcheck: 80 + + +//--------------------------- +// 99: "Admin" + +// drop all your items +dropall: 99 + +// Enables GVG on a map (2 same commands). +gvgon: 99 +gpvpon: 99 + +// Turns GVG (Guild v. Guild) off on a map (2 same commands). +gvgoff: 99 +gpvpoff: 99 + +// Enables platinum skills. +questskill: 99 + +// Display your ignore list (people from which you ignore wisps) +ignorelist: 99 + +// Display ignore list of a player (people from which the player ignore wisps) +charignorelist: 99 + +// Brings up your guild storage wherever you are. +gstorage: 99 + +// Do some visual effect on your character +effect: 99 + +// Changes character's model +charmodel: 99 + +// Starts Guild Wars +agitstart: 99 + +// Ends Guild Wars +agitend: 99 + +// Levels your guild to specified level +guildlvl: 99 + +// craete a party/guild +guild: 99 +party: 99 + +// Warps all online character of a guild to you. (at least one member of that guild must be on.) +guildrecall: 99 + +// Warps all online character of a party to you. (at least one party member must be online.) +partyrecall: 99 + +// Allows you to spy on any Guilds Guild chat. (at least one member of that guild must be on.) +guildspy: 99 + +//Allows you to spy on any party's party chat. (at least one party member must be online.) +partyspy: 99 + +// Saves a warp point. +memo: 99 + +// To get a peco to (un)ride for another player. +charmountpeco: 99 + +// Change your appearence to other players to a mob. +disguise: 99 + +//Restore your normal appearance. +undisguise: 99 + +// To change disguise of another player/GM +chardisguise: 99 +charundisguise: 99 + +// Display all items of a player (disabled due to reformed GM guidelines) +charitemlist: 99 + +// Display all items of a player's storage (disabled due to reformed GM guidelines) +charstoragelist: 99 + +// Display all items of a player's cart (disabled due to reformed GM guidelines) +charcartlist: 99 + +// Enables platinum skills of another player. +charquestskill: 99 + +// Enables lost skills of another player. +charlostskill: 99 + +// Changes your apperance. +model: 99 + +// To get a peco to (un)ride +mountpeco: 99 + +// Broadcast (with or without name). +kami: 99 +kamib: 99 + +// Disconnect all users from the server +kickall: 99 + +// Closes Map-Server +mapexit: 99 + +// Give information about terrain/area (debug function) +gat: 99 + +// Enables debugging +packet: 99 + +// Shows information about the map +mapinfo: 99 + +// Re-load item database (admin command) +reloaditemdb: 99 + +// Re-load monsters database (admin command) +reloadmobdb: 99 + +// Re-load skills database (admin command) +reloadskilldb: 99 + +// Re-load scripts (admin command) +reloadscript: 99 + +// Re-load GM level (admin command) +reloadgmdb: 99 + +// Brings up your personal storage wherever you are. +storage: 99 diff --git a/world/map/conf/battle_athena.conf b/world/map/conf/battle_athena.conf new file mode 100644 index 00000000..574938d6 --- /dev/null +++ b/world/map/conf/battle_athena.conf @@ -0,0 +1,739 @@ + +//-------------------------------------------------------------- +//eAthena Battle Configuration File +// Made in to plainer english by Ancyker +//-------------------------------------------------------------- +//Note 1: Directives can be set using on/off, yes/no or 1/0. +//Note 2: All rates are in percents, 100 would mean 100%, 200 +// would mean 200%, etc +// Other Information: +// 1000 miliseconds is 1 second. +//-------------------------------------------------------------- + +// Do you want to debug warp points? If set to yes, warp points will appear as flags.(Note 1) +warp_point_debug: no + +// When calculating critical, should we take in to account the enimies luck? (Note 1) +enemy_critical: yes + +// Enemy's Critical Rate (Note 2) +enemy_critical_rate: 100 + +// Are enemy attacks effected by their strength? (Note 1) +enemy_str: yes + +// Can enemies have perfect flee? (Note 1) +enemy_perfect_flee: no + +// The rate of time it takes to cast a spell (Note 2, 0 = No casting time) +casting_rate: 100 + +// Delay time after casting (Note 2) +delay_rate: 100 + +// Is the delay time is dependent on the caster's DEX? (Note 1) +delay_dependon_dex: yes + +// At what dex does the cast time become zero (instacast) +castrate_dex_scale: 150 + +// Is 'Skills add a delay before you can attack' enabled? (Note 1) +skill_delay_attack_enable: no + +// Whether or not cards and attributes in the left hand are enabled (Note 1) +left_cardfix_to_right: yes + +// Increase player's attack range (in cells) +player_skill_add_range: 0 + +// If the target moves out of range while casting, do we take the items and SP for the skill anyway? (Note 1) +skill_out_range_consume: no + +// Increase Monsters attack range +monster_skill_add_range: 0 + +// If a player is attacked, will they have a delay in being able to move? (Note 1) +// (Setting to no will be like always endure) +player_damage_delay: no + +// Damaged delay rate (Note 2) +player_damage_delay_rate: 100 + +// Is a player's defense NOT dependant on an enemies attack? (Note 1) +defunit_not_enemy: yes + +// Are summoned monsters level greater then your base level? (I think this is for dead branches) (Note 1) +random_monster_checklv: yes + +// The maximum quantity of monsters that can be summoned per GM command (0 denotes an unlimited quantity) +atcommand_spawn_quantity_limit: 100 + +// Does HP recover if hit by an attribute that's same as your own? (Note 1) +attribute_recover: yes + +// If an item is droped, does it go stright into the users inventory? (Note 1) +item_auto_get: no + +// How long does it take for an item to disappear from the floor after it is dropped? (in miliseconds) +flooritem_lifetime: 120000 + +// How long before the first person who did the most damage to a monster can get the item? (in milliseconds) +item_first_get_time: 15000 + +// How long before the second person who did the second most damage to a monster can get the item? (in milliseconds) +// (It Adds Time From The First Persons Time) +// So, It Is Like First Person's Time + Second Person's Time = Time Before Second Person Can Get The Items +item_second_get_time: 10000 + +// How long before the third person who did the third most/least damage to a monster can get the item? (in milliseconds) +// (It Adds Time From The First Persons Time And Second Persons Time) +// So, It Is Like First Person's Time + Second Person's Time + Third Person's Time = Time Before Third Person Can Get The Items +item_third_get_time: 5000 + +// How long before the first person who did the most damage to a MVP can get the item? (in milliseconds) +mvp_item_first_get_time: 10000 + +// How long before the second person who did the second most damage to a MVP can get the item? (in milliseconds) +// (It Adds Time From The First Persons Time) +// So, It Is Like First Person's Time + Second Person's Time = Time Before Second Person Can Get The Items +mvp_item_second_get_time: 10000 + +// How long before the third person who did the third most/least damage to a MVP can get the item +//(Note the Amount is in Milliseconds and It Adds Time From The First Persons Time And Second Persons Time) +//So It Is Like First Person's Time + Second Person's Time + Third Person's Time = Time Before Third Person Can Get The Items +mvp_item_third_get_time: 2000 + +// Item drop rates (Note 2) + +// The rate the common items are droped (Items that are in the ETC tab, besides card) +item_rate_common: 100 +item_drop_common_min: 1 +item_drop_common_max: 10000 + +// The rate healing items are droped (items that restore HP or SP) +item_rate_heal: 100 +item_drop_heal_min: 1 +item_drop_heal_max: 10000 + +// The rate at which usable items (in the item tab) other then healing items are droped. +item_rate_use: 100 +item_drop_use_min: 1 +item_drop_use_max: 10000 + +// The rate at which equipment is droped. +item_rate_equip: 100 +item_drop_equip_min: 1 +item_drop_equip_max: 10000 + +// The rate at which cards are droped +item_rate_card: 100 +item_drop_card_min: 1 +item_drop_card_max: 10000 + +item_drop_mvp_min: 1 +item_drop_mvp_max: 10000 + +// Can the monster's drop rate become 0? (Note 1) +drop_rate0item: no + +// Rate at which exp. is given. (Note 2) +base_exp_rate: 100 + +// Rate at which job exp. is given. (Note 2) +job_exp_rate: 100 + +// PVP exp. Do players get exp during pvp +pvp_exp: yes + +// When a player dies, how should we penalize them? +// 0 = No penalty. +// 1 = Lose % of current level when killed. +// 2 = Lose % of total experience when killed. +death_penalty_type: 0 + +// Base exp. penalty rate (Each 100 is 1% of their exp) +death_penalty_base: 100 + +// Job exp. penalty rate (Each 100 is 1% of their exp) +death_penalty_job: 100 + +// When a player dies, how much zeny should we penalize them with? +zeny_penalty: 0 + +// The amount of HP a player will respawn with, 0 is default. +// (Unit is in percentage of total HP, 100 is full heal of HP, 0 is respawn with 1HP total.) +restart_hp_rate: 0 + +// The amount of SP a player will respawn with, 0 is default. +// (Unit is in percentage of total SP, 100 is full heal of SP, 0 is respawn with 1SP total.) +restart_sp_rate: 0 + +// [MVP] Summoned monsters HP rate, that is, monsters summoned by an MVP will have this much HP. (Note 2) +mvp_hp_rate: 100 + +// [MVP] Item drop rate, that is, the overall drop rate for items droped by an MVP. (Note 2) +mvp_item_rate: 100 + +// [MVP] Exp. rate. (Note 2) +mvp_exp_rate: 100 + +// The HP rate of normal monsters (that is monsters that are not MVP's) (Note 2) +monster_hp_rate: 100 + +// The maximum attack speed of a monster +monster_max_aspd: 199 + +// (@) GM Commands available only to GM's? (Note 1) +// set to 'No', Normal players (gm level 0) can use GM commands _IF_ you set the command level to 0. +// set to 'Yes', Normal players (gm level 0) can never use a GM command even if you set the command level to 0. +atcommand_gm_only: no + +// [GM] Can use all skills? (No or mimimum GM level) +gm_all_skill: no + +// [GM] Can use all abracadabra skills? (No minimum GM level) +gm_all_skill_add_abra: no + +// [GM] Can equip anything? (No or minimum GM level, can cause client errors.) +gm_all_equipment: no + +// [GM] Raise skills unconditionally, that is, put points in to a skill not in thier jobs skill tree? (no or minimum gm level) +gm_skill_unconditional: no + +// Can a normal player by-pass the skill tree? (Note 1) +player_skillfree: no + +// When doing a skill reset, whether the skill's restriction is to be ignored or not. (Note 1) +player_skillup_limit: yes + +// Forging success rate. (Note 2) +weapon_produce_rate: 100 + +// Prepare Potion succsss rate. (Note 2) +potion_produce_rate: 100 + +// Allow monsters to be aggresive and attack first? (Note 1) +monster_active_enable: yes + +// Monster damage delay rate (Note 1) +monster_damage_delay_rate: 100 + +// Looting monster actions. +// 0 = Monster will consume the item. +// 1 = Monster will not consume the item. +monster_loot_type: 0 + +// Enable monster skills? (Note 1) +mob_skill_use: yes + +// Rate of monsters on a map, 200 would be twice as many as normal. (Note 2) +mob_count_rate: 100 + +// Quest skills can be learned? (Note 1) +// Setting this to yes can open an exploit on your server! +quest_skill_learn: yes + +// When skills are reset, quest skills are reset as well? (Note 1) +// Setting this to yes can open an exploit on your server! +quest_skill_reset: no + +// You must have basic skills to be able to sit, trade, form a party or create a chatroom? (Note 1) +basic_skill_check: yes + +// Item to require when making a guild. Setting this to +// 0 will disable the check. Using item 1337 for now +// to disable creation (as it's unallocated) +guild_emperium_check: 1337 + +// Maximum tax limit on a guild member. +guild_exp_limit: 50 + +// Maximum castles one guild can own (0 - unlimited) +guild_max_castles: 0 + +// When teleporting, or spawning to a map, how long before a monster sees you if you don't move? (time is in milliseconds) +// That is, when you go to a map and don't move, how long before the monsters will notice you. +// If you attack a monster, it will attack you back regaurdless of this setting. (I think) +player_invincible_time: 5000 + +// [PET] Rate for catching pets (Note 2) +pet_catch_rate: 100 + +// [PET] Can you name a pet more then once? (Note 1) +pet_rename: no + +// [PET] The rate a pet will get friendly by feeding it. (Note 2) +pet_friendly_rate: 100 + +// [PET] The rate at which a pet will become hungry. (Note 2) +pet_hungry_delay_rate: 100 + +// [PET] If your pet is hungry by how much will the friendlyness decrease by. (Default is 5) +// Note: The friendlyness is 0-1000 total, at 0 the pet runs away. +pet_hungry_friendly_decrease: 5 + +// [PET] Does Pet's Attack Damage Based On Str (Note 1) +pet_str: yes + +// [PET] Whether or not the pet's will use skills. (Note 1) +pet_status_support: yes + +// [PET] Does the pet need its equipment before it does its skill? (Note 1) +pet_equip_required: yes + +// [PET] Will all pets attack? (Note 1) +// Do NOT use this with pet skills! +pet_attack_support: no + +// [PET] When the master receives damage from the monster, whether or not the pet attacks back. +pet_damage_support: no + +// [PET] Rate at which a pet will support it's owner in battle. (Note 2) +pet_support_rate: 100 + +// [PET] Does the pets owner receive exp from the pets damage? +pet_attack_exp_to_master: no + +// [PET] The rate exp. is gained from the pet attacking monsters +pet_attack_exp_rate: 100 + +// Will there be a minimum skill dmg even if there is a miss? +skill_min_damage: no + +// Which finger offensive style can be used? +// 0 = Aegis style +// 1 = Athena style +finger_offensive_type: 0 + +// The rate of job exp. from using Heal skill (100 is the same as the heal amount, 200 is double. +// The balance of the exp. rate is best used with 5 to 10) +heal_exp: 0 + +// The rate of exp. that is gained by the process of resurrection, a unit is 0.01%. +// Experience calculations for the experience value * level difference of the person revived / 100 * resurrection_exp/10000 which the revived player has can be got. +resurrection_exp: 0 + +// The rate of job exp. when using discount and overcharge on an NPC (100 is normal, 200 is double.) +// The way it is calculated is (money recieved * skill lv) * shop_exp / 100. +shop_exp: 0 + +// The delay rate of monk's combo (Note 2) +combo_delay_rate: 100 + +// Item check? (Note 1) +// When logged in or moving in map if the item the player is holding isn't correct there will be a check. +item_check: no + +// Will tuxedo and wedding dresses be shown when worn? (Note 1) +wedding_modifydisplay: yes + +// The time interval for HP to restore naturally. (in milliseconds) +natural_healhp_interval: 6000 + +// The time interval for SP to restore naturally. (in milliseconds) +natural_healsp_interval: 8000 + +// Automatic healing skill's time interval. (in milliseconds) +natural_heal_skill_interval: 10000 + +// The maximum weight for a character to carry when the character stops healing naturally. (in %) +natural_heal_weight_rate: 50 + +// Override item names from GRF file? (Note 1) +item_name_override_grffile: yes + +// Are arrows are consumed when used on a bow? (Note 1) +arrow_decrement: yes + +// Maximum atk speed. (Default is 190) +max_aspd: 190 + +// Maximum HP. (Default is 32500) +max_hp: 32500 + +// Maximum SP. (Default is 32500) +max_sp: 32500 + +// Maximum user LV to send to client +// (Default is 99.. Never go above 127) +// +// this is only useful if you have adjusted your client +// to expect levels higher then 99 +max_lv: 99 + +// Max limit of char stats. (agi, str, etc.) +max_parameter: 99 + +// Max weight carts can hold. +max_cart_weight: 8000 + +// Display player skill errors in console? (for debug only) (default: off) (Note 1) +player_skill_log: off + +// Display monster skill errors in console? (for debug only) (default: off) (Note 1) +monster_skill_log: off + +// Display battle log? (for debug only) (default: off) (Note 1) +battle_log: off + +// Display save log? (for debug only) (default: off) (Note 1) +save_log: off + +// Display errors? (for debug only) (default: off) (Note 1) +error_log: off + +// Display other stuff? (for debug only) (default: off) (Note 1) +etc_log: off + +// Save Clothes color. (This will degrade performance [in txt?]) (Note 1) +save_clothcolor: yes + +// Undead type differeniate. +// 0 = element undead +// 1 = race undead +// 2 = both +undead_detect_type: 2 + +// Operational mode of automatic counter. +// 0 = disregard DEF and HIT+20 . CRI*2, 1 = 100% critical +// Players +player_auto_counter_type: 0 +// Monsters +monster_auto_counter_type: 0 + +// Type of penalty that is applied to FLEE when more than agi_penaly_count monsters are targetting player +// 0 = no penalty is applied +// 1 = agi_penaly_num is reduced from FLEE as a % +// 2 = agi_penaly_num is reduced from FLEE as an exact amount +agi_penaly_type: 1 + +// Amount of enemies required to be targetting player before FLEE begins to be penalized +agi_penaly_count: 3 + +// Amount of FLEE penalized per each attacking monster more than agi_penaly_count +agi_penaly_num: 10 + +// Type of penalty that is applied to VIT defense when more than vit_penaly_count monsters are targetting player +// 0 = no penalty is applied +// 1 = vit_penaly_num is reduced from FLEE as a % +// 2 = vit_penaly_num is reduced from FLEE as an exact amount +vit_penaly_type: 1 + +// Amount of enemies required to be targetting player before VIT defense begins to be penalized +vit_penaly_count: 3 + +// Amount of VIT defense penalized per each attacking monster more than vit_penaly_count +vit_penaly_num: 5 + +// When the player attacks an object, the calculation method of DEF. +// With 0 this will be ignored specification, at 1 or more def = subtraction of (DEF* value). +player_defense_type: 0 + +// When the monster attacks an object, the calculation method of DEF. +// With 0 this will be ignored, at 1 or more def = subtraction of (DEF* value). +monster_defense_type: 0 + +// When the pet attacks an object, the calculation method of DEF. +// With 0 this will be ignored specification, at 1 or more def = subtraction of (DEF* value). +pet_defense_type: 0 + +//MDEF‚same as above....(MDEF*value) +magic_defense_type: 0 + +// Whether or not, ground skills of the players' will stack. (Note 1) +player_skill_reiteration: no + +//Whether or not, ground skills of the monsters' will pile up. (Note 1) +monster_skill_reiteration: no + +//Whether or not ground based skills of a certain type such as traps can be cast straight onto other players. (Note 1) +player_skill_nofootset: yes + +//Whether or not ground based skills of a certain type such as traps can be cast straight onto monsters. (Note 1) +monster_skill_nofootset: yes + +// When a player is cloaking, Whether the wall is checked or not. (Note 1) +// Note: Gravity announced that they were changing cloaking so it would +// not need a wall, but this was never implemented. I set to no, for fun. +player_cloak_check_type: no + +// When a monster is cloaking, Whether the wall is checked or not. (Note 1) +monster_cloak_check_type: no + +// Melee damage adjustments for WoE battles (Guild Vs Guild) (Note 2) +gvg_short_attack_damage_rate: 100 + +// Ranged damage adjustments for WoE battles (Guild Vs Guild) (Note 2) +gvg_long_attack_damage_rate: 100 + +// Magic damage adjustments for WoE battles (Guild Vs Guild) (Note 2) +gvg_magic_attack_damage_rate: 100 + +// Misc damage adjustments for WoE battles (Guild Vs Guild) (Note 2) +gvg_misc_attack_damage_rate: 100 + +// When the empelium is broken with WoE mode on, How Long Before The Declaration Of Castle Owner +// and Removal of Monsters/Players from Castle. (in milliseconds) +gvg_eliminate_time: 7000 + +// Whether or not skill is used vis-a-vis the user at the time of MOB skill motion of condition skillused. (Note 1) +// Not sure what this means, something about monsters changing target? +mob_changetarget_byskill: no + +// Player's Direction Changed When Attacking? (Note 1) +player_attack_direction_change: yes + +// Monsters's Direction Changed When Attacking? (Note 1) +monster_attack_direction_change: yes + +// If the player has Undead Elemental Equipment, should they be frozen or not. (Note 1) +player_undead_nofreeze: no + +// Will Player Skills Stay Within Land Limit or not? (Note 1) +player_land_skill_limit: yes + +// Will Monster Skills Stay Within Land Limit or not? (Note 1) +monster_land_skill_limit: yes + +// If a party uses a skill with penalties do they apply? (Note 1) +party_skill_penaly: yes + +// If monster's class is changed will it fully recover HP and SP and Ailments? (Note 1) +monster_class_change_full_recover: no + +// Do produced items have the maker's name on them? (Note 1) +produce_item_name_input: yes + +// Do produced potions have the maker's name on them? (Note 1) +produce_potion_name_input: yes + +// Do crafted arrows have the maker's name on them? (Note 1) +making_arrow_name_input: yes + +// Does created holy water have the maker's name on it? (Note 1) +holywater_name_input: yes + +// Stop logout for 10 seconds after a hit? (Note 1) +prevent_logout: yes + +// If skill fails by delay, should it display or not. (Note 1) +display_delay_skill_fail: yes + +// Can a player in chat room (in-game), be warped by a warp portal? (Note 1) +chat_warpportal: no + +// Can a monster be warped by a warp portal? (Note 1) +mob_warpportal: no + +// Is a monster summoned via dead branch aggresive? (Note 1) +dead_branch_active: yes + +// The highest value at which an item can be sold via the merchant vend skill. (in zeny) +vending_max_value: 10000000 + +// If someone loots, show name in party? (Note 1) +show_steal_in_same_party: no + +// Allow upper class (Advanced 2nd Class)? (Note 1) +// Just leave this at yes +enable_upper_class: yes + +// Is a usual attack of a pet delivered withOUT an attribute? (Note 1) +pet_attack_attr_none: no + +// Is a usual attack of a player delivered withOUT an attribute? (Note 1) +pc_attack_attr_none: no + +// Is a usual attack of a monster delivered withOUT an attribute? (Note 1) +mob_attack_attr_none: no + +// mob attacks againsts players wearing ghostring armor do full damage +mob_ghostring_fix: no + +// Does the Golden Thief Bug card only work during pvp? +// no or 0 - gtb works all the time +// 1 - 100 - percentage of magic damage reduced only during pvp (or gvg) +gtb_pvp_only: no + +// How to count the number of the enemies who do an agi penalty... +// 1 or less: It is a count altogether. +// 2: Full evasion exclusion +// 3: Full evasion and evasion exclusion +// 4 or more: Except all. +agi_penaly_count_lv: 2 + +// How to count the number of the enemies who do a vit penalty +// 1 or less: It is a count altogether. +// 2: Full evasion exclusion +// 3: Full evasion and evasion exclusion +// Four or more: Except all. +vit_penaly_count_lv: 3 + +// Grandcross Settings (Dont mess with these) +// Even if MOB (PC) has overlapped, it HIT(s) compulsion 3. (Default no) +gx_allhit: no +// The effect of the arms card of a damage %UP system is set also to GX at -L effect. (default no) +gx_cardfix: no +// The attribute affinity of GX is calculated doubly. (Default yes) +gx_dupele: yes +// Grandcross display type (Default 1) +// 0: Yellow character +// 1: White character +gx_disptype: 1 + +// If no than you can use the ensemble skills alone. (Note 1) +player_skill_partner_check: yes + +// Is the character of a GM account set as the object of a display by @ command etc. or not? +hide_GM_session: no + +// ƒ†ƒjƒbƒgˆÚ“®ˆ-•û-@B0‚Å-{ŽIŽd-l(‰ñü•‰‰×¨dAŽIˆ-¨Œy)A1‚ÅAthenaŽd-l(‰ñü•‰‰×¨ŒyAŽIˆ-¨d) +// translation (babelfish): +// Unit portable place - ? @. +// With 0 - {mackerel SI -l (circuit load -> heavily, the mackerel place - the ? ? lightly), +// With 1 - Athena SI -l (circuit load -> lightly, the mackerel place - the ? ? it is heavy) +unit_movement_type: 0 + +// Are other requests accepted during [various things[party,guild]] a request or not? +// It does not accept by no accepted by yes. +invite_request_check: yes + +// ƒŠƒ€[ƒuƒgƒ‰ƒbƒv‚ÌŽd-l 0:-{ŽIŽd-lAã©1ŒÂ 1:AthenaŽd-lAŽg‚Á‚½ƒAƒCƒeƒ€‚ðŽg‚Á‚½ŒÂ” +// translation (babelfish): +// SI of ???????? -l +// 0: - {Mackerel SI -l, trap 1 +// 1:Athena SI -l, the quantity which used the item which was used +skill_removetrap_type: 0 + +// Will display experience gained from killing a monster. (Note 1) +disp_experience: no + +// Whether or not Marine Spheres and Floras summoned by Alchemist will drop items and give experience? (Note 1) +alchemist_summon_reward: no + +// Maximum level (default 255). Requires that you have an experience table that supports more than 99 levels to go +// any higher. It is left at 255 for default as to not cause problems for people who already have players at higher levels. +// @lvup command will not go higher than this value, and therefor will not loop back around 0. +maximum_level: 255 + +// Leave at 0 to use normal drop system. Anything higher than 0 will allow luk to affect drop rates, based on a percentage. +// Example 1: Setting of 10 with 50 luk would add 5 to the drop rate. So say a card has a drop rate of 2, it would become 7. +// Example 2 : Setting 100 with 99 luk would add 99 to the drop rate. +drops_by_luk: 0 + +// Do all monsters ignore GMs unless attacked? (Note 1) +monsters_ignore_gm: no + +// Turn equipment breaking on. (Note 1) +// Turning this one will allow equipment to break in battles, +// as well as some skills that have chance to break equipmen. +equipment_breaking: no + +// Overall rate of which equipment can break. (Note 2) [100 = .01% chance to break equipment before penalties.] +// Critical attacks will double chance to break equipment, and other skills (such as Power Thrust) will increase weapon breaking chance as well. +// This does not effect Sage weapon enchantment failure chance. +equipment_break_rate: 100 + +// PK Server Mode. Turns entire server pvp(excluding towns). Experience loss is doubled if killed by another player. +// When players hunt monsters over 20 levels higher, they will receive 15% additional exp., and 25% chance of receiving more items. +// There is a nopvp.txt for setting up maps not to have pk on in this mode. Novices cannot be attacked and cannot attack. +// Normal pvp counter and rank display are disabled as well. +pk_mode: no + +// Turn this on to allow a player to level up more than once from a kill. (Note 1) +multi_level_up: yes + +// Does using bow to do a backstab give a 50% damage penalty? (Note 1) +backstab_bow_penalty: yes + +// Choose if server begin with night (yes) or day (no) +night_at_start: no + +// Define duration in msec of the day (default: 7,200,000 = 2 hours) +// Set to 0 to disable day cycle (but not @day GM command). +// Except 0, minimum is 60000 (1 minute). +day_duration: 0 + +// Define duration in msec of the night (default: 1,800,000 = 30 min) +// Set to 0 to disable night cycle (but not @night GM command). +// Except 0, minimum is 60000 (1 minute). +night_duration: 0 + +// Will display a mob's hp/maxhp when the mouse cursor is over them. (Note 1) +// Will not display guardian or emperium hp. +// +// Still under testing (works but doesn't update) +show_mob_hp: no + +// Ban people that try to use an other name of its name (spoof name). +// Duration of the ban, in minutes (default: 5). Value from 0 to 32767 +// to disable the ban, set 0 +ban_spoof_namer: 5 + +// Set here minimum level of a (online) GM that can receive all informations about any player that try to hack, spoof a name, etc. +// Values are from 0 to 100. +// 100: disable information +// 0: send to any people, including normal players +// default: 60, according to GM definition in atcommand_athena.conf +hack_info_GM_level: 60 + +// Set here the minimum GM level to disable the nowarp (from) and nowarpto (to) flags. +// This option is mainly used in AT_commands (@memo, @warp, @charwarp, @go, etc...). All GM commands used to move or set a new map check nowarp and nowarpto flags. +// default: 20 (first level after normal player or super'normal' player) +any_warp_GM_min_level: 20 + +// Set here which client version do you accept. Add all values of clients: +// 1: Clients before 2004-07-06 (old clients) +// 2: 2004-07-06 kRO client +// 4: 2004-07-13 kRO client +// 8: 2004-07-26 kRO client +// 16: 2004-08-09 kRO / 2004-08-16aSakray / 2004-08-17aSakray client +// 32: 2004-09-06aSakray client +// default value: 63 (all clients) +packet_ver_flag: 63 + +// Allow GMs to mute players or not? +muting_players: no + +// Mail system - Only function in sql version +mail_system: no + +// valid range of dye's and styles on the client +min_hair_style: 0 +max_hair_style: 20 +min_hair_color: 0 +max_hair_color: 9 +min_cloth_color: 0 +max_cloth_color: 4 + +// Visible area size (how many squares away from a player can they see) +area_size: 14 + +// chat system: +// More than flood lines in threshold seconds gets a ban +// More than warn lines in threshold seconds gets a warning +chat_spam_flood: 10 +chat_spam_warn: 8 +chat_spam_threshold: 10 + +// How much to increment the line count if the content is lame. +// Lameness is defined as mostly caps, punctuation, or a repeat of the last line. +// Set to 1 or 2 depending on how much you hate hearing "ITEN PLZ!" 3 times in a row.. +chat_lame_penalty: 2 + +// how many hours to auto ban spammer, 0 to disable [0-32767]. Default 6. +chat_spam_ban: 1 + +// Maximum line lengt, if a message is above chat_maxline, its dropped [1-512]. Default 255. +chat_maxline: 512 + +// Packet flood protection +// If more than packet_spam_flood over-limits packets are recieved in +// packet_spam_threshold seconds, we will kick the user if packet_spam_kick +// is not set to 0. Limits on individual packets are defined in src/map/clif.c +packet_spam_flood: 30 +packet_spam_threshold: 2 +packet_spam_kick: 1 + +// local settings for this server in this file +import: conf/battle_local.conf diff --git a/world/map/conf/battle_local.conf.example b/world/map/conf/battle_local.conf.example new file mode 100644 index 00000000..c9ba222c --- /dev/null +++ b/world/map/conf/battle_local.conf.example @@ -0,0 +1 @@ +// Nothing needs to be done here. diff --git a/world/map/conf/build-magic.sh b/world/map/conf/build-magic.sh new file mode 100755 index 00000000..30ec35b8 --- /dev/null +++ b/world/map/conf/build-magic.sh @@ -0,0 +1,20 @@ +#! /bin/bash + +RSCRIPT="spells-build" + +if ! grep -q -s '/bin/sed' $RSCRIPT; then + echo '#! /bin/sed -f' > $RSCRIPT; + chmod a+x $RSCRIPT +fi + +for n in `grep -o '"#..."' magic.conf.template`; do + if ! grep -q $n $RSCRIPT; then + CHANGES=1 + echo "s/${n}/${n}/" >> $RSCRIPT; + fi +done + +if [ x$CHANGES == x1 ] +then echo "${RSCRIPT} has been updated; please provide invocations for spells and/or teleport anchors."; +else ./$RSCRIPT magic.conf.template > magic.conf; +fi diff --git a/world/map/conf/grf-files.txt b/world/map/conf/grf-files.txt new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/world/map/conf/grf-files.txt diff --git a/world/map/conf/help.txt.example b/world/map/conf/help.txt.example new file mode 100644 index 00000000..c12b1a89 --- /dev/null +++ b/world/map/conf/help.txt.example @@ -0,0 +1,193 @@ +// put at first, the minimum level to display the line + 0:To use one command, type it inside the message window where you usually type to chat. + 0:@help - display this help. + 0:@email <actual@email> <new@email> - to change your e-mail (characters protection) + 80: + 80:@setmagic + 80:@magicinfo + 0: + 0:--- INFORMATION CMD --- + 0:@servertime - Display the date/time of the server + 99:@ignorelist - Displays your ignore list + 40:@where [char name] - Tells you the location of a character + 40:@who/@whois [match_text] - Display a listing of who is online and where + 40:@whogroup [match_text] - Display a listing of who is online and their party/guild + 40:@whomap/@whomapgroup [map] - like @who/@who2/@who3 but only for specifical map + 40:@whogm [match_text] - Like @who+@who2+who3, but only for GM. + 60:@charstatsall - Displays stats of all characters. + 60:@charitemlist <char name> - Displays all items of a player. + 60:@charstoragelist <char name> - Displays all items of a player's storage. + 60:@charcartlist <char name> - Displays all items of a player's cart. + 60:@ipcheck <char name> - Display all characters online from a characters IP address + 99:@mapinfo [<0-3> [map]] - Give information about a map (general info +: 0: no more, 1: players, 2: NPC, 3: shops/chat). + 99: + 99:@guildspy <guild_name/id> - You will receive all messages of the guild channel + 99:@partyspy <party_name/id> - You will receive all messages of the party channel + 60: + 60:--- MESSAGE CMD --- + 60:@broadcast <message> - Broadcasts a GM message with name of the GM + 60:@kami/@kamib <message> - Broadcasts a GM message without name of the GM + 60:@localbroadcast <message> - Broadcasts a GM message with name of the GM + 40: + 40:--- CHANGE GM STATE CMD --- + 40:@die ---- suicide + 40:@hide - Makes you invisible to monsters and other reporting functions. Type @hide again become visible. + 60:@invisible - Makes your character invisible (complete) + 60:@visible - Makes your character visible (opposite of @invisible) + 40:@save - Sets respawn point to current spot + 40:@return - Warps you to your save point + 40:@warp <mapname> <x> <y> - Warps you to the selected position + 40:@jump [x [y]]- Randomly warps you like a flywing. + 40:@goto <char name> - Warps you to selected character + 40:@follow <char_name> - follow a player + 40:@go <number/city_name> - Warps you to a city. + 40: -3: (Memo point 2) 1: morocc 5: izlude 9: yuno 13: niflheim + 40: -2: (Memo point 1) 2: geffen 6: aldebaran 10: amatsu 14: louyang + 40: -1: (Memo point 0) 3: payon 7: xmas (lutie) 11: gonryun 15: start point + 40: 0: prontera 4: alberta 8: comodo 12: umbala 16: prison/jail + 60:@hugo - iterate over players forward + 60:@linus - iterator over players backwards + 40: + 40:@log/@l - Send text to the GM log + 40:@tee/@t - Send text to the GM log and local chat + 40: + 60:@alive - Revives yourself from death + 40:@heal [<HP> <SP>] - Heals the desired amount of HP and SP. No value specified will do a full heal. + 40: + 60:@blvl <number of levels> - Raises your base level the desired number of levels. The max is 255 (User Defined). + 60:@jlvl <number of levels> -Raises your job level the desired number of levels. The max is 50 For Basic Classes. For Super Novice and Advanced Classes it is 70. + 60:@allskills - Give you all skills. + 80:@option <param1> <param2> <param3> - Adds different visual effects on or around your character + 80: <param1> <param2> <p3>(stackable) <param3> <param3> + 80: 1 Petrified (stackable) 01 Sight 32 Peco Peco riding 2048 Orc Head + 80: 2 Frozen 01 Poison 02 Hide 64 GM Perfect Hide 4096 Wedding Sprites + 80: 3 Stunned 02 Cursed 04 Cloak 128 Level 2 Cart 8192 Ruwach + 80: 4 Sleeping 04 Silenced 08 Level 1 Cart 256 Level 3 Cart + 80: 6 darkness 08 ??? 16 Falcon 512 Level 4 Cart + 80: 16 darkness 1024 Level 5 Cart + 99:@mountpeco - Give/remove you a peco (Class is required, but not skill) + 99:@disguise <monster_name_or_monster_ID> - Change your appearence to other players to a mob. + 99:@undisguise - Restore your normal appearance. + 99:@model <hair ID: 0-17> <hair color: 0-8> <clothes color: 0-4> - Changes your characters appearence. + 40:@dye/@ccolor <clothes color: 0-4> - Changes your characters appearence (only clothes color). + 40:@hairstyle <hair ID: 0-17> - Changes your characters appearence (only hair style). + 40:@haircolor <hair color: 0-8> - Changes your characters appearence (only hair color). + 40:@speed <1-1000> - Changes you walking speed. 1 being the fastest and 1000 the slowest. Default 150. + 99:@effect <effect_id> [flag] - Give an efect to your character. + 60:@dropall - throws all your possession on the ground + 60:@storeall - puts all your possessions in storage + 60:@killable - make your character killable + 60:@stpoint <number of points> - Gives you the desired number of stat points. + 60:@skpoint <number of points> - Gives you the desired number of skill points. + 80:@zeny <amount> - Gives you desired amount of Zeny. + 60:@str,@agi,@vit,@int,@dex,@luk <amount> - Adds desired amount to any stat. For example "@str 10" raises your str by 10 + 60:@allstats [value] - Adds value in all stats (maximum if no value). + 99:@memo [memo_position] - set/change a memo location (no position: display memo points). + 99:@questskill <#> - Gives you the specified quest skill + 80:@lostskill <#> - Takes away the specified quest skill from you + 60:@skillid <name> - look up a skill by name + 60:@useskill <skillid> <skillv> <target> - use a skill on target + 80:@addwarp <map name> <x coord> <y coord> + 60: + 60:--- MONSTERS CMD --- + 60:@spawn <monster_name_or_monster_ID> [<number to spawn> [<x coord> [<y coord>]]] + 60:@summon <monster_name_or_monster_ID> [<number to spawn> [<desired_monster_name> [<x coord> [<y coord>]]]] + 60:@killmonster [map] - kill all monsters of the map (they drop) + 60:@killmonster2 - kill all monsters of your map (without drops) + 40: + 40:--- ITEMS CMD --- + 40:@storage - Opens storage + 99:@gstorage - Opens guild storage + 80:@item <item name or ID> <quantity> - Gives you the desired item. + 40:@itemreset - Remove all your items. + 80:@itemcheck - Check your items with authorised items. + 80:@idsearch <part_of_item_name> - Search all items that name have part_of_item_name + 60:@produce <equip name or equip ID> <element> <# of very's> + 60: Element: 0=None 1=Ice 2=Earth 3=Fire 4=Wind + 60: It has separately with fragment 3 of the attribute + stars, you can apply. + 60: + 60:--- PVP CMD --- + 60:@pvpon - Turns pvp on on the current map + 60:@pvpoff - Turns pvp off on the current map + 99:@gvgon/@gpvpon - Turns gvg on on the current map + 99:@gvgoff/@gpvpoff - Turns gvg off on the current map + 99:@agitstart - Starts War of Emperium + 99:@agitend - End War of Emperium + 99: + 99:--- GROUPS CMD --- + 99:@party <party_name> - Create a party. + 99:@guild <guild_name> - Create a guild. + 99:@guildlvl <# of levels> - Raise Guild by desired number of levels + 99:@guildrecall <guild_name/id> - Warps all online characters of a guild to you. + 99:@partyrecall <party_name/id> - Warps all online characters of a party to you. + 40: + 40:--- REMOTE CHAR CMD --- + 60:@kill <char name> - Kills specified character. + 60:@charkillable <char name> - make another character killable + 60:@chardropall <char name> - throws all a chars possession on the ground + 60:@charstoreall <char name> - puts all of anothers charactes possessions in storage + 60:@recall <char name> - Warps target character to you. + 80:@recallall - Warps every character online to you. + 60:@charwarp <mapname> <x> <y> <char name> - Warps character to location of choice + 60:@revive <char name> - Revives target character. + 40:@charstats <char name> - Displays a characters stats. + 99:@charignorelist <char name> - Displays ignore list of the player + 60:@inall <char name> - Allows all wispers for the player + 60:@exall <char name> - Blocks all wispers for the player + 80:@charoption <param1> <param2> <param3> <charname> - Like @option command but only to target character. + 99:@charmountpeco <charname> - Give/remove to a player a peco (Class is required, but not skill). + 60:@charsave <map> <x> <y> <charname> - Changes the target players respawn point. + 60:@charblvl <#> <nickname> - Change a characters base level. + 60:@charjlvl <#> <nickname> - Change a characters job level. + 80:@charzeny <amount> <name> - Give/take a players Zeny + 60:@charstpoint <amount> <name> - Give/take a players stat points + 60:@charskpoint <amount> <name> - give/take a players skill points + 60:@charskreset <charname> - Reset skills of a character. + 60:@charstreset <charname> - Reset stats of a character. + 60:@charreset <charname> - Reset stats AND skills of a character. + 99:@charquestskill <#> <charname> - Gives to a player the specified quest skill. + 99:@charlostskill <#> <charname> - Takes away the specified quest skill from the player. + 60:@chardelitem <item_name_or_ID> <quantity> <player> - Remove items from a character + 99:@charmodel <hair type> <hair color> <clothes color> <name> - Changes a player's model + 99:@chardisguise <monster_name_or_monster_ID> <char name> - Changes disguise of a player + 99:@charundisguise <char name> - Cancels disguise of a player + 60:@charchangesex <name> - Changes sex of a player (all characters of the account) + 60:@block <name> - Blocks definitively a account + 60:@unblock <name> - Unblocks a account + 60:@ban <time> <name> - Ban temporarily a account + 60: time usage: adjustement (+/- value) and element (y/a, m, d/j, h, mn, s) + 60: Example: @ban +1m-2mn1s-6y testplayer + 60:@unban <name> - Unban a account + 60:@jail <char_name> - Sends specified character in jails + 60:@unjail <char_name> - Discharges specified character/prisoner + 60:@trade <char_name> - Open a trade window with a another player + 40:@kick <charname> - Kicks specified character off the server + 99:@kickall - Kick all characters off the server + 99:@mapexit - Kick all players and shut down map-server. + 80:@doom - Kills all NON GM chars on the server. + 80:@doommap - Kills all non GM characters on the map. + 80:@raise - Resurrects all characters on the server. + 80:@raisemap - Resurrects all characters on the map. + 80: + 80:--- ENVIRONMENT CMD --- + 80:@night - Uses @option 00 16 00 on all characters. All characters are in darkness. + 80:@day - Uses @option 00 00 00 on all characters. + 80:@skillon - turn skills on for a map + 80:@skilloff - turn skills on for a map + 80: + 80:--- ADMIN CMD --- + 99:@reloaditemdb - Reload item database (admin command) + 99:@reloadmobdb - Reload monster database (admin command) + 99:@reloadskilldb - Reload skills definition database (admin command) + 99:@reloadscript - Reload all scripts (admin command) + 99:@reloadgmdb - Reload GM levels (admin command) + 99:@adjgmlvl - Do a temporary adjustment of the GM level of a player (admin command) + 99:@adjcmdlvl - Do a temporary adjustment of the GM level of a command (admin command) + 80:@enablenpc <NPC_name> - Enable a NPC (admin command) + 80:@disablenpc <NPC_name> - Disable a NPC (admin command) + 80:@npcmove + 80: + 99:@gat - For debugging (you inspect around gat) + 99:@packet - For debugging (packet variety) + 99: +100:@GM <password> - it becomes GM! diff --git a/world/map/conf/magic.conf.template b/world/map/conf/magic.conf.template new file mode 100644 index 00000000..c8fd29df --- /dev/null +++ b/world/map/conf/magic.conf.template @@ -0,0 +1,1704 @@ +# Special-purpose globals +obscure_chance = 95 +min_casttime = 200 + +# Schools of magic +CONST MAGIC = 340 +CONST LIFE = 341 +CONST WAR = 342 +CONST TRANSMUTE = 343 +CONST NATURE = 344 +CONST ASTRAL = 345 + +# Elements +CONST ELT_NEUTRAL = 0 +CONST ELT_WATER = 1 +CONST ELT_EARTH = 2 +CONST ELT_FIRE = 3 +CONST ELT_WIND = 4 +CONST ELT_POISON = 5 +CONST ELT_SHADOW = 6 +CONST ELT_HOLY = 7 +CONST ELT_GHOST = 8 +CONST ELT_UNDEAD = 9 + +# Status effects +CONST SC_POISON = 132 +CONST SC_SHEARED = 194 # This is the same as SC_HIDE, since mobs can't hide and shearing is only used for mobs. Feel free to fix! +CONST SC_HIDE = 194 +CONST SC_HALT_REGENERATE = 195 +CONST SC_FLYING_BACKPACK = 196 +CONST SC_MBARRIER = 197 +CONST SC_HASTE = 198 +CONST SC_PHYS_SHIELD = 199 + +CONST SO_GMINVISIBLE = 4096 + +# Special effects +CONST SFX_DEFAULT = 10 +CONST SFX_SUMMON_START = 21 +CONST SFX_SUMMON_FIRE = 22 +CONST SFX_TELEPORT = 24 +CONST SFX_RAIN = 25 +CONST SFX_HIT = 25 +CONST SFX_ARROW_HAIL = 27 +CONST SFX_BARRIER = 10 +CONST SFX_UNBARRIER = 10 +CONST SFX_HEAL = 3 + +CONST MAX_RAIN_SPELL_RADIUS = 15 + +CONST MAX_MAGIC_LEVEL = 2 # Increase up to 5 as each new magic level is completed. + +CONST MAGIC_FLAGS = "MAGIC_FLAGS" +CONST MFLAG_MADE_CONC_POTION = 16384 +CONST MFLAG_MADE_CONC_POTION_SHIFT = 14 + +CONST SCRIPT_XP = "MAGIC_EXPERIENCE" +CONST SCRIPT_XP_MASK = 0xffff +CONST SCRIPT_XP_SHIFT = 0 +CONST SCRIPT_LASTSPELL_MASK = 0xff +CONST SCRIPT_LASTSPELL_SHIFT = 16 +CONST SCRIPT_HEALSPELL_MASK = 0xff +CONST SCRIPT_HEALSPELL_SHIFT = 24 +CONST DEBUG = 0 + +CONST ATTACK_ICON_GENERIC = 2000 +CONST ATTACK_ICON_SHEARING = 2001 + +# Default sfx on caster +PROCEDURE default_effect() = + sfx(caster, school - MAGIC + 2, 0); + +PROCEDURE sfx_generic(target) = + sfx(target, SFX_DEFAULT, 0); + +PROCEDURE set_var(name, mask, shift, value) = + set_script_variable(caster, name, script_int(caster, name) & (neg (mask << shift)) | ((value & mask) << shift)); + +PROCEDURE gain_heal_xp(value, # How many HP we healed + gain, # how many life magic experience points we can potentially gain + heal_xp_value_divisor, # 1 for instaheal, 2 for slow heal + base_exp_factor) = # factor for how many base experience points (max) the player should be allowed to gain + last_heal_xp = (script_int(caster, SCRIPT_XP) >> SCRIPT_HEALSPELL_SHIFT) & SCRIPT_HEALSPELL_MASK; + IF (target <> caster + && (value / heal_xp_value_divisor) > (10 + last_heal_xp + random(last_heal_xp + 1) + random(last_heal_xp + 1))) + THEN ( + heal_xp = last_heal_xp + gain; + IF (heal_xp > SCRIPT_HEALSPELL_MASK) + THEN heal_xp = SCRIPT_HEALSPELL_MASK; + CALL set_var(SCRIPT_XP, SCRIPT_HEALSPELL_MASK, SCRIPT_HEALSPELL_SHIFT, heal_xp); + ) + IF target <> caster + THEN gain_experience(caster, base_exp_factor * extract_healer_experience(target, value), 0, 1); + +PROCEDURE gain_xp(gain) = + IF (level + 3 > skill(caster, MAGIC)) # Level 4 and 5 magic users don't gain anything from spell levels 0 resp. 0+1 + THEN ( + index = spell_index(self_spell); + last_index = (script_int(caster, SCRIPT_XP) >> SCRIPT_LASTSPELL_SHIFT) & SCRIPT_LASTSPELL_MASK; + last_xp = (script_int(caster, SCRIPT_XP) >> SCRIPT_XP_SHIFT) & SCRIPT_XP_MASK; + IF (index != last_index) + THEN ( # Some variation observed + xp = last_xp + gain; + IF (xp > SCRIPT_XP_MASK) + THEN xp = SCRIPT_XP_MASK; + CALL set_var(SCRIPT_XP, SCRIPT_XP_MASK, SCRIPT_XP_SHIFT, xp); + CALL set_var(SCRIPT_XP, SCRIPT_LASTSPELL_MASK, SCRIPT_LASTSPELL_SHIFT, index); + IF DEBUG THEN message(caster, "Spell xp = " + xp); + ) ELSE IF DEBUG THEN message(caster, "Re-cast same spell, xp remain at " + last_xp); + ) + +PROCEDURE create_item(good_item, count, bad_item, difficulty) = + success = 1; + score = experience + random(min(spellpower, (experience / 3) + 1)); + IF (score >= difficulty) + THEN create_item(caster, good_item, count); + ELSE ( + success = 0; + score = score + random(luk(caster)) + random(luk(caster)); + IF (score < difficulty / 3) + THEN ( + message(caster, "Your spell backfires!"); + IF (random(110) < (luk(caster))) + THEN itemheal(caster, 0 - ((level + 1) * (level + 2) * (3 + random(28))), 0); + ELSE itemheal(caster, 0 - (level + 1), 0); + ) ELSE IF (score < (difficulty * 2) / 3) + THEN ( + IF random(5) = 0 + THEN (message(caster, "Your spell solidifies into the shape of a mysterious object!"); + create_item(caster, "Iten", 1);) + ELSE message(caster, "Your spell escapes!"); + ) ELSE ( + message(caster, "Your spell takes on a mind of its own!"); + IF random(3) = 0 + THEN create_item(caster, bad_item, 1); + ) + ) + +# Increase spellpower by school and general magic skill +PROCEDURE adjust_spellpower(school) = + experience = (script_int(caster, SCRIPT_XP) >> SCRIPT_XP_SHIFT) & SCRIPT_XP_MASK; + spellpower = spellpower + (skill(caster, MAGIC) + skill(caster, school)) * 10; + # Below, we adjust by special items + IF (not(failed(target)) && (school = LIFE || school = NATURE)) + THEN IF (target) + THEN IF (pc(target) = partner(caster)) + THEN (spellpower = spellpower + 200; + IF is_equipped(caster, "WeddingRing") + THEN spellpower = spellpower + 50; + IF is_equipped(pc(target), "WeddingRing") + THEN spellpower = spellpower + 50;) + +PROCEDURE heal(target, max_heal) = + CALL default_effect(); + IF caster <> target + THEN sfx(target, SFX_HEAL, 0); + power = spellpower + vit(caster); + power = min(max_heal, (max_heal * power) / 250); + itemheal(target, power, 0); + +# Goes through instaheal instead of itemheal +PROCEDURE quickheal(target, power) = + CALL default_effect(); + IF caster <> target + THEN sfx(target, SFX_HEAL, 0); + instaheal(target, power, 0); + +# Can attack the target? Imports attack_range from dynamic environment +PROCEDURE attack_check(target) = + IF (not (line_of_sight(location(caster), location(target)))) + THEN ABORT; + IF (not (rdistance(location(caster), location(target)) <= attack_range)) + THEN ABORT; + +# Cause elemental damage. bonus_elt grants an attack bonus, malus_elt reduces the attack. `effect' is the sfx ID. +PROCEDURE elt_damage(target, damage, dmgplus, bonus_elt, malus_elt, effect) = + d = damage + random(dmgplus); + IF (element(target) = malus_elt) + THEN d = d / 3; + IF (element(target) = bonus_elt) + THEN d = (d * (4 + element_level(target))) / 4; + #message(caster, "bonus=" + (element(target) = bonus_elt) + " malus=" + (element(target) = malus_elt) + " damage=" + damage + " + r(" + dmgplus + ") -> " + d); + sfx(target, effect, 0); + injure(caster, target, d, 0); + +PROCEDURE melee_damage(target, damage, dmgplus) = + CALL attack_check(target); + d = damage + random(dmgplus); + evade = level(target) + mdef(target); + IF (spellpower - random(100) < evade) + THEN d = 0; + injure(caster, target, d, 0); + + +PROCEDURE install_attack_spell(charges, base_delay, range, attack_animation) = + CALL default_effect(); + attack_range = range; + override_attack(caster, charges, ((200 - agi(caster)) * base_delay) / 200, + range, ATTACK_ICON_GENERIC, attack_animation, 0); + +PROCEDURE install_melee_spell(charges, base_delay, attack_animation) = + CALL install_attack_spell(charges, base_delay, 1, attack_animation); + +PROCEDURE summon_spell(mob_id, count, delay, lifetime, control_level) = + CALL default_effect(); + sfx(location, SFX_SUMMON_START, 0); + WAIT delay; + sfx(location, SFX_SUMMON_FIRE, 0); + spawn(rbox(location, 2), caster, mob_id, + if_then_else(skill(caster, ASTRAL) >= control_level, 2, 1), # pets when level is high enough + count, lifetime); + +PROCEDURE abort_on_area_shield(pos) = + IF (is_exterior(pos) = 1 && (map_nr(pos) = 1 # Tulimshar + ||map_nr(pos) = 9 # Hurnscald + ||map_nr(pos) = 20)) # Nivalis + THEN (message(caster, "A powerful magic drains your spell just as it is beginning to take shape!"); + ABORT;) + + +#-------------------------------------------------------------------------------- +# Level 0 spells +#-------------------------------------------------------------------------------- + +SPELL ask-magic-exp : "#G01" = + LET level = 0 + school = MAGIC + IN (MANA 1, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + level = skill (caster, MAGIC); + experience = (script_int(caster, SCRIPT_XP) >> SCRIPT_XP_SHIFT) & SCRIPT_XP_MASK; + IF (experience == SCRIPT_XP_MASK && level > 4) + THEN message (caster, "You are as proficient at magic as you can possibly be."); + ELSE ( + # This duplicates the table in mana-seed.txt + IF level > 4 + THEN max_experience = SCRIPT_XP_MASK; + ELSE IF level = 4 + THEN max_experience = 40000; + ELSE IF level = 3 + THEN max_experience = 8000; + ELSE IF level = 2 + THEN max_experience = 1200; + ELSE max_experience = 100; + + ratio = (10 * experience - random(max_experience / 30)) / max_experience; #Randomness: jitter a bit at the transitions to give more precise information if used frequently + + IF ratio >= 45 + THEN message(caster, "Magic flows naturally from you, readily and with ease. Your understanding of what you can currently control at present is flawless, far beyond your requirements to cast magic at this level." + if_then_else(level >= MAX_MAGIC_LEVEL,""," Surely the Mana Seed will more than readily offer more magic for such a proficient user.")); + ELSE IF ratio >= 20 + THEN message(caster, "You have perfect control of what you understand now, but there is now a distinct sensation of something more, something indescribable. If only the Mana Seed would give more magic to you..."); + ELSE IF ratio >= 10 + THEN message(caster, "You feel in perfect control of your magic" + if_then_else(level >= MAX_MAGIC_LEVEL,".",", and seem on the verge of something more... perhaps you should see the Mana Seed to ask for more magic?")); + ELSE IF ratio >= 9 + THEN message(caster, "You feel in almost perfect control of your magic."); + ELSE IF ratio >= 8 + THEN message(caster, "You feel that you have very good control of your magic."); + ELSE IF ratio >= 7 + THEN message(caster, "You feel quite in control of your magic."); + ELSE IF ratio >= 6 + THEN message(caster, "You feel mostly in control of your magic."); + ELSE IF ratio >= 5 + THEN message(caster, "You feel somewhat in control of your magic."); + ELSE IF ratio >= 4 + THEN message(caster, "You feel you still have a few difficulties in controlling your magic."); + ELSE IF ratio >= 3 + THEN message(caster, "Trying to control your magic is still rather troublesome."); + ELSE IF ratio >= 2 + THEN message(caster, "You feel that you have only the bare minimum of control over your magic."); + ELSE IF ratio >= 1 + THEN message(caster, "You feel quite overwhelmed by your magic, but are beginning to see patterns."); + ELSE message (caster, "You feel completely overwhelmed by your magic."); + ) + +# SPELL ask-life-magic-exp : "#G02" = +# LET level = 0 +# school = MAGIC +# IN (MANA 1, CASTTIME 1000, +# REQUIRE skill(caster, MAGIC) > level) +# => EFFECT CALL adjust_spellpower(school); +# CALL default_effect(); +# message(caster, "You have " + ((script_int(caster, "MAGIC_EXPERIENCE") >> 24) & 0xff) + " Life Magic Experience points."); + +SPELL transmute-wood-to-figurine (name : STRING) : "#T00" = + LET level = 0 + school = TRANSMUTE + IN (MANA 5, CASTTIME 4000, + REQUIRE skill(caster, MAGIC) > level, + COMPONENTS ["RawLog"]) + => ( REQUIRE name = "boo" => + EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("MoubooFigurine", 1, "WarpedLog", 40); + CALL gain_xp(1); + | REQUIRE name = "lurk" => + EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("WarpedLog", 1, "WarpedLog", 40); + message (caster, "You have no idea what a Skrytlurk looks like."); + ) + + +SPELL make-sulphur : "#T01" = + LET level = 0 + school = TRANSMUTE + IN (MANA 4, CASTTIME 4000, + REQUIRE skill(caster, MAGIC) > level, + COMPONENTS ["PileOfAsh"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("SulphurPowder", 1 + spellpower / 100 + (random(max(1, 800 - spellpower)) / 180), "PileOfAsh", 50); + CALL gain_xp(1); + +SPELL lesser-heal (target : STRING) : "#L00" = + LET level = 0 + school = LIFE + IN (MANA 6, CASTTIME 500, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE if_then_else(failed(pc(target)), 1, + rdistance(location(caster), location(pc(target))) < 2 + (spellpower / 100)), + (COMPONENTS ["Lifestone"])) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + IF failed(pc(target)) + THEN (IF ((target = "mouboo" || target = "Mouboo") + && rdistance(location(caster), location(npc("Mouboo"))) < 2 + (spellpower / 100)) + THEN { mes "Your spell seems to have no effect on the mouboo."; close; } + ELSE target = caster;) + ELSE (target = pc(target); + IF is_dead(target) + THEN ABORT;) + CALL gain_heal_xp(min(200, max_hp(target) - hp(target)), 1, 2, 2); # report half values for non-instaheal + CALL heal(target, 200); + CALL gain_xp(1); + + +SPELL flare-dart : "#W00" = + LET level = 0 + school = WAR + IN (MANA 10, CASTTIME 500, + REQUIRE skill(caster, MAGIC) > level, + (REQUIRE skill(caster, school) > 2 OR COMPONENTS ["SulphurPowder"])) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + damage = 5 * sqrt(spellpower); + damage_bonus = 5 + level(caster) / 3; + CALL install_attack_spell(3 + spellpower / 50, + 1200, + 4, 31); + CALL gain_xp(1); + ATTRIGGER CALL attack_check(target); + CALL elt_damage (target, damage, damage_bonus, ELT_WATER, ELT_FIRE, 15); + + +SPELL magic-blade : "#W01" = + LET level = 0 + school = WAR + IN (MANA 9, CASTTIME 500, + REQUIRE skill(caster, MAGIC) > level) + => ( COMPONENTS ["SharpKnife"] => + EFFECT CALL adjust_spellpower(WAR); + CALL default_effect(); + CALL install_melee_spell(10 + spellpower / 15, 1200, 30); + CALL gain_xp(1); + ATTRIGGER CALL melee_damage(target, 60, 5 + str(caster)); + | COMPONENTS ["Knife"] => + EFFECT CALL adjust_spellpower(WAR); + CALL default_effect(); + CALL install_melee_spell(10 + spellpower / 15, 1200, 30); + CALL gain_xp(1); + ATTRIGGER CALL melee_damage(target, 40, 5 + str(caster)); + ) + +SPELL aggravate : "#N00" = + LET level = 0 + school = NATURE + IN (MANA 3, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + FOREACH MOB target IN rbox(location(caster), 2 + spellpower / 50) DO + IF line_of_sight(location(caster), location(target)) + THEN (CALL sfx_generic(target); + aggravate(target, 0, caster);) + +SPELL grow-mauve : "#N01" = + LET level = 0 + school = NATURE + IN (MANA 4, CASTTIME 2000, + REQUIRE skill(caster, MAGIC) > level, + COMPONENTS ["MauveHerb", "Root"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL gain_xp(1); + spawn(rbox(location, 2), caster, 1029, 1, skill(caster, school) / 2 + 1, 10000); + +SPELL grow-alizarin : "#N02" = + LET level = 0 + school = NATURE + IN (MANA 4, CASTTIME 2000, + REQUIRE skill(caster, MAGIC) > level, + COMPONENTS ["AlizarinHerb", "Root"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL gain_xp(1); + spawn(rbox(location, 2), caster, 1032, 1, skill(caster, school) / 2 + 1, 10000); + +SPELL grow-gamboge : "#N03" = + LET level = 0 + school = NATURE + IN (MANA 4, CASTTIME 2000, + REQUIRE skill(caster, MAGIC) > level, + COMPONENTS ["GambogeHerb", "Root"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL gain_xp(1); + spawn(rbox(location, 2), caster, 1031, 1, skill(caster, school) / 2 + 1, 10000); + +SPELL grow-cobalt : "#N04" = + LET level = 0 + school = NATURE + IN (MANA 4, CASTTIME 2000, + REQUIRE skill(caster, MAGIC) > level, + COMPONENTS ["CobaltHerb", "Root"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL gain_xp(1); + spawn(rbox(location, 2), caster, 1030, 1, skill(caster, school) / 2 + 1, 10000); + + +LOCAL SPELL summon-maggots : "#A00" = + LET level = 0 + school = ASTRAL + IN (MANA 21, CASTTIME 20000, + REQUIRE skill(caster, MAGIC) > level, + COMPONENTS ["MaggotSlime", "Root"]) + => EFFECT CALL adjust_spellpower(school); + CALL gain_xp(1); + CALL summon_spell(1002, + 1 + ((sqrt(spellpower) + (spellpower / 15)) / 5), + 5000 - (spellpower * 5), + 10000 + (spellpower * 50), 1); + +SPELL detect-magic : "#G00" = + LET level = 0 + school = MAGIC + IN (MANA 3, CASTTIME 6000, + REQUIRE skill(caster, MAGIC) > level) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + range = 1 + spellpower / 50; + FOREACH NPC n IN rbox(location(caster), range) + DO IF (contains_string(name_of(n), "#MAGIC") || contains_string(name_of(n), "#_M")) + THEN sfx(n, SFX_DEFAULT, 0); + FOREACH SPELL s IN rbox(location(caster), range) + DO IF (s <> self_invocation) + THEN sfx(s, SFX_DEFAULT, 0); + + +#-------------------------------------------------------------------------------- +# Level 1 spells +#-------------------------------------------------------------------------------- + +SPELL make-arrows : "#T10" = + LET level = 1 + school = TRANSMUTE + IN (MANA 8, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["RawLog"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("Arrow", 1 + spellpower / 40 + (random(max(1, 800 - spellpower)) / 80), "WarpedLog", 500); + CALL gain_xp(1); + +SPELL make-shirt : "#T11" = + LET level = 1 + school = TRANSMUTE + IN (MANA 25, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS [5 * "CottonCloth"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("CottonShirt", 1, "CottonCloth", 425); + CALL gain_xp(2); + +SPELL make-tanktop : "#T12" = + LET level = 1 + school = TRANSMUTE + IN (MANA 25, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS [4 * "CottonCloth"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("TankTop", 1, "CottonCloth", 350); + CALL gain_xp(2); + +SPELL make-short-tanktop : "#T13" = + LET level = 1 + school = TRANSMUTE + IN (MANA 25, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS [3 * "CottonCloth"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("ShortTankTop", 1, "CottonCloth", 250); + CALL gain_xp(2); + +SPELL make-iron-powder : "#T14" = + LET level = 1 + school = TRANSMUTE + IN (MANA 8, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["IronOre"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("IronPowder", 1 + spellpower / 140 + (random(max(1, 900 - spellpower)) / 220), "IronOre", 700); + CALL gain_xp(3); + +SPELL make-concentration-potion : "#T15" = + LET level = 1 + school = TRANSMUTE + IN (MANA 8, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["BottleOfWater", 2 * "CobaltHerb", 2 * "PinkPetal"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item( if_then_else(random(2000 + experience) < experience, "ConcentrationPotion", "DarkConcentrationPotion"), 1, + if_then_else(random(2), 744, "DarkConcentrationPotion"), + 2000); + IF (success) + THEN CALL set_var(MAGIC_FLAGS, 1, MFLAG_MADE_CONC_POTION_SHIFT, 1); + CALL gain_xp(4); + +SPELL merge-concentration-potions : "#T16" = + LET level = 1 + school = TRANSMUTE + IN (MANA 8, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["DarkConcentrationPotion", 744]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL create_item("ConcentrationPotion", 1, 744, 1000); + message (caster, "success = " + success); + IF (success) + THEN CALL set_var(MAGIC_FLAGS, 1, MFLAG_MADE_CONC_POTION_SHIFT, 1); + CALL gain_xp(4); + + +SPELL lay-on-hands (target : STRING) : "#L10" = + LET level = 1 + school = LIFE + IN (MANA 10, CASTTIME 500, + REQUIRE hp(caster) > max_hp(caster) / 20, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + REQUIRE if_then_else(failed(pc(target)), 1, + (pc(target) <> caster) + && + (rdistance(location(caster), + location(pc(target))) < 2 + (spellpower / 50)) + && not (running_status_update(pc(target), SC_HALT_REGENERATE)) + )) + => EFFECT CALL adjust_spellpower(school); + IF (not (target)) THEN ABORT; + IF failed(pc(target)) + THEN (IF ((target = "mouboo" || target = "Mouboo") + && (rdistance(location(caster), location(npc("Mouboo"))) < 2 + (spellpower / 100))) + THEN (needed = 1000; + { + set @spell, 1; + callfunc "QuestMoubooHeal"; + }) + ELSE ABORT; + ) + ELSE (target = pc(target); + needed = max_hp(target) - hp(target);) + + pay_fraction = max(80, 200 - (vit(caster) + (spellpower / 10))); # Pay at least 40% + payment = (needed * pay_fraction) / 200; + available = hp(caster) - (max_hp(caster) / 20); + + IF payment < available + THEN power = needed; + ELSE (payment = available; + power = (available * 200) / pay_fraction; + ) + CALL gain_heal_xp(power, 1, 1, 3); + CALL quickheal(target, power); + status_change(caster, SC_HALT_REGENERATE, 0, 0, 0, 0, 10000); + CALL gain_xp(min(4, payment / 100)); + +SPELL lightning-strike : "#W10" = + LET level = 1 + school = WAR + IN (MANA 20, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["IronPowder"])) + => EFFECT CALL adjust_spellpower(school); + damage = spellpower; + damage_bonus = 1 + spellpower / 2; + CALL install_attack_spell(1 + spellpower / 90, + 3000, + 8, 31); + CALL gain_xp(2); + ATTRIGGER CALL attack_check(target); + in_rain = 0; + area = location(caster); + FOREACH SPELL s IN rbox(location(caster), MAX_RAIN_SPELL_RADIUS + 1) DO + IF name_of(s) = "rain" THEN ( + IF is_in (location(caster), s.area) + THEN (in_rain = in_rain | 1; + area = area + s.area;); + IF is_in (location(target), s.area) + THEN in_rain = in_rain | 2; + ); + IF in_rain & 1 + THEN (# caster standing in the rain? This is going to be fun. + used = 0; + FOREACH TARGET t IN area DO + IF (random(200) + luk(caster) > 175) + THEN (used = used + 1; + CALL elt_damage (t, damage / 6, 1 + (damage_bonus / 3), ELT_EARTH, ELT_WIND, 17 + random(3));); + IF (not(used) || (random(200) + luk(caster) < 150)) + THEN (sfx(caster, 17 + random(3), 0); + itemheal(caster, 0 - damage - (random(damage_bonus)), 0);); + ) ELSE + CALL elt_damage (target, damage, damage_bonus, ELT_EARTH, ELT_WIND, 17 + random(3)); + +LOCAL SPELL arrow-hail : "#W11" = + LET level = 1 + school = WAR + IN (MANA 25, CASTTIME 5000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + REQUIRE is_exterior(location(caster)), + (COMPONENTS [20 * "Arrow"] OR COMPONENTS [20 * "IronArrow"]), + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["SulphurPowder"])) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL abort_on_area_shield(location(caster)); + + range = 7; + area = rbox(awayfrom(location(caster), dir(caster), 1 + range), range); + + FOREACH SPELL s IN rbox(awayfrom(location(caster), dir(caster), 1 + range), range * 2) DO + IF (s <> self_invocation) && (name_of(s) = "arrow-hail") + THEN (message (caster, "A nearby arrow hail spell absorbs your magic!"); + ABORT;) + + damage = 125; + damage_bonus = spellpower / 5; + CALL gain_xp(2); + FOR i = 0 TO spellpower / 8 DO ( + FOR j = 0 TO 2 DO ( + location = random_location(area); + sfx(location, SFX_ARROW_HAIL, 0); + done = 0; + FOREACH TARGET target IN rbox(location, 0) DO ( + injure(caster, target, damage + random(damage_bonus) + random(damage_bonus), 0); + done = 1; + BREAK; + ) + IF location(caster) = location && not(done) + THEN (itemheal(caster, 0 - (damage + random(damage_bonus) + random(damage_bonus)), 0); + sfx(caster, SFX_HIT, 0); + ) + ); + WAIT 250 + random(50) + random(50); + ); + +SPELL magic-knuckles : "#W12" = + LET level = 1 + school = WAR + IN (MANA 20, CASTTIME 500, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["Beer"])) + => + EFFECT CALL adjust_spellpower(WAR); + str = str(caster); + CALL install_melee_spell(10 + spellpower / 10, 1300, 34); + ATTRIGGER CALL melee_damage(target, 30, 5 + (str * 2)); + +SPELL flying-backpack (target : PC) : "#N10" = + LET level = 1 + school = NATURE + IN (MANA 12, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["SilkCocoon"]), + REQUIRE rdistance(location(target), location(caster)) < 2 + spellpower / 30) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + IF (caster <> target) + THEN sfx(caster, 2, 0); + status_change(target, SC_FLYING_BACKPACK, 0, 0, 0, 0, 5000 + (spellpower * 500)); + message (target, "Your backpack is lifted by a mystical force; you no longer feel it pressing on your back."); + CALL gain_xp(1); + ATEND message (target, "Your backpack is no longer levitating."); + sfx(target, 2, 0); + +SPELL protect (target : PC) : "#N11" = + LET level = 1 + school = NATURE + IN (MANA 14, CASTTIME 1500, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["HardSpike"]), + REQUIRE rdistance(location(target), location(caster)) < 2 + spellpower / 30) + => EFFECT CALL adjust_spellpower(school); + sfx(target, 11, 0); + IF (caster <> target) + THEN CALL default_effect(); + status_change(target, SC_PHYS_SHIELD, 5 + max(15, spellpower / 20), 0, 0, 0, 5000 + (spellpower * 1000)); + message (target, "You feel more protected."); + CALL gain_xp(2); + ATEND message (target, "You feel less protected."); + sfx(target, 111, 0); + +SPELL happy-curse (target : PC) : "#N12" = + LET level = 1 + school = NATURE + IN (MANA 13, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["GingerBreadMan"]), + REQUIRE rdistance(location(target), location(caster)) < 1 + spellpower / 100) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + FOR i = 0 TO (spellpower / 10) DO (emote(target, 3); WAIT 500;); + CALL gain_xp(1); + +LOCAL SPELL rain : "#N13" = + LET level = 1 + school = NATURE + IN (MANA 17, CASTTIME 3000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + REQUIRE is_exterior(location(caster)), + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["BottleOfWater"])) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL abort_on_area_shield(location(caster)); + FOREACH SPELL s IN rbox(location(caster), MAX_RAIN_SPELL_RADIUS + 1) DO + IF (s <> self_invocation) && (name_of(s) = "rain") + THEN (message (caster, "A nearby raincloud absorbs your magic."); + ABORT;) + + CALL gain_xp(1); + range = min(MAX_RAIN_SPELL_RADIUS, 3 + min(spellpower, 200) / 30); + area = rbox(location(caster), range); + IF (is_in(location(npc("#DruidTree0#_M")), area) + || is_in(location(npc("#DruidTree1#_M")), area)) + THEN { + set @flag, 1; + callfunc "QuestTreeTrigger"; + }; + FOR i = 0 TO (spellpower / 3) DO ( + FOR j = 0 TO min(spellpower / 2, 200) / 100 DO ( + location = random_location(area); + sfx(location, SFX_RAIN, 0); + FOREACH TARGET target IN rbox(location, 1) DO + IF element(target) = ELT_FIRE + THEN injure(caster, target, 2 + random(5 + spellpower / 15), 0); + ) + WAIT 400 + random(100); + ); + +PROCEDURE shear-drop(target, target2, item, prob) = + IF (target = name || target2 = name) + THEN (IF (score < prob) + THEN drop_item_for(place, item, 1, 60000, caster, 5000);) + +PROCEDURE shear-drop2(target, target2, item, prob, item2, prob2) = + IF (target = name || target2 = name) + THEN (IF (score < prob) + THEN drop_item_for(place, item, 1, 60000, caster, 5000); + ELSE CALL shear-drop(target, target2, item2, prob2 + prob);) + +PROCEDURE shear-drop3(target, target2, item, prob, item2, prob2, item3, prob3) = + IF (target = name || target2 = name) + THEN (IF (score < prob) + THEN drop_item_for(place, item, 1, 60000, caster, 5000); + ELSE CALL shear-drop2(target, target2, item2, prob2 + prob, item3, prob3 + prob);) + + +SPELL shear : "#N14" = + LET level = 1 + school = NATURE + IN (MANA 23, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + override_attack (caster, 1, 2000, 1, ATTACK_ICON_SHEARING, 30, 0); + ATTRIGGER IF not(is_pc(target)) + THEN (score = random (1000 - (random (spellpower))); # lower score -> more valuable item + name = name_of(target); + place = random_location(rbox(location(target), 1)); + IF running_status_update(target, SC_SHEARED) + THEN ABORT; + status_change(target, SC_SHEARED, 1, 1, 1, 1, 600000); # 10 minutes + CALL shear-drop("Fluffy", "Fluffy", "WhiteFur", 300); + CALL shear-drop("EasterFluffy", "Easter Fluffy", "WhiteFur", 300); + CALL shear-drop("SpikyMushroom", "Spiky Mushroom", "HardSpike", 250); + CALL shear-drop("Mouboo", "Mouboo", "CottonCloth", 175); + CALL shear-drop("Cobalt", "CobaltPlant", "CobaltHerb", 700); + CALL shear-drop("Alizarin", "AlizarinPlant", "AlizarinHerb", 700); + CALL shear-drop("Gamboge", "GambogePlant", "GambogeHerb", 700); + CALL shear-drop("Mauve", "MauvePlant", "MauveHerb", 700); + CALL shear-drop("SilkWorm", "Silkworm", "SilkCocoon", 300); + IF ((name = "Fluffy" || name = "Mouboo") && random(2)) + THEN { set @value, 1; callfunc "QuestSagathaHappy"; }; + ) + + + +SPELL barrier (target : PC) : "#A10" = + LET level = 1 + school = ASTRAL + IN (MANA 16, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["SmallMushroom"]), + REQUIRE rdistance(location(target), location(caster)) < 2 + spellpower / 30) + => EFFECT CALL adjust_spellpower(school); + sfx(target, SFX_BARRIER, 0); + IF (caster <> target) + THEN CALL default_effect(); + status_change(target, SC_MBARRIER, 20 + max(30, spellpower / 8), 0, 0, 0, 2000 + (spellpower * 200)); + message (target, "You are surrounded by a magical barrier."); + CALL gain_xp(3); + ATEND message (target, "Your magical barrier dissipates."); + sfx(target, SFX_UNBARRIER, 0); + + +LOCAL SPELL summon-spiky-mushrooms : "#A11" = + LET level = 1 + school = ASTRAL + IN (MANA 33, CASTTIME 20000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["HardSpike", "Root"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL gain_xp(1); + CALL summon_spell(1019, 1 + spellpower / 120, 5000 - (spellpower * 9), spellpower * 400, 2); + +LOCAL SPELL summon-fluffies : "#A12" = + LET level = 1 + school = ASTRAL + IN (MANA 39, CASTTIME 20000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["WhiteFur", "Root"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + CALL gain_xp(1); + CALL summon_spell(1020, 1 + spellpower / 170 + spellpower / 430, 5000 - (spellpower * 8), spellpower * 350, 3); + + +SPELL detect-players : "#G10" = + LET level = 1 + school = MAGIC + IN (MANA 7, CASTTIME 300, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + message = ""; + FOREACH PC target IN rbox(location(caster), spellpower / 2) + DO IF ((target <> caster) + && not (running_status_update(pc(target), SC_HIDE)) + && not (status_option(target, SO_GMINVISIBLE))) + THEN (IF message <> "" + THEN message = message + ", "; + message = message + name_of (target); + IF spellpower > 99 + THEN message = message + "(" + level(target) + ")"; + ) + IF message = "" + THEN message(caster, "You sense no-one else nearby."); + ELSE message(caster, "You sense the following: " + message); + +SPELL reveal : "#G11" = + LET level = 1 + school = MAGIC + IN (MANA 18, CASTTIME 3000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + FOREACH PC target IN rbox(location(caster), 1 + spellpower / 100) + DO IF has_shroud(target) && level(caster) * 2 > level(target) + THEN (unshroud(target); + sfx(target, SFX_DEFAULT, 500);) + + +SPELL enchant-lifestone : "#G12" = + LET level = 1 + school = MAGIC + IN (MANA 15, CASTTIME 4000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (COMPONENTS["BugLeg"] OR COMPONENTS ["MaggotSlime"] + OR COMPONENTS ["MauveHerb", "AlizarinHerb", "CobaltHerb", "GambogeHerb"])) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + create_item(caster, "Lifestone", 1); + CALL gain_xp(1); + +SPELL sense-spouse : "#G13" = + LET level = 1 + school = MAGIC + IN (MANA 7, CASTTIME 400, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + REQUIRE is_married(caster), + REQUIRE is_equipped(caster, "WeddingRing")) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + IF (failed(partner(caster)) || not(is_equipped(partner(caster), "WeddingRing"))) + THEN (message(caster, "You cannot sense your partner."); + ABORT;) + partner = partner(caster); + name = name_of(partner); + IF (is_dead(partner) || (map_nr(location(partner)) <> map_nr(location(caster)))) + THEN (message(caster, "You cannot sense " + name + " nearby."); + ABORT;) + IF (map_level(location(partner)) > 2 && map_level(location(caster)) < map_level(location(partner))) + THEN (message(caster, "You sense " + name + " somewhere below."); + ABORT;) + IF (map_level(location(caster)) > 2 && map_level(location(partner)) < map_level(location(caster))) + THEN (message(caster, "You sense " + name + " somewhere above."); + ABORT;) + IF (map_level(location(caster)) <> map_level(location(partner))) + THEN message(caster, "You sense " + name + " somewhere in the vincinity."); + ELSE (distance = rdistance(location(caster), location(partner)); + dir = dir_towards(location(caster), location(partner), 1); + IF (distance < 3) + THEN message(caster, "You sense " + name + " right next to you."); + ELSE IF (distance < 30) + THEN message(caster, "You sense " + name + " close by, towards the " + dir + "."); + ELSE IF (distance < 200) + THEN message(caster, "You sense " + name + " nearby, towards the " + dir + "."); + ELSE message(caster, "You sense " + name + " in the " + dir + "."); + ) + +SPELL hide (target : PC) : "#A13" = + LET level = 1 + school = ASTRAL + IN (MANA 11, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["CottonCloth"]), + REQUIRE rdistance(location(target), location(caster)) < 2 + spellpower / 30) + => EFFECT CALL adjust_spellpower(school); + sfx(target, SFX_DEFAULT, 0); + IF (caster <> target) + THEN CALL default_effect(); + status_change(target, SC_HIDE, 0, 0, 0, 0, 5000 + (spellpower * 2500)); + CALL gain_xp(2); + message(target, "You are hidden!"); + IF (caster <> target) THEN message(caster, "You hid someone!"); + ATEND message(target, "You are no longer hidden."); + +#-------------------------------------------------------------------------------- +# Level 2 spells +#-------------------------------------------------------------------------------- + +SPELL cure-poison (target : PC) : "#L20" = + LET level = 2 + school = LIFE + IN (MANA 15, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + REQUIRE (rdistance(location(caster), + location(pc(target))) < 1 + (spellpower / 60)), + COMPONENTS ["GambogeHerb"]) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + IF (running_status_update (target, SC_POISON)) + THEN (CALL gain_heal_xp(40, 1, 2, 2); + stop_status_change (target, SC_POISON); + CALL gain_xp(2); + IF caster <> target + THEN sfx(target, SFX_HEAL, 0);); + + +SPELL fire-ball : "#W22" = + LET level = 2 + school = WAR + IN (MANA 30, CASTTIME 1000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + COMPONENTS ["PileOfAsh"]) + => EFFECT CALL adjust_spellpower(school); + damage = min(50 + skill(caster, school) * 40, + 30 + ((spellpower * 3) / 2)); + damage_bonus = level(caster) + spellpower * 2; + radius = 2 + spellpower / 50; + CALL install_attack_spell(1 + spellpower / 60, + 5000, + 10, 31); + ATTRIGGER CALL attack_check(target); + loc = location(target); + #WAIT 500; + sfx(loc, 16, 0); + FOREACH TARGET target IN rbox(loc, radius) + DO IF line_of_sight(loc, location(target)) + THEN (divisor = (3 + rdistance(loc, location(target))); + CALL elt_damage (target, (damage * 3) / divisor, (damage_bonus * 3) / divisor, ELT_WATER, ELT_FIRE, 15); + ) + +SPELL summon-partner : "#A23" = + LET level = 2 + school = ASTRAL + IN (MANA 30, CASTTIME 2000, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level, + REQUIRE is_married(caster), + REQUIRE is_equipped(caster, "WeddingRing")) + => EFFECT CALL adjust_spellpower(school); + CALL default_effect(); + IF (failed (partner (caster))) + THEN message (caster, "You call out for your partner, but there is no response."); + ELSE (message (caster, "You call out for " + (name_of (partner (caster))) + "."); + message (partner(caster), name_of(caster) + " is calling for your aid!"); + sfx(partner(caster), 2, 0); + WAIT (max (5000, 30000 - (spellpower * 60))); + IF (failed (partner (caster))) + THEN message (caster, "Your partner has abandoned you."); + ELSE IF (is_dead (partner (caster))) + THEN message (caster, "Something seems to have happened to " + (name_of(partner(caster))) + "."); + ELSE (sfx(location(partner(caster)), SFX_TELEPORT, 0); + dest = awayfrom(location(caster), random_dir(1), 1); + warp(partner(caster), dest); + sfx(dest, SFX_TELEPORT, 0); + ) + ) + + + +#-------------------------------------------------------------------------------- +# Level 4 spells +#-------------------------------------------------------------------------------- + +SPELL shroud : "#N40" = + LET level = 4 + school = NATURE + IN (MANA 40, CASTTIME 400, + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level) + => EFFECT CALL default_effect(); + shroud(caster, 0x04); + +SPELL teleport (destination : STRING) : "#A40" = + LET level = 4 + school = ASTRAL + IN (MANA 80, CASTTIME 400, + # COMPONENT ["EtherEssence"], + # CATALYST ["TeleportCrystal"], + REQUIRE skill(caster, MAGIC) > level, + REQUIRE skill(caster, school) > level) + => EFFECT CALL default_effect(); + WAIT 1000 + (200000 / (spellpower + 10)); + sfx(location(caster), SFX_TELEPORT, 200); + warp(caster, random_location(anchor(destination))); + sfx(caster, SFX_TELEPORT, 200); + +#-------------------------------------------------------------------------------- +# Debug keywords +#-------------------------------------------------------------------------------- + +SPELL debug : "debug" = + REQUIRE DEBUG + => EFFECT message (caster, "FLAGS: " + + "drank=" + ((script_int(caster, "MAGIC_FLAGS") & 1) > 0) + ", " + + "Kmseed=" + ((script_int(caster, "MAGIC_FLAGS") & 2) > 0) + ", " + + "touched-mseed=" + ((script_int(caster, "MAGIC_FLAGS") & 4) > 0) + ", " + + "mseed-max=" + ((script_int(caster, "MAGIC_FLAGS") & 8) > 0) + ", " + + "Kauldsbel=" + ((script_int(caster, "MAGIC_FLAGS") & 16) > 0) + ", " + + "Kwyara=" + ((script_int(caster, "MAGIC_FLAGS") & 32) > 0) + ", " + + "Ksagatha=" + ((script_int(caster, "MAGIC_FLAGS") & 64) > 0) + ", " + + "Kmpotion=" + ((script_int(caster, "MAGIC_FLAGS") & 128) > 0) + ", " + + "mseed-rumour=" + ((script_int(caster, "MAGIC_FLAGS") & 256) > 0) + ", " + + "Kcuttree=" + ((script_int(caster, "MAGIC_FLAGS") & 512) > 0) + ", " + + "cut=" + ((script_int(caster, "MAGIC_FLAGS") & 1024) > 0) + ", " + + "Kdruidtree=" + ((script_int(caster, "MAGIC_FLAGS") & 2048) > 0) + ", " + + "Kimp=" + ((script_int(caster, "MAGIC_FLAGS") & 4096) > 0) + ", " + + "Koldwiz=" + ((script_int(caster, "MAGIC_FLAGS") & 8192) > 0) + ", " + + "made-conc=" + ((script_int(caster, "MAGIC_FLAGS") & 16384) > 0) + ", " + + "elanore-omar=" + ((script_int(caster, "MAGIC_FLAGS") & 32768) > 0)); + message (caster, "EXP: " + (script_int(caster, "MAGIC_EXPERIENCE") & 0xffff) + + ", lastspell=" + ((script_int(caster, "MAGIC_EXPERIENCE") >> 16) & 0xff) + + ", healexp=" + ((script_int(caster, "MAGIC_EXPERIENCE") >> 24) & 0xff)); + message (caster, "STATUS: " + + "auldsbel:" + (script_int(caster, "QUEST_MAGIC") & 0x1f) + "," + ((script_int(caster, "QUEST_MAGIC") >> 5) & 0x7) + ", " + + "dt/mb:" + ((script_int(caster, "QUEST_MAGIC") >> 8) & 0xf) + ", " + + "s-unhappy:" + ((script_int(caster, "QUEST_MAGIC") >> 12) & 0xf) + ", " + + "sagatha:" + ((script_int(caster, "QUEST_MAGIC") >> 16) & 0xff) + ", " + + "swords:" + ((script_int(caster, "QUEST_MAGIC") >> 24) & 0xff) + ", " + + "imp:" + ((script_int(caster, "QUEST_MAGIC2") >> 0) & 0xf) + ", " + + "elanore:" + ((script_int(caster, "QUEST_MAGIC2") >> 4) & 0xf) + ", " + + "elanore-sub:" + ((script_int(caster, "QUEST_MAGIC2") >> 12) & 0xf) + ", " + + "wyara:" + ((script_int(caster, "QUEST_MAGIC2") >> 8) & 0xf)); + +PROCEDURE debug_xmod(name, mask, shift, gain) = + value = ((script_int(caster, name) >> shift) & mask) + gain; + IF (value < 0) + THEN value = 0; + IF (value > mask) + THEN value = mask; + CALL set_var(name, mask, shift, value); + +PROCEDURE debug_mod(name, delta) = + IF (name = "mexp") THEN CALL debug_xmod("MAGIC_EXPERIENCE", 0xffff, 0, delta); + ELSE IF (name = "lastspell") THEN CALL debug_xmod("MAGIC_EXPERIENCE", 0xff, 16, delta); + ELSE IF (name = "healexp") THEN CALL debug_xmod("MAGIC_EXPERIENCE", 0xff, 24, delta); + ELSE IF (name = "drank") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 0, delta); + ELSE IF (name = "Kmseed") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 1, delta); + ELSE IF (name = "touched-mseed") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 2, delta); + ELSE IF (name = "mseed-max") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 3, delta); + ELSE IF (name = "Kauldsbel") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 4, delta); + ELSE IF (name = "Kwyara") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 5, delta); + ELSE IF (name = "Ksagatha") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 6, delta); + ELSE IF (name = "Kmpotion") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 7, delta); + ELSE IF (name = "mseed-rumour") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 8, delta); + ELSE IF (name = "Kcuttree") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 9, delta); + ELSE IF (name = "cut") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 10, delta); + ELSE IF (name = "Kdruidtree") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 11, delta); + ELSE IF (name = "Kimp") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 12, delta); + ELSE IF (name = "oldwiz") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 13, delta); + ELSE IF (name = "made-conc") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 14, delta); + ELSE IF (name = "elanore-omar") THEN CALL debug_xmod("MAGIC_FLAGS", 0x1, 15, delta); + ELSE IF (name = "auldsbel") THEN CALL debug_xmod("QUEST_MAGIC", 0x1f, 0, delta); + ELSE IF (name = "Qauldsbel") THEN CALL debug_xmod("QUEST_MAGIC", 0x7, 5, delta); + ELSE IF (name = "dt") THEN CALL debug_xmod("QUEST_MAGIC", 0x3, 10, delta); + ELSE IF (name = "mb") THEN CALL debug_xmod("QUEST_MAGIC", 0x3, 8, delta); + ELSE IF (name = "s-unhappy") THEN CALL debug_xmod("QUEST_MAGIC", 0xff, 12, delta); + ELSE IF (name = "sagatha") THEN CALL debug_xmod("QUEST_MAGIC", 0xff, 16, delta); + ELSE IF (name = "swords") THEN CALL debug_xmod("QUEST_MAGIC", 0xff, 24, delta); + ELSE IF (name = "imp") THEN CALL debug_xmod("QUEST_MAGIC2", 0xf, 0, delta); + ELSE IF (name = "elanore") THEN CALL debug_xmod("QUEST_MAGIC2", 0xf, 4, delta); + ELSE IF (name = "wyara") THEN CALL debug_xmod("QUEST_MAGIC2", 0xf, 8, delta); + ELSE IF (name = "elanore-sub") THEN CALL debug_xmod("QUEST_MAGIC2", 0xf, 12, delta); + ELSE message(caster, "Unknown"); + +SPELL debug-up1 (name : STRING) : "debug+1" = + REQUIRE DEBUG + => EFFECT CALL debug_mod(name, 1); + +SPELL debug-down1 (name : STRING) : "debug-1" = + REQUIRE DEBUG + => EFFECT CALL debug_mod(name, 0 - 1); + +SPELL debug-up16 (name : STRING) : "debug+16" = + REQUIRE DEBUG + => EFFECT CALL debug_mod(name, 16); + +SPELL debug-down16 (name : STRING) : "debug-16" = + REQUIRE DEBUG + => EFFECT CALL debug_mod(name, 0 - 16); + +SPELL debug-up256 (name : STRING) : "debug+256" = + REQUIRE DEBUG + => EFFECT CALL debug_mod(name, 256); + +SPELL debug-down256 (name : STRING) : "debug-256" = + REQUIRE DEBUG + => EFFECT CALL debug_mod(name, 0 - 256); + +SPELL debug-reset : "debug-reset" = + REQUIRE DEBUG + => EFFECT set_script_variable(caster, "QUEST_MAGIC", 0); + set_script_variable(caster, "QUEST_MAGIC2", 0); + set_script_variable(caster, "MAGIC_FLAGS", 0); + set_script_variable(caster, "MAGIC_EXP", 0); + + +#-------------------------------------------------------------------------------- +# Special-purpose quasispells +#-------------------------------------------------------------------------------- + +CONST MIN_MARRY_LEVEL = 32; + +NONMAGIC SILENT SPELL marriage (target : PC) : "marry" = + (REQUIRE (is_in(location(caster), @("014-1.gat", 28,39) @+ (8, 6)) || is_in(location(caster), @("021-2.gat", 20,25) @+ (4, 4)) ))=> + EFFECT IF target == caster # no valid target or tried to marry self? + THEN ABORT; + + IF (level(caster) < MIN_MARRY_LEVEL) + THEN (message(caster, "You must be level " + MIN_MARRY_LEVEL + " or higher to marry!"); ABORT;) + + IF (level(target) < MIN_MARRY_LEVEL) + THEN (message(caster, "Your partner must be level " + MIN_MARRY_LEVEL + " or higher to marry!"); ABORT;) + + IF partner(caster) = target + THEN (message(caster, "You and " + name_of(target) + " are already married."); ABORT;) + + IF is_married(caster) + THEN (message(caster, "You are already married!"); ABORT;) + + IF is_married(target) + THEN (message(caster, name_of(target) + " is already married."); ABORT;); + + IF distance(location(caster), location(target)) <> 1 + THEN (message(caster, "You need to stand next to each other."); ABORT;); + + IF (count_item(caster, "WeddingRing") == 0 || count_item(target, "WeddingRing") == 0) + THEN (message(caster, "You must both be wearing your wedding rings!"); ABORT;) + + script_target = target; + { + announce @caster_name$ + " is asking " + strcharinfo(0) + " for marriage.", 2; + mes @caster_name$ + " wishes to marry you."; + mes "Do you accept?"; + next; + menu "Yes, I do!", L_yes, + "No.", -; + close; + + L_yes: + if marriage(@caster_name$) + announce @caster_name$ + " and " + strcharinfo(0) + " are now married!", 0; + close; + } + + IF not (is_married(caster)) + THEN message(caster, name_of(target) + " turned down your marriage offer."); + +# SPELL change-hair-colour (colour : STRING) : "trapa" = +# (MANA 20) => EFFECT IF colour = "nworbl" +# THEN x = 0; # light brown +# ELSE IF colour = "der" +# THEN x = 1; # red +# ELSE IF colour = "neerg" +# THEN x = 2; # green +# ELSE IF colour = "elprup" +# THEN x = 3; # purple +# ELSE IF colour = "yerg" +# THEN x = 4; # grey +# ELSE IF colour = "wolley" +# THEN x = 5; # yellow +# ELSE IF colour = "eulb" +# THEN x = 6; # blue +# ELSE IF colour = "nwrob" +# THEN x = 7; # brown +# ELSE IF colour = "elpropl" +# THEN x = 8; # light purple +# ELSE IF colour = "elpropd" +# THEN x = 9; # dark purple +# ELSE x = random(10); +# sfx(caster, 2, 0); +# set_hair_colour(caster, x); + + +# SPELL trick-or-treat : "trick-or-treat" = +# (CASTTIME 30000, MANA 20, +# COMPONENTS [ "BugLeg" ]) => EFFECT IF (random(2)) +# THEN (sfx(caster, 2, 0); +# FOR i = 0 TO random(10) DO +# drop_item_for (random_location(rbox(location(caster), 5)), +# "Candy", 1, 10000 + random(10000), caster, 3000); +# FOR i = 0 TO random(10) DO +# drop_item_for (random_location(rbox(location(caster), 5)), +# "ChocolateBar", 1, 10000 + random(10000), caster, 3000); +# ) +# ELSE (sfx(caster, 5, 0); +# message(caster, "No treat for you!"); +# spawn(rbox(location(caster), 3), caster, 1010, 0, 1 + random(3), 10000 + random(20000)); +# FOREACH MOB target IN rbox(location(caster), 5) DO +# (sfx(target, 5, 0); +# aggravate(target, 0, caster);)) + + +LOCAL SPELL mouboo-groan : "#g" = + (MANA 1, + REQUIRE name_of(caster) = "MOUBOOTAUR") => + EFFECT FOREACH PC p IN rbox(location(caster), 200) DO + distance = rdistance(location(caster), location(p)); + IF (distance < 15) + THEN message(p, "The moubootaur's groaning rings in your ears!"); + ELSE IF (distance < 70) + THEN message(p, "You hear a loud groaning noise, not far away..."); + ELSE message(p, "You hear an odd groaning noise in the distance..."); + + +LOCAL SPELL mouboo-smell : "#s" = + (MANA 1, + REQUIRE name_of(caster) = "MOUBOOTAUR") => + EFFECT WAIT 30000; + FOREACH PC p IN rbox(location(caster), 30) DO + message(p, "You notice a strange smell all around you."); + + +CONST E10_FLAG_USED_FREE_WARP_SHIFT = 17 + +#NONMAGIC SILENT SPELL easter (type : STRING) : "#m" = +# (REQUIRE name_of(caster) == "Freeyorp") => +# EFFECT IF (type == "EE_RF") THEN ( +# { +# doevent("Old Woman::OnReplenish"); +# } +# ) ELSE IF (type == "EE_SUS") THEN ( +# { +# doevent "Old Woman::OnManualStopTimer"; +# } +# ) ELSE IF (type == "EE_INIT") THEN ( +# { +# doevent "Old Woman::OnManualStartTimer"; +# } +# ) ELSE IF (type == "BLOCKER_DISABLE") THEN ( +# { +# set $Easter_2010_Npc_State2, ($Easter_2010_Npc_State2 & ~(E10_BARRIER_MASK << E10_BARRIER_SHIFT)) | (E10_BARRIER_OPEN << E10_BARRIER_SHIFT); +# } +# ) ELSE IF (type == "BLOCKER_ENABLE") THEN ( +# { +# set $Easter_2010_Npc_State2, ($Easter_2010_Npc_State2 & ~(E10_BARRIER_MASK << E10_BARRIER_SHIFT)) | (E10_BARRIER_ACTIVE << E10_BARRIER_SHIFT); +# } +# ) ELSE message(caster, "Unknown action '" + type + "'!"); + +# Invader spells + +#NONMAGIC SILENT SPELL easter-invader-init : "#i" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT warp(caster, @("028-1.gat", 139, 46)); +# { +# gmcommand "@blvl -255"; +# gmcommand "@blvl 199"; +# gmcommand "@setmagic all 5 Xakelbael the Dark"; +# gmcommand "@allstats"; +# savepoint "028-1.gat", 130, 46; +# } +# create_item(caster, "DarkTalisman", 1); + +#NONMAGIC SILENT SPELL easter-invader-hide : "#h" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT { if (checkoption(4096)) goto L_toggle; +# setoption(4096); +# end; +# L_toggle: +# setoption(0); +# end; }; +# warp(caster, location(caster)); + +#NONMAGIC SILENT SPELL easter-invader-warp-taunt : "#o" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT warp(caster, @("009-1.gat", 48, 35)); +# WAIT 80; +# sfx(caster, 32, 0); +# WAIT 80; +# FOREACH PC p IN rbox(location(caster), 50) +# DO IF (p <> caster) THEN ( +# message(p, "A powerful explosion " + if_then_else(distance(location(caster), location(p)) < 10, "right around you nearly deafens you!", if_then_else(distance(location(caster), location(p)) < 30, "nearby shocks you!", "in the distance erupts... you're not sure of the source, but it will be something big..."))); +# itemheal(p, -1 - random(hp(p)), 0-(random(sp(p) >> 2))); +# ) +# WAIT 1000; +# FOREACH PC p IN rbox(location(caster), 15) +# DO ( +# message(p, "As the smoke clears, you hear a distant, sickly laughing ringing in your ears..."); +# ) + +#NONMAGIC SILENT SPELL easter-invader-warp-taunt-explosion : "#q" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT sfx(caster, 32, 0); +# WAIT 100; +# sfx(caster, 31, 0); +# WAIT 30; +# sfx(caster, 30, 0); +# WAIT 30; +# sfx(caster, 30, 0); +# WAIT 20; +# sfx(caster, 30, 0); +# WAIT 10; +# sfx(caster, 30, 0); +# WAIT 10; + +#NONMAGIC SILENT SPELL easter-invader-warp-taunt-end : "#p" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT FOREACH PC p IN rbox(location(caster), 50) DO IF (p <> caster) +# THEN ( script_target = p; +# { gmcommand "@jump"; } +# message(p, "A powerful force sends you flying!"); +# ) +# warp(caster, @("028-1.gat", 130, 46)); + + +#NONMAGIC SILENT SPELL easter-invader-attack-pulse : "#a" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT IF (script_int(caster, "InvState") == 1) THEN ( set_script_variable(caster, "InvState", 0); ABORT; ); +# set_script_variable(caster, "InvState", 1); +# FOR i = 1 TO 500 +# DO ( sfx(caster, 31, 0); +# WAIT 80; +# FOREACH PC p IN rbox(location(caster), 4) +# DO IF (p <> caster) THEN ( injure(caster, p, 30 - random(random(25)) - random(5) + random(i), 0); ) +# WAIT 420; +# IF (script_int(caster, "InvState") == 0) THEN ABORT; +# ) +# set_script_variable(caster, "InvState", 0); + +#NONMAGIC SILENT SPELL easter-invader-command : "#d" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT override_attack(caster, 3, ((200 - agi(caster)) * 5000) / 200, +# 8, ATTACK_ICON_GENERIC, 31, 0); +# ATTRIGGER CALL attack_check(target); +# area = rbox(location(target), 8); +# FOREACH MOB m IN area +# DO (message(caster, "Class Id: " + mob_id(m)); +# IF (mob_id(m) = 1040 || mob_id(m) == 1042 || mob_id(m) == 1047) THEN ( +# CALL sfx_generic(m); +# aggravate(m, 0, target); +# ) +# ) + +#NONMAGIC SILENT SPELL easter-invader-spike : "#w" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT FOR i = 1 TO 40 +# DO ( point = random_location(rbox(location(caster), sqrt(i) << 1)); +# IF (random(3)) +# THEN (sfx(point, 32, 0); +# WAIT 50; +# FOREACH PC p IN rbox(point, sqrt(i) >> 1) +# DO IF (p <> caster) +# THEN (injure(caster, p, i + random(i << 1), random(random(i)));) +# ) ELSE (sfx(point, 31, 0); +# WAIT 50; +# FOREACH PC p IN rbox(point, sqrt(i)) +# DO IF (p <> caster) +# THEN (injure(caster, p, i + random(i << 2), random(random(i)));) +# ) +# WAIT 400 - (i << 3); +# ) + +#NONMAGIC SILENT SPELL easter-invader-jump (t : STRING) : "#j" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT IF not (status_option(caster, 4096)) THEN ( sfx(caster, 33, 0); +# WAIT 200; ); +# IF (t == "r") THEN ( warp(caster, @("028-1.gat", 129, 46)); ) +# ELSE IF (t == "s") THEN ( warp(caster, @("028-1.gat", 69, 96)); ) +# ELSE IF (t == "c") THEN ( warp(caster, @("028-3.gat", 50, 58)); ) +# ELSE IF (t == "t") THEN ( warp(caster, @("009-1.gat", 48, 35)); ) +# ELSE { gmcommand "@jump"; }; + +#NONMAGIC SILENT SPELL easter-invader-taunt-local (s : STRING) : "#l" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT FOREACH PC p IN rbox(location(caster), 20) DO message(p, s); + +#NONMAGIC SILENT SPELL easter-invader-taunt-global (s : STRING) : "#b" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT FOREACH PC p IN rbox(location(caster), 100) DO message(p, s); + +#NONMAGIC SILENT SPELL easter-invader-spawn : "#c" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT spawn(rbox(location(caster), 20), caster, 1040, random(random(5)), 1, 100000); +# spawn(rbox(location(caster), 20), caster, 1042, random(random(5)), 1, 100000); +# spawn(rbox(location(caster), 20), caster, 1047, random(random(5)), 1, 100000); + +NONMAGIC SILENT SPELL world-shift : "#S00" = + (REQUIRE (script_int(caster, "Easter_2010_QuestState") >> 16) & 1 == 1 && (script_int(caster, "Easter_2010_QuestState") >> 7) & 3 == 2) => # Travel only works when you have both helped the doctor at least thrice and have defeated the invader - top level requirement. + ( (REQUIRE count_item(caster, "DarkPetal")) # Allow unlimited travel with the petal + => ((REQUIRE rdistance(location(caster), @("028-1.gat", 63, 67)) < 5) => + EFFECT sfx(location(caster), SFX_TELEPORT, 200); + WAIT 8000; + { savepoint "009-1", 52, 39; }; + warp(caster, @("009-1.gat", 55, 37)); + sfx(location(caster), SFX_TELEPORT, 200); + | + (REQUIRE map_nr(location(caster)) != 28) => + EFFECT inithp = hp(caster); // Store this value. + sfx(location(caster), SFX_TELEPORT, 200); + IF (map_nr(location(caster)) == 9 || map_nr(location(caster)) == 1 || map_nr(location(caster)) == 21 || map_nr(location(caster)) == 20) THEN WAIT 8000; + ELSE WAIT 20000; + IF (hp(caster) < inithp) THEN ABORT; // Cancel teleport if the player took damage during channel time (hacky, but for most purposes should work.) + { savepoint "028-1", 63, 68; }; + warp(caster, @("028-1.gat", 63, 67)); + sfx(location(caster), SFX_TELEPORT, 200); + ) + | (REQUIRE (rdistance(location(caster), @("028-1.gat", 63, 67)) < 5 ) + => EFFECT set_script_variable(caster, "Easter_2010_QuestState", script_int(caster, "Easter_2010_QuestState") | (1 << 17)); + sfx(location(caster), SFX_TELEPORT, 200); + WAIT 8000; + { savepoint "009-1", 52, 39; }; + warp(caster, @("009-1.gat", 55, 37)); + sfx(location(caster), SFX_TELEPORT, 200); + | (REQUIRE map_nr(location(caster)) != 28 && (script_int(caster, "Easter_2010_QuestState") >> 17) & 1 == 0) # Allow for one free warp home without the petal + => EFFECT inithp = hp(caster); // Store this value. + sfx(location(caster), SFX_TELEPORT, 200); + IF (map_nr(location(caster)) == 9 || map_nr(location(caster)) == 1 || map_nr(location(caster)) == 21 || map_nr(location(caster)) == 20) THEN WAIT 8000; + ELSE WAIT 20000; + IF (hp(caster) < inithp) THEN ABORT; // Cancel teleport if the player took damage during channel time (hacky, but for most purposes should work.) + set_script_variable(caster, "Easter_2010_QuestState", script_int(caster, "Easter_2010_QuestState") | (1 << 17)); + { savepoint "028-1", 63, 68; }; + warp(caster, @("028-1.gat", 63, 67)); + sfx(location(caster), SFX_TELEPORT, 200); + ) + ) + +#NONMAGIC SILENT SPELL easter-invader-killer : "#z" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT { gmcommand "@killer"; } + +#NONMAGIC SILENT SPELL easter-invader-killable : "#x" = +# (REQUIRE name_of(caster) == "Xakelbael the Dark") => +# EFFECT { gmcommand "@killable"; } + +#NONMAGIC SILENT SPELL easter-debug-reset (s : STRING) : "#r" = +# (REQUIRE name_of(caster) == "Freeyorp") => +# EFFECT set_script_variable(pc(s), "Easter_2010_QuestState", 0); + +#NONMAGIC SILENT SPELL easter-set-flag (s : PC) : "#k" = +# (REQUIRE name_of(caster) == "Freeyorp" || name_of(caster) == "Xakelbael the Dark") => +# EFFECT IF (s == caster) THEN ABORT; +# IF ((script_int(s, "Easter_2010_QuestState") >> 16) & 1) THEN ( message(caster, s + " already has the flag set!"); ABORT; ) +# script_target = s; +# { set Easter_2010_QuestState, Easter_2010_QuestState | (1 << 16); // RETURN_READY flag +# mes "As the smoke clears, you feel stronger, vivified."; +# next; +# mes "The world seems more vibrant. It looks the same as ever, but you get a sense of something more."; +# next; +# mes "You feel something familiar."; +# next; +# mes "This sensation... could it be home?"; +# next; +# mes "A single word comes to your mind - " + getspellinvocation("world-shift") + ". While it sounds magical, you know with certainty that you will not need any magical power to use it."; +# next; +# mes "Could this be the way to move to and from the worlds? Either way, the dark petal the rose vanished into seems to be the key."; +# next; +# mes "Though you might be able to succeed in one trip without it, returning home."; +# if ((Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) close; +# next; +# mes "But the world is still not quite right. Perhaps there is someone you should help before the world releases its hold on you?"; +# close; +# } + +NONMAGIC SILENT SPELL easter-get-debug (p : PC) : "#e" = + (REQUIRE name_of(caster) == "Freeyorp" || name_of(caster) == "Xakelbael the Dark") => + EFFECT { message strcharinfo(0), "Global state egg1: " + $Easter_2010_Egg_Loc_State1; + message strcharinfo(0), "Global state egg2: " + $Easter_2010_Egg_Loc_State2; + message strcharinfo(0), "Global state egg3: " + $Easter_2010_Egg_Loc_State3; + message strcharinfo(0), "Global state egg4: " + $Easter_2010_Egg_Loc_State4; + message strcharinfo(0), "Global state egg5: " + $Easter_2010_Egg_Loc_State5; + message strcharinfo(0), "Global npc state1: " + $Easter_2010_Npc_State1; + message strcharinfo(0), "Global npc state2: " + $Easter_2010_Npc_State2; + }; + message(caster, "Local state egg1: " + script_int(p, "Easter_2010_EggState1")); + message(caster, "Local state egg2: " + script_int(p, "Easter_2010_EggState2")); + message(caster, "Local state egg3: " + script_int(p, "Easter_2010_EggState3")); + message(caster, "Local state egg4: " + script_int(p, "Easter_2010_EggState4")); + message(caster, "Local state egg5: " + script_int(p, "Easter_2010_EggState5")); + message(caster, "Local state quest: " + script_int(p, "Easter_2010_QuestState")); + + + + +PROCEDURE hug_tree(target) = + IF (target = "" + || target = "tree" || target = "tree*" + || target = "Tree" || target = "Tree*" + || target = "druid" || target = "druid*" + || target = "Druid" || target = "Druid*") + THEN { + set @flag, 2; + callfunc "QuestTreeTrigger"; + }; + +NONMAGIC SPELL hug0 (target : STRING) : "hug" = REQUIRE ((rdistance(location(caster), location(npc("#DruidTree0#_M"))) <= 1 + || rdistance(location(caster), location(npc("#DruidTree1#_M"))) <= 1)) + => EFFECT CALL hug_tree(target); + +NONMAGIC SPELL hug1 (target : STRING) : "*hug*" = REQUIRE ((rdistance(location(caster), location(npc("#DruidTree0#_M"))) <= 1 + || rdistance(location(caster), location(npc("#DruidTree1#_M"))) <= 1)) + => EFFECT CALL hug_tree(target); + +NONMAGIC SPELL hug2 (target : STRING) : "*hug" = REQUIRE ((rdistance(location(caster), location(npc("#DruidTree0#_M"))) <= 1 + || rdistance(location(caster), location(npc("#DruidTree1#_M"))) <= 1)) + => EFFECT CALL hug_tree(target); + +NONMAGIC SPELL hug3 (target : STRING) : "hugs" = REQUIRE ((rdistance(location(caster), location(npc("#DruidTree0#_M"))) <= 1 + || rdistance(location(caster), location(npc("#DruidTree1#_M"))) <= 1)) + => EFFECT CALL hug_tree(target); + +NONMAGIC SPELL hug4 (target : STRING) : "*hugs*" = REQUIRE ((rdistance(location(caster), location(npc("#DruidTree0#_M"))) <= 1 + || rdistance(location(caster), location(npc("#DruidTree1#_M"))) <= 1)) + => EFFECT CALL hug_tree(target); + +NONMAGIC SPELL hug5 (target : STRING) : "*hugs" = REQUIRE ((rdistance(location(caster), location(npc("#DruidTree0#_M"))) <= 1 + || rdistance(location(caster), location(npc("#DruidTree1#_M"))) <= 1)) + => EFFECT CALL hug_tree(target); + + +# coding of generic spellinvocations +# #[indicates difficulty level][indicates questionnumber][indicates answerpossibility] +# X = easy; Y = medium; Z = hard +# each question have a number of possible answers (mostly using capital letters or not) + +NONMAGIC SPELL towelanswer00a : "#X00" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer00b : "#X01" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer01a : "#X10" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer01b : "#X11" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer02a : "#X20" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer02b : "#X21" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer03a : "#X30" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer03b : "#X31" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer04a : "#X40" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer04b : "#X41" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer05a : "#X50" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer05b : "#X51" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer05c : "#X52" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer05d : "#X53" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer06a : "#X60" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer06b : "#X61" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer06c : "#X62" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer06d : "#X63" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer07a : "#X70" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer07b : "#X71" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer08a : "#X80" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer08b : "#X81" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer08c : "#X82" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer08d : "#X83" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer09a : "#X90" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer09b : "#X91" = EFFECT { message strcharinfo(0), ""; }; + +NONMAGIC SPELL towelanswer10a : "#Y00" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer10b : "#Y01" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer11a : "#Y10" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer11b : "#Y11" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer12a : "#Y20" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer12b : "#Y21" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer13a : "#Y30" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer13b : "#Y31" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer14a : "#Y40" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer14b : "#Y41" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer15a : "#Y50" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer15b : "#Y51" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer15c : "#Y52" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer16a : "#Y60" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer16b : "#Y61" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer17a : "#Y70" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer17b : "#Y71" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer18a : "#Y80" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer18b : "#Y81" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer18c : "#Y82" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer18d : "#Y83" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer19a : "#Y90" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer19b : "#Y91" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer19c : "#Y92" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer19d : "#Y93" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer110a : "#YA0" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer110b : "#YA1" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer111a : "#YB0" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer111b : "#YB1" = EFFECT { message strcharinfo(0), ""; }; + +NONMAGIC SPELL towelanswer20a : "#Z00" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer20b : "#Z01" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer20c : "#Z02" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer20d : "#Z03" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer21a : "#Z10" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer21b : "#Z11" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer22a : "#Z20" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer22b : "#Z21" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer23a : "#Z30" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer23b : "#Z31" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer24a : "#Z40" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer24b : "#Z41" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer25a : "#Z50" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer25b : "#Z51" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer26a : "#Z60" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer26b : "#Z61" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer26c : "#Z62" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer26d : "#Z63" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer27a : "#Z70" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer27b : "#Z71" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer27c : "#Z72" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer27d : "#Z73" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer28a : "#Z80" = EFFECT { message strcharinfo(0), ""; }; +NONMAGIC SPELL towelanswer28b : "#Z81" = EFFECT { message strcharinfo(0), ""; }; + +#-------------------------------------------------------------------------------- +# Teleport anchors +#-------------------------------------------------------------------------------- + +TELEPORT-ANCHOR tulimshar : "tulimshar" = @("001-1.gat", 43, 66) @+ (3, 3); +TELEPORT-ANCHOR hurnscald : "hurnscald" = @("009-1.gat", 55, 37) @+ (3, 3); +TELEPORT-ANCHOR nivalis : "nivalis" = @("020-1.gat", 75, 63) @+ (19, 12); +TELEPORT-ANCHOR wizardhut : "##00" = @("013-1.gat", 41, 92) @+ (3, 3); +TELEPORT-ANCHOR pachua : "##01" = @("006-1.gat", 22, 101) @+ (3, 3); +TELEPORT-ANCHOR desert : "##02" = @("005-1.gat", 160, 64) @+ (5, 5); +TELEPORT-ANCHOR forest : "##03" = @("015-1.gat", 35, 35) @+ (40, 40); +TELEPORT-ANCHOR snakecave : "##04" = @("011-4.gat", 50, 75) @+ (3, 3); +TELEPORT-ANCHOR dimondscove : "##05" = @("010-2.gat", 23, 79) @+ (3, 3); + + diff --git a/world/map/conf/map_athena.conf b/world/map/conf/map_athena.conf new file mode 100644 index 00000000..f03c0123 --- /dev/null +++ b/world/map/conf/map_athena.conf @@ -0,0 +1,19 @@ +// eAthena Map-Server Configuration File + +// Database autosave time, in seconds. +autosave_time: 60 + +// Message of the day file, when a character logs on, this message is displayed. +motd_txt: conf/motd.txt + +// When @help or @h is typed when you are a gm, this is displayed for helping new gms understand gm commands. +help_txt: conf/help.txt + +mapreg_txt: save/mapreg.txt + +import: npc/scripts.conf + +gm_log: gm.log + +// local settings for this server in this file +import: conf/map_local.conf diff --git a/world/map/conf/map_local.conf.example b/world/map/conf/map_local.conf.example new file mode 100644 index 00000000..0f09bf59 --- /dev/null +++ b/world/map/conf/map_local.conf.example @@ -0,0 +1,15 @@ +// eAthena Map-Server local Configuration File + +// Interserver communication passwords, set in account.txt (or equiv.) +userid: s1 +passwd: p1 + +// Character Server IP +char_ip:81.161.192.4 +// Character Server Port +char_port: 6122 + +// Map Server IP +map_ip:81.161.192.4 +// Map Server Port +map_port: 5122 diff --git a/world/map/conf/motd.txt.example b/world/map/conf/motd.txt.example new file mode 100644 index 00000000..f570494c --- /dev/null +++ b/world/map/conf/motd.txt.example @@ -0,0 +1 @@ +Welcome to The Mana World! (running on eAthena) diff --git a/world/map/conf/msg_athena.conf b/world/map/conf/msg_athena.conf new file mode 100644 index 00000000..313d22b7 --- /dev/null +++ b/world/map/conf/msg_athena.conf @@ -0,0 +1,528 @@ +// eAthena msg_athena.conf +// Message Configuration +// For translation, just change msg here (second line), no need to modify source code. +// Format: +// // English message +// msg_number: translated message + +// 0-499: reserved for GM commands +// 500-999 reserved for others + +// Messages of GM commands +// ----------------------- + +//0: Warped. +0: Warped. +//1: Map not found. +1: Map not found. +//2: Coordinates out of range. +2: Coordinates out of range. +//3: Character not found. +3: Character not found. +//4: Jump to %s +4: Jump to %s +//5: Jump to %d %d +5: Jump to %d %d +//6: Character data respawn point saved. +6: Character data respawn point saved. +//7: Warping to respawn point. +7: Warping to respawn point. +//8: Speed changed. +8: Speed changed. +//9: Options changed. +9: Options changed. +//10: Invisible: Off. +10: Invisible: Off. +//11: Invisible: On. +11: Invisible: On. +//12: Your job has been changed. +12: Your job has been changed. +//13: A pity! You've died. +13: A pity! You've died. +//14: Character killed. +14: Character killed. +//15: Player warped (message sends to player too). +15: Player warped (message sends to player too). +//16: You've been revived! It's a miracle! +16: You've been revived! It's a miracle! +//17: HP, SP recovered. +17: HP, SP recovered. +//18: Item created. +18: Item created. +//19: Invalid item ID or name. +19: Invalid item ID or name. +//20: All of your items have been removed. +20: All of your items have been removed. +//21: Base level raised. +21: Base level raised. +//22: Base level lowered. +22: Base level lowered. +//23: Job level can't go any higher. +23: Job level can't go any higher. +//24: Job level raised. +24: Job level raised. +//25: Job level lowered. +25: Job level lowered. +//26: Help commands: +26: Help commands: +//27: File help.txt not found. +27: File help.txt not found. +//28: No player found. +28: No player found. +//29: 1 player found. +29: 1 player found. +//30: %d players found. +30: %d players found. +//31: PvP: Off. +31: PvP: Off. +//32: PvP: On. +32: PvP: On. +//33: GvG: Off. +33: GvG: Off. +//34: GvG: On. +34: GvG: On. +//35: You can't use this command with this class. +35: You can't use this command with this class. +//36: Appearence changed. +36: Appearence changed. +//37: An invalid number was specified. +37: An invalid number was specified. +//38: Invalid location number or name. +38: Invalid location number or name. +//39: All monster summoned! +39: All monster summoned! +//40: Invalid monster ID or name. +40: Invalid monster ID or name. +//41: Impossible to decrease the number/value. +41: Impossible to decrease the number/value. +//42: Stat changed. +42: Stat changed. +//43: You're not in a guild. +43: You're not in a guild. +//44: You're not the master of your guild. +44: You're not the master of your guild. +//45: Guild level change failed. +45: Guild level change failed. +//46: %s recalled! +46: %s recalled! +//47: Base level can't go any higher. +47: Base level can't go any higher. +//48: Character's job changed. +48: Character's job changed. +//49: Invalid job ID. +49: Invalid job ID. +//50: You already have some GM powers. +50: You already have some GM powers. +//51: Character revived. +51: Character revived. +//52: This option cannot be used in PK Mode. +52: This option cannot be used in PK Mode. +//53: '%s' stats: +53: '%s' stats: +//54: No player found in map '%s'. +54: No player found in map '%s'. +//55: 1 player found in map '%s'. +55: 1 player found in map '%s'. +//56: %d players found in map '%s'. +56: %d players found in map '%s'. +//57: Character's respawn point changed. +57: Character's respawn point changed. +//58: Character's options changed. +58: Character's options changed. +//59: Night has fallen. +59: Night has fallen. +//60: Day has arrived. +60: Day has arrived. +//61: The holy messenger has given judgement. +61: The holy messenger has given judgement. +//62: Judgement was made. +62: Judgement was made. +//63: Mercy has been shown. +63: Mercy has been shown. +//64: Mercy has been granted. +64: Mercy has been granted. +//65: Character's base level raised. +65: Character's base level raised. +//66: Character's base level lowered. +66: Character's base level lowered. +//67: Character's job level can't go any higher. +67: Character's job level can't go any higher. +//68: character's job level raised. +68: character's job level raised. +//69: Character's job level lowered. +69: Character's job level lowered. +//70: You have learned the skill. +70: You have learned the skill. +//71: You have forgotten the skill. +71: You have forgotten the skill. +//72: Guild siege warfare start! +72: Guild siege warfare start! +//73: Already it has started siege warfare. +73: Already it has started siege warfare. +//74: Guild siege warfare end! +74: Guild siege warfare end! +//75: Siege warfare hasn't started yet. +75: Siege warfare hasn't started yet. +//76: You have received all skills. +76: You have received all skills. +//77: The reference result of '%s' (name: id): +77: The reference result of '%s' (name: id): +//78: %s: %d +78: %s: %d +//79: It is %d affair above. +79: It is %d affair above. +//80: Give a display name and monster name/id please. +80: Give a display name and monster name/id please. +//81: Your GM level don't authorise you to do this action on this player. +81: Your GM level don't authorise you to do this action on this player. +//82: Please, use one of this number/name: +82: Please, use one of this number/name: +//83: Cannot spawn emperium. +83: Cannot spawn emperium. +//84: All stats changed! +84: All stats changed! +//85: Invalid time for ban command. +85: Invalid time for ban command. +//86: Sorry, but a player name have at least 4 characters. +86: Sorry, but a player name have at least 4 characters. +//87: Sorry, but a player name have 23 characters maximum. +87: Sorry, but a player name have 23 characters maximum. +//88: Character name sends to char-server to ask it. +88: Character name sends to char-server to ask it. +//89: Sorry, it's already the night. Impossible to execute the command. +89: Sorry, it's already the night. Impossible to execute the command. +//90: Sorry, it's already the day. Impossible to execute the command. +90: Sorry, it's already the day. Impossible to execute the command. +//91: Character's base level can't go any higher. +91: Character's base level can't go any higher. +//92: All characters recalled! +92: All characters recalled! +//93: All online characters of the %s guild are near you. +93: All online characters of the %s guild are near you. +//94: Incorrect name/ID, or no one from the guild is online. +94: Incorrect name/ID, or no one from the guild is online. +//95: All online characters of the %s party are near you. +95: All online characters of the %s party are near you. +//96: Incorrect name or ID, or no one from the party is online. +96: Incorrect name or ID, or no one from the party is online. +//97: Item database reloaded. +97: Item database reloaded. +//98: Monster database reloaded. +98: Monster database reloaded. +//99: Skill database reloaded. +99: Skill database reloaded. +//100: Scripts reloaded. +100: Scripts reloaded. +//101: Login-server asked to reload GM accounts and their level. +101: Login-server asked to reload GM accounts and their level. +//102: Mounted Peco. +102: Mounted Peco. +//103: No longer spying on the %s guild. +103: No longer spying on the %s guild. +//104: Spying on the %s guild. +104: Spying on the %s guild. +//105: No longer spying on the %s party. +105: No longer spying on the %s party. +//106: Spying on the %s party. +106: Spying on the %s party. +//107: All items have been repaired. +107: All items have been repaired. +//108: No item need to be repaired. +108: No item need to be repaired. +//109: Player has been nuked! +109: Player has been nuked! +//110: Npc Enabled. +110: Npc Enabled. +//111: This NPC doesn't exist. +111: This NPC doesn't exist. +//112: Npc Disabled. +112: Npc Disabled. +//113: %d item(s) removed by a GM. +113: %d item(s) removed by a GM. +//114: %d item(s) removed from the player. +114: %d item(s) removed from the player. +//115: %d item(s) removed. Player had only %d on %d items. +115: %d item(s) removed. Player had only %d on %d items. +//116: Character does not have the item. +116: Character does not have the item. +//117: GM has send you in jails. +117: GM has send you in jails. +//118: Player warped in jails. +118: Player warped in jails. +//119: This player is not in jails. +119: This player is not in jails. +//120: GM has discharge you. +120: GM has discharge you. +//121: Player warped to Prontera. +121: Player warped to Prontera. +//122: Disguise applied. +122: Disguise applied. +//123: Monster/NPC name/id hasn't been found. +123: Monster/NPC name/id hasn't been found. +//124: Undisguise applied. +124: Undisguise applied. +//125: You're not disguised. +125: You're not disguised. +//126: You accept any wisp (no wisper is refused). +126: You accept any wisp (no wisper is refused). +//127: You accept any wisp, except thoses from %d player(s): +127: You accept any wisp, except thoses from %d player(s): +//128: You refuse all wisps (no specifical wisper is refused). +128: You refuse all wisps (no specifical wisper is refused). +//129: You refuse all wisps, AND refuse wisps from %d player(s): +129: You refuse all wisps, AND refuse wisps from %d player(s): +//130: '%s' accept any wisp (no wisper is refused). +130: '%s' accept any wisp (no wisper is refused). +//131: '%s' accept any wisp, except thoses from %d player(s): +131: '%s' accept any wisp, except thoses from %d player(s): +//132: '%s' refuse all wisps (no specifical wisper is refused). +132: '%s' refuse all wisps (no specifical wisper is refused). +//133: '%s' refuse all wisps, AND refuse wisps from %d player(s): +133: '%s' refuse all wisps, AND refuse wisps from %d player(s): +//134: '%s' already accepts all wispers. +134: '%s' already accepts all wispers. +//135: '%s' now accepts all wispers. +135: '%s' now accepts all wispers. +//136: A GM has authorised all wispers for you. +136: A GM has authorised all wispers for you. +//137: '%s' already blocks all wispers. +137: '%s' already blocks all wispers. +//138: '%s' blocks now all wispers. +138: '%s' blocks now all wispers. +//139: A GM has blocked all wispers for you. +139: A GM has blocked all wispers for you. +//140: Character's disguise applied. +140: Character's disguise applied. +//141: Character's undisguise applied. +141: Character's undisguise applied. +//142: Character is not disguised. +142: Character is not disguised. +//143: Give a monster name/id please. +143: Give a monster name/id please. +//144: Invalid actual email. If you have default e-mail, type a@a.com. +144: Invalid actual email. If you have default e-mail, type a@a.com. +//145: Invalid new email. Please enter a real e-mail. +145: Invalid new email. Please enter a real e-mail. +//146: New email must be a real e-mail. +146: New email must be a real e-mail. +//147: New email must be different of the actual e-mail. +147: New email must be different of the actual e-mail. +//148: Information sended to login-server via char-server. +148: Information sended to login-server via char-server. +//149: Impossible to increase the number/value. +149: Impossible to increase the number/value. +//150: No GM found. +150: No GM found. +//151: 1 GM found. +151: 1 GM found. +//152: %d GMs found. +152: %d GMs found. +//153: %s is Unknown Command. +153: %s is Unknown Command. +//154: %s failed. +154: %s failed. +//155: Impossible to change your job. +155: Impossible to change your job. +//156: HP or/and SP modified. +156: HP or/and SP modified. +//157: HP and SP are already with the good value. +157: HP and SP are already with the good value. +//158: Base level can't go any lower. +158: Base level can't go any lower. +//159: Job level can't go any lower. +159: Job level can't go any lower. +//160: PvP is already Off. +160: PvP is already Off. +//161: PvP is already On. +161: PvP is already On. +//162: GvG is already Off. +162: GvG is already Off. +//163: GvG is already On. +163: GvG is already On. +//164: Your memo point #%d doesn't exist. +164: Your memo point #%d doesn't exist. +//165: All monsters killed! +165: All monsters killed! +//166: No item has been refined! +166: No item has been refined! +//167: 1 item has been refined! +167: 1 item has been refined! +//168: %d items have been refined! +168: %d items have been refined! +//169: This item (%d: '%s') is not an equipment. +169: This item (%d: '%s') is not an equipment. +//170: This item is not an equipment. +170: This item is not an equipment. +//171: %d - void +171: %d - void +//172: You replace previous memo position %d - %s (%d,%d). +172: You replace previous memo position %d - %s (%d,%d). +//173: Note: you don't have the 'Warp' skill level to use it. +173: Note: you don't have the 'Warp' skill level to use it. +//174: Number of status points changed! +174: Number of status points changed! +//175: Number of skill points changed! +175: Number of skill points changed! +//176: Number of zenys changed! +176: Number of zenys changed! +//177: Impossible to decrease a stat. +177: Impossible to decrease a stat. +//178: Impossible to increase a stat. +178: Impossible to increase a stat. +//179: Guild level changed. +179: Guild level changed. +//180: The monter/egg name/id doesn't exist. +180: The monter/egg name/id doesn't exist. +//181: You already have a pet. +181: You already have a pet. +//182: Pet friendly value changed! +182: Pet friendly value changed! +//183: Pet friendly is already the good value. +183: Pet friendly is already the good value. +//184: Sorry, but you have no pet. +184: Sorry, but you have no pet. +//185: Pet hungry value changed! +185: Pet hungry value changed! +//186: Pet hungry is already the good value. +186: Pet hungry is already the good value. +//187: You can now rename your pet. +187: You can now rename your pet. +//188: You can already rename your pet. +188: You can already rename your pet. +//189: This player can now rename his/her pet. +189: This player can now rename his/her pet. +//190: This player can already rename his/her pet. +190: This player can already rename his/her pet. +//191: Sorry, but this player has no pet. +191: Sorry, but this player has no pet. +//192: Impossible to change the character's job. +192: Impossible to change the character's job. +//193: Character's base level can't go any lower. +193: Character's base level can't go any lower. +//194: Character's job level can't go any lower. +194: Character's job level can't go any lower. +//195: All players have been kicked! +195: All players have been kicked! +//196: You already have this quest skill. +196: You already have this quest skill. +//197: This skill number doesn't exist or isn't a quest skill. +197: This skill number doesn't exist or isn't a quest skill. +//198: This skill number doesn't exist. +198: This skill number doesn't exist. +//199: This player has learned the skill. +199: This player has learned the skill. +//200: This player already has this quest skill. +200: This player already has this quest skill. +//201: You don't have this quest skill. +201: You don't have this quest skill. +//202: This player has forgotten the skill. +202: This player has forgotten the skill. +//203: This player doesn't have this quest skill. +203: This player doesn't have this quest skill. +//204: WARNING: more than 1000 spiritballs can CRASH your server and/or client! +204: WARNING: more than 1000 spiritballs can CRASH your server and/or client! +//205: You already have this number of spiritballs. +205: You already have this number of spiritballs. +//206: '%s' skill points reseted! +206: '%s' skill points reseted! +//207: '%s' stats points reseted! +207: '%s' stats points reseted! +//208: '%s' skill and stats points reseted! +208: '%s' skill and stats points reseted! +//209: Character's number of skill points changed! +209: Character's number of skill points changed! +//210: Character's number of status points changed! +210: Character's number of status points changed! +//211: Character's number of zenys changed! +211: Character's number of zenys changed! +//212: Cannot mount a Peco while in disguise. +212: Cannot mount a Peco while in disguise. +//213: You can not mount a peco with your job. +213: You can not mount a peco with your job. +//214: Unmounted Peco. +214: Unmounted Peco. +//215: This player cannot mount a Peco while in disguise. +215: This player cannot mount a Peco while in disguise. +//216: Now, this player mounts a peco. +216: Now, this player mounts a peco. +//217: This player can not mount a peco with his/her job. +217: This player can not mount a peco with his/her job. +//218: Now, this player has not more peco. +218: Now, this player has not more peco. +//219: %d day +219: %d day +//220: %d days +220: %d days +//221: %s %d hour +221: %s %d hour +//222: %s %d hours +222: %s %d hours +//223: %s %d minute +223: %s %d minute +//224: %s %d minutes +224: %s %d minutes +//225: %s and %d second +225: %s and %d second +//226: %s and %d seconds +226: %s and %d seconds +//227: Cannot wear disguise while riding a Peco. +227: Cannot wear disguise while riding a Peco. +//228: Character cannot wear disguise while riding a Peco. +228: Character cannot wear disguise while riding a Peco. +//229: Your Effect Has Changed. +229: Your Effect Has Changed. +//230: Server time (normal time): %A, %B %d %Y %X. +230: Server time (normal time): %A, %B %d %Y %X. +//231: Game time: The game is in permanent daylight. +231: Game time: The game is in permanent daylight. +//232: Game time: The game is in permanent night. +232: Game time: The game is in permanent night. +//233: Game time: The game is actualy in night for %s. +233: Game time: The game is actualy in night for %s. +//234: Game time: After, the game will be in permanent daylight. +234: Game time: After, the game will be in permanent daylight. +//235: Game time: The game is actualy in daylight for %s. +235: Game time: The game is actualy in daylight for %s. +//236: Game time: After, the game will be in permanent night. +236: Game time: After, the game will be in permanent night. +//237: Game time: After, the game will be in night for %s. +237: Game time: After, the game will be in night for %s. +//238: Game time: A day cycle has a normal duration of %s. +238: Game time: A day cycle has a normal duration of %s. +//239: Game time: After, the game will be in daylight for %s. +239: Game time: After, the game will be in daylight for %s. +//240: %d monster(s) summoned! +240: %d monster(s) summoned! +//241: You be a killa... +241: You be a killa... +//242: You gonna be own3d... +242: You gonna be own3d... +//243: Map skills are off. +243: Map skills are off. +//244: Map skills are on. +244: Map skills are on. +//245: Muting is disabled. +245: Muting is disabled. + +// Messages of others (not for GM commands) +// ---------------------------------------- + +//500: Actually, it's the night... +500: Actually, it's the night... +//501: Your account time limit is: %d-%m-%Y %H:%M:%S. +501: Your account time limit is: %d-%m-%Y %H:%M:%S. +//502: The day has arrived! +502: The day has arrived! +//503: The night has fallen... +503: The night has fallen... +// 504-508: Chat validation. +//504: You cannot page yourself. +504: You cannot page yourself. +//505: Your message could not be sent. +505: Your message could not be sent. +//506: WARNING: You are about to be automatically banned for spam! +506: WARNING: You are about to be automatically banned for spam! +//507: WARNING: Please slow down, do not repeat, and do not SHOUT! +507: WARNING: Please slow down, do not repeat, and do not SHOUT! +//508: You have been banned for %s spamming. Please do not spam. +508: You have been banned for %s spamming. Please do not spam. diff --git a/world/map/conf/script_athena.conf b/world/map/conf/script_athena.conf new file mode 100644 index 00000000..21d4a6f4 --- /dev/null +++ b/world/map/conf/script_athena.conf @@ -0,0 +1,2 @@ +// When choosing those which it refines setting the letter which is indicated. (Those for word use other than Japanese?) +refine_posword: Head,Body,Left hand,Right hand,Robe,Shoes,Accessory 1,Accessory 2,Head 2,Head 3,Not Equipped diff --git a/world/map/conf/water.txt b/world/map/conf/water.txt new file mode 100644 index 00000000..71f98470 --- /dev/null +++ b/world/map/conf/water.txt @@ -0,0 +1,54 @@ +// …‚ÌÝ’èB +// water‚Í…‚ ‚è‚Åall_water‚Í‘S‚Ä…‚¾‚Æ”»’f‚·‚éƒ}ƒbƒvB + +mjolnir_12.gat mapflag water +mjolnir_02.gat mapflag water +glast_01.gat mapflag water +gef_fild04.gat mapflag water +prt_fild02.gat mapflag water +prt_fild01.gat mapflag water +prt_fild00.gat mapflag water +gef_fild00.gat mapflag water +gef_fild07.gat mapflag water +gef_fild13.gat mapflag water +gef_fild09.gat mapflag water +gef_fild01.gat mapflag water +prt_fild05.gat mapflag water +gef_fild03.gat mapflag water +gef_fild10.gat mapflag water +prt_fild10.gat mapflag water +pay_arche.gat mapflag water +moc_ruins.gat mapflag water +comodo.gat mapflag water +cmd_fild01.gat mapflag water +cmd_fild02.gat mapflag water +cmd_fild03.gat mapflag water +cmd_fild04.gat mapflag water +cmd_fild05.gat mapflag water +moc_fild11.gat mapflag water +ama_fild01.gat mapflag water + +iz_dun00.gat mapflag water +iz_dun01.gat mapflag water +iz_dun02.gat mapflag water +//iz_dun03.gat mapflag all_water +//iz_dun04.gat mapflag all_water +treasure01.gat mapflag water +treasure02.gat mapflag water +mjo_dun01.gat mapflag water +orcsdun02.gat mapflag water +pay_dun01.gat mapflag water +pay_dun02.gat mapflag water +pay_dun03.gat mapflag water +prt_sewb2.gat mapflag water +prt_sewb3.gat mapflag water +gl_prison1.gat mapflag water +alde_dun03.gat mapflag water +alde_dun04.gat mapflag water +beach_dun.gat mapflag water +beach_dun2.gat mapflag water +beach_dun3.gat mapflag water +tur_dun01.gat mapflag water +gld_dun02.gat mapflag water +gld_dun03.gat mapflag water +gld_dun04.gat mapflag water diff --git a/world/map/conf/water_height.txt b/world/map/conf/water_height.txt new file mode 100644 index 00000000..9a89e29c --- /dev/null +++ b/world/map/conf/water_height.txt @@ -0,0 +1,68 @@ +// …ê‚Ì‚‚³‚ðÝ’è +//water_height.txt—AthenaDBŒv‰æ 2004/03/31 18:52:09 +0900 (JST) + +xmas.gat 3 +mjolnir_01.gat 0 +mjolnir_02.gat -19 +mjolnir_12.gat 15 +prt_fild00.gat 11 +prt_fild01.gat 25 +prt_fild02.gat 42 +prt_fild04.gat 14 +prt_fild05.gat 14 +prt_fild10.gat 40 +gef_fild00.gat 10 +gef_fild01.gat 14 +gef_fild03.gat 82 +gef_fild04.gat 14 +gef_fild07.gat 19 +gef_fild09.gat 11 +gef_fild10.gat 24 +moc_fild01.gat 26 +moc_fild11.gat 9 +iz_dun00.gat 5 +iz_dun01.gat 5 +iz_dun02.gat -58 +mjo_dun01.gat 7 +orcsdun02.gat 3 +pay_dun01.gat 8 +pay_dun02.gat 5 +pay_dun03.gat 10 +prt_sewb2.gat 5 +prt_sewb3.gat 5 +treasure01.gat -4 +treasure02.gat -1 +moc_ruins.gat 6 +pay_arche.gat 8 +glast_01.gat 8 +alde_dun03.gat 2 +alde_dun04.gat 0 +gl_prison1.gat 35 +gl_sew01.gat 56 +gl_sew02.gat 12 +gl_sew03.gat 15 +gl_sew04.gat 70 +comodo.gat 14 +cmd_fild01.gat 46 +cmd_fild02.gat 4 +cmd_fild03.gat 0 +cmd_fild04.gat 4 +cmd_fild05.gat 46 +beach_dun2.gat 6 +beach_dun3.gat 0 +beach_dun.gat 9 +gef_fild13.gat 19 +gld_dun02.gat 5 +gld_dun03.gat 14 +gld_dun04.gat 3 +aldeg_cas01.gat 40 +aldeg_cas02.gat 35 +aldeg_cas03.gat 16 +aldeg_cas04.gat 31 +aldeg_cas05.gat 25 +gefg_cas02.gat 8 +gefg_cas04.gat 15 +gefg_cas05.gat 5 +prtg_cas05.gat 13 +tur_dun01.gat -65 +ama_fild01.gat 5 diff --git a/world/map/data/001-1.wlk b/world/map/data/001-1.wlk Binary files differnew file mode 100644 index 00000000..ce25ead9 --- /dev/null +++ b/world/map/data/001-1.wlk diff --git a/world/map/data/001-2.wlk b/world/map/data/001-2.wlk Binary files differnew file mode 100644 index 00000000..0a762e12 --- /dev/null +++ b/world/map/data/001-2.wlk diff --git a/world/map/data/001-3.wlk b/world/map/data/001-3.wlk Binary files differnew file mode 100644 index 00000000..4a9cd117 --- /dev/null +++ b/world/map/data/001-3.wlk diff --git a/world/map/data/001-4.wlk b/world/map/data/001-4.wlk Binary files differnew file mode 100644 index 00000000..e1311a6f --- /dev/null +++ b/world/map/data/001-4.wlk diff --git a/world/map/data/002-1.wlk b/world/map/data/002-1.wlk Binary files differnew file mode 100644 index 00000000..3fe7589b --- /dev/null +++ b/world/map/data/002-1.wlk diff --git a/world/map/data/002-3.wlk b/world/map/data/002-3.wlk Binary files differnew file mode 100644 index 00000000..e26deef5 --- /dev/null +++ b/world/map/data/002-3.wlk diff --git a/world/map/data/002-4.wlk b/world/map/data/002-4.wlk Binary files differnew file mode 100644 index 00000000..a9d3449b --- /dev/null +++ b/world/map/data/002-4.wlk diff --git a/world/map/data/003-1.wlk b/world/map/data/003-1.wlk Binary files differnew file mode 100644 index 00000000..810b4e67 --- /dev/null +++ b/world/map/data/003-1.wlk diff --git a/world/map/data/003-2.wlk b/world/map/data/003-2.wlk Binary files differnew file mode 100644 index 00000000..94bf28fb --- /dev/null +++ b/world/map/data/003-2.wlk diff --git a/world/map/data/004-1.wlk b/world/map/data/004-1.wlk Binary files differnew file mode 100644 index 00000000..435ee4a7 --- /dev/null +++ b/world/map/data/004-1.wlk diff --git a/world/map/data/004-2.wlk b/world/map/data/004-2.wlk Binary files differnew file mode 100644 index 00000000..6248acc5 --- /dev/null +++ b/world/map/data/004-2.wlk diff --git a/world/map/data/005-1.wlk b/world/map/data/005-1.wlk Binary files differnew file mode 100644 index 00000000..e5ff4e9c --- /dev/null +++ b/world/map/data/005-1.wlk diff --git a/world/map/data/005-3.wlk b/world/map/data/005-3.wlk Binary files differnew file mode 100644 index 00000000..dd0e45bd --- /dev/null +++ b/world/map/data/005-3.wlk diff --git a/world/map/data/005-4.wlk b/world/map/data/005-4.wlk Binary files differnew file mode 100644 index 00000000..ebbe5d65 --- /dev/null +++ b/world/map/data/005-4.wlk diff --git a/world/map/data/006-1.wlk b/world/map/data/006-1.wlk Binary files differnew file mode 100644 index 00000000..680b6096 --- /dev/null +++ b/world/map/data/006-1.wlk diff --git a/world/map/data/006-3.wlk b/world/map/data/006-3.wlk Binary files differnew file mode 100644 index 00000000..d635df84 --- /dev/null +++ b/world/map/data/006-3.wlk diff --git a/world/map/data/007-1.wlk b/world/map/data/007-1.wlk Binary files differnew file mode 100644 index 00000000..2f82a60d --- /dev/null +++ b/world/map/data/007-1.wlk diff --git a/world/map/data/008-1.wlk b/world/map/data/008-1.wlk Binary files differnew file mode 100644 index 00000000..d2133397 --- /dev/null +++ b/world/map/data/008-1.wlk diff --git a/world/map/data/009-1.wlk b/world/map/data/009-1.wlk Binary files differnew file mode 100644 index 00000000..0ec51666 --- /dev/null +++ b/world/map/data/009-1.wlk diff --git a/world/map/data/009-2.wlk b/world/map/data/009-2.wlk Binary files differnew file mode 100644 index 00000000..89b2dc55 --- /dev/null +++ b/world/map/data/009-2.wlk diff --git a/world/map/data/009-3.wlk b/world/map/data/009-3.wlk Binary files differnew file mode 100644 index 00000000..1336606f --- /dev/null +++ b/world/map/data/009-3.wlk diff --git a/world/map/data/009-4.wlk b/world/map/data/009-4.wlk Binary files differnew file mode 100644 index 00000000..cd1eb840 --- /dev/null +++ b/world/map/data/009-4.wlk diff --git a/world/map/data/010-1.wlk b/world/map/data/010-1.wlk Binary files differnew file mode 100644 index 00000000..8ae55525 --- /dev/null +++ b/world/map/data/010-1.wlk diff --git a/world/map/data/010-2.wlk b/world/map/data/010-2.wlk Binary files differnew file mode 100644 index 00000000..880a6dfb --- /dev/null +++ b/world/map/data/010-2.wlk diff --git a/world/map/data/011-1.wlk b/world/map/data/011-1.wlk Binary files differnew file mode 100644 index 00000000..2fa117b4 --- /dev/null +++ b/world/map/data/011-1.wlk diff --git a/world/map/data/011-3.wlk b/world/map/data/011-3.wlk Binary files differnew file mode 100644 index 00000000..d85523c9 --- /dev/null +++ b/world/map/data/011-3.wlk diff --git a/world/map/data/011-4.wlk b/world/map/data/011-4.wlk Binary files differnew file mode 100644 index 00000000..82e32452 --- /dev/null +++ b/world/map/data/011-4.wlk diff --git a/world/map/data/011-5.wlk b/world/map/data/011-5.wlk Binary files differnew file mode 100644 index 00000000..c1da8d91 --- /dev/null +++ b/world/map/data/011-5.wlk diff --git a/world/map/data/011-6.wlk b/world/map/data/011-6.wlk Binary files differnew file mode 100644 index 00000000..d779ef55 --- /dev/null +++ b/world/map/data/011-6.wlk diff --git a/world/map/data/012-1.wlk b/world/map/data/012-1.wlk Binary files differnew file mode 100644 index 00000000..c1b69913 --- /dev/null +++ b/world/map/data/012-1.wlk diff --git a/world/map/data/012-3.wlk b/world/map/data/012-3.wlk Binary files differnew file mode 100644 index 00000000..2067e6fe --- /dev/null +++ b/world/map/data/012-3.wlk diff --git a/world/map/data/012-4.wlk b/world/map/data/012-4.wlk Binary files differnew file mode 100644 index 00000000..adb2ec0b --- /dev/null +++ b/world/map/data/012-4.wlk diff --git a/world/map/data/013-1.wlk b/world/map/data/013-1.wlk Binary files differnew file mode 100644 index 00000000..0b00605a --- /dev/null +++ b/world/map/data/013-1.wlk diff --git a/world/map/data/013-2.wlk b/world/map/data/013-2.wlk Binary files differnew file mode 100644 index 00000000..c536fec6 --- /dev/null +++ b/world/map/data/013-2.wlk diff --git a/world/map/data/013-3.wlk b/world/map/data/013-3.wlk Binary files differnew file mode 100644 index 00000000..d6047c07 --- /dev/null +++ b/world/map/data/013-3.wlk diff --git a/world/map/data/014-1.wlk b/world/map/data/014-1.wlk Binary files differnew file mode 100644 index 00000000..89c28768 --- /dev/null +++ b/world/map/data/014-1.wlk diff --git a/world/map/data/014-3.wlk b/world/map/data/014-3.wlk Binary files differnew file mode 100644 index 00000000..bfd8460b --- /dev/null +++ b/world/map/data/014-3.wlk diff --git a/world/map/data/015-1.wlk b/world/map/data/015-1.wlk Binary files differnew file mode 100644 index 00000000..792caa30 --- /dev/null +++ b/world/map/data/015-1.wlk diff --git a/world/map/data/015-3.wlk b/world/map/data/015-3.wlk Binary files differnew file mode 100644 index 00000000..25ef46b1 --- /dev/null +++ b/world/map/data/015-3.wlk diff --git a/world/map/data/016-1.wlk b/world/map/data/016-1.wlk Binary files differnew file mode 100644 index 00000000..d0ce4bd0 --- /dev/null +++ b/world/map/data/016-1.wlk diff --git a/world/map/data/017-1.wlk b/world/map/data/017-1.wlk Binary files differnew file mode 100644 index 00000000..4416b31c --- /dev/null +++ b/world/map/data/017-1.wlk diff --git a/world/map/data/017-2.wlk b/world/map/data/017-2.wlk Binary files differnew file mode 100644 index 00000000..b0132be0 --- /dev/null +++ b/world/map/data/017-2.wlk diff --git a/world/map/data/017-9.wlk b/world/map/data/017-9.wlk Binary files differnew file mode 100644 index 00000000..99a03867 --- /dev/null +++ b/world/map/data/017-9.wlk diff --git a/world/map/data/018-1.wlk b/world/map/data/018-1.wlk Binary files differnew file mode 100644 index 00000000..761fa281 --- /dev/null +++ b/world/map/data/018-1.wlk diff --git a/world/map/data/018-2.wlk b/world/map/data/018-2.wlk Binary files differnew file mode 100644 index 00000000..522bb73d --- /dev/null +++ b/world/map/data/018-2.wlk diff --git a/world/map/data/018-3.wlk b/world/map/data/018-3.wlk Binary files differnew file mode 100644 index 00000000..c5e2b82d --- /dev/null +++ b/world/map/data/018-3.wlk diff --git a/world/map/data/019-1.wlk b/world/map/data/019-1.wlk Binary files differnew file mode 100644 index 00000000..a77948ac --- /dev/null +++ b/world/map/data/019-1.wlk diff --git a/world/map/data/019-3.wlk b/world/map/data/019-3.wlk Binary files differnew file mode 100644 index 00000000..71d28bce --- /dev/null +++ b/world/map/data/019-3.wlk diff --git a/world/map/data/020-1.wlk b/world/map/data/020-1.wlk Binary files differnew file mode 100644 index 00000000..011f0d18 --- /dev/null +++ b/world/map/data/020-1.wlk diff --git a/world/map/data/020-2.wlk b/world/map/data/020-2.wlk Binary files differnew file mode 100644 index 00000000..b51db172 --- /dev/null +++ b/world/map/data/020-2.wlk diff --git a/world/map/data/020-3.wlk b/world/map/data/020-3.wlk Binary files differnew file mode 100644 index 00000000..cfc2ad06 --- /dev/null +++ b/world/map/data/020-3.wlk diff --git a/world/map/data/021-1.wlk b/world/map/data/021-1.wlk Binary files differnew file mode 100644 index 00000000..dc8c2cde --- /dev/null +++ b/world/map/data/021-1.wlk diff --git a/world/map/data/021-2.wlk b/world/map/data/021-2.wlk Binary files differnew file mode 100644 index 00000000..3fe682ff --- /dev/null +++ b/world/map/data/021-2.wlk diff --git a/world/map/data/022-1.wlk b/world/map/data/022-1.wlk Binary files differnew file mode 100644 index 00000000..01da8bf6 --- /dev/null +++ b/world/map/data/022-1.wlk diff --git a/world/map/data/024-1.wlk b/world/map/data/024-1.wlk Binary files differnew file mode 100644 index 00000000..0948e9a9 --- /dev/null +++ b/world/map/data/024-1.wlk diff --git a/world/map/data/024-2.wlk b/world/map/data/024-2.wlk Binary files differnew file mode 100644 index 00000000..74704a5f --- /dev/null +++ b/world/map/data/024-2.wlk diff --git a/world/map/data/025-1.wlk b/world/map/data/025-1.wlk Binary files differnew file mode 100644 index 00000000..974cd224 --- /dev/null +++ b/world/map/data/025-1.wlk diff --git a/world/map/data/025-3.wlk b/world/map/data/025-3.wlk Binary files differnew file mode 100644 index 00000000..85f1b94f --- /dev/null +++ b/world/map/data/025-3.wlk diff --git a/world/map/data/025-4.wlk b/world/map/data/025-4.wlk Binary files differnew file mode 100644 index 00000000..00b9fa66 --- /dev/null +++ b/world/map/data/025-4.wlk diff --git a/world/map/data/026-1.wlk b/world/map/data/026-1.wlk Binary files differnew file mode 100644 index 00000000..55e16b8c --- /dev/null +++ b/world/map/data/026-1.wlk diff --git a/world/map/data/027-1.wlk b/world/map/data/027-1.wlk Binary files differnew file mode 100644 index 00000000..435168cc --- /dev/null +++ b/world/map/data/027-1.wlk diff --git a/world/map/data/027-2.wlk b/world/map/data/027-2.wlk Binary files differnew file mode 100644 index 00000000..0617e91f --- /dev/null +++ b/world/map/data/027-2.wlk diff --git a/world/map/data/027-3.wlk b/world/map/data/027-3.wlk Binary files differnew file mode 100644 index 00000000..5e676641 --- /dev/null +++ b/world/map/data/027-3.wlk diff --git a/world/map/data/027-4.wlk b/world/map/data/027-4.wlk Binary files differnew file mode 100644 index 00000000..2d0ec6c9 --- /dev/null +++ b/world/map/data/027-4.wlk diff --git a/world/map/data/028-1.wlk b/world/map/data/028-1.wlk Binary files differnew file mode 100644 index 00000000..95c6b87c --- /dev/null +++ b/world/map/data/028-1.wlk diff --git a/world/map/data/028-3.wlk b/world/map/data/028-3.wlk Binary files differnew file mode 100644 index 00000000..67493a1a --- /dev/null +++ b/world/map/data/028-3.wlk diff --git a/world/map/data/029-1.wlk b/world/map/data/029-1.wlk Binary files differnew file mode 100644 index 00000000..deb8efa0 --- /dev/null +++ b/world/map/data/029-1.wlk diff --git a/world/map/data/029-3.wlk b/world/map/data/029-3.wlk Binary files differnew file mode 100644 index 00000000..8a81c360 --- /dev/null +++ b/world/map/data/029-3.wlk diff --git a/world/map/data/030-1.wlk b/world/map/data/030-1.wlk Binary files differnew file mode 100644 index 00000000..40354a87 --- /dev/null +++ b/world/map/data/030-1.wlk diff --git a/world/map/data/031-1.wlk b/world/map/data/031-1.wlk Binary files differnew file mode 100644 index 00000000..4341935a --- /dev/null +++ b/world/map/data/031-1.wlk diff --git a/world/map/data/031-2.wlk b/world/map/data/031-2.wlk Binary files differnew file mode 100644 index 00000000..53043ac9 --- /dev/null +++ b/world/map/data/031-2.wlk diff --git a/world/map/data/031-3.wlk b/world/map/data/031-3.wlk Binary files differnew file mode 100644 index 00000000..ae0279fa --- /dev/null +++ b/world/map/data/031-3.wlk diff --git a/world/map/data/031-4.wlk b/world/map/data/031-4.wlk Binary files differnew file mode 100644 index 00000000..a9f2eb72 --- /dev/null +++ b/world/map/data/031-4.wlk diff --git a/world/map/data/032-1.wlk b/world/map/data/032-1.wlk Binary files differnew file mode 100644 index 00000000..045fe243 --- /dev/null +++ b/world/map/data/032-1.wlk diff --git a/world/map/data/032-3.wlk b/world/map/data/032-3.wlk Binary files differnew file mode 100644 index 00000000..235ddaa1 --- /dev/null +++ b/world/map/data/032-3.wlk diff --git a/world/map/data/033-1.wlk b/world/map/data/033-1.wlk Binary files differnew file mode 100644 index 00000000..6d1630bf --- /dev/null +++ b/world/map/data/033-1.wlk diff --git a/world/map/data/034-1.wlk b/world/map/data/034-1.wlk Binary files differnew file mode 100644 index 00000000..eaaa8b5e --- /dev/null +++ b/world/map/data/034-1.wlk diff --git a/world/map/data/041-1.wlk b/world/map/data/041-1.wlk Binary files differnew file mode 100644 index 00000000..df0ec560 --- /dev/null +++ b/world/map/data/041-1.wlk diff --git a/world/map/data/042-1.wlk b/world/map/data/042-1.wlk Binary files differnew file mode 100644 index 00000000..2a289545 --- /dev/null +++ b/world/map/data/042-1.wlk diff --git a/world/map/data/042-2.wlk b/world/map/data/042-2.wlk Binary files differnew file mode 100644 index 00000000..ca2d33e8 --- /dev/null +++ b/world/map/data/042-2.wlk diff --git a/world/map/data/botcheck.wlk b/world/map/data/botcheck.wlk Binary files differnew file mode 100644 index 00000000..f25d3413 --- /dev/null +++ b/world/map/data/botcheck.wlk diff --git a/world/map/data/resnametable.txt b/world/map/data/resnametable.txt new file mode 100644 index 00000000..fa526488 --- /dev/null +++ b/world/map/data/resnametable.txt @@ -0,0 +1,84 @@ +001-1.gat#001-1.wlk# +001-2.gat#001-2.wlk# +001-3.gat#001-3.wlk# +001-4.gat#001-4.wlk# +002-1.gat#002-1.wlk# +002-2.gat#002-2.wlk# +002-3.gat#002-3.wlk# +002-4.gat#002-4.wlk# +003-1.gat#003-1.wlk# +003-2.gat#003-2.wlk# +004-1.gat#004-1.wlk# +004-2.gat#004-2.wlk# +005-1.gat#005-1.wlk# +005-3.gat#005-3.wlk# +005-4.gat#005-4.wlk# +006-1.gat#006-1.wlk# +006-3.gat#006-3.wlk# +007-1.gat#007-1.wlk# +008-1.gat#008-1.wlk# +009-1.gat#009-1.wlk# +009-2.gat#009-2.wlk# +009-3.gat#009-3.wlk# +009-4.gat#009-4.wlk# +010-1.gat#010-1.wlk# +010-2.gat#010-2.wlk# +011-1.gat#011-1.wlk# +011-3.gat#011-3.wlk# +011-4.gat#011-4.wlk# +011-5.gat#011-5.wlk# +011-6.gat#011-6.wlk# +012-1.gat#012-1.wlk# +012-3.gat#012-3.wlk# +012-4.gat#012-4.wlk# +013-1.gat#013-1.wlk# +013-2.gat#013-2.wlk# +013-3.gat#013-3.wlk# +014-1.gat#014-1.wlk# +014-3.gat#014-3.wlk# +015-1.gat#015-1.wlk# +015-3.gat#015-3.wlk# +016-1.gat#016-1.wlk# +017-1.gat#017-1.wlk# +017-2.gat#017-2.wlk# +017-9.gat#017-9.wlk# +018-1.gat#018-1.wlk# +018-2.gat#018-2.wlk# +018-3.gat#018-3.wlk# +019-1.gat#019-1.wlk# +019-3.gat#019-3.wlk# +020-1.gat#020-1.wlk# +020-2.gat#020-2.wlk# +020-3.gat#020-3.wlk# +021-1.gat#021-1.wlk# +021-2.gat#021-2.wlk# +021-8.gat#021-8.wlk# +022-1.gat#022-1.wlk# +023-1.gat#023-1.wlk# +024-1.gat#024-1.wlk# +024-2.gat#024-2.wlk# +025-1.gat#025-1.wlk# +025-3.gat#025-3.wlk# +025-4.gat#025-4.wlk# +026-1.gat#026-1.wlk# +027-1.gat#027-1.wlk# +027-2.gat#027-2.wlk# +027-3.gat#027-3.wlk# +027-4.gat#027-4.wlk# +028-1.gat#028-1.wlk# +028-3.gat#028-3.wlk# +029-1.gat#029-1.wlk# +029-3.gat#029-3.wlk# +030-1.gat#030-1.wlk# +031-1.gat#031-1.wlk# +031-2.gat#031-2.wlk# +031-3.gat#031-3.wlk# +031-4.gat#031-4.wlk# +032-1.gat#032-1.wlk# +032-3.gat#032-3.wlk# +033-1.gat#033-1.wlk# +034-1.gat#034-1.wlk# +041-1.gat#041-1.wlk# +042-1.gat#042-1.wlk# +042-2.gat#042-2.wlk# +botcheck.gat#botcheck.wlk# diff --git a/world/map/db/attr_fix.txt b/world/map/db/attr_fix.txt new file mode 100644 index 00000000..2bdbbd9d --- /dev/null +++ b/world/map/db/attr_fix.txt @@ -0,0 +1,53 @@ +// ‘®«C³ +// ‰¡:ƒ‚ƒ“ƒXƒ^[‚Ì‘®« // c:UŒ‚‚Ì‘®« +1,10 // lv1‘®«ƒe[ƒuƒ‹ +// –³ … ’n ‰Î •— “Å ¹ ˆÃ ”O •sŽ€ + 100, 100, 100, 100, 100, 100, 100, 100, 25, 100, // –³ + 100, 25, 100, 150, 50, 100, 75, 100, 100, 100, // … + 100, 100, 100, 50, 150, 100, 75, 100, 100, 100, // ’n + 100, 50, 150, 25, 100, 100, 75, 100, 100, 125, // ‰Î + 100, 175, 50, 100, 25, 100, 75, 100, 100, 100, // •— + 100, 100, 125, 125, 125, 0, 75, 50, 100, -25, // “Å + 100, 100, 100, 100, 100, 100, 0, 125, 100, 150, // ¹ + 100, 100, 100, 100, 100, 50, 125, 0, 100, -25, // ˆÃ + 25, 100, 100, 100, 100, 100, 75, 75, 125, 100, // ”O + 100, 100, 100, 100, 100, 50, 100, 0, 100, 0, // •sŽ€ +// ‰¡:ƒ‚ƒ“ƒXƒ^[‚Ì‘®« // c:UŒ‚‚Ì‘®« +2,10 // lv2‘®«ƒe[ƒuƒ‹ +//–³ … ’n ‰Î •— “Å ¹ ˆÃ ”O •sŽ€ + 100, 100, 100, 100, 100, 100, 100, 100, 25, 100, // –³ + 100, 0, 100, 175, 25, 100, 50, 75, 100, 100, // … + 100, 100, 50, 25, 175, 100, 50, 75, 100, 100, // ’n + 100, 25, 175, 0, 100, 100, 50, 75, 100, 150, // ‰Î + 100, 175, 25, 100, 0, 100, 50, 75, 100, 100, // •— + 100, 75, 125, 125, 125, 0, 50, 25, 75, -50, // “Å + 100, 100, 100, 100, 100, 100, -25, 150, 100, 175, // ¹ + 100, 100, 100, 100, 100, 25, 150, -25, 100, -50, // ˆÃ + 0, 75, 75, 75, 75, 75, 50, 50, 150, 125, // ”O + 100, 75, 75, 75, 75, 25, 125, 0, 100, 0, // •sŽ€ +// ‰¡:ƒ‚ƒ“ƒXƒ^[‚Ì‘®« // c:UŒ‚‚Ì‘®« +3,10 // lv3‘®«ƒe[ƒuƒ‹ +// –³ … ’n ‰Î •— “Å ¹ ˆÃ ”O •sŽ€ + 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, // –³ + 100, -25, 100, 200, 0, 100, 25, 50, 100, 125, // … + 100, 100, 0, 0, 200, 100, 25, 50, 100, 75, // ’n + 100, 0, 200, -25, 100, 100, 25, 50, 100, 175, // ‰Î + 100, 200, 0, 100, -25, 100, 25, 50, 100, 100, // •— + 100, 50, 100, 100, 100, 0, 25, 0, 50, -75, // “Å + 100, 100, 100, 100, 100, 125, -50, 175, 100, 200, // ¹ + 100, 100, 100, 100, 100, 0, 175, -50, 100, -75, // ˆÃ + 0, 50, 50, 50, 50, 50, 25, 25, 175, 150, // ”O + 100, 50, 50, 50, 50, 0, 150, 0, 100, 0, // •sŽ€ +// ‰¡:ƒ‚ƒ“ƒXƒ^[‚Ì‘®« // c:UŒ‚‚Ì‘®« +4,10 // lv4‘®«ƒe[ƒuƒ‹ +// –³ … ’n ‰Î •— “Å ¹ ˆÃ ”O •sŽ€ + 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, // –³ + 100, -50, 100, 200, 0, 75, 0, 25, 100, 150, // … + 100, 100, -25, 0, 200, 75, 0, 25, 100, 50, // ’n + 100, 0, 200, -50, 100, 75, 0, 25, 100, 200, // ‰Î + 100, 200, 0, 100, -50, 75, 0, 25, 100, 100, // •— + 100, 25, 75, 75, 75, 0, 0, -25, 25,-100, // “Å + 100, 75, 75, 75, 75, 125,-100, 200, 100, 200, // ¹ + 100, 75, 75, 75, 75, -25, 200,-100, 100,-100, // ˆÃ + 0, 25, 25, 25, 25, 25, 0, 0, 200, 175, // ”O + 100, 25, 25, 25, 25, -25, 175, 0, 100, 0, // •sŽ€ diff --git a/world/map/db/card_labels.txt b/world/map/db/card_labels.txt new file mode 100644 index 00000000..361572c7 --- /dev/null +++ b/world/map/db/card_labels.txt @@ -0,0 +1 @@ +// File created using Spamrat's Athena Database Editor v1.4.4 diff --git a/world/map/db/const.txt b/world/map/db/const.txt new file mode 100644 index 00000000..f7b12451 --- /dev/null +++ b/world/map/db/const.txt @@ -0,0 +1,389 @@ +// Constants usable in scripts + +// This constant is used to define whether unreleased items are equippable. This defaults to on, but should be disabled on the official server. +debug 1 + +mf_nomemo 0 +mf_noteleport 1 +mf_nosave 2 +mf_nobranch 3 +mf_nopenalty 4 +mf_pvp 5 +mf_pvp_noparty 6 +mf_pvp_noguild 7 +mf_gvg 8 +mf_gvg_noparty 9 +mf_nozenypenalty 10 + +StatusPoint 9 1 +BaseLevel 11 1 +SkillPoint 12 1 +Class 19 1 +Upper 56 1 +Zeny 20 1 +Sex 21 1 +Weight 24 1 +MaxWeight 25 1 +JobLevel 55 1 +BaseExp 1 1 +JobExp 2 1 +NextBaseExp 22 1 +NextJobExp 23 1 +Hp 5 1 +MaxHp 6 1 +Sp 7 1 +MaxSp 8 1 + +bMaxHP 6 +bMaxSP 8 +bStr 13 +bAgi 14 +bVit 15 +bInt 16 +bDex 17 +bLuk 18 +bAtk 41 +bAtk2 42 +bMatk1 43 +bMatk2 44 +bDef 45 +bMdef 47 +bMdef2 48 +bHit 49 +bFlee 50 +bFlee2 51 +bCritical 52 +bAspd 53 +bDeaf 70 + +bAtkRange 1000 +bAtkEle 1001 +bDefEle 1002 +bCastrate 1003 +bMaxHPrate 1004 +bMaxSPrate 1005 +bUseSPrate 1006 +bAddEle 1007 +bAddRace 1008 +bAddSize 1009 +bSubEle 1010 +bSubRace 1011 +bAddEff 1012 +bResEff 1013 +bBaseAtk 1014 +bAspdRate 1015 +bHPrecovRate 1016 +bSPrecovRate 1017 +bSpeedRate 1018 +bCriticalDef 1019 +bNearAtkDef 1020 +bLongAtkDef 1021 +bDoubleRate 1022 +bDoubleAddRate 1023 +bMatk 1024 +bMatkRate 1025 +bIgnoreDefEle 1026 +bIgnoreDefRace 1027 +bAtkRate 1028 +bSpeedAddRate 1029 +bAspdAddRate 1030 +bMagicAtkDef 1031 +bMiscAtkDef 1032 +bIgnoreMdefEle 1033 +bIgnoreMdefRace 1034 +bMagicAddEle 1035 +bMagicAddRace 1036 +bMagicSubRace 1037 +bPerfectHitRate 1038 +bPerfectHitAddRate 1039 +bCriticalRate 1040 +bGetZenyNum 1041 +bAddGetZenyNum 1042 +bAddDamageClass 1043 +bAddMagicDamageClass 1044 +bAddDefClass 1045 +bAddMdefClass 1046 +bAddMonsterDropItem 1047 +bDefRatioAtkEle 1048 +bDefRatioAtkRace 1049 +bAddSpeed 1050 +bHitRate 1051 +bFleeRate 1052 +bFlee2Rate 1053 +bDefRate 1054 +bDef2Rate 1055 +bMdefRate 1056 +bMdef2Rate 1057 +bSplashRange 1058 +bSplashAddRange 1059 +bAutoSpell 1060 +bHPDrainRate 1061 +bSPDrainRate 1062 +bShortWeaponDamageReturn 1063 +bLongWeaponDamageReturn 1064 +bWeaponComaEle 1065 +bWeaponComaRace 1066 +bAddEff2 1067 +bMagicDamageReturn 1068 +bRandomAttackIncrease 1069 +bAllStats 1070 +bAgiVit 1071 +bAgiDexStr 1072 +bPerfectHide 1073 + +equip_head 1 +equip_shield 2 +equip_hand2 3 +equip_hand1 4 +equip_gloves 5 +equip_shoes 6 +equip_misc1 7 +equip_misc2 8 +equip_torso 9 +equip_legs 10 + +cNone 11 +cWhite 10 +cRed 0 +cGreen 1 +cDarkBlue 2 +cYellow 3 +cLightBlue 4 +cPink 5 +cBlack 6 +cOrange 7 +cPurple 8 +cDarkGreen 9 + +sc_poison 132 +sc_slowpoison 14 +sc_raiseattackspeed0 37 +sc_raiseattackstrength 185 + +// Marriage-related +WEDDING_FEE 100 +DIVORCE_FEE_PER_LEVEL 500 +WEDDING_MIN_LEVEL 32 + +sfx_skillup 1 +sfx_magic_generic 2 +sfx_magic_life 3 +sfx_magic_war 4 +sfx_magic_transmute 5 +sfx_magic_nature 6 +sfx_magic_astral 7 + +NIBBLE_0_SHIFT 0 +NIBBLE_0_MASK 15 + +NIBBLE_1_SHIFT 4 +NIBBLE_1_MASK 240 + +NIBBLE_2_SHIFT 8 +NIBBLE_2_MASK 3840 + +NIBBLE_3_SHIFT 12 +NIBBLE_3_MASK 61440 + +NIBBLE_4_SHIFT 16 +NIBBLE_4_MASK 983040 + +NIBBLE_5_SHIFT 20 +NIBBLE_5_MASK 15728640 + +NIBBLE_6_SHIFT 24 +NIBBLE_6_MASK 251658240 + +NIBBLE_7_SHIFT 28 // Only three bits available in this one +NIBBLE_7_MASK 1879048192 // should be 4026531840 + +BYTE_0_MASK 255 +BYTE_0_SHIFT 0 + +BYTE_1_MASK 65280 +BYTE_1_SHIFT 8 + +BYTE_2_MASK 16711680 +BYTE_2_SHIFT 16 + +BYTE_3_MASK 4278190080 +BYTE_3_SHIFT 24 + +// Skill pools +SKILL_POOL 339 +SKILL_MALLARDS_EYE 45 +SKILL_BRAWLING 350 +SKILL_LUCKY_COUNTER 351 +SKILL_SPEED 352 +SKILL_RESIST_POISON 353 +SKILL_ASTRAL_SOUL 354 +SKILL_WARRIOR_BERSERK 355 + +// Magic skills +SKILL_MAGIC 340 +SKILL_MAGIC_LIFE 341 +SKILL_MAGIC_WAR 342 +SKILL_MAGIC_TRANSMUTE 343 +SKILL_MAGIC_NATURE 344 +SKILL_MAGIC_ASTRAL 345 + +// Flags for the magic quests +MFLAG_DRANK_POTION 1 // Character drank at least one magic potion as prerequisite for the mana seed quest +MFLAG_KNOWS_MANASEED 2 // Character has found the Mana Seed +MFLAG_TOUCHED_MANASEED 4 // Character has touched the Mana Seed +MFLAG_MANASEED_MAXEDOUT 8 // Character has touched the Mana Seed while maxed out on magic + +MFLAG_KNOWS_AULDSBEL 16 // Character has met Auldsbel +MFLAG_KNOWS_WYARA 32 // Character has met Wyara +MFLAG_KNOWS_SAGATHA 64 // Character has met Sagatha +MFLAG_KNOWS_MANAPOTION 128 // Has heard about the mana potion + +MFLAG_MANASEED_RUMOUR 256 // Has heard rumour about mana seed +MFLAG_KNOWS_CUTTREE 512 // Knows about the `cut the tree' quest +MFLAG_DID_CUTTREE 1024 // Did cut off a branch from the druid tree +MFLAG_KNOWS_DRUIDTREE 2048 // Knows about the druid tree quest + +MFLAG_KNOWS_IMP 4096 // Knows about the imprisoned forest spirit +MFLAG_KNOWS_OLD_WIZARD 8192 // Knows Bjorn's old wizard +MFLAG_MADE_CONC_POTION 16384 // Made a concentration potion with T15 and/or T16 +MFLAG_ELANORE_OMAR 32768 // Told Omar about Elanore's involvement + +MFLAG_KNOWS_UNFOCUS_RECIPE 65536 // Luca told me about how to unfocus + +// Flags set in the FLAGS variable: +FLAG_HAS_BOWLER_BURNSDAY 1 // every year's poem at burns day, shannon gives you a bowler hat +FLAG_OPENED_UNDERGROUND 2 // this flag is a replacement for variable Open_Underground_Palace_Barrier, which was used only as bool +FLAG_GOT_NAEM_GLOVES 4 // this replaces Naem_Quest_Done, which was used as a bool variable +FLAG_GOT_GRADUATIONCAP 8 // this is a bit which was to be found in Tut_var second bit +FLAG_TOWEL_HELPED 16 // gave the towel npc the stuff he wants +FLAG_TOWEL_COMPLETED 32 // got the towel from the towel npc +FLAG_ANDRA_HELPED 64 // Knows Andra and agreed to help her +FLAG_ROSSI_COMPLETED 128 // Completed the Rossi Quest +FLAG_TUTORIAL_DONE 256 // player completed tutorial (or entered the tutorial area from outside after it was added) + +DOCK_tulimshar 1 +DOCK_hurnscald 2 +DOCK_candor 3 + +// ----------------- +// -- Easter 2010 -- +// ----------------- + +// Dealing with the Old Woman's token quest +E10_STATE_EGG_MASK 3 +E10_STATE_EGGS_COLLECTED_MASK 31 +E10_STATE_EGGS_COLLECTED_SHIFT 2 +E10_STATE_EGG_COLLECTING 1 +E10_STATE_EGG_COLLECTED 2 +E10_STATE_EGG_REWARDED 3 +E10_STATE_ROSE_MASK 3 +E10_STATE_ROSE_SHIFT 7 +E10_STATE_ROSE_ROSE_USED 1 +E10_STATE_ROSE_ROSE_COMPLETE 2 +E10_STATE_ROSE_RETURNED 3 + + +// Dealing with $Easter_2010_Npc_State1 +E10_TIMER_STATE_EGGS_MASK 31 +E10_TIMER_STATE_TREES_MASK 31 +E10_TIMER_STATE_TREES_SHIFT 5 +E10_TIMER_STATE_DOCTOR_MASK 31 +E10_TIMER_STATE_DOCTOR_SHIFT 10 +E10_EGGS_TIMER_OVERTICK_MASK 31 +E10_EGGS_TIMER_OVERTICK_SHIFT 15 +E10_TREES_OVERTICK_MASK 31 +E10_TREES_OVERTICK_SHIFT 20 +E10_DOCTOR_TIMER_OVERTICK_MASK 31 +E10_DOCTOR_TIMER_OVERTICK_SHIFT 25 + + +// Dealing with $Easter_2010_Npc_State2 +E10_DOCTOR_POSITION_MASK 7 +E10_DOCTOR_POSITION_SHIFT 0 +E10_DOCTOR_POSITION_NULL 0 +E10_DOCTOR_POSITION_BIGTREE 1 +E10_DOCTOR_POSITION_ISLAND 2 +E10_DOCTOR_POSITION_STONES 3 +E10_DOCTOR_POSITION_FRUIT 4 +E10_DOCTOR_POSITION_CAVE 5 +E10_BARRIER_MASK 1 +E10_BARRIER_SHIFT 4 +E10_BARRIER_OPEN 0 +E10_BARRIER_ACTIVE 1 +E10_PRE_WARP_SHIFT 5 +E10_NEEDLE_SHIFT 6 +E10_NEEDLE_MASK 31 + +// Dealing with the doctor +E10_DOCTOR_HELP_STATES_MASK 15 +E10_DOCTOR_HELP_STATES_SHIFT 11 +E10_FLAG_KNOWS_DOCTOR_MASK 1 +E10_FLAG_KNOWS_DOCTOR_SHIFT 10 +E10_FLAG_KNOWS_DOCTOR 1 +E10_FLAG_HELPED_DOCTOR_TREE_MASK 1 +E10_FLAG_HELPED_DOCTOR_TREE_SHIFT 11 +E10_FLAG_HELPED_DOCTOR_TREE 1 +E10_FLAG_HELPED_DOCTOR_ISLAND_MASK 1 +E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT 12 +E10_FLAG_HELPED_DOCTOR_ISLAND 1 +E10_FLAG_HELPED_DOCTOR_STONES_MASK 1 +E10_FLAG_HELPED_DOCTOR_STONES_SHIFT 13 +E10_FLAG_HELPED_DOCTOR_STONES 1 +E10_FLAG_HELPED_DOCTOR_FRUIT_MASK 1 +E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT 14 +E10_FLAG_HELPED_DOCTOR_FRUIT 1 +E10_HELPED_DOCTOR_SHIFT 11 +E10_HELPED_DOCTOR_MASK 15 +E10_FLAG_MID_REWARD 1 +E10_FLAG_MID_REWARD_SHIFT 15 +E10_FLAG_MID_REWARD_MASK 1 +E10_FLAG_RETURN_READY 1 +E10_FLAG_RETURN_READY_SHIFT 16 +E10_FLAG_RETURN_READY_MASK 1 +E10_FLAG_USED_FREE_WARP_SHIFT 17 +E10_STATE_REWARDS_SHIFT 18 +E10_STATE_REWARDS_MASK 3 +E10_STATE_REWARD_RABBIT_EARS 1 +E10_STATE_REWARD_EGGSHELL 2 +E10_LOC_NEEDLE_SHIFT 20 +E10_LOC_NEEDLE_MASK 31 + +// Menus +E10_STONES_WISP 0 +E10_STONES_SPECTRE 1 +E10_STONES_POLTERGEIST 2 +E10_STONES_SOUL 3 +E10_STONES_HEART 4 +E10_STONES_EAR 5 +E10_STONES_EYE 6 +E10_STONES_BONE 7 +E10_STONES_SKULL 8 +E10_STONES_CRYSTAL 9 +E10_STONES_RAGS 10 +E10_STONES_PETAL 11 +E10_STONES_NEVERMIND 12 +E10_ISLAND_MENU_DEATH_AWE 12 +E10_ISLAND_MENU_SCARED 13 +E10_ISLAND_MENU_WISPS 14 +E10_ISLAND_MENU_OFFER_LIFESTONE 15 + +// Flags for Battle Caves +BATTLE_CAVE1, 1 +BATTLE_CAVE2, 2 +BATTLE_CAVE3, 4 +BATTLE_CAVE4, 8 +BATTLE_CAVE5, 16 +BATTLE_CAVE6, 32 +BATTLE_CAVE7, 64 +BATTLE_CAVE8, 128 +BATTLE_CAVE9, 256 + + +// Miscellaneous +E10_COLLECT_EGGS_ID 1246 +E10_TOKEN_ID 666 +E10_MIDREWARD_ID 1247 // Valentine's Glasses (as described) + +// Storage Options +OPT_STORAGE_CLOSE 1 +OPT_BANK_CLOSE 2 diff --git a/world/map/db/exp.txt b/world/map/db/exp.txt new file mode 100644 index 00000000..d07c46b6 --- /dev/null +++ b/world/map/db/exp.txt @@ -0,0 +1,99 @@ +9,9,9,9,10,10,10,10,30,144,30,11,60,288 +16,16,16,16,18,18,18,18,43,184,43,20,86,368 +25,25,25,25,28,28,28,28,58,284,58,31,116,568 +36,36,36,36,40,40,40,40,76,348,76,44,152,696 +77,77,77,77,85,85,85,91,116,603,116,100,232,1206 +112,112,112,112,123,123,123,151,180,887,180,166,360,1774 +153,153,153,153,168,168,168,205,220,1096,220,226,440,2192 +200,200,200,200,220,220,220,268,272,1598,272,295,544,3196 +253,253,253,253,278,278,278,340,336,2540,336,374,672,5080 +320,320,320,320,400,400,400,0,520,3676,520,0,1040,7352 +385,385,385,385,41,41,41,0,604,4290,604,0,1208,8580 +490,490,490,490,613,613,613,0,699,4946,699,0,1398,9892 +585,585,585,585,731,731,731,0,802,6679,802,0,1604,13358 +700,700,700,700,875,875,875,0,948,9492,948,0,1896,18984 +830,830,830,830,1038,1038,1038,0,1125,12770,1125,0,2250,31925 +970,970,970,970,1213,1213,1213,0,1668,14344,1668,0,3336,35860 +1120,1120,1120,1120,1400,1400,1400,0,1937,16005,1937,0,3874,40013 +1260,1260,1260,1260,1575,1575,1575,0,2226,20642,2226,0,4452,51605 +1420,1420,1420,1420,1775,1775,1775,0,3040,27434,3040,0,6080,68585 +1620,1620,1620,1620,2268,2268,2268,0,3988,35108,3988,0,7976,87770 +1860,1860,1860,1860,2604,2604,2604,0,5564,38577,5564,0,11128,96443 +1990,1990,1990,1990,2786,2786,2786,0,6272,42206,6272,0,12544,105515 +2240,2240,2240,2240,3136,3136,3136,0,7021,52708,7021,0,14042,131770 +2504,2504,2504,2504,3506,3506,3506,0,9114,66971,9114,0,18228,167428 +2950,2950,2950,2950,4130,4130,4130,0,11473,82688,11473,0,28683,206720 +3426,3426,3426,3426,4796,4796,4796,0,15290,89544,15290,0,38225,223860 +3934,3934,3934,3934,5508,5508,5508,0,16891,96669,16891,0,42228,241673 +4474,4474,4474,4474,6264,6264,6264,0,18570,117821,18570,0,46425,294553 +6889,6889,6889,6889,9645,9645,9645,0,23229,144921,23229,0,58073,362303 +7995,7995,7995,7995,12392,12392,12392,0,28359,174201,28359,0,70898,479053 +9174,9174,9174,9174,14220,14220,14220,0,36478,186677,36478,0,91195,513362 +10425,10425,10425,10425,16159,16159,16159,0,39716,199584,39716,0,99290,548856 +11748,11748,11748,11748,18209,18209,18209,0,43088,238617,43088,0,107720,656197 +13967,13967,13967,13967,21649,21649,21649,0,52417,286366,52417,0,131043,787507 +15775,15775,15775,15775,24451,24451,24451,0,62495,337147,62495,0,156238,927154 +17678,17678,17678,17678,27401,27401,27401,0,78160,358435,78160,0,195408,985696 +19677,19677,19677,19677,30499,30499,30499,0,84175,380376,84175,0,210430,1046034 +21773,21773,21773,21773,33748,33748,33748,0,90404,447685,90404,0,226010,1231134 +30543,30543,30543,30543,47342,47342,47342,0,107611,526989,107611,0,269028,1449220 +34212,34212,34212,34212,58160,58160,58160,0,125915,610246,125915,0,314788,1678177 +38065,38065,38065,38065,64711,64711,64711,0,153941,644736,153941,0,384853,1773024 +42102,42102,42102,42102,71573,71573,71573,0,191781,793535,191781,0,479453,2182221 +46323,46323,46323,46323,78749,78749,78749,0,204351,921810,204351,0,510878,2534978 +53026,53026,53026,53026,90144,90144,90144,0,248352,1106758,248352,0,620880,3043585 +58419,58419,58419,58419,99312,99312,99312,0,286212,1260955,286212,0,715530,3782865 +64041,64041,64041,64041,108870,108870,108870,0,386371,1487304,386371,0,965928,4461912 +69892,69892,69892,69892,118816,118816,118816,0,409795,1557657,409795,0,1024488,4672971 +75973,75973,75973,75973,129154,129154,129154,0,482092,1990632,482092,0,1205230,5971896 +102468,102468,102468,102468,174196,174196,174196,0,509596,2083386,509596,0,1273990,6250158 +115254,115254,115254,115254,213220,213220,213220,0,0,0,982092,0,0,6875174 +128692,128692,128692,128692,238080,238080,238080,0,0,0,992092,0,0,7562691 +142784,142784,142784,142784,264150,264150,264150,0,0,0,1002092,0,0,8318960 +157528,157528,157528,157528,291427,291427,291427,0,0,0,1012092,0,0,9150856 +178184,178184,178184,178184,329640,329640,329640,0,0,0,1022092,0,0,10065942 +196300,196300,196300,196300,363155,363155,363155,0,0,0,1032092,0,0,11877812 +215198,215198,215198,215198,398116,398116,398116,0,0,0,1042092,0,0,14015818 +234879,234879,234879,234879,434526,434526,434526,0,0,0,1052092,0,0,16538655 +255341,255341,255341,255341,472381,472381,472381,0,0,0,1062092,0,0,19515624 +330188,330188,330188,330188,610848,610848,610848,0,0,0,1072092,0,0,23028437 +365914,365914,365914,365914,731828,731828,731828,0,0,0,1082092,0,0,28094693 +403224,403224,403224,403224,806448,806448,806448,0,0,0,1092092,0,0,34275525 +442116,442116,442116,442116,884232,884232,884232,0,0,0,1102092,0,0,41816141 +482590,482590,482590,482590,965180,965180,965180,0,0,0,1112092,0,0,51015692 +536948,536948,536948,536948,1073896,1073896,1073896,0,0,0,1122092,0,0,62239144 +585191,585191,585191,585191,1170382,1170382,1170382,0,0,0,1132092,0,0,79666104 +635278,635278,635278,635278,1270556,1270556,1270556,0,0,0,1142092,0,0,101972614 +687211,687211,687211,687211,1374422,1374422,1374422,0,0,0,1152092,0,0,130524946 +740988,740988,740988,740988,1481976,1481976,1481976,0,0,0,1162092,0,0,167071930 +925400,925400,925400,925400,1850800,1850800,1850800,0,0,0,1172092,0,0,213852071 +1473746,1473746,1473746,1473746,3389616,3389616,3389616,0,0,0,0,0,0,0 +1594058,1594058,1594058,1594058,3666333,3666333,3666333,0,0,0,0,0,0,0 +1718928,1718928,1718928,1718928,3953534,3953534,3953534,0,0,0,0,0,0,0 +1848355,1848355,1848355,1848355,4251217,4251217,4251217,0,0,0,0,0,0,0 +1982340,1982340,1982340,1982340,4559382,4559382,4559382,0,0,0,0,0,0,0 +2230113,2230113,2230113,2230113,5129260,5129260,5129260,0,0,0,0,0,0,0 +2386162,2386162,2386162,2386162,5488173,5488173,5488173,0,0,0,0,0,0,0 +2547417,2547417,2547417,2547417,5859059,5859059,5859059,0,0,0,0,0,0,0 +2713878,2713878,2713878,2713878,6241919,6241919,6241919,0,0,0,0,0,0,0 +3206160,3206160,3206160,3206160,7374168,7374168,7374168,0,0,0,0,0,0,0 +3681024,3681024,3681024,3681024,9570662,9570662,9570662,0,0,0,0,0,0,0 +4022472,4022472,4022472,4022472,10458427,10458427,10458427,0,0,0,0,0,0,0 +4377024,4377024,4377024,4377024,11380262,11380262,11380262,0,0,0,0,0,0,0 +4744680,4744680,4744680,4744680,12336168,12336168,12336168,0,0,0,0,0,0,0 +5125440,5125440,5125440,5125440,13326144,13326144,13326144,0,0,0,0,0,0,0 +5767272,5767272,5767272,5767272,14994907,14994907,14994907,0,0,0,0,0,0,0 +6204000,6204000,6204000,6204000,16130400,16130400,16130400,0,0,0,0,0,0,0 +6655464,6655464,6655464,6655464,17304200,17304200,17304200,0,0,0,0,0,0,0 +7121664,7121664,7121664,7121664,18516326,18516326,18516326,0,0,0,0,0,0,0 +7602600,7602600,7602600,7602600,19766760,19766760,19766760,0,0,0,0,0,0,0 +9738720,9738720,9738720,9738720,29216160,29216160,29216160,0,0,0,0,0,0,0 +11649960,11649960,11649960,11649960,34949880,34949880,34949880,0,0,0,0,0,0,0 +13643520,13643520,13643520,13643520,40930560,40930560,40930560,0,0,0,0,0,0,0 +18339300,18339300,18339300,18339300,55017900,55017900,55017900,0,0,0,0,0,0,0 +23836800,23836800,23836800,23836800,71510400,71510400,71510400,0,0,0,0,0,0,0 +35658000,35658000,35658000,35658000,106974000,106974000,106974000,0,0,0,0,0,0,0 +48687000,48687000,48687000,48687000,146061000,146061000,146061000,0,0,0,0,0,0,0 +58135000,58135000,58135000,58135000,174405000,174405000,174405000,0,0,0,0,0,0,0 +99999999,99999999,99999999,99999999,200000000,200000000,200000000,0,0,0,0,0,0,0 +0,0,0,0,0,0,0,0,0,0,0,0,0,0 diff --git a/world/map/db/exp2.txt b/world/map/db/exp2.txt new file mode 100644 index 00000000..b9cbfeb3 --- /dev/null +++ b/world/map/db/exp2.txt @@ -0,0 +1,99 @@ +10,9,9,11,60,288,144 +18,16,16,20,86,368,184 +28,25,25,31,116,568,284 +40,36,36,44,152,696,348 +85,77,77,100,232,1206,603 +123,112,112,166,360,1774,887 +168,153,153,226,440,2192,1096 +220,200,200,295,544,3196,1598 +278,253,253,374,672,5080,2540 +400,320,320,0,1040,7352,3676 +481,385,385,0,1208,8580,4290 +613,490,490,0,1398,9892,4946 +731,585,585,0,1604,13358,6679 +875,700,700,0,1896,18984,9492 +1038,830,830,0,2250,31925,12770 +1213,970,970,0,3336,35860,14344 +1400,1120,1120,0,3874,40013,16005 +1575,1260,1260,0,4452,51605,20642 +1775,1420,1420,0,6080,68585,27434 +2268,1620,1620,0,7976,87770,35108 +2604,1860,1860,0,11128,96443,38577 +2786,1990,1990,0,12544,105515,42206 +3136,2240,2240,0,14042,131770,52708 +3506,2504,2504,0,18228,167428,66971 +4136,2950,2950,0,28683,206720,82688 +4796,3426,3426,0,38225,223860,89544 +5508,3934,3934,0,42228,241673,96669 +6264,4474,4474,0,46425,294553,117821 +9645,6889,6889,0,58073,362303,144921 +12392,7995,7995,0,70898,479053,174201 +14220,9174,9174,0,91195,548856,186677 +16159,10425,10425,0,99290,656197,199584 +18209,11748,11748,0,107720,787507,238617 +21649,13967,13967,0,131043,927154,286366 +24451,15775,15775,0,156238,985696,337147 +27401,17678,17678,0,195400,1046034,358435 +30499,19677,19677,0,210438,1231134,380376 +33748,21773,21773,0,226010,1449220,447685 +47342,30543,30543,0,269028,1678177,526989 +58160,34212,34212,0,314788,1773024,610246 +64711,38065,38065,0,384853,2182221,644736 +71573,42102,42102,0,479453,2534978,793535 +78749,46323,46323,0,510878,3043585,921810 +90144,53026,53026,0,620880,3782865,1106758 +99312,58419,58419,0,715530,4461912,1260955 +108870,64041,64041,0,965928,4672971,1487304 +118816,69892,69892,0,1024488,5971896,1557657 +129154,75973,75973,0,1205230,6250158,1990632 +174196,102468,102468,0,1273990,6875174,2083386 +213220,115254,115254,0,0,7562691,0 +238080,128692,128692,0,0,8318960,0 +264150,142784,142784,0,0,9150856,0 +291427,157528,157528,0,0,10065942,0 +329640,178184,178184,0,0,11877812,0 +363155,196300,196300,0,0,14015818,0 +398116,215198,215198,0,0,16538665,0 +434526,234879,234879,0,0,19515624,0 +472381,255341,255341,0,0,23028437,0 +610848,330188,330188,0,0,28094693,0 +741828,365914,365914,0,0,34275525,0 +806448,403224,403224,0,0,41816141,0 +884232,442116,442116,0,0,51015692,0 +965180,482590,482590,0,0,62239144,0 +1073896,536948,536948,0,0,79666104,0 +1170382,585191,585191,0,0,101972614,0 +1270556,635278,635278,0,0,130624946,0 +1374422,687211,687211,0,0,167071930,0 +1481976,740988,740988,0,0,213852071,0 +1850800,925400,925400,0,0,213852071,0 +3389616,1473746,1473746,0,0,0,0 +3666333,1594058,1594058,0,0,0,0 +3953534,1718928,1718928,0,0,0,0 +4251217,1848355,1848355,0,0,0,0 +4559382,1982340,1982340,0,0,0,0 +5129260,2230113,2230113,0,0,0,0 +5488173,2386162,2386162,0,0,0,0 +5859059,2547417,2547417,0,0,0,0 +6241919,2713878,2713878,0,0,0,0 +7374168,3206160,3206160,0,0,0,0 +9570622,3681024,3681024,0,0,0,0 +10458427,4022472,4022472,0,0,0,0 +11380262,4377024,4377024,0,0,0,0 +12336168,4744680,4744680,0,0,0,0 +13326144,5125440,5125440,0,0,0,0 +14994907,5767272,5767272,0,0,0,0 +16130400,6204000,6204000,0,0,0,0 +17304206,6655464,6655464,0,0,0,0 +18586326,7121664,7121664,0,0,0,0 +19766760,7602600,7602600,0,0,0,0 +29216160,9738720,9738720,0,0,0,0 +34949880,11649960,11649960,0,0,0,0 +40930560,13643520,13643520,0,0,0,0 +55017900,18339300,18339300,0,0,0,0 +71510400,23836800,23836800,0,0,0,0 +106974000,35658000,35658000,0,0,0,0 +146061000,48687000,48687000,0,0,0,0 +174405000,58135000,58135000,0,0,0,0 +299999999,99999999,99999999,0,0,0,0 +0,0,0,0,0,0,0,0 diff --git a/world/map/db/item_bluebox.txt b/world/map/db/item_bluebox.txt new file mode 100644 index 00000000..0932696e --- /dev/null +++ b/world/map/db/item_bluebox.txt @@ -0,0 +1,7 @@ +// File created using Spamrat's Athena Database Editor v1.4.4 +// +// ŒÃ‚‚¢” ‚©‚瓾‚ç‚ê‚éƒAƒCƒeƒ€‚ðÝ’èB +// ItemID, ItemName(Dummy), Rate +// ƒAƒCƒeƒ€IDAƒAƒCƒeƒ€‚Ì–¼‘O(ƒ_ƒ~[)AŠm—¦(*10000)‚ð‚µ‚½•¨‚Å‚·B500000‚È‚ç50%‚Å1000000‚È‚ç100%‚Å‚·B) +// ƒAƒCƒeƒ€ID‚ª0‚Ìꇊm—¦‚ðƒAƒCƒeƒ€‚Ì‘I‘ð‚ÉŽ¸”s‚µ‚½Žž‚É“¾‚ç‚ê‚éƒfƒtƒHƒ‹ƒgƒAƒCƒeƒ€‚ÌID‚Æ‚µ‚Ä”FŽ¯‚µ‚Ü‚·B(•¡”‚Å‚ ‚éê‡ÅŒã‚Ì•¨‚¾‚¯—LŒø‚Å‚·B) +// diff --git a/world/map/db/item_cardalbum.txt b/world/map/db/item_cardalbum.txt new file mode 100644 index 00000000..4472147b --- /dev/null +++ b/world/map/db/item_cardalbum.txt @@ -0,0 +1,7 @@ +// File created using Spamrat's Athena Database Editor v1.4.4 +// +// ŒÃ‚¢ƒJ[ƒh’Ÿ‚©‚瓾‚ç‚ê‚éƒAƒCƒeƒ€‚ðÝ’èB +// ItemID, ItemName(Dummy), Rate +// ƒAƒCƒeƒ€IDAƒAƒCƒeƒ€‚Ì–¼‘O(ƒ_ƒ~[)AŠm—¦(*10000)‚ð‚µ‚½•¨‚Å‚·B500000‚È‚ç50%‚Å1000000‚È‚ç100%‚Å‚·B) +// ƒAƒCƒeƒ€ID‚ª0‚Ìꇊm—¦‚ðƒAƒCƒeƒ€‚Ì‘I‘ð‚ÉŽ¸”s‚µ‚½Žž‚É“¾‚ç‚ê‚éƒfƒtƒHƒ‹ƒgƒAƒCƒeƒ€‚ÌID‚Æ‚µ‚Ä”FŽ¯‚µ‚Ü‚·B(•¡”‚Å‚ ‚éê‡ÅŒã‚Ì•¨‚¾‚¯—LŒø‚Å‚·B) +// diff --git a/world/map/db/item_db.txt b/world/map/db/item_db.txt new file mode 100644 index 00000000..25dc27c7 --- /dev/null +++ b/world/map/db/item_db.txt @@ -0,0 +1,683 @@ +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +0, DEFAULT, Default, 0, 20, 10, 10, , , , , , 2, , , , , {}, {}, , +501, CactusDrink, Cactus Drink, 0, 50, 25, 4, , , , , , 2, , , 0, , {itemheal 15, 0;}, {}, +502, CactusPotion, Cactus Potion, 0, 70, 35, 7, , , , , , 2, , , 0, , {itemheal 25, 0;}, {}, +503, CasinoCoins, Casino Coins, 3, 20, 10, 1, , , , , , , , , , , {}, {}, , +504, DecorCandy, Decor Candy, 3, 25, 10, 1, , , , , , , , , , , {}, {}, , +505, MaggotSlime, Maggot Slime, 3, 8, 4, 1, , , , , , , , , , , {}, {}, , +506, CandyCane, Candy Cane, 0, 20, 10, 1, , , , , , 2, , , 0, , {itemheal 5, 0;}, {}, +507, ScorpionStinger, Scorpion Stinger, 3, 50, 25, 1, , , , , , , , , , , {}, {}, , +508, XmasCake, Xmas Cake, 0, 70, 10, 1, , , , , , 2, , , 0, , {itemheal 10, 0;}, {}, +509, ChocolateBar, Chocolate Bar, 0, 60, 20, 1, , , , , , 2, , , 0, , {itemheal 20, 0;}, {}, +510, Candy, Candy, 0, 20, 10, 1, , , , , , 2, , , 0, , {itemheal 5, 0;}, {}, +511, SantaHat, Santa Hat, 5, 400, 200, 20, , 2, , -2, 0, 2, 256, , 0, 0, {}, {}, , +512, GingerBreadMan, Ginger Bread Man, 0, 50, 25, 1, , , , , , 2, , , 0, , {itemheal 25, 0;}, {}, +513, Cake, Cake, 0, 30, 15, 1, , , , , , 2, , , 0, , {itemheal 15, 0;}, {}, +514, XmasCandyCane, Xmas Candy Cane, 0, 30, 15, 1, , , , , , 2, , , 0, , {itemheal 10, 0;}, {}, +515, PurplePresentBox, Purple Present Box, 3, 50, 25, 10, , , , , , , , , , , {}, {}, , +516, BluePresentBox, Blue Present Box, 3, 60, 30, 10, , , , , , , , , , , {}, {}, , +517, RedScorpionStinger, Red Scorpion Stinger, 3, 170, 85, 1, , , , , , , , , , , {}, {}, , +518, BugLeg, BugLeg, 3, 60, 20, 1, , , , , , , , , , , {}, {}, , +519, CherryCake, Cherry Cake, 0, 100, 50, 1, , , , , , 2, , , 0, , {itemheal 35, 0;}, {}, +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +520, EasterEgg, Easter Egg, 0, 200, 100, 1, , , , , , 2, , , 0, , {itemheal 100, 0;}, {}, +521, Dagger, Dagger, 4, 1000, 500, 200, 15, , 1, , 0, 2, 2, 1, 1, 1, {}, {}, , +522, SharpKnife, Sharp Knife, 4, 100, 50, 150, 10, , 1, , 0, 2, 2, 1, 1, 1, {}, {}, , +523, LeatherShirt, Leather Shirt, 5, 2000, 1000, 20, , 4, , -12, 0, 2, 512, , 0, 0, {}, {}, , +524, FancyHat, Fancy Hat, 5, 1600, 800, 20, , 5, , 0, 0, 2, 256, , 0, 0, {}, {}, , +525, MinersHat, Miners Hat, 5, 800, 400, 40, , 4, , -8, 0, 2, 256, , 0, 0, {}, {}, , +526, CoinBag, Coin Bag, 3, 1000, 500, 5, , , , , , , , , , , {}, {}, , +527, Milk, Milk, 0, 300, 150, 5, , , , , , 2, , , 0, , {itemheal 150, 0;}, {}, +528, Boots, Boots, 5, 8000, 500, 80, , 2, , -2, 0, 2, 64, , 0, 0, {}, {}, , +529, IronArrow, Iron Arrow, 10, 4, 2, 1, 40, , , , , 2, 32768, , , , {}, {}, , +530, ShortBow, Short Bow, 4, 3000, 500, 600, 50, , 5, , 0, 2, 34, 1, 4, 11, {}, {}, , +531, MinerGloves, Miner Gloves, 5, 3000, 1000, 30, , 2, , -10, 0, 2, 4, , 0, 0, {}, {}, , +532, LeatherGloves, Leather Gloves, 5, 6000, 2000, 20, , 4, , -20, 0, 2, 4, , 0, 0, {}, {}, , +533, RoastedMaggot, Roasted Maggot, 0, 110, 55, 5, , , , , , 2, , , 0, , {itemheal 150, 0;}, {}, +534, OrangeCupcake, Orange Cupcake, 0, 90, 45, 5, , , , , , 2, , , 0, , {itemheal 100, 0;}, {}, +535, RedApple, Red Apple, 0, 10, 5, 5, , , , , , 2, , , 0, , {itemheal 50, 0;}, {}, +536, ShortSword, Short Sword, 4, 8000, 4000, 2000, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {}, , +537, TreasureKey, Treasure Key, 3, 100, 50, 2, , , , , , , , , , , {}, {}, , +538, GreenPresentBox, Green Present Box, 3, 20, 10, 10, , , , , , 2, , , 0, , {}, {}, , +539, Beer, Beer, 0, 175, 87, 10, , , , , , 2, , , 0, , {itemheal 200, 5;}, {}, +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +540, EmptyBottle, Empty Bottle, 3, 20, 10, 1, , , , , , , , , , , {}, {}, , +541, BottleOfWater, Bottle of Water, 0, 200, 100, 10, , , , , , 2, , , 0, , {itemheal 250, 0;getitem 540, 1;}, {} +542, BottleOfSand, Bottle of Sand, 3, 70, 35, 10, , , , , , , , , , , {}, {}, , +543, StandardHeadband, Standard Headband, 5, 800, 400, 10, , 3, , -3, 0, 2, 256, , 0, 0, {}, {}, , +544, SilkHeadband, Silk Headband, 5, 5000, 2000, 10, , 10, , -10, 0, 2, 256, , 0, 0, {}, {}, , +545, ForestBow, Forest Bow, 4, 5000, 2500, 1200, 70, , 5, , 0, 2, 34, 1, 0, 11, {}, {}, , +546, DesertShirt, Desert Shirt, 5, 2000, 1000, 20, , 6, , -18, 0, 2, 512, , 0, 0, {}, {}, , +547, Bardiche, Bardiche, 5, 20, 10, 10, , 100, 1, -200, 0, 2, 2, , 0, 0, {}, {callfunc "UnreleasedItem";}, , +548, Halberd, Halberd, 4, 20, 10, 1400, 100, , 1, , 0, 2, 2, 1, 0, 0, {}, {callfunc "UnreleasedItem";}, , +549, Axe, Axe, 4, 20, 10, 1200, 100, , 1, , 0, 2, 2, 1, 0, 0, {}, {callfunc "UnreleasedItem";}, , +550, BlacksmithsAxe, Blacksmith's Axe, 4, 20, 10, 1200, 100, , 1, , 0, 2, 2, 1, 0, 0, {}, {callfunc "UnreleasedItem";}, , +551, AquaHint, Aqua Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +552, MagentaHint, Magenta Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +553, YellowHint, Yellow Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +554, GreenHint, Green Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +555, TealHint, Teal Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +556, PurpleHint, Purple Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +557, RedHint, Red Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +558, BlueHint, Blue Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +559, OrangeHint, Orange Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +560, GrayHint, Gray Hint, 3, 20, 0, 10, , , , , , , , , , , {}, {}, , +561, Sabre, Sabre, 4, 10000, 5000, 300, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {}, , +562, ChickenLeg, Chicken Leg, 0, 250, 125, 10, , , , , , 2, , , 0, , {itemheal 500, 0;}, {}, +563, WinterGloves, Winter Gloves, 5, 6000, 3000, 20, , 3, , -15, 0, 2, 4, , 0, 0, {}, {}, , +564, TurtleneckSweater, Turtleneck Sweater, 5, 2000, 1000, 30, , 6, , -18, 0, 2, 512, , 0, 0, {}, {}, , +565, PinkPetal, Pink Petal, 0, 100, 50, 10, , , , , , 2, , , 0, , {itemheal 50, 0;}, {}, +566, SmallMushroom, Small Mushroom, 0, 100, 50, 10, , , , , , 2, , , 0, , {itemheal 50, 0;}, {}, +567, IronPotion, Iron Potion, 0, 500, 250, 10, , , , , , 2, , , 0, , {sc_start sc_raiseattackstrength, 60, 60;}, {} +568, ConcentrationPotion, Concentration Potion, 0, 500, 250, 10, , , , , , 2, , , 0, , {sc_start sc_raiseattackspeed0, 60, 30;}, {} +569, RawLog, Raw Log, 3, 20, 10, 10, , , , , , , , , , , {}, {}, , +570, BoneKnife, Bone Knife, 4, 10000, 6000, 450, 115, , 1, , 0, 2, 2, 1, 1, 1, {}, {}, , +571, Setzer, Setzer, 4, 20000, 8000, 900, 110, , 1, , 0, 2, 2, 1, 1, 3, {}, {}, , +572, Scimitar, Scimitar, 4, 8000, 4000, 200, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +573, Falchion, Falchion, 4, 8000, 4000, 300, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +574, Scorpion, Scorpion, 4, 8000, 4000, 600, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +575, DesertBow, Desert Bow, 4, 8000, 4000, 1200, 100, , 1, , 0, 2, 34, 1, 1, 11, {}, {callfunc "UnreleasedItem";}, , +576, Beheader, Beheader, 4, 8000, 4000, 2000, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +577, BoneDarts, Bone Darts, 4, 8000, 4000, 300, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +578, SandCutter, Sand Cutter, 4, 8000, 4000, 1500, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +579, RockKnife, Rock Knife, 4, 15000, 7500, 500, 110, , 1, , 0, 2, 2, 1, 1, 1, {}, {bonus bVit, 3;} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +580, StaffOfLife, Staff of Life, 4, 8000, 4000, 1500, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +581, CrescentRod, Crescent Rod, 4, 8000, 4000, 1500, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +582, StaffOfFire, Staff of Fire, 4, 8000, 4000, 1500, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +583, StaffOfIce, Staff of Ice, 4, 8000, 4000, 1500, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +584, Jackal, Jackal, 4, 8000, 4000, 100, 100, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +585, ScarabArmlet, Scarab Armlet, 5, 8000, 4000, 200, , 0, , 5, 0, 2, 32, , 1, 1, {}, {}, , +586, CottonShorts, Cotton Shorts, 5, 1000, 500, 15, , 2, , -4, 0, 2, 1, , 1, 0, {}, {}, , +587, Sword, Sword, 4, 1000, 500, 200, 15, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +//588, RESERVED, BastardSword, , , , , , , , , , , , , , , {}, {}, , +//589, RESERVED, BroadSword, , , , , , , , , , , , , , , {}, {}, , +//590, RESERVED, Baselard, , , , , , , , , , , , , , , {}, {}, , +//591, RESERVED, LongSword, , , , , , , , , , , , , , , {}, {}, , +//592, RESERVED, Stiletto, , , , , , , , , , , , , , , {}, {}, , +//593, RESERVED, Rapier, , , , , , , , , , , , , , , {}, {}, , +594, Spear, Spear, 4, 1000, 500, 200, 15, , 1, , 0, 2, 2, 1, 1, 1, {}, {callfunc "UnreleasedItem";}, , +//595, RESERVED, HeavySpear, , , , , , , , , , , , , , , {}, {}, , +//596, RESERVED, Pike, , , , , , , , , , , , , , , {}, {}, , +//597, RESERVED, HeavyPike, , , , , , , , , , , , , , , {}, {}, , +//598, RESERVED, DualSpear, , , , , , , , , , , , , , , {}, {}, , +//599, RESERVED, FireSword, , , , , , , , , , , , , , , {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +//600, RESERVED, BritShield, , , , , , , , , , , , , , , {}, {}, , +601, SteelShield, Steel Shield, 5, 40000, 3000, 2500, , 20, , -200, 0, 2, 32, , , 0, {}, {}, , +602, WoodenShield, Wooden Shield, 5, 10000, 2000, 1500, , 14, , -70, 0, 2, 32, , , 0, {}, {}, , +603, LeatherShield, Leather Shield, 5, 2000, 1000, 1300, , 7, , -35, 0, 2, 32, , , 0, {}, {}, , +//604, RESERVED, KnightShield, , , , , , , , , , , , , , , {}, {}, , +//605, RESERVED, MeatCleaver, , , , , , , , , , , , , , , {}, {}, , +//606, RESERVED, Hatchet, , , , , , , , , , , , , , , {}, {}, , +//607, RESERVED, Trident, , , , , , , , , , , , , , , {}, {}, , +//608, RESERVED, BladeShield, , , , , , , , , , , , , , , {}, {}, , +//609, RESERVED, Club, , , , , , , , , , , , , , , {}, {}, , +610, JeansShorts, Jeans Shorts, 5, 2000, 1000, 25, , 4, , -8, 0, 2, 1, , 0, 0, {}, {}, , +611, WhiteFur, White Fur, 3, 8, 4, 8, , , , , , , , , , , {}, {}, , +612, CaveSnakeLamp, Cave Snake Lamp, 3, 80, 40, 10, , , , , , , , , , , {}, {}, , +613, HardSpike, Hard Spike, 3, 8, 4, 10, , , , , , , , , , , {}, {}, , +614, PinkAntenna, Pink Antenna, 3, 10, 5, 10, , , , , , , , , , , {}, {}, , +615, PumpkinHelmet, Pumpkin Helmet, 5, 2000, 1000, 60, , 4, , -4, 0, 2, 256, , 0, 0, {}, {}, , +616, AxeHat, Axe Hat, 5, 2000, 1000, 50, , 4, , -4, 0, 2, 256, , 0, 0, {}, {}, , +617, PirateHat, Pirate Hat, 5, 2000, 1000, 40, , 4, , -8, 0, 2, 256, , 0, 0, {}, {}, , +618, Goggles, Goggles, 5, 500, 100, 20, , 2, , 0, 0, 2, 256, , 0, 0, {}, {}, , +619, LeatherGoggles, Leather Goggles, 5, 1000, 500, 20, , 3, , 0, 0, 2, 256, , 0, 0, {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +620, Circlet, Circlet, 5, 2000, 1000, 25, , 4, , 5, 0, 2, 256, , 0, 0, {}, {}, , +621, Eyepatch, Eyepatch, 5, 1000, 500, 5, , 3, , 0, 0, 2, 256, , 0, 0, {}, {}, , +622, Bandana, Bandana, 5, 1000, 500, 20, , 3, , 0, 0, 2, 256, , 0, 0, {}, {}, , +623, Scythe, Scythe, 4, 100, 50, 1200, 75, , 1, , 0, 2, 2, 1, 1, 3, {}, {}, , +624, VNeckSweater, V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -24, 0, 2, 512, , 0, 0, {}, {}, , +625, ChainmailShirt, Chainmail Shirt, 5, 15000, 1500, 800, , 20, , -120, 0, 2, 512, , 0, 0, {}, {}, , +626, LightPlatemail, Light Platemail, 5, 50000, 2500, 1200, , 25, , -150, 0, 2, 512, , 0, 0, {}, {}, , +627, TopHat, Top Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {}, , +628, FunkyHat, Funky Hat, 5, 3000, 1500, 20, , 13, , 2, 0, 2, 256, , 0, 0, {}, {}, , +629, MushHat, Mush Hat, 5, 2500, 1250, 30, , 10, , 0, 0, 2, 256, , 0, 0, {}, {}, , +630, ShroomHat, Shroom Hat, 5, 3000, 1500, 30, , 13, , 0, 0, 2, 256, , 0, 0, {}, {}, , +631, DarkCrystal, Dark Crystal, 3, 100, 50, 10, , , , , , , , , , , {}, {}, , +632, CottonSkirt, Cotton Skirt, 5, 1000, 500, 10, , 4, , -8, 0, 2, 1, , 1, 0, {}, {}, , +633, ChristmasElfHat, Christmas Elf Hat, 5, 3000, 1500, 30, , 13, , 2, 0, 2, 256, , 0, 0, {}, {}, , +634, FaceMask, Face Mask, 5, 2500, 1250, 50, , 10, , 0, 0, 2, 256, , 0, 0, {}, {}, , +635, SantaCookie, Santa Cookie, 3, 1, 1, 1, , , , , , , , , , , {}, {}, , +636, WarlordHelmet, Warlord Helmet, 5, 30000, 3000, 900, , 18, , -36, 0, 2, 256, , 0, 0, {}, {}, , +637, KnightsHelmet, Knight's Helmet, 5, 20000, 2000, 600, , 15, , -30, 0, 2, 256, , 0, 0, {}, {}, , +638, InfantryHelmet, Infantry Helmet, 5, 15000, 1500, 400, , 15, , -30, 0, 2, 256, , 0, 0, {}, {}, , +639, CrusadeHelmet, Crusade Helmet, 5, 25000, 2500, 1300, , 18, , -36, 0, 2, 256, , 0, 0, {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +640, IronOre, Iron Ore, 3, 250, 100, 40, , , , , , , , , , , {}, {}, , +641, SnakeSkin, Snake Skin, 3, 250, 100, 15, , , , , , , , , , , {}, {}, , +642, JeansChaps, Jeans Chaps, 5, 2000, 1000, 60, , 6, , -12, 0, 2, 1, , 0, 0, {}, {}, , +643, WhiteCowboyHat, White Cowboy Hat, 5, 1800, 900, 30, , 6, , -12, 0, 2, 256, , 0, 0, {}, {}, , +644, BlackCowboyHat, Black Cowboy Hat, 5, 1800, 900, 30, , 6, , -12, 0, 2, 256, , 0, 0, {}, {}, , +645, GoldenPlatemail, Golden Platemail, 5, 9999000,3000, 4500, , 25, , -100, 0, 2, 512, , 0, 0, {}, {}, , +646, Crown, Crown, 5, 5000, 1000, 240, , 4, , 0, 0, 2, 256, , 0, 0, {}, {}, , +647, DevelopersCap, Developer's Cap, 5, 2000, 500, 20, , 5, , 5, 0, 2, 256, , 0, 0, {}, {}, , +//648, RESERVED, , Trousers, , , , , , , , , , , , , , {}, {}, , +649, WhiteEvokersRobeBlue, White Evokers Robe Blue, 5, 8000, 4000, 5, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;}, , +650, BlackEvokersRobeBlue, Black Evokers Robe Blue, 5, 8000, 4000, 5, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;}, , +651, WhiteWizardRobe, WhiteWizardRobe, 5, 8000, 4000, 5, , 5, , 0, 0, 2, 512, , 0, 0, {}, {}, , +652, BlackWizardRobe, BlackWizardRobe, 5, 8000, 4000, 5, , 5, , 0, 0, 2, 512, , 0, 0, {}, {}, , +653, ApprenticeRobe, Apprentice Robe, 5, 8000, 4000, 5, , 5, , 0, 0, 2, 512, , 0, 0, {}, {}, , +654, Cap, Cap, 5, 2000, 500, 20, , 5, , 0, 0, 2, 256, , 0, 0, {}, {}, , +655, FurBoots, Fur Boots, 5, 5000, 600, 50, , 3, , -3, 0, 2, 64, , 0, 0, {}, {}, , +656, SerfHat, Serf Hat, 5, 500, 100, 20, , 2, , 0, 0, 2, 256, , 0, 0, {}, {}, , +657, Orange, Orange, 0, 12, 6, 7, , , , , , 2, , , 0, , {itemheal 60, 0;}, {}, +658, WarlordPlate, Warlord Plate, 5, 100000, 3000, 2600, , 27, , -170, 0, 2, 512, , 0, 0, {}, {}, , +659, GoldenWarlordPlate, Golden Warlord Plate, 5, 500000, 4000, 7600, , 27, , -110, 0, 2, 512, , 0, 0, {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +660, CottonCloth, Cotton Cloth, 3, 1000, 500, 10, , , , , , , , , , , {}, {}, , +661, RedRose, Red Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +662, WhiteRose, White Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +663, DarkRedRose, Dark Red Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +664, PinkRose, Pink Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +665, YellowRose, Yellow Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +666, BlackRose, Black Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +667, OrangeRose, Orange Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +668, BlueRose, Blue Rose, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +669, YellowTulip, Yellow Tulip, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +670, PurpleTulip, Purple Tulip, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +671, RedTulip, Red Tulip, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +672, WhiteTulip, White Tulip, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +673, PinkTulip, Pink Tulip, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +674, OrangeTulip, Orange Tulip, 3, 40, 20, 1, , , , , , , , , , , {}, {}, , +675, GraduationCap, Graduation Cap, 5, 1000, 250, 20, , 2, , 0, 0, 2, 256, , 0, 0, {}, {}, , +676, Steak, Steak, 0, 275, 100, 10, , , , , , 2, , , 0, , {itemheal 250, 0;}, {}, +677, HeartNecklace, Heart Necklace, 3, 2500, 1000, 10, , , , , , , , , 0, , {}, {}, , +678, NohMask, Noh Mask, 5, 7000, 1000, 18, , 3, , 1, 0, 2, 256, , 0, 0, {}, {}, , +679, DemonMask, Demon Mask, 5, 10000, 5000, 23, , 3, , 5, 0, 2, 256, , 0, 0, {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +680, MauveHerb, Mauve Herb, 3, 2, 1, 1, , , , , , , , , , , {}, {}, , +681, CobaltHerb, Cobalt Herb, 3, 2, 1, 1, , , , , , , , , , , {}, {}, , +682, GambogeHerb, Gamboge Herb, 3, 2, 1, 1, , , , , , , , , , , {}, {}, , +683, AlizarinHerb, Alizarin Herb, 3, 2, 1, 1, , , , , , , , , , , {}, {}, , +684, TinyHealingPotion, Tiny Healing Potion, 0, 25, 12, 5, , , , , , 2, , , 0, , {itemheal 100, 0;}, {}, +685, SmallHealingPotion, Small Healing Potion, 0, 50, 25, 10, , , , , , 2, , , 0, , {itemheal 200, 0;}, {}, +686, MediumHealingPotion, Medium Healing Potion, 0, 100, 50, 15, , , , , , 2, , , 0, , {itemheal 400, 0;}, {}, +687, LargeHealingPotion, Large Healing Potion, 0, 200, 100, 25, , , , , , 2, , , 0, , {itemheal 800, 0;}, {}, +688, TankTop, Tank Top, 5, 10, 5, 10, , 2, , -4, 0, 2, 512, , 0, 0, {}, {}, , +689, ShortTankTop, Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {}, , +690, RedDye, Red Dye, 3, 100, 20, 10, , , , , , 2, , , 0, , {}, {}, , +691, GreenDye, Green Dye, 3, 2500, 1000, 10, , , , , , 2, , , 0, , {}, {}, , +692, DarkBlueDye, Dark Blue Dye, 3, 40000, 15000, 10, , , , , , 2, , , 0, , {}, {}, , +693, YellowDye, Yellow Dye, 3, 100, 20, 10, , , , , , 2, , , 0, , {}, {}, , +694, LightBlueDye, Light Blue Dye, 3, 100, 20, 10, , , , , , 2, , , 0, , {}, {}, , +695, PinkDye, Pink Dye, 3, 2500, 1000, 10, , , , , , 2, , , 0, , {}, {}, , +696, BlackDye, Black Dye, 3, 30000, 25000, 10, , , , , , 2, , , 0, , {}, {}, , +697, OrangeDye, Orange Dye, 3, 2500, 1000, 10, , , , , , 2, , , 0, , {}, {}, , +698, PurpleDye, Purple Dye, 3, 70000, 50000, 10, , , , , , 2, , , 0, , {}, {}, , +699, DarkGreenDye, Dark Green Dye, 3, 2000, 1000, 10, , , , , , 2, , , 0, , {}, {}, , +700, Pearl, Pearl, 3, 5000, 3000, 5, , , , , , 2, , , 0, , {}, {}, , +701, PileOfAsh, Pile of Ash, 3, 3000, 100, 5, , , , , , 2, , , 0, , {}, {}, , +702, WeddingRing, Wedding Ring, 5, 1000, 1, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {}, , +703, SulphurPowder, Sulphur Powder, 3, 1000, 25, 2, , , , , , 2, , , 0, , {}, {}, , +704, IronPowder, Iron Powder, 3, 800, 80, 3, , , , , , 2, , , 0, , {}, {}, , +705, ManaPotion, Mana Potion, 0, 2000, 300, 50, , , , , , 2, , , 0, , {itemheal 0, 10;callfunc "MagicGainBasic";}, {}, +706, GoldenScorpionStinger, Golden Scorpion Stinger, 3, 2000, 500, 2, , , , , , , , , , , {}, {}, , +707, MonsterOilPotion, Monster Oil Potion, 3, 10000, 2000, 50, , , , , , , , , , , {}, {}, , +708, LeatherPatch, Leather Patch, 3, 300, 150, 18, , , , , , , , , , , {}, {}, , +709, BlackScorpionStinger, Black Scorpion Stinger, 3, 250, 100, 1, , , , , , , , , , , {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +710, SnakeTongue, Snake Tongue, 3, 60, 30, 1, , , , , , , , , , , {}, {}, , +711, MountainSnakeTongue, Mountain Snake Tongue, 3, 80, 40, 1, , , , , , , , , , , {}, {}, , +712, GrassSnakeTongue, Grass Snake Tongue, 3, 160, 80, 1, , , , , , , , , , , {}, {}, , +713, CaveSnakeTongue, Cave Snake Tongue, 3, 120, 60, 1, , , , , , , , , , , {}, {}, , +714, SnakeEgg, Snake Egg, 0, 50, 25, 4, , , , , , 2, , , 0, , {itemheal 30, 0;}, {}, +715, MountainSnakeEgg, Mountain Snake Egg, 0, 80, 40, 4, , , , , , 2, , , 0, , {itemheal 40, 0;}, {}, +716, GrassSnakeEgg, Grass Snake Egg, 0, 100, 50, 4, , , , , , 2, , , 0, , {itemheal 50, 0;}, {}, +717, CaveSnakeEgg, Cave Snake Egg, 0, 60, 30, 4, , , , , , 2, , , 0, , {itemheal 20, 0;}, {}, +718, SilkCocoon, Silk Cocoon, 3, 200, 3, 1, , , , , , , , , , , {}, {}, , +719, GreenApple, Green Apple, 0, 10, 4, 5, , , , , , 2, , , 0, , {itemheal 45, 0;}, {}, +720, SilkRobe, Silk Robe, 5, 8000, 4000, 5, , 5, , 0, 0, 2, 512, , 0, 0, {}, {}, , +721, HighPriestCrown, High Priest Crown, 5, 20000, 5000, 400, , 4, , 20, 0, 2, 256, , 0, 0, {}, {bonus bMaxSP, 20;}, +722, MonsterSkullHelmet, Monster Skull Helmet, 5, 15000, 3000, 250, , 7, , 10, 0, 2, 256, , 0, 0, {}, {bonus bMdef, 20;}, +723, DesertHat, Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {}, , +724, CottonHeadband, Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {}, , +725, GMCap, GM Cap, 5, 2000, 500, 20, , 5, , 5, 0, 2, 256, , 0, 0, {}, {callfunc "RestrictedItem";}, , +726, GMRobe, GM Robe, 5, 8000, 4000, 40, , 5, , 0, 0, 2, 512, , 0, 0, {}, {callfunc "RestrictedItem";}, , +727, Iten, Iten, 3, 0, 0, 8000, , , , , , , , , , , {}, {}, , +728, MoubooFigurine, Mouboo Figurine, 3, 0, 0, 9, , , , , , , , , , , {}, {}, , +729, WarpedLog, Warped Log, 3, 0, 0, 8, , , , , , , , , , , {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +730, Lifestone, Lifestone, 3, 0, 0, 5, , , , , , , , , , , {}, {}, , +731, AssassinPants, Assassin Pants, 5, 10000, 3000, 20, , 5, , -5, 0, 2, 1, , 0, 0, {}, {callfunc "UnreleasedItem";bonus bAgi, 8;}, +732, DruidTreeBranch, Druid Tree Branch, 3, 0, 0, 2, , , , , , , , , , , {}, {}, , +733, PurificationPotion, Purification Potion, 0, 0, 0, 15, , , , , , 2, , , , , {callfunc "usePurificationPotion";}, {}, , +734, BlackBoots, Black Boots, 5, 20000, 3000, 25, , 3, , -10, 0, 2, 64, , 0, 0, {}, {}, , +735, CottonBoots, Cotton Boots, 5, 2000, 500, 10, , 1, , 1, 0, 2, 64, , 0, 0, {}, {}, , +736, WhiteCake, White Cake, 0, 500, 100, 10, , , , , , 2, , , 0, , {itemheal 10, 0;}, {}, +737, ChocolateCake, Chocolate Cake, 0, 550, 125, 10, , , , , , 2, , , 0, , {itemheal 11, 0;}, {}, +738, OrangeCake, Orange Cake, 0, 600, 150, 10, , , , , , 2, , , 0, , {itemheal 12, 0;}, {}, +739, AppleCake, Apple Cake, 0, 600, 150, 10, , , , , , 2, , , 0, , {itemheal 12, 0;}, {}, +740, Root, Root, 3, 500, 200, 5, , , , , , , , , , , {}, {}, , +741, CottonGloves, Cotton Gloves, 5, 2000, 500, 10, , 1, , -10, 0, 2, 4, , 0, 0, {}, {}, , +742, FourLeafClover, Four-Leaf Clover, 5, 10000, 5000, 1, , , , 5, 0, 2, 8, , 0, 0, {}, {bonus bLuk, 1;}, +743, Acorn, Acorn, 0, 50, 10, 1, , , , , , 2, , , 0, , {itemheal 3, 0;}, {}, +744, DilutedConcentrationPotion, Diluted Concentration Potion, 0, 250, 100, 10, , , , , , 2, , , 0, , {sc_start sc_raiseattackspeed0, 30, 20;}, {} +745, DarkConcentrationPotion, Dark Concentration Potion, 0, 50, 25, 10, , , , , , 2, , , 0, , {sc_start sc_raiseattackspeed0, 10, 40;sc_start sc_poison, 1, 50;}, {} +746, MopoxCurePotion, Mopox Cure Potion, 3, 0, 0, 5, , , , , , 2, , , , , {}, {} +747, LacedChocolateCake, Laced Chocolate Cake, 0, 550, 125, 10, , , , , , 2, , , 0, , {itemheal 11, 0;}, {} +748, LacedOrangeCupcake, Laced Orange Cupcake, 0, 90, 45, 5, , , , , , 2, , , 0, , {itemheal 100, 0;}, {} +749, Towel, Towel, 5, 800, 250, 50, , , , 5, 0, 2, 8, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +750, SlowPoisonPotion, Slow Poison Potion, 0, 500, 200, 10, , , , , , 2, , , 0, , {itemheal 5, 0;sc_start sc_slowpoison, 180000, 180;}, {} +751, PinkieHat, Pinkie Hat, 5, 5000, 1000, 5, , 1, , 1, 0, 2, 256, , 0, 0, {}, {} +752, FluffyHat, Fluffy Hat, 5, 7000, 2000, 10, , 2, , -5, 0, 2, 256, , 0, 0, {}, {} +753, BatWing, Bat Wing, 3, 500, 10, 3, , , , , , , , , , , {}, {} +754, BatTeeth, Bat Teeth, 3, 600, 12, 2, , , , , , , , , , , {}, {} +755, AssassinShirt, Assassin Shirt, 5, 10000, 3000, 15, , 10, , -5, 0, 2, 512, , 0, 0, {}, {callfunc "UnreleasedItem";bonus bAgi, 10;} +756, AssassinGloves, Assassin Gloves, 5, 7000, 2000, 9, , 5, , -3, 0, 2, 4, , 0, 0, {}, {callfunc "UnreleasedItem";bonus bAgi, 5;} +757, AssassinBoots, Assassin Boots, 5, 7000, 2000, 10, , 5, , -3, 0, 2, 64, , 0, 0, {}, {callfunc "UnreleasedItem";bonus bAgi, 5;} +758, WoodenStaff, Wooden Staff, 4, 4000, 2000, 1000, 50, , 1, 5, 0, 2, 2, 1, 1, 10, {}, {} +//759, PaladinsHelmet, Paladin's Helmet, , , , , , , , , , , , , , , {}, {} +//760, OverlordsHelmet, Overlord's Helmet, , , , , , , , , , , , , , , {}, {} +//761, DesertHelmet, Desert Helmet, , , , , , , , , , , , , , , {}, {} +762, TerraniteArrow, Terranite Arrow, 10, 80, 20, 1, 50, 0, 0, 0, 0, 2, 32768, , , 0, {}, {bonus bCritical, 10;} +763, TerraniteOre, Terranite Ore, 3, 500, 250, 40, , , , , , , , , , , {}, {} +//764, SailorHat, Sailor Hat, , , , , , , , , , , , , , , {}, {} +//765, CaptainsHat, Captain's Hat, , , , , , , , , , , , , , , {}, {} +766, TerraniteHelmet, Terranite Helmet, 5, 30000, 3000, 300, , 15, , -12, 0, 2, 256, , 0, 0, {}, {bonus bMdef, 5;} +767, TerraniteChestArmor, Terranite Chest Armor, 5, 100000, 3000, 800, , 20, , -70, 0, 2, 512, , 0, 0, {}, {bonus bDex, 1;bonus bMdef, 10;} +768, TerraniteLegs, Terranite Legs, 5, 10000, 3000, 30, , 5, , -8, 0, 2, 1, , 0, 0, {}, {bonus bAgi, 1;bonus bMdef, 5;} +769, GuyFawkesMask, Guy Fawkes Mask, 5, 1000, 500, 50, , 3, , 0, 0, 2, 256, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +770, FairyHat, Fairy Hat, 5, 2000, 1000, 20, , 5, , -10, 0, 2, 256, , 0, 0, {}, {bonus bLuk, 3;} +771, Miniskirt, Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +772, WispPowder, Wisp Powder, 3, 700, 350, 3, , , , , , , , , , , {}, {} +773, SpectrePowder, Spectre Powder, 3, 700, 350, 3, , , , , , , , , , , {}, {} +774, PoltergeistPowder, Poltergeist Powder, 3, 700, 350, 3, , , , , , , , , , , {}, {} +775, Bone, Bone, 3, 140, 70, 10, , , , , , , , , , , {}, {} +776, Skull, Skull, 3, 900, 450, 30, , , , , , , , , , , {}, {} +777, RottenRags, Rotten Rags, 3, 100, 50, 15, , , , , , , , , , , {}, {} +778, DiseasedHeart, Diseased Heart, 3, 180, 90, 10, , , , , , , , , , , {}, {} +779, UndeadEar, Undead Ear, 3, 30, 15, 5, , , , , , , , , , , {}, {} +780, UndeadEye, Undead Eye, 3, 30, 15, 3, , , , , , , , , , , {}, {} +//781, WitchDoctorsMask, Witch Doctor's Mask, , , , , , , , , , , , , , , {}, {} +782, ForestArmor, Forest Armor, 5, 3000, 1500, 40, , 10, , -20, 0, 2, 512, , 0, 0, {}, {bonus bDex, 3;} +783, ValentineDress, Valentine Dress, 5, 100000, 50000, 35, , 15, , 3, 0, 2, 512, , 0, 0, {}, {} +784, ZombieNachos, Zombie Nachos, 0, 100, 30, 5, , , , , , 2, , , 0, , {itemheal 60, 0;}, {}, +785, LadyFingers, Lady Fingers, 0, 70, 25, 5, , , , , , 2, , , 0, , {itemheal 40, 0;}, {}, +786, JellAhh, Jell-Ahh, 0, 80, 30, 5, , , , , , 2, , , 0, , {itemheal 50, 0;}, {}, +787, Snapple, Snapple, 0, 110, 55, 5, , , , , , 2, , , 0, , {itemheal 70, 0;}, {}, +788, BeetleJuice, Beetle Juice, 0, 80, 30, 5, , , , , , 2, , , 0, , {itemheal 50, 0;}, {}, +789, GutBuster, Gut Buster Ale, 0, 100, 30, 5, , , , , , 2, , , 0, , {itemheal 60, 0;}, {}, +790, BloodWine, Blood Wine, 0, 150, 50, 5, , , , , , 2, , , 0, , {itemheal 100, 0;}, {}, +791, YetiSkinShirt, Yeti Skin Shirt, 5, 20000, 10000, 20, , 12, , -12, 0, 2, 512, , 0, 0, {}, {}, , +792, BrassPlateBoots, Brass Plate Boots, 5, 8000, 500, 30, , 1, , -2, 0, 2, 64, , 0, 0, {}, {}, , +793, BrassPlateChest, Brass Plate Chest, 5, 100000, 3000, 2000, , 25, , -170, 0, 2, 512, , 0, 0, {}, {}, , +794, BrassPlateGloves, Brass Plate Gloves, 5, 6000, 2000, 40, , 4, , -20, 0, 2, 4, , 0, 0, {}, {}, , +795, BrassPlateHelmet, Brass Plate Helmet, 5, 15000, 1500, 400, , 15, , -30, 0, 2, 256, , 0, 0, {}, {}, , +796, BrassPlateLegs, Brass Plate Legs, 5, 2000, 1000, 150, , 6, , -12, 0, 2, 1, , 0, 0, {}, {}, , +797, BrassShield, Brass Shield, 5, 40000, 3000, 2500, , 20, , -200, 0, 2, 32, , , 0, {}, {}, , +798, SorcererRobeRed, Sorcerer Robe Red, 5, 8000, 4000, 5, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;}, , +799, MylarinDust, Mylarin Dust, 3, 10000, 5000, 3, , , , , , 2, , , 0, 0, {}, {} +800, BowlerHatBrown, Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +801, PinkieHelmet, Pinkie Helmet, 5, 20000, 1500, 800, , 10, , -20, 0, 2, 256, , 0, 0, {}, {bonus bLuk, 1;} , +802, EasterBasket, Easter Basket, 3, 20, 10, 10, , , , , , 2, , , , , {}, {}, , +803, GrassLiner, Grass Liner, 3, 20, 10, 5, , , , , , 2, , , , , {}, {}, , +804, JellyBeans, Jelly Beans, 3, 20, 10, 2, , , , , , 2, , , , , {}, {}, , +805, ChocolateMouboo, Chocolate Mouboo, 3, 20, 10, 3, , , , , , 2, , , , , {}, {}, , +806, ReedBundle, Reed Bundle, 3, 20, 10, 7, , , , , , 2, , , , , {}, {}, , +807, GrassSeed, Grass Seed, 3, 20, 10, 1, , , , , , 2, , , , , {}, {}, , +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +808, GreyWarpTowel, Hitchhiker's Towel, 3, 1000, 500, 20, , , , , , , , , , , {}, {} +809, WhiteWarpTowel, White Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useWhiteWarpTowel";}, {} +810, RedWarpTowel, Red Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useRedWarpTowel";}, {} +811, GreenWarpTowel, Green Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useGreenWarpTowel";}, {} +812, BlueWarpTowel, Blue Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useBlueWarpTowel";}, {} +813, YellowWarpTowel, Yellow Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useYellowWarpTowel";}, {} +814, PurpleWarpTowel, Purple Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "usePurpleWarpTowel";}, {} +815, OrangeWarpTowel, Orange Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useOrangeWarpTowel";}, {} +816, PinkWarpTowel, Pink Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "usePinkWarpTowel";}, {} +817, TealWarpTowel, Teal Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useTealWarpTowel";}, {} +818, LimeWarpTowel, Lime Hitchhiker's Towel, 0, 1000, 500, 30, , , , , , 2, , , 0, , {callfunc "useLimeWarpTowel";}, {} +819, GemPowderWhite, Diamond Powder, 3, 1000, 500, 5, , , , , , , , , , , {}, {} +820, GemPowderRed, Ruby Powder, 3, 1000, 500, 5, , , , , , , , , , , {}, {} +821, GemPowderGreen, Emerald Powder, 3, 1000, 500, 5, , , , , , , , , , , {}, {} +822, GemPowderBlue, Sapphire Powder, 3, 1000, 500, 5, , , , , , , , , , , {}, {} +823, GemPowderYellow, Topaz Powder, 3, 1000, 500, 5, , , , , , , , , , , {}, {} +824, GemPowderPurple, Amethyst Powder, 3, 1000, 500, 5, , , , , , , , , , , {}, {} + +// Add new entries above here. For dyed entries, add to the bottom of the 2000s. + +1198, JackOSoul, Jack O Soul, 3, 100000, 1, 1, , , , , , , , , , , {}, {} +1199, Arrow, Arrow, 10, 2, 1, 1, 20, 0, 0, , 0, 2, 32768, , , , {}, {} +1200, Bow, Bow, 4, 1000, 500, 20, 20, , 5, , 0, 2, 34, 1, 4, 11, {}, {} +1201, Knife, Knife, 4, 50, 25, 120, 5, , 1, , 0, 2, 2, 1, 1, 1, {}, {} +1202, CottonShirt, Cotton Shirt, 5, 10, 5, 13, , 2, , -2, 0, 2, 512, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +1203, RangerHat, Ranger Hat, 5, 1000, 500, 20, , 2, , -1, 0, 2, 256, , 0, 0, {}, {} +1204, AntlerHat, Antler Hat, 5, 1000, 500, 15, , 4, , 2, 0, 2, 256, , 0, 0, {}, {} +1205, ChristmasTreeHat, Christmas Tree Hat, 5, 2000, 1000, 20, , 2, , 4, 0, 2, 256, , 0, 0, {}, {} +1206, SantaBeardHat, Santa Beard Hat, 5, 1000, 500, 20, , 5, , 2, 0, 2, 256, , 0, 0, {}, {} +1207, RedChristmasStocking, Red Christmas Stocking, 3, 80, 40, 10, , , , , , , , , , , {}, {} +1208, RedEasterEgg, Red Easter Egg, 3, 80, 40, 10, , , , , , , , , , , {}, {} +1209, GreenEasterEgg, Green Easter Egg, 3, 80, 40, 10, , , , , , , , , , , {}, {} +1210, BlueEasterEgg, Blue Easter Egg, 3, 80, 40, 10, , , , , , , , , , , {}, {} +1211, YellowEasterEgg, Yellow Easter Egg, 3, 80, 40, 10, , , , , , , , , , , {}, {} +1212, PinkEasterEgg, Pink Easter Egg, 3, 80, 40, 10, , , , , , , , , , , {}, {} +1213, TealEasterEgg, Teal Easter Egg, 3, 80, 40, 10, , , , , , , , , , , {}, {} +1214, BunnyEars, Bunny Ears, 5, 5000, 2000, 20, , 10, , 1, 0, 2, 256, , 0, 0, {}, {} +1215, ToySabre, Toy Sabre, 4, 50, 25, 1, 1, , 1, , 0, 2, 2, 1, 1, 1, {}, {} +1216, MoubooHead, Mouboo Head, 5, 10, 1, 80, , 1, , 0, 0, 2, 256, , 0, 0, {}, {} +1217, CatEars, Cat Ears, 5, 100, 50, 20, , 1, , 1, 0, 2, 256, , 0, 0, {}, {bonus bAgi, 3;} +1218, PaperBag, Paper Bag, 5, 1000, 5, 10, , 1, , -1, 0, 2, 256, , 0, 0, {}, {bonus bAgi, -1;} +1219, MoubootaurHead, Moubootaur Head, 5, 10, 1, 80, , 1, , 0, 0, 2, 256, , 0, 0, {}, {set@minLvl, 1;callfunc "RestrictedItem";} +1220, BunchOfParsley, Bunch of Parsley, 5, 3, 1, 1, , 1, , 0, 0, 2, 256, , 0, 0, {}, {bonus bDeaf, 1;} +1221, SkullMask, Skull Mask, 5, 10000, 5000, 150, , 3, , 5, 0, 2, 256, , 0, 0, {}, {} +//1222, SmallPieceOfClay, Small Piece of Clay, , , , , , , , , , , , , , , {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +//1223, BigPieceOfWhiteClay, Big Piece of White Clay, , , , , , , , , , , , , , , {}, {} +//1224, ScrollOfPaper, Scroll of Paper, , , , , , , , , , , , , , , {}, {} +//1225, FireScroll, Fire Scroll, , , , , , , , , , , , , , , {}, {} +//1226, SilverBell, Silver Bell, , , , , , , , , , , , , , , {}, {} +//1227, EnchantersAmulet, Enchanter's Amulet, , , , , , , , , , , , , , , {}, {} +//1228, SilverFourLeafAmulet, Silver Four-Leaf Amulet, , , , , , , , , , , , , , , {}, {} +1229, CaramelApple, Caramel Apple, 0, 500, 75, 5, , , , , , 2, , , 0, , {itemheal 1000, 0;}, {} +1230, LollipopColor1, Booberry Blue Lollipop, 0, 20, 50, 1, , , , , , 2, , , 0, , {itemheal 800, 0;}, {} +1231, LollipopColor2, Ghastly Green Lollipop, 0, 20, 50, 1, , , , , , 2, , , 0, , {itemheal 800, 0;}, {} +1232, LollipopColor3, Blood Red Lollipop, 0, 20, 50, 1, , , , , , 2, , , 0, , {itemheal 800, 0;}, {} +1233, FakeFangs, Cheap Plastic Fangs, 3, 20, 10000, 1, , , , , , 2, , , 0, , {}, {} +1234, RedOrnament, Red Christmas Ornament, 3, 5000, 1, 1, , , , , , 2, , , 0, , {}, {} +1235, YellowOrnament, Yellow Christmas Ornament, 3, 5000, 1, 1, , , , , , 2, , , 0, , {}, {} +1236, GreenOrnament, Green Christmas Ornament, 3, 5000, 1, 1, , , , , , 2, , , 0, , {}, {} +1237, AquaOrnament, Aqua Christmas Ornament, 3, 5000, 1, 1, , , , , , 2, , , 0, , {}, {} +1238, BlueOrnament, Blue Christmas Ornament, 3, 5000, 1, 1, , , , , , 2, , , 0, , {}, {} +1239, MagentaOrnament, Magenta Christmas Ornament, 3, 5000, 1, 1, , , , , , 2, , , 0, , {}, {} +1240, SantaSnowGlobe, Santa Snow Globe, 3, 7500, 5000, 1, , , , , , 2, , , 0, , {}, {} +1241, SnowmanSnowGlobe, Snowman Snow Globe, 3, 7500, 5000, 1, , , , , , 2, , , 0, , {}, {} +1242, SnowGoggles, Snow Goggles, 5, 7500, 5000, 10, , 5, , -2, 0, 2, 256, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +//1243, RESERVED, , , , , , , , , , , , , , , , {}, {}, , +1244, DarkTalisman, Dark Talisman, 5, 0, 0, 0, , 30, , 100, 0, 2, 512, , 0, 0, {}, {set@minLvl, 1;callfunc "RestrictedItem"; set @val, getopt2; if(!(@val&1024))setopt2 getopt2 | 1024; bonus bMaxHp, 30000; bonus bFlee, -150;} +1245, BentNeedle, Bent Needle, 3, 700, 1, 3, , , , , , 2, , , 0, 0, {}, {} +1246, DarkEasterEgg, Dark Easter Egg, 3, 700, 50, 10, , , , , , 2, , , 0, 0, {}, {} +1247, HeartGlasses, Heart Glasses, 5, 7500, 5000, 20, , 4, , 5, 0, 2, 256, , 0, 0, {}, {} +1248, Blueberries, Blueberries, 0, 50, 25, 6, , , , , , 2, , , 0, , {itemheal 200, 0;}, {} +1249, StrangeCoin, Strange Coin, 3, 7000, 5000, 3, , , , , , 2, , , 0, 0, {}, {} +1250, Pear, Pear, 0, 50, 25, 7, , , , , , 2, , , 0, , {itemheal 150, 0;}, {} +1251, Plum, Plum, 0, 50, 25, 10, , , , , , 2, , , 0, , {itemheal 100, 0;}, {} +1252, Cherry, Cherry, 0, 50, 25, 5, , , , , , 2, , , 0, , {itemheal 50, 0;}, {} +1253, GoldenDeliciousApple, Golden Delicious Apple, 0, 1000, 500, 30, , , , , , 2, , , 0, , {itemheal 200, 0;}, {} +1254, DarkPetal, Dark Petal, 3, 15000, 8000, 250, , , , , , 2, , , 0, , {}, {} +1255, WhiteRabbitEars, White Rabbit Ears, 5, 7000, 5000, 20, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +1256, EggshellHat, Eggshell Hat, 5, 7000, 5000, 15, , 12, , 0, 0, 2, 256, , 1, 0, {}, {bonus bAgi, -1;} +1257, FlawedLens, Flawed Lens, 3, 10000, 5000, 3, , , , , , 2, , , 0, 0, {}, {} +1258, Honey, Honey, 0, 100, 80, 20, , , , , , 2, , , , , {itemheal 45, 0;}, {} +//1259, BeeEgg +//1260, Wax +//1261, Venom +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +//1262, FlowerSeed +//1263, Incubator +//1264, RoyalJelly +//1265, VespaWing +//1266, Hive +//1267, VespaEgg +//1268, LarvaFat +//1269, LarvaPincer +//1270, FrogEgg +//1271, PondScum +//1272, FrogLeg +//1273, TrollStone +//1274, SmallClub +//1275, LoinCloth +1276, OperaMask, Opera Mask, 5, 1000, 500, 50, , 3, , 0, 0, 2, 256, , 0, 0, {}, {} +1277, JesterMask, Jester Mask, 5, 1000, 500, 50, , 3, , 0, 0, 2, 256, , 0, 0, {}, {} +1278, WitchHat, Witch Hat, 5, 1000, 500, 50, , 3, , 0, 0, 2, 256, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +1279, GoblinMask, Goblin Mask, 5, 1000, 500, 50, , 3, , 0, 0, 2, 256, , 0, 0, {}, {} +1280, Scissors, Scissors, 0, 1000, 500, 120, , , , , , 2, , , 0, , {callfunc "useScissors";}, {} +1281, ShockSweet, Shock Sweet, 0, 1000, 500, 5, , , , , , 2, , , 0, , {callfunc "useShockSweet";}, {} +1282, BoneArrows, Bone Arrows, 10, 50, 20, 0, 55, , , , , 2, 32768, , , , {}, {bonus bCritical, 1; } +// No new additions to the 1000s please. Add to the bottom of the < 1000s for regular entries and the 2000s for dyed entries. +2050, RedCottonShirt, Red Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2051, GreenCottonShirt, Green Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2052, DarkBlueCottonShirt, Dark Blue Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2053, YellowCottonShirt, Yellow Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2054, LightBlueCottonShirt, Light Blue Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2055, PinkCottonShirt, Pink Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2056, BlackCottonShirt, Black Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2057, OrangeCottonShirt, Orange Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2058, PurpleCottonShirt, Purple Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2059, DarkGreenCottonShirt, Dark Green Cotton Shirt, 5, 10, 5, 20, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2060, RedVNeckSweater, Red V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2061, GreenVNeckSweater, Green V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2062, DarkBlueVNeckSweater, Dark Blue V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2063, YellowVNeckSweater, Yellow V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2064, LightBlueVNeckSweater, Light Blue V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +2065, PinkVNeckSweater, Pink V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2066, BlackVNeckSweater, Black V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2067, OrangeVNeckSweater, Orange V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2068, PurpleVNeckSweater, Purple V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2069, DarkGreenVNeckSweater, Dark Green V-Neck Sweater, 5, 6000, 3000, 35, , 8, , -16, 0, 2, 512, , 0, 0, {}, {} +2070, RedTurtleneckSweater, Red Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2071, GreenTurtleneckSweater, Green Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2072, DarkBlueTurtleneckSweater, Dark Blue Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2073, YellowTurtleneckSweater, Yellow Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2074, LightBlueTurtleneckSweater, Light Blue Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2075, PinkTurtleneckSweater, Pink Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2076, BlackTurtleneckSweater, Black Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2077, OrangeTurtleneckSweater, Orange Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2078, PurpleTurtleneckSweater, Purple Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2079, DarkGreenTurtleneckSweater, Dark Green Turtleneck Sweater, 5, 2000, 1000, 35, , 6, , -12, 0, 2, 512, , 0, 0, {}, {} +2080, RedSilkRobe, Red Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2081, GreenSilkRobe, Green Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2082, DarkBlueSilkRobe, Dark Blue Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2083, YellowSilkRobe, Yellow Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2084, LightBlueSilkRobe, Light Blue Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +2085, PinkSilkRobe, Pink Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2086, BlackSilkRobe, Black Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2087, OrangeSilkRobe, Orange Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2088, PurpleSilkRobe, Purple Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2089, DarkGreenSilkRobe, Dark Green Silk Robe, 5, 8000, 4000, 30, , 5, , 0, 0, 2, 512, , 0, 0, {}, {} +2090, RedTankTop, Red Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2091, GreenTankTop, Green Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2092, DarkBlueTankTop, Dark Blue Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2093, YellowTankTop, Yellow Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2094, LightBlueTankTop, Light Blue Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2095, PinkTankTop, Pink Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2096, BlackTankTop, Black Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2097, OrangeTankTop, Orange Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2098, PurpleTankTop, Purple Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2099, DarkGreenTankTop, Dark Green Tank Top, 5, 10, 5, 12, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2100, RedCottonSkirt, Red Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2101, GreenCottonSkirt, Green Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2102, DarkBlueCottonSkirt, Dark Blue Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2103, YellowCottonSkirt, Yellow Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2104, LightBlueCottonSkirt, Light Blue Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +2105, PinkCottonSkirt, Pink Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2106, BlackCottonSkirt, Black Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2107, OrangeCottonSkirt, Orange Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2108, PurpleCottonSkirt, Purple Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2109, DarkGreenCottonSkirt, Dark Green Cotton Skirt, 5, 1000, 500, 20, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2110, RedCottonShorts, Red Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2111, GreenCottonShorts, Green Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2112, DarkBlueCottonShorts, Dark Blue Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2113, YellowCottonShorts, Yellow Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2114, LightBlueCottonShorts, Light Blue Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2115, PinkCottonShorts, Pink Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2116, BlackCottonShorts, Black Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2117, OrangeCottonShorts, Orange Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2118, PurpleCottonShorts, Purple Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2119, DarkGreenCottonShorts, Dark Green Cotton Shorts, 5, 1000, 500, 20, , 2, , -4, 0, 2, 1, , 1, 0, {}, {} +2120, RedShortTankTop, Red Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2121, GreenShortTankTop, Green Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2122, DarkBlueShortTankTop, Dark Blue Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2123, YellowShortTankTop, Yellow Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2124, LightBlueShortTankTop, Light Blue Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +2125, PinkShortTankTop, Pink Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2126, BlackShortTankTop, Black Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2127, OrangeShortTankTop, Orange ShortTank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2128, PurpleShortTankTop, Purple Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2129, DarkGreenShortTankTop, Dark Green Short Tank Top, 5, 10, 5, 8, , 2, , -4, 0, 2, 512, , 0, 0, {}, {} +2130, RedDesertHat, Red Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2131, GreenDesertHat, Green Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2132, DarkBlueDesertHat, Dark Blue Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2133, YellowDesertHat, Yellow Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2134, LightBlueDesertHat, Light Blue Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2135, PinkDesertHat, Pink Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2136, BlackDesertHat, Black Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2137, OrangeDesertHat, Orange Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2138, PurpleDesertHat, Purple Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2139, DarkGreenDesertHat, Dark Green Desert Hat, 5, 5000, 1000, 20, , 3, , -1, 0, 2, 256, , 0, 0, {}, {} +2140, RedCottonHeadband, Red Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2141, GreenCottonHeadband, Green Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2142, DarkBlueCottonHeadband, Dark Blue Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2143, YellowCottonHeadband, Yellow Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2144, LightBlueCottonHeadband, Light Blue Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +2145, PinkCottonHeadband, Pink Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2146, BlackCottonHeadband, Black Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2147, OrangeCottonHeadband, Orange Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2148, PurpleCottonHeadband, Purple Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2149, DarkGreenCottonHeadband, Dark Green Cotton Headband, 5, 3000, 500, 5, , 2, , 0, 0, 2, 256, , 0, 0, {}, {} +2150, RedCottonBoots, Red Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2151, GreenCottonBoots, Green Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2152, DarkBlueCottonBoots, Dark Blue Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2153, YellowCottonBoots, Yellow Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2154, LightBlueCottonBoots, Light Blue Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2155, PinkCottonBoots, Pink Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2156, BlackCottonBoots, Black Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2157, OrangeCottonBoots, Orange Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2158, PurpleCottonBoots, Purple Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2159, DarkGreenCottonBoots, Dark Green Cotton Boots, 5, 2000, 500, 30, , 1, , 1, 0, 2, 64, , 0, 0, {}, {} +2160, RedCottonGloves, Red Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2161, GreenCottonGloves, Green Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2162, DarkBlueCottonGloves, Dark Blue Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2163, YellowCottonGloves, Yellow Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2164, LightBlueCottonGloves, Light Blue Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +2165, PinkCottonGloves, Pink Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2166, BlackCottonGloves, Black Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2167, OrangeCottonGloves, Orange Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2168, PurpleCottonGloves, Purple Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2169, DarkGreenCottonGloves, Dark Green Cotton Gloves, 5, 2000, 500, 20, , 1, , -10, 0, 2, 4, , 0, 0, {}, {} +2170, RedMiniskirt, Red Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2171, GreenMiniskirt, Green Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2172, DarkBlueMiniskirt, Dark Blue Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2173, YellowMiniskirt, Yellow Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2174, LightBlueMiniskirt, Light Blue Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2175, PinkMiniskirt, Pink Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2176, BlackMiniskirt, Black Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2177, OrangeMiniskirt, Orange Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2178, PurpleMiniskirt, Purple Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +2179, DarkGreenMiniskirt, Dark Green Miniskirt, 5, 1000, 500, 8, , 4, , -8, 0, 2, 1, , 1, 0, {}, {} +//2180, RESERVED, Red Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Green Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Dark Blue Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Yellow Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Light Blue Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Pink Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Black Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Orange Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Purple Trousers, , , , , , , , , , , , , , , +//2180, RESERVED, Dark Green Trousers, , , , , , , , , , , , , , , +2190, RedRabbitEars, Red Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2191, GreenRabbitEars, Green Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2192, DarkBlueRabbitEars, Dark Blue Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2193, YellowRabbitEars, Yellow Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2194, LightBlueRabbitEars, Light Blue Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2195, PinkRabbitEars, Pink Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2196, BlackRabbitEars, Black Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2197, OrangeRabbitEars, Orange Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2198, PurpleRabbitEars, Purple Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2199, DarkGreenRabbitEars, Dark Green Rabbit Ears, 5, 7000, 5000, 15, , 5, , 4, 0, 2, 256, , 1, 0, {}, {} +2200, RedWizardHat, Red Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2201, GreenWizardHat, Green Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2202, DarkBlueWizardHat, Dark Blue Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2203, YellowWizardHat, Yellow Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2204, LightBlueWizardHat, Light Blue Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +2205, PinkWizardHat, Pink Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2206, BlackWizardHat, Red Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2207, OrangeWizardHat, Orange Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2208, PurpleWizardHat, Purple Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2209, DarkGreenWizardHat, Dark Green Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +2210, RedBowlerHat, Red Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2211, GreenBowlerHat, Green Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2212, DarkBlueBowlerHat, Dark Blue Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2213, YellowBowlerHat, Yellow Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2214, LightBlueBowlerHat, Light Blue Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2215, PinkBowlerHat, Pink Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2216, BlackBowlerHat, Black Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2217, OrangeBowlerHat, Orange Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2218, PurpleBowlerHat, Purple Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2219, DarkGreenBowlerHat, Dark Green Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2220, RedSorcererRobeRed, Red Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2221, GreenSorcererRobeRed, Green Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2222, DarkBlueSorcererRobeRed, Dark Blue Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2223, YellowSorcererRobeRed, Yellow Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2224, LightBlueSorcererRobeRed, Light Blue Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2225, PinkSorcererRobeRed, Pink Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2226, BlackSorcererRobeRed, Black Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2227, OrangeSorcererRobeRed, Orange Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2228, PurpleSorcererRobeRed, Purple Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2229, DarkGreenSorcererRobeRed, Dark Green Sorcerer Robe Red, 5, 8000, 4000, 30, , 5, , 20, 0, 2, 512, , 0, 0, {}, {bonus bAgi, 1;} +2230, RedBowlerHatBrown, Red Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2231, GreenBowlerHatBrown, Green Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2232, DarkBlueBowlerHatBrown, Dark Blue Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2233, YellowBowlerHatBrown, Yellow Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2234, LightBlueBowlerHatBrown, Light Blue Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2235, PinkBowlerHatBrown, Pink Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2236, BlackBowlerHatBrown, Black Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2237, OrangeBowlerHatBrown, Orange Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2238, PurpleBowlerHatBrown, Purple Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +2239, DarkGreenBowlerHatBrown, Dark Green Bowler Hat Brown, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} + +// Add dyed entries above here. For regular entries, please use the < 1000s. + +3000, JackOLantern, Jack-o-Lantern, 3, 200, 100, 1000, , , , , , , , , , , {}, {} +3001, RubberBat, Rubber Bat, 3, 200, 100, 30, , , , , , , , , , , {}, {} +3002, RealisticBrain, Realistic Brain, 3, 200, 100, 50, , , , , , , , , , , {}, {} +3003, JarofBlood, Jar of Blood, 3, 200, 100, 375, , , , , , , , , , , {}, {} +3004, Tongue, Tongue, 3, 5, 1, 5, , , , , , , , , , , {}, {} +//3005 +3006, TonoriDelight, Tonori Delight, 0, 5, 1, 2, , , , , , 2, , , 0, , {}, {} +3007, Marshmallow, Marshmallow, 0, 5, 1, 2, , , , , , 2, , , 0, , {}, {} +//3008 +3009, JellySkull, Jelly Skull, 0, 5, 1, 2, , , , , , 2, , , 0, , {}, {} +3010, CandyPumpkin, Candy Pumpkin, 0, 5, 1, 2, , , , , , 2, , , 0, , {}, {} +3011, PumpkinSeeds, Pumpkin Seeds, 3, 5, 1, 1, , , , , , , , , , , {}, {} +// No new additions to the 3000s please. Add to the bottom of the < 1000s for regular entries and the 2000s for dyed entries. +4000, AngryScorpionStinger, Angry Scorpion Stinger, 3, 50, 25, 1, , , , , , , , , , , {}, {} +4001, Coal, Coal, 3, 250, 100, 20, , , , , , , , , , , {}, {} +4002, GemRawWhite, Diamond, 3, 5000, 2500, 20, , , , , , , , , , , {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +4003, GemRawRed, Ruby, 3, 5000, 2500, 20, , , , , , , , , , , {}, {} +4004, GemRawGreen, Emerald, 3, 5000, 2500, 20, , , , , , , , , , , {}, {} +4005, GemRawBlue, Sapphire, 3, 5000, 2500, 20, , , , , , , , , , , {}, {} +4006, GemRawYellow, Topaz, 3, 5000, 2500, 20, , , , , , , , , , , {}, {} +4007, GemRawPurple, Amethyst, 3, 5000, 2500, 20, , , , , , , , , , , {}, {} +4008, RingGemWhite, Diamond Ring, 5, 5000, 2500, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {bonus bVit, 1;} +4009, RingGemRed, Ruby Ring, 5, 5000, 2500, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {bonus bStr, 1;} +4010, RingGemGreen, Emerald Ring, 5, 5000, 2500, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {bonus bLuk, 1;} +4011, RingGemBlue, Sapphire Ring, 5, 5000, 2500, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {bonus bInt, 1;} +4012, RingGemYellow, Topaz Ring, 5, 5000, 2500, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {bonus bAgi, 1;} +4013, RingGemPurple, Amethyst Ring, 5, 5000, 2500, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {bonus bDex, 1;} +4014, RingSimple, Simple Ring, 5, 5000, 2500, 1, , 0, , 0, 0, 2, 128, , 0, 0, {}, {} +4015, IngotIron, Iron Ingot, 3, 500, 250, 200, , , , , , , , , , , {}, {} +4016, BanditHood, Bandit Hood, 3, 100, 50, 50, , , , , , , , , , , {}, {} +4017, RedPowder, Red Powder, 3, 3000, 5, 10, , , , , , 0, , , 0, , {}, {} +4018, YellowPowder, Yellow Powder, 3, 3000, 5, 10, , , , , , 0, , , 0, , {}, {} +4019, BluePowder, Blue Powder, 3, 3000, 5, 10, , , , , , 0, , , 0, , {}, {} +4020, CandleHelmet, Candle Helmet, 5, 20000, 2000, 450, , 16, , -25, 0, 2, 256, , 0, 0, {}, {bonus bInt, 1;bonus bAgi, -1;} +4021, YellowPresentBox, Yellow Present Box, 3, 20, 10, 10, , , , , , 2, , , 0, , {}, {} +4022, WhitePresentBox, White Present Box, 3, 20, 10, 10, , , , , , 2, , , 0, , {}, {} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +4023, AnimalBones, Animal Bones, 3, 50, 25, 1, , , , , , , , , , , {}, {} +4024, FrozenYetiTear, Frozen Yeti Tear, 3, 500, 250, 1, , , , , , , , , , , {}, {} +4025, YetiClaw, Yeti Claw, 3, 150, 75, 1, , , , , , , , , , , {}, {} +4026, IceCube, Ice Cube, 3, 200, 100, 1, , , , , , , , , , , {}, {} +4027, YetiMask, Yeti Mask, 5, 6000, 3000, 10, , 4, , -10, 0, 2, 256, , 0, 0, {}, {} +4028, WizardHat, Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} +4029, DementiaPotion, Dementia Potion, 3, 20, 10, 10, , , , , , 2, , , 0, , {}, {} +4030, BowlerHat, Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} +4031, Monocle, Monocle, 5, 5000, 2500, 20, , 2, , 0, 0, 2, 256, , 0, 0, {}, {bonus bDex, 1; bonus bLuk, 1; bonus bCritical, 10;} +// No new additions to the 4000s please. Add to the bottom of the < 1000s for regular entries and the 2000s for dyed entries. diff --git a/world/map/db/item_descriptions.txt b/world/map/db/item_descriptions.txt new file mode 100644 index 00000000..14d2ed25 --- /dev/null +++ b/world/map/db/item_descriptions.txt @@ -0,0 +1,105 @@ +// File created using Spamrat's Athena Database Editor v1.4.4 +501#» +502#» +503#» +504#» +505#» +506#» +507#» +508#» +509#» +510#» +511#» +512#» +513#» +514#» +515#» +516#» + +517#» + + +518#» + + + +519#» + +520#» + + +521#» + + +522#» + +523#» + +524#»A fancy hat +525#»A miner hat +526#» + +527#» + + + +528#»Boots +529#» + +530#» + +531#» +Boots +532#» + +Boots +533#» +534#» +535#» +536#» + + + +537#» + + +538#» +539#» +540#» +541#» +542#» +543#» +544#» +545#» +546#» +547#» A spear +548#» A pickaxe +549#»An axe +550#»An axe usually used by blacksmiths +551#»An hint +552#»An hint +553#»An hint +554#»An hint +555#»An hint +556#»An hint +557#»An hint +558#»An hint +559#»An hint +560#»An hint +561#»Sabre sword +562#»A chicken leg +563#» + +Boots +564#» + +565#» +A chicken leg +566#» +567#» + +568#»» +1199#» +1200#» +1201#» +1202#» diff --git a/world/map/db/item_giftbox.txt b/world/map/db/item_giftbox.txt new file mode 100644 index 00000000..92ed47f5 --- /dev/null +++ b/world/map/db/item_giftbox.txt @@ -0,0 +1,7 @@ +// File created using Spamrat's Athena Database Editor v1.4.4 +// +// ƒvƒŒƒ[ƒ“ƒgƒ{ƒbƒNƒX‚©‚瓾‚ç‚ê‚éƒAƒCƒeƒ€‚ðÝ’èB +// ItemID, ItemName(Dummy), Rate +// ƒAƒCƒeƒ€IDAƒAƒCƒeƒ€‚Ì–¼‘O(ƒ_ƒ~[)AŠm—¦(*10000)‚ð‚µ‚½•¨‚Å‚·B500000‚È‚ç50%‚Å1000000‚È‚ç100%‚Å‚·B) +// ƒAƒCƒeƒ€ID‚ª0‚Ìꇊm—¦‚ðƒAƒCƒeƒ€‚Ì‘I‘ð‚ÉŽ¸”s‚µ‚½Žž‚É“¾‚ç‚ê‚éƒfƒtƒHƒ‹ƒgƒAƒCƒeƒ€‚ÌID‚Æ‚µ‚Ä”FŽ¯‚µ‚Ü‚·B(•¡”‚Å‚ ‚éê‡ÅŒã‚Ì•¨‚¾‚¯—LŒø‚Å‚·B) +// diff --git a/world/map/db/item_noequip.txt b/world/map/db/item_noequip.txt new file mode 100644 index 00000000..5eb36973 --- /dev/null +++ b/world/map/db/item_noequip.txt @@ -0,0 +1,4 @@ +// The equipment restriction file +// here equipment at PvP and GvG +// where it is possible to restrict, the prescribed form: < ItemID> < Mode> +// mode = 1- So with PvP restriction, 2- GvG restriction, 3- PvP and GvG which restriction diff --git a/world/map/db/item_scroll.txt b/world/map/db/item_scroll.txt new file mode 100644 index 00000000..00b50386 --- /dev/null +++ b/world/map/db/item_scroll.txt @@ -0,0 +1,5 @@ +// ŒÃ‚¢Šª•¨‚©‚瓾‚ç‚ê‚éƒAƒCƒeƒ€‚ðÝ’èB +// nameid, item_name(dummy), rate +// ƒAƒCƒeƒ€IDAƒAƒCƒeƒ€‚Ì–¼‘O(ƒ_ƒ~[)AŠm—¦(*10000)‚ð‚µ‚½•¨‚Å‚·B500000‚È‚ç50%‚Å1000000‚È‚ç100%‚Å‚·B) +// ƒAƒCƒeƒ€ID‚ª0‚Ìꇊm—¦‚ðƒAƒCƒeƒ€‚Ì‘I‘ð‚ÉŽ¸”s‚µ‚½Žž‚É“¾‚ç‚ê‚éƒfƒtƒHƒ‹ƒgƒAƒCƒeƒ€‚ÌID‚Æ‚µ‚Ä”FŽ¯‚µ‚Ü‚·B(•¡”‚Å‚ ‚éê‡ÅŒã‚Ì•¨‚¾‚¯—LŒø‚Å‚·B) +0,Jellopy,909 diff --git a/world/map/db/item_violetbox.txt b/world/map/db/item_violetbox.txt new file mode 100644 index 00000000..88bde984 --- /dev/null +++ b/world/map/db/item_violetbox.txt @@ -0,0 +1,7 @@ +// File created using Spamrat's Athena Database Editor v1.4.4 +// +// ŒÃ‚¢Ž‡F‚Ì” ‚©‚瓾‚ç‚ê‚éƒAƒCƒeƒ€‚ðÝ’èB +// ItemID, ItemName(Dummy), Rate +// ƒAƒCƒeƒ€IDAƒAƒCƒeƒ€‚Ì–¼‘O(ƒ_ƒ~[)AŠm—¦(*10000)‚ð‚µ‚½•¨‚Å‚·B500000‚È‚ç50%‚Å1000000‚È‚ç100%‚Å‚·B) +// ƒAƒCƒeƒ€ID‚ª0‚Ìꇊm—¦‚ðƒAƒCƒeƒ€‚Ì‘I‘ð‚ÉŽ¸”s‚µ‚½Žž‚É“¾‚ç‚ê‚éƒfƒtƒHƒ‹ƒgƒAƒCƒeƒ€‚ÌID‚Æ‚µ‚Ä”FŽ¯‚µ‚Ü‚·B(•¡”‚Å‚ ‚éê‡ÅŒã‚Ì•¨‚¾‚¯—LŒø‚Å‚·B) +// diff --git a/world/map/db/job_db1.txt b/world/map/db/job_db1.txt new file mode 100644 index 00000000..4278d78d --- /dev/null +++ b/world/map/db/job_db1.txt @@ -0,0 +1,71 @@ +//weight,hp,hp2,sp,aspd*17(‘fŽè,’ZŒ•,•ÐŽèŒ•,—¼ŽèŒ•,•ÐŽè‘„,—¼Žè‘„,•ÐŽè•€,—¼Žè•€,•ÐŽè“ÝŠí,—¼Žè“ÝŠí,ñ,‹|,’Ü,ŠyŠí,•Ú,–{,ƒJƒ^[ƒ‹) +//x NOV,SWO,MAG,ARC,ACO,MER,THI,KNI,PRI,WIZ,BLA,HUN,ASS,KNIp,CRU,MON,SAG,ROG,ALC,BAR,DAN,CRUp,WED,SNV +20000, 0,500,100, 650, 700, 750,600,2000,2000, 800,2000, 700, 700, 650,900,2000,2000,2000,2000,2000 +28000, 70,500,200, 400, 500, 550, 600, 650, 700, 700, 750, 650, 700,2000,2000,2000,2000,2000,2000,2000 +22000, 30,500,600, 500, 600,2000,2000,2000,2000,2000,2000,2000,2000, 700,2000,2000,2000,2000,2000,2000 +26000, 50,500,200, 400, 600,2000,2000,2000,2000,2000,2000,2000,2000,2000, 700,2000,2000,2000,2000,2000 +24000, 40,500,500, 400,2000,2000,2000,2000,2000,2000,2000, 600, 600, 600,2000,2000,2000,2000,2000,2000 +28000, 40,500,300, 400, 600, 700,2000,2000,2000, 700, 750, 700, 700,2000,2000,2000,2000,2000,2000,2000 +24000, 50,500,200, 400, 500, 650,2000,2000,2000, 800,2000,2000,2000,2000, 800,2000,2000,2000,2000,2000 +28000,150,500,300, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +26000, 75,500,800, 400,2000,2000,2000,2000,2000,2000,2000, 600, 600, 600,2000,2000,2000,2000, 600,2000 +24000, 55,500,900, 500, 575,2000,2000,2000,2000,2000,2000,2000,2000, 625,2000,2000,2000,2000,2000,2000 +30000, 90,500,400, 400, 600, 650,2000,2000,2000, 650, 650, 675, 675,2000,2000,2000,2000,2000,2000,2000 +27000, 85,500,400, 400, 600,2000,2000,2000,2000,2000,2000,2000,2000,2000, 600,2000,2000,2000,2000,2000 +24000,110,500,400, 400, 500, 650,2000,2000,2000, 800,2000,2000,2000,2000,2000,2000,2000,2000,2000, 500 +28000,150,500,300, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +28000,110,700,470, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +26000, 90,650,470, 400,2000,2000,2000,2000,2000,2000,2000, 575, 575, 575,2000, 475,2000,2000,2000,2000 +24000, 75,500,700, 450, 525,2000,2000,2000,2000,2000,2000,2000,2000, 625,2000,2000,2000,2000, 550,2000 +24000, 85,500,500, 400, 500, 550,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000,2000,2000,2000,2000 +30000, 90,500,400, 400, 550, 575,2000,2000,2000, 675, 700, 650, 650,2000,2000,2000,2000,2000,2000,2000 +27000, 75,300,600, 400, 550,2000,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000, 575,2000,2000,2000 +27000, 75,300,600, 400, 550,2000,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000,2000, 575,2000,2000 +28000,110,700,470, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +20000, 0,500,100,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,2000 +20000, 0,500,100, 500, 650, 700,2000,2000,2000, 800,2000, 700, 700, 650,2000,2000,2000,2000,2000,2000 +20000, 0,500,100, 500, 650, 700,2000,2000,2000, 800,2000, 700, 700, 650,2000,2000,2000,2000,2000,2000 +28000, 70,500,200, 400, 500, 550, 600, 650, 700, 700, 750, 650, 700,2000,2000,2000,2000,2000,2000,2000 +22000, 30,500,600, 500, 600,2000,2000,2000,2000,2000,2000,2000,2000, 700,2000,2000,2000,2000,2000,2000 +26000, 50,500,200, 400, 600,2000,2000,2000,2000,2000,2000,2000,2000,2000, 700,2000,2000,2000,2000,2000 +24000, 40,500,500, 400,2000,2000,2000,2000,2000,2000,2000, 600, 600, 600,2000,2000,2000,2000,2000,2000 +28000, 40,500,300, 400, 600, 700,2000,2000,2000, 700, 750, 700, 700,2000,2000,2000,2000,2000,2000,2000 +24000, 50,500,200, 400, 500, 650,2000,2000,2000, 800,2000,2000,2000,2000, 800,2000,2000,2000,2000,2000 +28000,195,500,390, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +26000,97.5,500,1040, 400,2000,2000,2000,2000,2000,2000,2000, 600, 600, 600,2000,2000,2000,2000, 600,2000 +24000,71.5,500,1170, 500, 575,2000,2000,2000,2000,2000,2000,2000,2000, 625,2000,2000,2000,2000,2000,2000 +30000,117,500,520, 400, 600, 650,2000,2000,2000, 650, 650, 675, 675,2000,2000,2000,2000,2000,2000,2000 +27000,110.5,500,520, 400, 600,2000,2000,2000,2000,2000,2000,2000,2000,2000, 600,2000,2000,2000,2000,2000 +24000,143,500,520, 400, 500, 650,2000,2000,2000, 800,2000,2000,2000,2000,2000,2000,2000,2000,2000, 500 +28000,195,500,390, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +28000,143,700,611, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +26000,117,650,611, 400,2000,2000,2000,2000,2000,2000,2000, 575, 575, 575,2000, 475,2000,2000,2000,2000 +24000,97.5,500,910, 450, 525,2000,2000,2000,2000,2000,2000,2000,2000, 625,2000,2000,2000,2000, 550,2000 +24000,110.5,500,650, 400, 500, 550,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000,2000,2000,2000,2000 +30000,117,500,520, 400, 550, 575,2000,2000,2000, 675, 700, 650, 650,2000,2000,2000,2000,2000,2000,2000 +27000,97.5,300,780, 400, 550,2000,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000, 575,2000,2000,2000 +27000,97.5,300,780, 400, 550,2000,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000,2000, 575,2000,2000 +28000,143,700,611, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +20000, 0,500,100, 500, 650, 700,2000,2000,2000, 800,2000, 700, 700, 650,2000,2000,2000,2000,2000,2000 +28000, 70,500,200, 400, 500, 550, 600, 650, 700, 700, 750, 650, 700,2000,2000,2000,2000,2000,2000,2000 +22000, 30,500,600, 500, 600,2000,2000,2000,2000,2000,2000,2000,2000, 700,2000,2000,2000,2000,2000,2000 +26000, 50,500,200, 400, 600,2000,2000,2000,2000,2000,2000,2000,2000,2000, 700,2000,2000,2000,2000,2000 +24000, 40,500,500, 400,2000,2000,2000,2000,2000,2000,2000, 600, 600, 600,2000,2000,2000,2000,2000,2000 +28000, 40,500,300, 400, 600, 700,2000,2000,2000, 700, 750, 700, 700,2000,2000,2000,2000,2000,2000,2000 +24000, 50,500,200, 400, 500, 650,2000,2000,2000, 800,2000,2000,2000,2000, 800,2000,2000,2000,2000,2000 +28000,150,500,300, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +26000, 75,500,800, 400,2000,2000,2000,2000,2000,2000,2000, 600, 600, 600,2000,2000,2000,2000, 600,2000 +24000, 55,500,900, 500, 575,2000,2000,2000,2000,2000,2000,2000,2000, 625,2000,2000,2000,2000,2000,2000 +30000, 90,500,400, 400, 600, 650,2000,2000,2000, 650, 650, 675, 675,2000,2000,2000,2000,2000,2000,2000 +27000, 85,500,400, 400, 600,2000,2000,2000,2000,2000,2000,2000,2000,2000, 600,2000,2000,2000,2000,2000 +24000,110,500,400, 400, 500, 650,2000,2000,2000, 800,2000,2000,2000,2000,2000,2000,2000,2000,2000, 500 +28000,150,500,300, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +28000,110,700,470, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 +26000, 90,650,470, 400,2000,2000,2000,2000,2000,2000,2000, 575, 575, 575,2000, 475,2000,2000,2000,2000 +24000, 75,500,700, 450, 525,2000,2000,2000,2000,2000,2000,2000,2000, 625,2000,2000,2000,2000, 550,2000 +24000, 85,500,500, 400, 500, 550,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000,2000,2000,2000,2000 +30000, 90,500,400, 400, 550, 575,2000,2000,2000, 675, 700, 650, 650,2000,2000,2000,2000,2000,2000,2000 +27000, 75,300,600, 400, 550,2000,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000, 575,2000,2000,2000 +27000, 75,300,600, 400, 550,2000,2000,2000,2000,2000,2000,2000,2000,2000, 650,2000,2000, 575,2000,2000 +28000,110,700,470, 400, 500, 500, 550, 600, 600, 700, 700, 650, 700,2000,2000,2000,2000,2000,2000,2000 + diff --git a/world/map/db/job_db2-2.txt b/world/map/db/job_db2-2.txt new file mode 100644 index 00000000..629e4e2d --- /dev/null +++ b/world/map/db/job_db2-2.txt @@ -0,0 +1,26 @@ +// job_bonus 0-non 1-str 2-agi 3-vit 4-int 5-dex 6-luk +//x NV,SW,MG,AC,AL,MC,TF,KN,PR,WZ,BS,HT,AS,KNp,CR,MO,SA,RG,AM,BA,DC,CRp +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,1,0,0,0,3,0,0,0,5,0,0,0,1,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,2,0,0,1,0,0,5,0,3,0,1,0,3,0,6,0,2,1,0,1,1 +0,4,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,6,0,0,4,0,0,5,0,4,0,2,0,6,0,4,0,4,2,0,6,4 +0,5,0,0,0,1,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,5,0,0,2,0,0,5,0,1,0,1,0,5,0,6,0,3,4,0,2,5 +0,6,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,1,0,0,0,3,0,0,4,0,0,5,0,6,0,2,0,1,0,3,0,4,5,0,1,6 +0,3,0,0,0,5,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,3,0,0,2,0,0,6,0,5,0,1,0,5,0,1,0,6,3,0,1,5 +0,2,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,1,0,0,2,0,0,2,0,1,0,6,0,5,0,3,0,6,1,0,5,2 +1,2,6,5,3,1,1,1,0,2,5,3,4,2,0,5,2,0,1,0,0,3,0,0,1,0,6,5,3,0,5,0,1,0,0,5,2,6,0,3,1,0,3,5,0,1,1,0,5,0,0,1,2,0,0,1,1,3,0,2,0,5,0,1,2,0,4,3,0,1 +4,0,2,3,1,0,4,2,0,0,4,1,5,0,0,5,0,0,2,4,1,3,4,4,0,5,0,5,2,3,1,0,0,4,0,0,5,1,0,6,0,2,5,0,1,5,4,0,6,3,3,0,0,0,2,5,4,3,0,1,4,5,0,0,2,4,3,2,0,4 +4,5,3,0,4,0,0,2,5,4,0,6,0,4,0,0,5,2,4,1,0,5,5,4,0,2,0,4,3,0,5,4,0,2,0,0,4,4,4,1,6,0,5,0,0,4,3,0,4,2,0,0,3,0,4,2,6,0,4,1,5,4,0,0,2,3,5,0,2,4 +5,1,1,4,0,5,2,6,3,0,0,5,3,0,4,6,1,0,2,2,0,4,5,0,0,1,0,6,3,0,2,0,1,4,0,2,0,5,6,0,5,0,0,6,6,0,5,3,0,4,0,1,0,0,0,5,5,2,0,3,4,5,0,2,3,6,6,0,0,5 +5,2,5,5,4,2,0,1,0,2,2,3,0,6,0,5,5,0,0,4,2,5,0,1,6,5,0,2,0,5,6,3,2,0,5,6,0,2,0,5,0,4,2,0,1,5,0,2,0,6,5,0,0,4,3,0,6,2,0,5,1,6,0,0,4,0,0,0,5,6 +2,1,6,2,2,0,1,6,3,5,0,1,0,0,2,6,0,6,0,2,1,0,5,2,2,6,0,0,1,0,2,2,2,6,0,0,5,1,5,0,0,2,5,0,0,2,3,6,0,1,2,0,5,1,0,2,5,0,0,0,5,2,0,5,6,1,0,0,3,5 +1,2,6,5,3,1,1,1,0,2,5,3,4,3,0,5,2,0,1,0,0,3,0,0,1,0,6,5,3,0,5,0,1,0,0,5,2,6,0,3,1,0,3,5,0,1,1,0,5,0,0,1,2,0,0,1,1,3,0,2,0,5,0,1,2,0,4,3,0,1 +3,1,2,0,0,5,4,2,3,1,0,5,0,4,3,2,5,1,0,0,3,0,5,2,0,1,0,0,4,3,0,0,1,0,0,5,2,0,6,1,0,3,4,0,5,0,0,1,3,0,0,2,3,4,1,0,5,0,6,2,4,0,3,1,4,0,6,5,4,2 +1,4,3,2,0,5,0,0,1,0,4,2,6,0,3,5,1,0,0,2,2,5,0,3,0,0,1,0,2,5,0,0,4,6,0,0,1,5,3,0,0,3,0,5,2,6,4,1,0,5,0,2,5,0,0,4,0,3,1,5,0,2,0,4,1,1,5,3,4,2 +4,4,2,0,1,0,3,5,0,0,4,2,0,4,0,5,0,1,0,5,6,4,2,3,0,5,1,0,5,4,0,2,0,5,0,1,5,4,3,0,4,0,2,0,1,5,0,0,4,2,0,5,0,2,5,1,4,0,0,2,0,5,3,4,0,6,0,4,2,4 +1,2,0,6,4,3,0,0,2,5,1,2,0,0,3,5,5,0,0,6,2,1,0,6,0,5,2,0,5,0,6,1,0,2,0,0,5,5,0,0,2,3,1,4,2,0,1,0,5,6,0,5,1,0,0,5,4,2,6,5,0,1,3,2,0,5,1,0,0,2 +5,0,6,0,2,1,4,6,3,5,0,0,4,0,5,0,0,2,0,6,0,4,5,0,6,0,2,0,0,4,1,0,3,6,5,0,0,2,0,0,5,5,5,0,6,4,5,0,5,0,6,6,1,2,0,5,5,0,4,6,3,0,5,6,0,1,2,4,6,5 +2,5,0,2,1,0,5,4,2,1,6,0,2,0,5,3,0,6,1,0,4,0,5,2,0,6,0,4,0,5,0,2,1,0,0,2,0,0,5,5,4,0,5,0,1,0,6,0,2,5,0,0,2,1,0,5,5,2,3,0,5,1,5,0,2,5,0,2,4,1 +5,1,0,2,0,1,0,4,5,0,2,2,2,5,5,0,3,5,0,1,0,5,5,0,2,4,6,5,0,0,2,0,5,0,1,0,0,2,4,0,5,0,5,0,5,0,2,0,5,1,0,2,4,3,0,0,2,5,0,4,2,2,6,0,5,1,2,0,5,2 +3,1,2,0,0,5,4,2,3,1,0,5,0,4,3,2,5,1,0,0,3,0,5,2,0,1,0,0,4,3,0,0,1,0,0,5,2,0,6,1,0,3,4,0,5,0,0,1,3,0,0,2,3,4,1,0,5,0,6,2,4,0,3,1,4,0,6,5,4,2 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 diff --git a/world/map/db/job_db2.txt b/world/map/db/job_db2.txt new file mode 100644 index 00000000..f7e7d802 --- /dev/null +++ b/world/map/db/job_db2.txt @@ -0,0 +1,71 @@ +// job_bonus 0-non 1-str 2-agi 3-vit 4-int 5-dex 6-luk +//x NV,SW,MG,AC,AL,MC,TF,KN,PR,WZ,BS,HT,AS,KNp,CR,MO,SA,RG,AM,BA,DC,CRp +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,1,0,0,0,3,0,0,0,5,0,0,0,1,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,2,0,0,1,0,0,5,0,3,0,1,0,3,0,6,0,2,1,0,1,1 +0,4,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,6,0,0,4,0,0,5,0,4,0,2,0,6,0,4,0,4,2,0,6,4 +0,5,0,0,0,1,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,5,0,0,2,0,0,5,0,1,0,1,0,5,0,6,0,3,4,0,2,5 +0,6,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,1,0,0,0,3,0,0,4,0,0,5,0,6,0,2,0,1,0,3,0,4,5,0,1,6 +0,3,0,0,0,5,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,3,0,0,2,0,0,6,0,5,0,1,0,5,0,1,0,6,3,0,1,5 +0,2,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,1,0,0,2,0,0,2,0,1,0,6,0,5,0,3,0,6,1,0,5,2 +3,0,3,1,6,0,0,3,0,1,5,3,2,0,1,0,3,3,5,6,1,0,3,0,0,0,1,6,3,0,5,0,1,0,0,3,6,2,0,5,0,0,3,0,0,1,1,5,5,0 +6,0,6,1,0,2,3,4,4,6,1,0,0,3,0,5,1,0,0,5,6,4,0,0,5,0,1,0,2,0,6,5,0,3,1,3,2,0,6,0,0,4,4,0,3,0,0,2,0,6 +4,5,0,4,5,2,0,0,4,2,0,1,5,0,6,0,0,4,0,0,0,4,0,2,0,5,0,0,4,0,4,5,4,2,0,6,0,3,5,4,2,0,2,0,4,2,2,4,0,4 +5,0,1,5,5,0,3,1,5,0,6,5,3,0,0,1,0,0,5,3,4,0,1,0,0,5,0,5,2,0,1,3,0,4,0,5,3,2,5,5,0,0,0,1,0,6,5,0,3,0 +5,0,4,5,6,1,0,5,0,1,1,2,0,5,6,0,3,0,2,2,5,0,3,0,0,0,5,0,6,0,2,0,5,4,0,0,0,5,2,0,4,6,5,1,0,4,2,0,5,0 +2,2,2,4,0,3,0,3,5,0,1,0,0,4,2,2,2,2,2,2,2,0,0,5,1,0,1,0,0,5,5,1,0,0,0,0,0,4,0,5,5,4,0,0,1,5,0,1,0,5 +3,0,3,1,6,0,0,3,0,1,5,3,2,0,1,0,3,3,5,6,1,0,3,0,0,0,1,6,3,0,5,0,1,0,0,3,6,2,0,5,0,0,3,0,0,1,1,5,5,0 +6,6,6,6,6,0,1,0,4,0,1,3,0,5,3,0,1,0,0,4,4,3,1,0,1,0,0,5,0,2,0,1,0,5,0,2,0,4,0,3,3,0,0,4,0,3,0,1,0,3 +1,1,0,5,0,2,3,0,0,2,0,1,1,6,0,4,0,2,0,3,0,5,2,0,3,1,1,0,0,5,0,6,3,0,2,0,0,4,0,6,3,0,5,2,0,3,0,0,1,1 +4,0,2,3,0,2,0,4,0,0,3,0,2,0,4,0,6,3,0,5,0,2,0,4,5,0,5,0,0,4,0,5,2,0,6,0,4,0,5,6,0,1,0,1,4,1,1,1,0,4 +2,3,5,0,1,3,2,0,3,0,5,0,0,3,3,2,0,5,0,5,0,0,2,0,1,0,1,0,2,1,0,0,5,5,0,1,0,4,2,0,0,1,4,0,2,0,4,0,4,5 +4,5,5,0,0,1,0,5,4,0,2,0,5,2,1,0,4,0,5,3,5,0,4,4,5,1,0,5,4,0,3,0,0,1,0,3,0,4,0,2,0,0,1,0,2,0,0,0,2,2 +5,2,1,0,4,6,5,0,6,2,2,0,4,0,5,0,3,0,5,6,4,0,0,2,0,0,0,1,0,2,0,5,3,0,2,0,0,5,0,4,6,0,3,0,0,5,4,2,0,5 +6,2,1,0,4,5,6,0,5,2,2,0,4,0,6,0,3,0,6,5,4,0,0,2,0,0,0,1,0,2,0,6,3,0,2,0,0,6,0,4,5,0,3,0,0,6,4,2,0,6 +6,6,6,6,6,0,1,0,4,0,1,3,0,5,3,0,1,0,0,4,4,3,1,0,1,0,0,5,0,2,0,1,0,5,0,2,0,4,0,3,3,0,0,4,0,3,0,1,0,3 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,6,5,0,2,3,0,1,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,1,0,0,0,3,0,0,0,5,0,0,0,1,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,2,0,0,1,0,0,5,0,3,0,1,0,3,0,6,0,2,1,0,1,1 +0,4,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,6,0,0,4,0,0,5,0,4,0,2,0,6,0,4,0,4,2,0,6,4 +0,5,0,0,0,1,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,5,0,0,2,0,0,5,0,1,0,1,0,5,0,6,0,3,4,0,2,5 +0,6,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,1,0,0,0,3,0,0,4,0,0,5,0,6,0,2,0,1,0,3,0,4,5,0,1,6 +0,3,0,0,0,5,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,3,0,0,2,0,0,6,0,5,0,1,0,5,0,1,0,6,3,0,1,5 +0,2,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,1,0,0,2,0,0,2,0,1,0,6,0,5,0,3,0,6,1,0,5,2 +1,2,6,5,3,1,1,1,0,2,5,3,4,2,0,5,2,0,1,0,0,3,0,0,1,0,6,5,3,0,5,0,1,0,0,5,2,6,0,3,1,0,3,5,0,1,1,0,5,0,0,1,2,0,0,1,1,3,0,2,0,5,0,1,2,0,4,3,0,1 +4,0,2,3,1,0,4,2,0,0,1,5,0,0,5,0,0,2,4,1,3,4,4,0,5,0,5,5,2,3,1,0,0,4,0,0,5,1,0,6,0,2,5,0,1,5,4,0,6,3,3,0,0,0,2,5,4,3,0,1,4,5,0,0,2,4,3,2,0,4 +4,5,3,0,4,0,0,2,5,4,0,6,0,4,0,0,5,2,4,1,0,5,5,4,0,2,0,4,3,0,5,4,0,2,0,0,4,4,4,1,6,0,5,0,0,,4,3,0,4,2,0,0,3,0,4,2,6,0,4,1,5,4,0,0,2,3,5,0,2,4 +5,1,1,4,0,5,2,6,3,0,0,5,3,0,4,6,1,0,2,2,0,4,5,0,0,1,0,6,3,0,2,5,1,4,0,2,0,5,6,0,5,0,0,6,6,0,5,3,0,4,0,1,0,0,0,5,0,0,0,3,4,5,0,2,0,6,6,0,0,5 +5,2,5,5,4,2,0,1,0,2,2,3,0,6,0,5,5,0,0,4,2,5,0,1,6,5,0,2,0,5,6,3,2,0,5,6,0,2,0,5,0,4,2,0,1,5,0,2,0,5,4,0,0,4,3,0,6,2,0,5,1,6,0,0,4,0,0,0,5,6 +2,1,6,2,2,0,1,6,3,5,0,1,0,0,2,6,0,6,0,2,1,0,5,2,2,6,0,0,5,0,2,2,2,6,0,0,5,1,5,0,0,2,5,0,0,2,3,6,0,1,2,0,5,1,0,2,5,0,0,0,5,2,0,5,6,1,0,0,3,6 +1,2,6,5,3,1,1,1,0,2,5,3,4,2,0,5,2,0,1,0,0,3,0,0,1,0,6,5,3,0,5,0,1,0,0,5,2,6,0,3,1,0,3,5,0,1,1,0,5,0,0,1,2,0,0,1,1,3,0,2,0,5,0,1,2,0,4,3,0,1 +3,1,2,0,0,5,4,2,3,1,0,5,0,4,3,2,6,1,0,0,3,0,6,2,0,1,0,0,5,4,0,0,1,0,0,6,2,0,6,1,0,3,4,0,5,0,0,1,3,0,0,2,3,4,1,0,5,0,6,2,4,0,3,1,4,0,6,5,3,2 +1,4,3,2,0,5,0,0,1,0,4,2,6,0,3,5,1,0,0,2,2,5,0,3,0,0,1,0,2,5,0,0,4,6,0,0,1,5,3,0,0,3,0,4,2,6,4,1,0,5,0,2,5,0,0,4,0,3,1,5,0,2,0,4,1,1,5,3,4,2 +4,4,2,0,1,0,3,5,0,0,4,2,0,4,0,5,0,1,0,5,6,4,2,3,0,5,1,0,5,4,0,2,0,5,0,1,5,4,3,0,4,0,2,0,1,5,0,0,4,2,0,5,0,2,5,1,4,0,0,2,0,5,3,4,0,6,0,4,2,4 +1,2,0,6,4,3,0,0,2,5,1,2,0,0,3,5,5,0,0,6,2,1,0,6,0,5,2,0,5,0,6,1,0,2,0,0,5,5,0,0,2,3,1,4,2,0,1,0,5,6,0,5,1,0,0,5,4,2,6,5,0,1,3,2,0,5,1,0,0,2 +5,0,6,0,2,1,4,6,3,5,0,0,4,0,5,0,0,2,0,6,0,4,5,0,6,0,2,0,0,4,1,0,3,6,5,0,0,2,0,0,5,5,5,0,6,4,5,0,5,0,6,6,1,2,0,5,5,0,4,6,3,0,5,6,0,1,2,4,6,5 +2,5,0,2,1,0,5,4,2,1,6,0,2,0,5,3,0,6,1,0,4,0,5,2,0,6,0,4,0,5,0,2,1,0,0,2,0,0,5,5,4,0,5,0,1,0,6,0,2,5,0,0,2,1,0,5,5,2,3,0,5,1,5,0,2,4,0,2,4,1 +5,1,0,2,0,1,0,4,5,0,2,2,2,5,5,0,3,5,0,1,0,5,5,0,2,4,6,5,0,0,2,0,5,0,1,0,0,2,4,0,5,0,5,0,5,0,2,0,5,1,0,2,4,3,0,0,2,5,0,4,2,2,6,0,5,1,2,0,5,2 +3,1,2,0,0,5,4,2,3,1,0,5,0,4,3,2,6,1,0,0,3,0,6,2,0,1,0,0,5,4,0,0,1,0,0,6,2,0,6,1,0,3,4,0,5,0,0,1,3,0,0,2,3,4,1,0,5,0,6,2,4,0,3,1,4,0,6,5,3,2 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,1,0,0,0,3,0,0,0,5,0,0,0,1,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,2,0,0,1,0,0,5,0,3,0,1,0,3,0,6,0,2,1,0,1,1 +0,4,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,6,0,0,4,0,0,5,0,4,0,2,0,6,0,4,0,4,2,0,6,4 +0,5,0,0,0,1,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,5,0,0,2,0,0,5,0,1,0,1,0,5,0,6,0,3,4,0,2,5 +0,6,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,2,0,0,0,1,0,0,0,3,0,0,4,0,0,5,0,6,0,2,0,1,0,3,0,4,5,0,1,6 +0,3,0,0,0,5,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,3,0,0,2,0,0,6,0,5,0,1,0,5,0,1,0,6,3,0,1,5 +0,2,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,1,0,0,2,0,0,2,0,1,0,6,0,5,0,3,0,6,1,0,5,2 +3,0,3,1,6,0,0,3,0,1,5,3,2,0,1,0,3,3,5,6,1,0,3,0,0,0,1,6,3,0,5,0,1,0,0,3,6,2,0,5,0,0,3,0,0,1,1,5,5,0 +6,0,6,1,0,2,3,4,4,6,1,0,0,3,0,5,1,0,0,5,6,4,0,0,5,0,1,0,2,0,6,5,0,3,1,3,2,0,6,0,0,4,4,0,3,0,0,2,0,6 +4,5,0,4,5,2,0,0,4,2,0,1,5,0,6,0,0,4,0,0,0,4,0,2,0,5,0,0,4,0,4,5,4,2,0,6,0,3,5,4,2,0,2,0,4,2,2,4,0,4 +5,0,1,5,5,0,3,1,5,0,6,5,3,0,0,1,0,0,5,3,4,0,1,0,0,5,0,5,2,0,1,3,0,4,0,5,3,2,5,5,0,0,0,1,0,6,5,0,3,0 +5,0,4,5,6,1,0,5,0,1,1,2,0,5,6,0,3,0,2,2,5,0,3,0,0,0,5,0,6,0,2,0,5,4,0,0,0,5,2,0,4,6,5,1,0,4,2,0,5,0 +2,2,2,4,0,3,0,3,5,0,1,0,0,4,2,2,2,2,2,2,2,0,0,5,1,0,1,0,0,5,5,1,0,0,0,0,0,4,0,5,5,4,0,0,1,5,0,1,0,5 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +6,6,6,6,6,0,1,0,4,0,1,3,0,5,3,0,1,0,0,4,4,3,1,0,1,0,0,5,0,2,0,1,0,5,0,2,0,4,0,3,3,0,0,4,0,3,0,1,0,3 +1,1,0,5,0,2,3,0,0,2,0,1,1,6,0,4,0,2,0,3,0,5,2,0,3,1,1,0,0,5,0,6,3,0,2,0,0,4,0,6,3,0,5,2,0,3,0,0,1,1 +4,0,2,3,0,2,0,4,0,0,3,0,2,0,4,0,6,3,0,5,0,2,0,4,5,0,5,0,0,4,0,5,2,0,6,0,4,0,5,6,0,1,0,1,4,1,1,1,0,4 +2,3,5,0,1,3,2,0,3,0,5,0,0,3,3,2,0,5,0,5,0,0,2,0,1,0,1,0,2,1,0,0,5,5,0,1,0,4,2,0,0,1,4,0,2,0,4,0,4,5 +4,5,5,0,0,1,0,5,4,0,2,0,5,2,1,0,4,0,5,3,5,0,4,4,5,1,0,5,4,0,3,0,0,1,0,3,0,4,0,2,0,0,1,0,2,0,0,0,2,2 +5,2,1,0,4,6,5,0,6,2,2,0,4,0,5,0,3,0,5,6,4,0,0,2,0,0,0,1,0,2,0,5,3,0,2,0,0,5,0,4,6,0,3,0,0,5,4,2,0,5 +6,2,1,0,4,5,6,0,5,2,2,0,4,0,6,0,3,0,6,5,4,0,0,2,0,0,0,1,0,2,0,6,3,0,2,0,0,6,0,4,5,0,3,0,0,6,4,2,0,6 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 diff --git a/world/map/db/mob_branch.txt b/world/map/db/mob_branch.txt new file mode 100644 index 00000000..8a24428c --- /dev/null +++ b/world/map/db/mob_branch.txt @@ -0,0 +1,9 @@ +// File created using Spamrat's Athena Database Editor v1.4.4 +// +// ŒÃ–Ø‚ÌŽ}‚Å¢Š«‚Å‚«‚郂ƒ“ƒXƒ^[‚ðÝ’è +// MobID, MobName(Dummy), Rate +// ƒ‚ƒ“ƒXƒ^[IDAƒ‚ƒ“ƒXƒ^[‚Ì–¼‘O(ƒ_ƒ~[)AŠm—¦(*10000)‚ð‚µ‚½•¨‚Å‚·B500000‚È‚ç50%‚Å1000000‚È‚ç100%‚Å‚·B) +// ƒ‚ƒ“ƒXƒ^[ID‚ª0‚Ìꇊm—¦‚ðƒ‚ƒ“ƒXƒ^[‚Ì‘I‘ð‚ÉŽ¸”s‚µ‚½Žž‚É¢ŠÒ‚³‚ê‚郂ƒ“ƒXƒ^[‚ÌID‚Æ‚µ‚Ä”FŽ¯‚µ‚Ü‚·B(•¡”‚Å‚ ‚éê‡ÅŒã‚Ì•¨‚¾‚¯—LŒø‚Å‚·B) +// ƒNƒ‰ƒCƒAƒ“ƒg‘¤‚Å–¢ŽÀ‘•‚Ì‚à‚̂𑂂ƃNƒ‰ƒCƒAƒ“ƒg‚ªd—̓Gƒ‰[ +// ‚»‚µ‚Ä‚»‚Ì“G‚ªƒLƒƒƒ‰ƒNƒ^[‚Ì•t‹ß‚É‚¢‚éŠÔƒƒOƒCƒ“‚Å‚«‚È‚¢‚Ì‚Å’ˆÓB +// diff --git a/world/map/db/mob_db.txt b/world/map/db/mob_db.txt new file mode 100644 index 00000000..95981838 --- /dev/null +++ b/world/map/db/mob_db.txt @@ -0,0 +1,99 @@ +#ID, Name, Jname, LV, HP, SP, EXP, JEXP, Range1, ATK1, ATK2, DEF, MDEF, STR, AGI, VIT, INT, DEX, LUK, Range2, Range3, Scale, Race, Element,Mode, Speed, Adelay, Amotion,Dmotion,Drop1id,Drop1per, Drop2id,Drop2per, Drop3id,Drop3per, Drop4id,Drop4per, Drop5id,Drop5per, Drop6id,Drop6per, Drop7id,Drop7per, Drop8id,Drop8per, Item1, Item2, MEXP, ExpPer, MVP1id, MVP1per,MVP2id, MVP2per,MVP3id, MVP3per,mutationcount, mutationstrength + +1002, Maggot, Maggot, 5, 50, 0, 0, 2, 1, 5, 10, 0, 5, 1, 1, 1, 0, 6, 5, 1, 1, 1, 3, 21, 129, 800, 1872, 672, 480, 505, 800, 501, 150, 518, 400, 533, 150, 502, 70, 522, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1003, Scorpion, Scorpion, 10, 100, 0, 0, 4, 1, 10, 15, 0, 5, 1, 1, 1, 0, 15, 5, 1, 1, 1, 3, 20, 129, 2000, 1872, 672, 480, 507, 700, 510, 100, 509, 50, 518, 700, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1004, RedScorpion, RedScorpion, 90, 550, 0, 0, 145, 1, 50, 55, 4, 6, 8, 8, 10, 10, 30, 10, 1, 1, 1, 0, 20, 129, 1000, 1872, 672, 480, 517, 2000, 509, 100, 518, 500, 1200, 10, 1199, 760, 1201, 540, 524, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 50 +1005, GreenSlime, GreenSlime, 40, 800, 0, 0, 80, 1, 80, 120, 20, 30, 20, 30, 10, 10, 30, 30, 1, 1, 1, 0, 21, 175, 1200, 1872, 672, 480, 502, 200, 4004, 20, 501, 100, 521, 250, 522, 200, 526, 500, 503, 500, 535, 750, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 20 +1006, GiantMaggot, GiantMaggot, 80, 500, 0, 0, 16, 2, 45, 75, 2, 7, 8, 6, 2, 1, 22, 1, 2, 2, 1, 0, 41, 129, 2000, 1872, 672, 480, 1199, 900, 519, 100, 518, 750, 501, 5000, 502, 3000, 503, 11, 526, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 25 +1007, YellowSlime, YellowSlime, 60, 400, 0, 0, 2, 1, 35, 40, 2, 7, 9, 6, 2, 1, 34, 1, 1, 1, 1, 0, 21, 131, 1400, 1800, 672, 480, 534, 200, 519, 100, 501, 350, 502, 250, 522, 10, 640, 450, 4006, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 20 +1008, RedSlime, RedSlime, 70, 450, 0, 0, 56, 1, 40, 45, 2, 7, 12, 8, 2, 1, 25, 1, 1, 1, 1, 0, 21, 135, 1300, 1500, 672, 480, 1201, 300, 509, 110, 521, 200, 4003, 20, 525, 80, 535, 750, 528, 250, 531, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20 +1009, BlackScorpion, BlackScorpion, 100, 600, 0, 0, 70, 1, 60, 100, 4, 6, 16, 30, 10, 10, 35, 10, 1, 1, 1, 0, 20, 133, 1000, 1500, 672, 480, 523, 150, 509, 100, 518, 800, 709, 800, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 50 +1010, Snake, Snake, 115, 850, 0, 0, 100, 1, 75, 90, 4, 6, 20, 11, 10, 10, 35, 10, 1, 1, 1, 0, 20, 133, 900, 1300, 672, 480, 524, 300, 0, 0, 714, 400, 714, 400, 710, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1011, FireGoblin, FireGoblin, 20, 220, 0, 0, 2, 1, 15, 20, 0, 5, 1, 1, 1, 0, 6, 30, 1, 1, 1, 3, 23, 129, 800, 1872, 672, 480, 505, 800, 501, 150, 518, 800, 502, 150, 521, 70, 522, 10, 701, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1012, Spider, Spider, 125, 800, 0, 0, 280, 1, 70, 85, 4, 6, 14, 13, 10, 10, 35, 10, 1, 1, 1, 0, 25, 175, 1000, 1500, 672, 480, 537, 500, 535, 100, 638, 20, 526, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 40 +1013, EvilMushroom, EvilMushroom, 110, 650, 0, 0, 110, 1, 65, 80, 4, 6, 16, 12, 10, 10, 35, 10, 1, 1, 1, 3, 22, 137, 800, 1800, 672, 480, 535, 500, 540, 10, 534, 100, 566, 2000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 60 +1014, PinkFlower, PinkFlower, 115, 700, 0, 0, 110, 2, 70, 75, 0, 5, 16, 12, 20, 20, 20, 50, 2, 2, 1, 3, 22, 128, 800, 800, 672, 480, 535, 100, 540, 10, 1199, 100, 526, 400, 565, 2000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 50 +1015, SantaSlime, SantaSlime, 120, 750, 0, 0, 0, 1, 75, 80, 2, 7, 1, 20, 1, 0, 30, 30, 1, 1, 1, 0, 21, 161, 1500, 1872, 672, 480, 512, 800, 513, 700, 514, 600, 519, 500, 527, 400, 538, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 10 +1016, RudolphSlime, RudolphSlime, 50, 350, 0, 0, 16, 1, 30, 35, 10, 7, 1, 20, 1, 0, 30, 30, 1, 1, 1, 0, 21, 131, 1000, 1872, 672, 480, 504, 800, 506, 500, 508, 200, 509, 300, 510, 600, 515, 800, 516, 500, 0, 400, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1017, Bat, Bat, 20, 150, 0, 0, 2, 1, 5, 25, 0, 5, 1, 1, 1, 0, 20, 25, 1, 1, 1, 3, 24, 129, 800, 1872, 672, 480, 505, 800, 501, 150, 518, 400, 533, 150, 521, 70, 522, 1, 753, 3000, 754, 2000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 40 +1018, Pinkie, Pinkie, 30, 500, 0, 0, 3, 2, 7, 15, 0, 5, 1, 1, 1, 0, 20, 25, 2, 2, 1, 3, 20, 129, 800, 1872, 672, 480, 614, 800, 751, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 50 +1019, SpikyMushroom, SpikyMushroom, 30, 300, 0, 0, 4, 1, 10, 13, 0, 5, 1, 1, 1, 0, 10, 10, 1, 1, 1, 3, 20, 129, 800, 1872, 672, 480, 567, 800, 501, 150, 518, 50, 613, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 40 +1020, Fluffy, Fluffy, 30, 500, 0, 0, 3, 1, 6, 10, 1, 5, 1, 2, 1, 0, 20, 25, 1, 1, 1, 3, 20, 129, 800, 1600, 672, 480, 611, 800, 527, 150, 535, 400, 752, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 40 +1021, CaveSnake, CaveSnake, 30, 1000, 0, 0, 5, 1, 20, 15, 1, 5, 10, 1, 1, 0, 5, 20, 1, 1, 1, 3, 20, 129, 800, 1872, 672, 480, 612, 800, 610, 40, 713, 500, 717, 400, 717, 400, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 50 +1022, JackO, JackO, 250, 10000, 0, 0, 5000, 2, 100, 500, 40, 20, 35, 40, 25, 25, 35, 50, 1, 1, 1, 0, 20, 133, 250, 1500, 672, 480, 617, 300, 622, 400, 624, 400, 620, 400, 615, 300, 1203, 400, 1198, 10000, 616, 600, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1023, FireSkull, FireSkull, 180, 5000, 0, 0, 100, 2, 75, 175, 35, 15, 30, 30, 20, 20, 25, 60, 1, 1, 1, 3, 23, 175, 600, 1600, 672, 480, 631, 1000, 701, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1024, PoisonSkull, PoisonSkull, 180, 5000, 0, 0, 100, 2, 75, 175, 35, 15, 30, 30, 20, 20, 25, 60, 1, 1, 1, 3, 25, 175, 600, 1600, 672, 480, 631, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 20 +1025, LogHead, LogHead, 30, 500, 0, 0, 30, 1, 7, 20, 50, 5, 1, 1, 1, 0, 20, 25, 1, 1, 1, 3, 22, 129, 800, 1872, 672, 480, 569, 2000, 740, 2500, 743, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 50 +1026, MountainSnake, MountainSnake, 130, 900, 0, 0, 100, 1, 80, 125, 4, 6, 20, 40, 10, 10, 35, 45, 1, 1, 1, 0, 20, 133, 1000, 1500, 672, 480, 532, 20, 641, 150, 715, 400, 715, 400, 711, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 30 +1027, EasterFluffy, EasterFluffy, 30, 500, 0, 0, 3, 1, 10, 12, 0, 5, 1, 1, 1, 0, 20, 25, 1, 1, 1, 3, 20, 129, 800, 1872, 672, 480, 1208, 2000, 1209, 2000, 1210, 2000, 1211, 1000, 1212, 1000, 1213, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 40 +1028, Mouboo, Mouboo, 85, 1200, 0, 0, 40, 2, 30, 75, 65, 5, 15, 5, 15, 0, 40, 10, 2, 2, 1, 3, 20, 129, 600, 1872, 672, 480, 660, 200, 660, 100, 541, 750, 660, 10, 806, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 30 +1029, MauvePlant, MauvePlant, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 22, 0, 800, 800, 672, 480, 680, 3000, 680, 3000, 680, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 60 +1030, CobaltPlant, CobaltPlant, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 22, 0, 800, 800, 672, 480, 681, 3000, 681, 3000, 681, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1031, GambogePlant, GambogePlant, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 22, 0, 800, 800, 672, 480, 682, 3000, 682, 3000, 682, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1032, AlizarinPlant, AlizarinPlant, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 22, 0, 800, 800, 672, 480, 683, 3000, 683, 3000, 683, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1033, SeaSlime, SeaSlime, 70, 600, 0, 0, 9, 1, 30, 50, 3, 7, 1, 25, 1, 0, 30, 30, 1, 1, 1, 0, 41, 131, 1500, 1872, 672, 480, 535, 800, 657, 800, 518, 500, 510, 1000, 700, 100, 1199, 5000, 568, 100, 541, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1034, GrassSnake, GrassSnake, 140, 1000, 0, 0, 100, 1, 80, 120, 2, 10, 20, 40, 10, 10, 40, 50, 1, 1, 1, 0, 20, 133, 500, 1100, 672, 480, 716, 400, 716, 400, 712, 500, 676, 500, 660, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 40 +1035, Silkworm, Silkworm, 20, 1, 0, 0, 1, 1, 0, 0, 2, 10, 20, 11, 10, 10, 40, 10, 1, 1, 1, 0, 20, 129, 1300, 1100, 672, 480, 718, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 40 +1036, Zombie, Zombie, 110, 12000, 0, 0, 800, 2, 275, 355, 20, 15, 30, 15, 30, 3, 60, 40, 1, 1, 1, 0, 29, 133, 480, 1872, 672, 900, 631, 1000, 777, 700, 778, 120, 779, 200, 780, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1037, CloverPatch, CloverPatch, 1, 1, 0, 0, 1, 1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 22, 0, 800, 800, 672, 480, 742, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1038, Squirrel, Squirrel, 15, 160, 1, 0, 1, 1, 15, 25, 1, 6, 1, 3, 1, 0, 15, 40, 1, 1, 1, 3, 20, 129, 800, 800, 672, 480, 743, 7000, 680, 1000, 681, 1000, 682, 1000, 683, 1000, 807, 800, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 15 + +//1039, FireLizard + +1040, Wisp, Wisp, 70, 9300, 0, 0, 140, 2, 215, 350, 0, 20, 45, 12, 13, 15, 0, 45, 1, 1, 1, 0, 27, 137, 380, 2000, 672, 1500, 772, 500, 703, 150, 703, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20 +1041, Snail, Snail, 30, 900, 0, 0, 6, 1, 60, 65, 20, 15, 10, 1, 25, 0, 20, 10, 1, 1, 1, 0, 20, 129, 1800, 2500, 672, 480, 719, 500, 806, 400, 1250, 1000, 1251, 1500, 1248, 500, 1252, 2000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 40 +1042, Spectre, Spectre, 140, 6500, 0, 3978, 140, 3, 160, 220, 40, 0, 35, 70, 22, 15, 20, 70, 1, 1, 1, 0, 49, 137, 650, 1700, 800, 500, 773, 500, 703, 150, 703, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20 +1043, Skeleton, Skeleton, 90, 6800, 0, 0, 90, 1, 51, 284, 12, 10, 35, 18, 3, 8, 71, 65, 1, 1, 1, 0, 29, 175, 340, 1800, 672, 950, 775, 200, 775, 280, 776, 300, 631, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1044, LadySkeleton, LadySkeleton, 90, 5500, 0, 0, 90, 2, 73, 146, 31, 8, 20, 25, 15, 8, 43, 48, 1, 1, 1, 0, 29, 175, 650, 750, 672, 700, 775, 200, 775, 280, 776, 300, 631, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1045, Fallen, Fallen, 120, 10000, 0, 7812, 1000, 2, 180, 430, 5, 20, 40, 3, 25, 5, 80, 45, 1, 1, 1, 0, 49, 133, 300, 1200, 672, 300, 775, 210, 775, 210, 776, 300, 631, 1000, 636, 3, 658, 2, 532, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 50 +1046, SnakeLord, SnakeLord, 300, 40000, 0, 0, 8000, 2, 80, 120, 10, 10, 20, 40, 10, 10, 40, 10, 1, 1, 1, 0, 20, 132, 200, 1500, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1047, Poltergeist, Poltergeist, 90, 9000, 0, 0, 140, 3, 110, 150, 0, 20, 35, 0, 15, 15, 75, 50, 1, 1, 1, 0, 27, 137, 330, 740, 672, 400, 774, 500, 703, 150, 703, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20 + +//1048, Duck + +1049, Bee, Bee, 30, 600, 0, 0, 40, 1, 5, 90, 12, 4, 15, 25, 20, 3, 40, 30, 1, 1, 1, 0, 25, 137, 380, 1500, 300, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1050, Larvespa, Larvespa, 50, 500, 0, 0, 300, 1, 30, 60, 30, 25, 10, 10, 40, 0, 25, 25, 1, 1, 1, 0, 25, 139, 1500, 1500, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1051, Vespa, Vespa, 100, 1500, 0, 0, 450, 1, 10, 100, 0, 10, 10, 20, 5, 0, 40, 30, 1, 1, 1, 0, 85, 133, 275, 800, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + +//1052, Hivespa + +//1053, Froad + +//1054, Troll + +1055, Butterfly, Butterfly, 25, 250, 0, 0, 10, 2, 10, 50, 3, 5, 10, 45, 10, 15, 35, 40, 1, 1, 1, 3, 44, 129, 350, 780, 300, 800, 718, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 60 +1056, CaveMaggot, CaveMaggot, 10, 100, 0, 0, 4, 1, 10, 10, 0, 5, 5, 5, 1, 0, 6, 5, 1, 1, 1, 3, 21, 133, 700, 1872, 672, 480, 505, 800, 501, 150, 518, 400, 533, 150, 502, 70, 522, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1057, AngryScorpion, AngryScorpion, 20, 200, 0, 0, 4, 1, 15, 15, 0, 5, 5, 5, 1, 0, 15, 5, 1, 1, 1, 3, 20, 133, 1000, 1872, 672, 480, 4000, 700, 510, 100, 509, 50, 518, 700, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1058, IceGoblin, IceGoblin, 25, 330, 0, 0, 2, 1, 20, 25, 0, 5, 5, 5, 1, 0, 6, 30, 1, 1, 1, 3, 21, 133, 700, 1872, 672, 480, 505, 800, 501, 150, 518, 800, 502, 150, 521, 70, 522, 10, 4026, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1059, GCMaggot, GiantCaveMaggot, 90, 2000, 0, 0, 16, 2, 60, 80, 2, 7, 10, 10, 2, 1, 22, 1, 2, 2, 1, 0, 41, 133, 1000, 1872, 672, 480, 727, 10000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 25 +1060, Archant, Archant, 30, 400, 0, 0, 200, 1, 20, 30, 4, 6, 10, 5, 1, 0, 12, 10, 1, 1, 1, 0, 25, 133, 1000, 1500, 672, 480, 537, 300, 535, 100, 640, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 40 +1061, Moggun, Moggun, 60, 800, 0, 0, 100, 1, 70, 90, 20, 10, 50, 40, 10, 10, 10, 10, 1, 1, 1, 0, 25, 137, 600, 1500, 672, 480, 611, 600, 4001, 1000, 4002, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 40 +1062, Terranite, Terranite, 110, 6000, 0, 0, 1000, 1, 200, 300, 20, 40, 60, 40, 40, 30, 60, 40, 1, 1, 1, 0, 29, 133, 400, 872, 672, 900, 4001, 600, 4004, 20, 4005, 20, 4007, 20, 763, 500, 640, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1063, Pumpkin, Pumpkin, 1, 200, 0, 0, 1, 1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 22, 132, 800, 800, 672, 480, 3000, 100, 3001, 20, 3002, 10, 3003, 15, 3011, 500, 3006, 1500, 3007, 2000, 3010, 2500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1064, Bandit, Bandit, 20, 400, 0, 0, 100, 1, 40, 40, 5, 0, 10, 10, 10, 10, 10, 10, 1, 1, 1, 0, 29, 135, 500, 1500, 672, 900, 4016, 800, 521, 200, 526, 500, 535, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1065, BanditLord, BanditLord, 40, 2000, 0, 0, 120, 5, 50, 50, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 1, 0, 29, 135, 400, 1500, 672, 900, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1066, VampireBat, VampireBat, 30, 800, 0, 0, 200, 1, 15, 2, 0, 8, 8, 8, 1, 4, 20, 4, 6, 1, 1, 3, 24, 129, 800, 1872, 672, 480, 501, 150, 518, 400, 533, 150, 521, 70, 522, 1, 753, 3000, 754, 2000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1067, Reaper, Reaper, 50, 555, 0, 0, 0, 7, 333, 444, 30, 80, 100, 120, 70, 120, 100, 50, 1, 50, 1, 1, 89, 165, 500, 1200, 800, 300, 777, 1000, 775, 500, 776, 100, 1221, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , , , , 0, 0 +1068, Reaper2, Reaper2, 50, 5550, 0, 0, 0, 7, 222, 333, 30, 80, 100, 120, 70, 120, 100, 50, 1, 50, 1, 1, 89, 165, 500, 1200, 800, 300, 777, 1000, 775, 500, 776, 100, 1221, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , , , , 0, 0 +1069, Scythe, Scythe, 40, 3000, 0, 0, 0, 1, 200, 350, 30, 10, 100, 250, 1, 1, 150, 90, 1, 50, 1, 0, 40, 133, 220, 700, 672, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , , , , 0, 0 +1070, BallLightning, BallLightning, 40, 10, 0, 0, 0, 1, 5, 10, 40, 65, 1, 200, 1, 1, 1, 1, 1, 50, 1, 0, 47, 133, 110, 1500, 672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , , , , 0, 0 +1071, IceElement, IceElement, 100, 5000, 0, 0, 200, 3, 60, 200, 5, 20, 15, 25, 40, 15, 45, 30, 1, 1, 1, 0, 41, 135, 330, 740, 672, 400, 4026, 900, 537, 750, 568, 400, 543, 900, 544, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20 +1072, Yeti, Yeti, 100, 8500, 0, 0, 300, 2, 100, 400, 60, 15, 60, 5, 45, 15, 60, 32, 1, 1, 1, 0, 61, 135, 380, 666, 1000, 600, 4023, 700, 4024, 300, 4025, 400, 4027, 142, 4021, 800, 4022, 700, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1073, TheLost, TheLost, 30, 5000, 0, 0, 1000, 5, 260, 375, 10, 70, 5, 40, 10, 70, 70, 40, 4, 9, 1, 1, 69, 141, 500, 2000, 672, 300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + +//1074, RedBone + +//1075, Stalker + +//1076, DreadWing + +1077, DrunkenSkeleton, DrunkenSkeleton, 90, 7200, 0, 0, 90, 1, 55, 284, 30, 10, 35, 10, 3, 8, 71, 65, 1, 1, 1, 0, 29, 137, 350, 1800, 672, 950, 790, 300, 789, 280, 3003, 100, 3000, 50, 3009, 250, 3006, 400, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1078, TipsySkeleton, TipsySkeleton, 90, 7000, 0, 0, 90, 1, 60, 284, 33, 10, 35, 10, 3, 8, 71, 65, 1, 1, 1, 0, 29, 137, 350, 1800, 672, 950, 787, 300, 788, 280, 3002, 100, 3000, 50, 3007, 400, 3010, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1079, DrunkenLadySkeleton, DrunkenLadySkeleton, 90, 6000, 0, 0, 90, 2, 75, 146, 40, 8, 20, 20, 15, 8, 51, 48, 1, 1, 1, 0, 29, 137, 660, 750, 672, 700, 785, 300, 786, 280, 3001, 100, 3000, 50, 3010, 250, 3009, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1080, BlueSpark, BlueSpark, 40, 10000, 0, 0, 0, 2, 40, 40, 20, 40, 30, 30, 30, 30, 30, 30, 1, 1, 1, 0, 20, 129, 190, 1500, 800, 800, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1081, RedSpark, RedSpark, 40, 10000, 0, 0, 0, 2, 40, 40, 20, 40, 30, 30, 30, 30, 30, 30, 1, 1, 1, 0, 20, 129, 190, 1500, 800, 800, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1082, Serqet, Serqet, 10, 100, 0, 0, 4, 1, 10, 15, 0, 5, 1, 1, 1, 0, 15, 5, 1, 1, 1, 3, 20, 129, 2000, 1872, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1083, EarthSpider, EarthSpider, 90, 1000, 0, 0, 280, 1, 100, 125, 10, 45, 20, 15, 10, 10, 40, 10, 1, 1, 1, 0, 45, 175, 575, 1250, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1084, EarthScorpion, EarthScorpion, 100, 800, 0, 0, 250, 1, 50, 150, 15, 45, 15, 30, 10, 10, 15, 25, 1, 1, 1, 0, 45, 133, 750, 1350, 672, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +1085, IceSkull, IceSkull, 180, 5000, 0, 0, 100, 2, 75, 175, 35, 15, 30, 30, 20, 20, 25, 60, 1, 1, 1, 3, 21, 141, 600, 1600, 672, 480, 631, 1000, 4026, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 30 +1086, FeyElement, FeyElement, 300, 10000, 0, 0, 1500, 4, 50, 100, 25, 50, 20, 10, 20, 20, 45, 25, 1, 1, 1, 0, 84, 165, 330, 740, 672, 400, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 diff --git a/world/map/db/mob_skill_db.txt b/world/map/db/mob_skill_db.txt new file mode 100644 index 00000000..54f8c355 --- /dev/null +++ b/world/map/db/mob_skill_db.txt @@ -0,0 +1,94 @@ +// Aegis zone 8.5 -> eAthena conversion by Komurka +// + Mob Skills for Einbroch+ by Lupus +//MOB_ID, a unused dummy character sequence (for information only), STATE, SKILL_ID, SKILL_LV, +// rate (10000 = 100%), casttime, delay, cancelable, a target, a condition type, a condition value, +// a value 1, a value 2, a value 3, a value 4, a value 5, emotion +//Example +//1001,Poring@TF_POISON,attack,52,3,100,1500,10000,no,target,always,0,,,,,7 +// +//rate refers to the chance of the skill being casted when the condition is fulfilled. +//delay is the time in milliseconds that has to be pass before recasting the same skill. +// +//STATE: +// any / idle (in standby) / walk (in movement) / dead (on killed) / loot / +// attack / angry (like attack, except player has not attacked mob yet) / +// chase (following target, after being attacked) / follow (following +// target, without being attacked) +// +//target: The target of the skill can be: target (when a PC is targetted) / self / friend / master +// (the following are for ground-skills, a random target tile is selected from +// the specified area): +// around1 (3x3 area around self) / around2 (5x5 area around self) / +// around3 (7x7 area around self) / around4 (9x9 area around self) / +// around5 (3x3 area around target) / around6 (5x5 area around target) / +// around7 (7x7 area around target) / around8 (9x9 area around target) / +// around (11x11 area around self) +// +//conditions: (condition type) (value which specifies a condition value) +// always uncondtional +// myhpltmaxrate when the mob's hp drops to a certain % +// mystatuson If the mob has any abnormalities in status (condition value), +// mystatusoff If the mob has ended any abnormalities in status (condition value), +// friendhpltmaxrate when the mobs' friend's hp drops to a certain % +// friendstatuson If the friend has any abnormalities in status (condition value), +// friendstatusoff If the friend has ended any abnormalities in status (condition value), +// attackpcgt Attack PC becomes more than the number of specification +// attackpcge Attack PC becomes equal or more than the number of specification. +// slavelt when the number of slaves is lower than the original number of specification. +// slavele when the number of slaves is lower or equal than the original number of specification. +// closedattacked when melee attacked (close range attack) +// longrangeattacked when long ranged attacked (like bows and far range weapons) +// skillused when a skill is used on the mob +// afterskill after the mob used certain skill. +// casttargeted when a target is in cast range. +// rudeattacked when a target is rude attacked +// hiding *not implemented yet* when a target is hidden +// +// The character's state which can be specified to be a condition value by the statuson/statusoff system +// anybad any type of state change +// stone condition of being in stone state +// freeze condition of being in frozen state +// stan condition of being in stunned state +// sleep condition of being in sleep state +// poison condition of being in poisoned state +// curse condition of being in cursed state +// silence condition of being in silenced state +// confusion condition of being in confusion state +// blind condition of being in blind state +// hiding condition of being in hidden state +// sight condition of being in unhidden state +1015,SantaSlime@NPC_EMOTION,idle,199,1,200,0,5000,yes,self,always,0,7,,,,, +1015,SantaSlime@NPC_EMOTION,walk,199,1,100,0,10000,yes,self,always,0,5,,,,, +1015,SantaSlime@NPC_SUMMONSLAVE,attack,198,5,10000,2000,60000,no,self,slavele,3,1016,,,,, +1015,SantaSlime@NPC_SUMMONSLAVE,idle,198,5,10000,2000,60000,no,self,slavele,3,1016,,,,, + +// Poison +// mobid, descriptive-label STATE, SKILL-ID,SKILLLV,rate, casttime,delay, cancel?,target, condition +1009,BlackScorpion@NPC_POISON,attack,178,30,50,0,500,yes,target,always,0,,10,,,, +1083,EarthSpider@NPC_POISON,attack,178,10,5000,0,50,yes,target,always,0,,10,,,, +1084,EarthScorpion@NPC_POISON,attack,178,40,30,0,1000,yes,target,always,0,,10,,,, +1050,Larvespa@NPC_POISON,attack,178,20,500,0,500,yes,target,always,0,,10,,,, +1051,Vespa@NPC_POISON,attack,178,50,500,0,500,yes,target,always,0,,10,,,, +1082,Serqet@NPC_POISON,attack,178,20,50,0,500,yes,target,always,0,,10,,,, +1010,Snake@NPC_POISON,attack,178,20,80,0,400,yes,target,always,0,,10,,,, +1021,CaveSnake@NPC_POISON,attack,178,10,20,0,500,yes,target,always,0,,10,,,, +1026,MountainSnake@NPC_POISON,attack,178,60,100,0,300,yes,target,always,0,,10,,,, +1034,GrassSnake@NPC_POISON,attack,178,45,200,0,200,yes,target,always,0,,10,,,, +1024,PoisonSkull@NPC_POISON,attack,178,50,500,0,400,yes,target,always,0,,10,,,, +//-- 1026,MountainSnake@NPC_POISONATTACK,attack,190,5,10000,0,500,yes,target,always,1,,,,,, +//-- 1010,Snake@TF_POISON,attack,54,3,10000,0,500,yes,target,always,1,,,,,, +1014,PinkFlower@NPC_SUMMONSLAVE,attack,198,1,200,2000,0,no,self,myhpltmaxrate,99,1049,,,,, +1049,Bee@NPC_POISON,attack,178,20,1000,0,500,yes,target,always,0,,10,,,, +1049,Bee@NPC_SELFDESTRUCTION,attack,175,1,1000,0,500,yes,self,notintown,0,30,,,,, + +// Reaper Quest mob abilities +//1067,Reaper@NPC_SUMMONSLAVE_scytheX1,attack,198,1,5000,1000,10000,no,self,slavelt,1,1069,,,,, +//1067,Reaper@NPC_SUMMONSLAVE_scytheX2,attack,198,2,3000,1000,15000,no,self,slavelt,3,1069,,,,, +//1067,Reaper@NPC_SUMMONSLAVE_scytheX4,attack,198,4,1000,1000,20000,no,self,myhpltmaxrate,50,1069,,,,, +1067,Reaper@NPC_SUMMONSLAVE_ballX1,any,198,1,8000,1000,5000,no,self,slavelt,5,1070,,,,, +//1067,Reaper@NPC_SUMMONSLAVE_ballX3,any,198,3,6000,1000,10000,no,self,myhpltmaxrate,60,1070,,,,, +//1067,Reaper@NPC_SUMMONSLAVE_ballX9,any,198,9,4000,1000,15000,no,self,myhpltmaxrate,20,1070,,,,, +//1067,Reaper@AL_TELEPORT,attack,28,2,3500,500,5000,yes,self,always,,,,,,, +1070,BallLightning@NPC_SELFDESTRUCTION,attack,175,1,10000,100,500,yes,self,notintown,0,30,,,,, +1086,FeyElement@NPC_SUMMONSLAVE_earthspiderX1,any,198,1,5000,100,500,no,self,slavelt,6,1083,,,,, +1086,FeyElement@NPC_SUMMONSLAVE_earthscorpionX1,any,198,1,5000,100,500,no,self,slavelt,6,1084,,,,, diff --git a/world/map/db/skill_db.txt b/world/map/db/skill_db.txt new file mode 100644 index 00000000..91bf1405 --- /dev/null +++ b/world/map/db/skill_db.txt @@ -0,0 +1,43 @@ +//id, range, hit, inf, pl, nk, maxrse, max, list_num, castcancel, cast_defence_rate, inf2, maxcount, skill_type, blow_count, pool, stat, name +1, 0, 0, 0, 0, 0, 0, 1, 0, no, 0, 0, 0, none, 0, no, none, Emote//NV_EMOTE +2, 0, 0, 0, 0, 0, 0, 1, 0, no, 0, 0, 0, none, 0, no, none, Trade//NV_TRADE +3, 0, 0, 0, 0, 0, 0, 2, 0, no, 0, 0, 0, none, 0, no, none, Party//NV_PARTY +4, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, weapon, 0, no, none, X0//SM_SWORD +6, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, none, 0, no, none, X1//SM_RECOVERY +11, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, none, 0, no, none, X2//MG_SRECOVERY +38, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, none, 0, no, none, X3//MC_INCCARRY +39, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, none, 0, no, none, X4//MC_DISCOUNT +40, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, none, 0, no, none, X5//MC_OVERCHARGE +50, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, weapon, 0, no, none, X6//TF_DOUBLE +51, 0, 0, 0, 0, 0, 0, 10, 0, no, 0, 0, 0, weapon, 0, no, none, X7//TF_MISS +54, 1, 6, 4, 0, 0, 0, 100, 1, no, 0, 1, 0, none, 0, no, none, X8//TF_POISON +144, 0, 6, 4, 0, 1, 0, 1, 1, no, 0, 1, 0, none, 0, no, none, X9//NV_FIRSTAID +146, 0, 0, 0, 0, 0, 0, 1, 0, no, 0, 1, 0, none, 0, no, none, X10//SM_MOVINGRECOVERY +148, 0, 0, 0, 0, 0, 0, 1, 0, no, 0, 1, 0, weapon, 0, no, none, X11//SM_AUTOBERSERK +152, 0, 6, 4, 0, 1, 0, 1, 1, no, 0, 1, 0, weapon, 5, no, none, X12//TF_BACKSLIDING +178, 1, 6, 4, 0, 0, 0, 100, 1, no, 0, 1, 0, none, 0, no, none, X13//NPC_POISON +190, 1, 6, 4, 0, 0, 0, 100, 1, no, 0, 1, 0, none, 0, no, none, X14//NPC_POISONATTACK +198, 0, 0, 4, 0, 1, 0, 10, 1, no, 0, 2, 0, magic, 0, no, none, X15//NPC_SUMMONSLAVE +199, 0, 0, 4, 0, 1, 0, 10, 1, no, 0, 2, 0, none, 0, no, none, X16//NPC_EMOTION +339, 0, 0, 0, 0, 0, 0, 3, 0, no, 0, 0, 0, none, 0, no, none, Skill_Pool//SKILL_POOL +340, 0, 0, 0, 0, 0, 0, 5, 0, no, 0, 0, 0, magic, 0, no, none, Magic//TMW_MAGIC +341, 0, 0, 0, 0, 0, 0, 5, 0, no, 0, 0, 0, magic, 0, no, none, Life_Magic//TMW_MAGIC_LIFE +342, 0, 0, 0, 0, 0, 0, 5, 0, no, 0, 0, 0, magic, 0, no, none, War_Magic//TMW_MAGIC_WAR +343, 0, 0, 0, 0, 0, 0, 5, 0, no, 0, 0, 0, magic, 0, no, none, Transmutation_Magic//TMW_MAGIC_TRANSMUTE +344, 0, 0, 0, 0, 0, 0, 5, 0, no, 0, 0, 0, magic, 0, no, none, Nature_Magic//TMW_MAGIC_NATURE +345, 0, 0, 0, 0, 0, 0, 5, 0, no, 0, 0, 0, magic, 0, no, none, Astral_Magic//TMW_MAGIC_ASTRAL +350, 0, 0, 0, 0, 0, 9, 10, 0, no, 0, 0, 0, weapon, 0, passive,agi, Brawling //TMW_BRAWLING +351, 0, 0, 0, 0, 0, 9, 10, 0, no, 0, 0, 0, weapon, 0, passive,luk, Lucky_Counter //TMW_LUCKY_COUNTER +352, 0, 0, 0, 0, 0, 9, 10, 0, no, 0, 0, 0, none, 0, passive,agi, Speed //TMW_SPEED +353, 0, 0, 0, 0, 0, 9, 10, 0, no, 0, 0, 0, none, 0, passive,vit, Poison_Resistance //TMW_POISON_RESISTANCE +354, 0, 0, 0, 0, 0, 9, 10, 0, no, 0, 0, 0, magic, 0, passive,int, Astral_Soul //TMW_ASTRAL_SOUL +45, 0, 0, 0, 0, 0, 9, 10, 0, no, 0, 0, 0, weapon, 0, passive,dex, Mallard's_Eye //AC_OWL +355, 0, 0, 0, 0, 0, 9, 10, 0, no, 0, 0, 0, weapon, 0, passive,str, Beserking //SKILL_WARRIOR_BERSERK implemented +28, 0, 6, 4, 0, 1, 0, 2, 1, yes, 0, 0, 0, magic, 0, no, none, Teleport //AL_TELEPORT +30, 9, 6, 16, 0, 1, 0, 10, 1, yes, 0, 0, 0, magic, 0, no, none, Heal //AL_HEAL +// maxrse describes the max. level that the skill can be raised to through the `raise skill' option. Further raising has to happen via quests. +// maxrse < max. +// `pool' can be `no', `active', or `passive'. +// `stat' can be `none', `str', `dex', `agi', `vit', `int', `luk'. + +// SEE COMMENT ABOVE! diff --git a/world/map/db/skill_require_db.txt b/world/map/db/skill_require_db.txt new file mode 100644 index 00000000..006310ce --- /dev/null +++ b/world/map/db/skill_require_db.txt @@ -0,0 +1,3 @@ +//id, list_hp, list_sp, list_hp_rate, list_sp_rate, list_zeny, list_weapon, state, spiritball, itemid1, amount1, itemid2, amount2, itemid3, amount3, itemid4, amount4, itemid5, amount5, itemid6, amount6, itemid7, amount7, itemid8, amount8, itemid9, amount9, itemid10, amount10 +142, 0, 3, 0, 0, 0, 99, none, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 //NV_FIRSTAID#‰ž‹}Žè“–# +150, 0, 7, 0, 0, 0, 99, none, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 //TF_BACKSLIDING#ƒoƒbƒNƒXƒeƒbƒv#
\ No newline at end of file diff --git a/world/map/db/skill_tree.txt b/world/map/db/skill_tree.txt new file mode 100644 index 00000000..51b14da3 --- /dev/null +++ b/world/map/db/skill_tree.txt @@ -0,0 +1,15 @@ +// JobNo,Skill-ID,MaxLV,RequiredSkill-ID,RequredSkill-Lv,.v5.Â.Ü.Å.J.è.Ô.µ + +//Novice +0,1,3,0,0,0,0,0,0,0,0,0,0//NV_BASIC # basic skill + +// Soul-less +1,1,9,0,0,0,0,0,0,0,0,0,0//NV_BASIC # basic skill +1,2,5,0,0,0,0,0,0,0,0,0,0//SM_SWORD # sword damage add skill +1,4,10,0,0,0,0,0,0,0,0,0,0//SM_RECOVERY # hp regen (requires first aid) +1,9,10,4,10,0,0,0,0,0,0,0,0//MG_SRECOVERY # sp regen (requies first aid) +1,36,10,0,0,0,0,0,0,0,0,0,0//MC_INCCARRY # increase max carry weight +1,37,10,0,0,0,0,0,0,0,0,0,0//MC_DISCOUNT # get cheaper prices from npc +1,38,10,0,0,0,0,0,0,0,0,0,0//MC_OVERCHARGE # sell stuff for better price to npc +1,48,10,2,5,0,0,0,0,0,0,0,0//TF_DOUBLE # a chance for double hits, requires sword damage add lvl 5 +1,49,10,2,10,0,0,0,0,0,0,0,0//TF_MISS # increased chance of dodging, requires backsliding
\ No newline at end of file diff --git a/world/map/db/statpoint.txt b/world/map/db/statpoint.txt new file mode 100644 index 00000000..b61780d4 --- /dev/null +++ b/world/map/db/statpoint.txt @@ -0,0 +1,255 @@ +48 +52 +56 +60 +64 +69 +74 +79 +84 +90 +96 +102 +108 +115 +122 +129 +136 +144 +152 +160 +168 +177 +186 +195 +204 +214 +224 +234 +244 +255 +266 +277 +288 +300 +312 +324 +336 +349 +362 +375 +388 +402 +416 +430 +444 +459 +474 +489 +504 +520 +536 +552 +568 +585 +602 +619 +636 +654 +672 +690 +708 +727 +746 +765 +784 +804 +824 +844 +864 +885 +906 +927 +948 +970 +992 +1014 +1036 +1059 +1082 +1105 +1128 +1152 +1176 +1200 +1224 +1249 +1274 +1299 +1324 +1350 +1376 +1402 +1428 +1455 +1482 +1509 +1536 +1564 +1592 +1620 +1648 +1677 +1706 +1735 +1764 +1794 +1824 +1854 +1884 +1915 +1946 +1977 +2008 +2040 +2072 +2104 +2136 +2169 +2202 +2235 +2268 +2302 +2336 +2370 +2404 +2439 +2474 +2509 +2544 +2580 +2616 +2652 +2688 +2725 +2762 +2799 +2836 +2874 +2912 +2950 +2988 +3027 +3066 +3105 +3144 +3184 +3224 +3264 +3304 +3345 +3386 +3427 +3468 +3510 +3552 +3594 +3636 +3679 +3722 +3765 +3808 +3852 +3896 +3940 +3984 +4029 +4074 +4119 +4164 +4210 +4256 +4302 +4348 +4395 +4442 +4489 +4536 +4584 +4632 +4680 +4728 +4777 +4826 +4875 +4924 +4974 +5024 +5074 +5124 +5175 +5226 +5277 +5328 +5380 +5432 +5484 +5536 +5589 +5642 +5695 +5748 +5802 +5856 +5910 +5964 +6019 +6074 +6129 +6184 +6240 +6296 +6352 +6408 +6465 +6522 +6579 +6636 +6694 +6752 +6810 +6868 +6927 +6986 +7045 +7104 +7164 +7224 +7284 +7344 +7405 +7466 +7527 +7588 +7650 +7712 +7774 +7836 +7899 +7962 +8025 +8088 +8152 +8216 +8280 +8344 +8409 +8474 +8539 +8604 +8670 +8736 +8802 +8868 +8935 +9002 diff --git a/world/map/news.php b/world/map/news.php new file mode 100644 index 00000000..7ab51a9c --- /dev/null +++ b/world/map/news.php @@ -0,0 +1,30 @@ +<?php +header("Content-type: text/plain"); +header("Cache-Control: no-store, no-cache, must-revalidate"); +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); + +$agent = $_SERVER['HTTP_USER_AGENT']; + +if (substr($agent, 0, 3) == "TMW" || substr($agent, 0, 4) == "Mana") +{ + $file = 'versions/' . date('Y-m-d') . '.txt'; + touch($file); + file_put_contents($file, '[' . date('H:i') . "] $agent\n", FILE_APPEND); +} + +$min_version = '0.0.29.1'; +$cur_version = '0.5.2'; + +if (substr($agent, 0, 3) == "TMW" and $agent < 'TMW/' . $min_version) +{ + echo "##1 The client you're using is no longer\n". + "##1 supported! Please upgrade to $min_version or\n". + "##1 higher!\n \n". + "##1 TMW Staff\n \n"; +} + +echo "##9 Latest client version: ##6$cur_version\n \n"; + +print file_get_contents("news.txt"); +?> diff --git a/world/map/news.txt b/world/map/news.txt new file mode 100644 index 00000000..277b55bc --- /dev/null +++ b/world/map/news.txt @@ -0,0 +1,602 @@ +##2 ~ The Hurnscald Herald ~ + +##3 June 2011 + +##0 A large shipment of gold coins was plundered +##0 by pirates. The shipment was to be sent to +##0 Tulimshar as part of their effort to control +##0 inflation. "They seemed to just come out of +##0 no where! They took the shipment and my pet +##0 squirrel Chompers!" Captain Zierock reported +##0 while in tears. + +##0 It is believed the pirates divided the gold +##0 then went separate ways to spend their spoils. +##0 Ironically, these pirates were the target of +##0 monsters, who plundered them not just for +##0 their new found wealth, but also for their +##0 crunchy bones and sea salty flesh. + +##0 On that note, be on the lookout for Green Slimes, +##0 which have grown hostile as they evolve to the +##0 harsh Tonori desert, making them a threat to +##0 travel and trade. It is believed many of the +##0 pirates attempted to cross the Snake Desert, +##0 where they met the Green Slimes...and their +##0 end. + +##0 In other news, Andra, a friend of Hinnak, has +##0 increased her agricultural knowledge and needs +##0 help keeping the soil around the farm fertile. +##0 Interested volunteers should speak with her +##0 about how to help. + +##0 Last, but certainly not least, Agostine has +##0 returned to Nivalis. While he enjoyed his +##0 time in Tulimshar, mingling with other artisans, +##0 he has missed his home in Kaizei. "I made this +##0 fabulous sweater, but nobody wanted to wear it +##0 in this hot and smelly desert. That is when I +##0 decided enough was enough. Sweat is just gross." + +##2 ~ The Hurnscald Herald ~ + +##3 May 2011 + +##0 Many battle hardened warriors took some time +##0 during April and enjoyed helping the somewhat +##0 forgetful Easter Bunny make his baskets. The +##0 children surely must have enjoyed their sweets. + +##0 The demi-god Golbenez has finally made good on +##0 his promise to open a 'place of leisure' in +##0 the form of an inn. Youngsters beware, since +##0 the entrance to this inn is near the old +##0 graveyard and could be dangerous. + +##0 There have also been reports about a mysterious +##0 stranger roaming the beaches near Tulimshar. +##0 Be on the lookout if you are in the area. + +##2 ~ The Hurnscald Herald ~ + +##3 January 2011 + +##0 Reports of bandit raids to the west of +##0 Hurnscald has mobilized the town. Those +##0 injured by these bandits may have a long stay +##0 ahead of them in Hurnscald's hospital. + +##0 Shortly after Tulimshar loosened the tariff +##0 on travel, skill trainers have come to Mana. +##0 If one wants to improve themselves through +##0 acquiring skills, be on the lookout for these +##0 trainers. + +##0 In other news, Taro is still missing, but +##0 Diryn, an agent of Tulimshar, has established +##0 a connection with the Kaizei area, making +##0 travel to Nivalis possible again. He still +##0 assists the battle hardened travel distant +##0 locations just outside of Hurnscald. Getting +##0 back can be done by finding Frozenbeard, a +##0 pioneer who is mapping a trade route to get +##0 to Nivalis by ship. + +##0 Diryn's re-connection with Nivalis came none +##0 too soon. Golbenez, a demi-god who demanded +##0 a half billion gold pieces for building some +##0 sort of leisure place, scrapped the idea and +##0 went for good old fashioned kidnapping to get +##0 whatever he wanted from the world of Mana. +##0 He kidnapped Santa Claus. Fearful Santa may +##0 not gift the children of the world, wizards, +##0 warriors and archers rallied to pay the +##0 demi-god his demands. + +##0 Shortly after Santa was freed, something more +##0 sinister has come to Kaizei. The yeti. +##0 Sightings of this beast returns with stories +##0 of them. Though aggressive, their behavior +##0 seems out of place. They've never been known +##0 as cave dwellers nor to kidnap people. + +##0 Last, but definitely not least, Dimond's Cove +##0 is observing "Burns' Supper" January 24-26th. +##0 Shanon is hosting the event, which he promises +##0 will be an excellent time for food, drink and +##0 poems. + +##2 ~ The Hurnscald Herald ~ + +##3 Countless candy-concerning complaints: council +##3 consequently considers citizen-composed cleanup crew +##3 Eighteenth of November 2010 + +##0 Recently, the ancient tradition of Hallowe'en +##0 was celebrated across Argaes, Tonori and other +##0 continents. Estimated tons of sweets were given +##0 out to happy trick-or-treaters, and as with +##0 most other years a lot of this vast total was +##0 dropped on the night. Even a week and a half +##0 after Hallowe'en, many kilograms of sweets +##0 still litter our pleasant woodlands. + +##0 After dozens of letters regarding the situation, +##0 the Hurnscald Council has said that the best +##0 solution would be to organise a team of +##0 volunteers to work on collecting dropped sweets +##0 and disposing of them - but it has yet to +##0 organise any such thing. + +##0 In the meantime, why not do your bit and collect +##0 some sweets for yourself? If you don't mind them +##0 being a bit old, you could be able to make the +##0 biggest Hallowe'en haul in history. + +##0 Additionally, we've been getting some reports of +##0 a rather creepy skeleton hanging around the +##0 woodland. He doesn't appear to be aggressive, +##0 but he chatters unintelligibly at passers-by. + + +##3 Rollback +##0 2010-11-17 +##0 +##0 Everything should now be running from a +##0 complete save state (including storage, banks, +##0 parties etc) that is even two days more recent +##0 than what we were temporarilyrunning on before. +##0 All credit to Platyna for speedy recovery and +##0 even more recent backups. :) +##0 +##3 Server outage +##0 2010-11-16 +##0 +##0 Things running on the four day old backups, +##0 restricted to account save info and character +##0 save info for now while we try to get other +##0 databases working. +##0 +##0 This means no party data or storage data for +##0 now, we'll try to recover that along with +##0 everything else, as we should be able to get +##0 a full saved state from within the past week. +##0 +##0 The current setup is more to have something +##0 partially up, and so that people know what's +##0 going on while we try to fix things; any +##0 in-game progress made right now ##1will not +##0 persist. +##0 +##3 Server outage +##0 2010-11-16 +##0 +##0 Okay, apparently even that won't work right now. +##0 Servers will remain ##3offline##0 until we figure out +##0 what we can do. +##0 +##3 Server outage +##0 2010-11-16 +##0 +##0 We've just had a serious server crash, and the +##0 databases seem to have been affected here. We're +##0 currently running on some four-day old backups; +##0 whether this will be a temporary measure or +##0 whether newer ones are usable is yet to be +##0 determined. +##0 +##0 Please note that the current state may only +##0 be ##3temporary##0, and that if usable newer backups +##0 are found within the next 24 hours, those will +##0 be used instead, and any character progress +##0 made may be lost. If no usable backups are +##0 found during this time, the four-day rollback +##0 will have to be permanent. +##0 +##0 More news updates will follow once we've +##0 investigated further; we're doing what we can... +##0 +##2 Freeyorp +##0 +##3 Testing server. +##3 2010-09-25 +##0 +##0 As you've probably noticed, we've set up a +##0 testing server accessible from the same +##0 login-server as usual. +##0 +##0 All characters have been copied, so you +##0 should have all levels, money, equipment etc +##0 as normal. +##0 +##0 Changes are far from complete, but it should be +##0 a good start, and the fundamentals should be +##0 there. +##0 +##0 The server will be used for balance efforts; +##0 a number of combat mechanics have been reworked. +##0 +##0 Note that while game mechanics have changed, no +##0 new content has been added to this server, so +##0 you won't have to worry about spoilers. +##0 +##0 Experiment, and remember to give feedback! +##0 Contact us using either: +##0 The forums at ##1forums.themanaworld.org##0, +##0 Our irc server, at ##1irc.themanaworld.org##0. +##0 /join #themanaworld and/or +##0 /join #tmw-dev +##0 The fate of this world's reality lies in your +##0 hands. :) +##0 +##0 +##3 2010-08-29 +##0 Throughout Argaes, new trade regulations from +##0 Tulimshar have concentrated wealth and power +##0 inside Tonori's largest city. The primary +##0 resource of Argaes, iron ore, now must be +##0 refined into ingots within Tulimshar's +##0 imperial capital. +##0 +##0 Argaes miners, in search of new iron deposits, +##0 have discovered a hostile mine north west of +##0 the woodland town of Hurnscald. More details +##0 are coming in about this mine. +##0 +##3 Tulimshar's Power Expands +##3 2010-08-18 +##0 The impact of the Great Earthquake has brought +##0 a rising evil to the land. After much debate +##0 Tulimshar's Wizard Council has begun to expand +##0 its influence in the world to meet the new +##0 challenges presented. +##0 +##0 While still slow to act, Tulimshar has begun +##0 monitoring the changing monster threat in the +##0 sandstorm and sent agents into Argaes. The +##0 landbridge that long united Argaes with Tonori +##0 has fallen into the sea, prompting Tulimshar's +##0 merchants to charge a hefty fee for trade and +##0 travel between the two continents. +##0 +##0 Something sinister has happened to Taro, Nivalis +##0 and the magical connection Kaizei had with +##0 Argaes. Some speculate it has something to do +##0 with the evil while others think Nivalis and the +##0 Sages of Kaizei want to isolate themselves from +##0 Tulimshar's influence. Either way, all portals +##0 to Kaizei have been closed. +##0 +##3 The Candor Challenge +##3 2010-08-18 +##0 +##0 In the lost island of Candor, a skeletal figure +##0 stands, awaiting for fresh blood to wander right +##0 in and pay him for the privilege of being killed +##0 in nasty ways. How long are you and your friends +##0 able to survive in the cave of horrors? +##0 +##0 In other news, you may also have run into an +##0 evil obelisk, trader of strange items, a water +##0 pump, a flood and some new insect life recently! +##0 +##3 The End is not nigh +##3 2010-06-09 + +##0 Content and technical development is currently +##0 split between the new server and the current +##0 tmwAthena server. Once the new sever is ready +##0 to be opened for public, you will be able to +##0 create a new character there or keep playing +##0 your old character on tmwAthena - or both! +##0 The tmwAthena server will keep running as +##0 long as there are people who want to play there. + +##3 Keep an eye out for temporary events! +##3 2010-06-09 + +##0 The Easter 2010 and Christmas 2009 special quests +##0 were enjoyed by many, and we will try to announce +##0 such events more visibly in the future. But though +##0 they are gone now, players are actively organizing +##0 random events: there's quizzes, searches for missing +##0 people, player-vs-player madness, drop parties, you +##0 name it. You do not need any special status to run +##0 an event yourself, just ask for help if you need any. + +##3 News backlog continues +##3 2010-06-09 + +##0 There were a few quick server crashes last weekend +##0 and on Monday. The server has stabilized for now, +##0 and there's a project to buy more memory for it to +##0 avoid future crashes. Thank you for your donations! + +##0 In older news, a month ago there was some data +##0 lost on the Manaworld wiki and bugtracker due to +##0 briefly running out of hard disk space - not due +##0 to a new censorship system, as someone seemed to +##0 have thought. ;) + +##3 Skill Changes +##3 2009-10-27 + +##0 For simplification and realism purposes, the old +##0 basic skill has been removed. Emote, trade, and +##0 party-related abilities are now available in +##0 three completely new and independent skills. To +##0 get these new skills, you'll need to find NPCs +##0 that give them out in Tulimshar. Don't worry, +##0 this won't affect existing parties, and sitting +##0 will always be available from now on. + +##3 Undead? +##3 2009-10-27 + +##0 Reports of undead south west of Dimond's Cove +##0 been pouring in. More later. + +##2 ~ The Hurnscald Herald ~ + +##3 Magic Fixes +##3 2009-09-15 + +##0 The second tier healing spell no longer works on +##0 yourself, it will still take mana if you try to +##0 cast it on dead players. We're working to fix +##0 that. It will halt health regeneration when used. + +##0 Making lifestones now prioritizes bug legs, then +##0 maggot slime, then the herbs. + +##3 Technical updates +##3 2009-08-16 + +##0 GMs will now have their nicks highlighted in +##0 newer clients. + +##0 The automatic bans for spam have been +##0 adjusted. You will no longer be banned for +##0 trade spam, it will just be ignored by the +##0 server. Sit spam is now checked for and extra +##0 packets are ignored. + +##3 Has Magic Returned? +##3 2009-05-31 + +##0 A string of curious incidents have left Hurnscald +##0 citizens baffled, and raised questions about +##0 whether magic might have made a come-back in +##0 our peaceful province. + +##0 Tulimshar healer Elanore reports that a small +##0 group of novice healers have sought to become +##0 her apprentices-- for the first time in years. +##0 Farmer Hinnak, tells us of a mysterious woman +##0 who reportedly bewitched his garden. Also, +##0 someone seems to have moved into the +##0 abandoned hut west of Hurnscald-- repairing it +##0 over night! Can there be any natural explanation +##0 for these events? We do ask our readers to keep +##0 their eyes open! + +##2 ~ The Hurnscald Herald ~ + +##3 Central Tulimshar +##3 2009-02-11 + +##0 Central Tulimshar is now open again. Work +##0 continues on the rest of the city. + +##3 Rebalancing +##3 2009-01-19 + +##0 The rebalancing done on enigma (our official +##0 test server) is now on our main server. Work is +##0 being done on getting the next testing period +##0 ready. All monsters have been rebalanced and +##0 the desert especially has different monster +##0 positions. Monster exp has been reworked as +##0 well. + +##0 The cotton boots are finally available in +##0 certain shops. Also, as most of you have already +##0 seen, hair styles have been reorganized so both +##0 genders can use all styles. Note that only 0.0.27 +##0 can see them all. Older clients will only see the +##0 male styles. New hair colors are in the works as +##0 well. + +##3 Open Testing on Official Test Server +##3 2009-01-04 through 2009-01-11 + +##0 A testing period on enigma (our official test +##0 server) has started. Experience and drop rates +##0 are 10 times higher than normal during this +##0 period. We're testing new monster placement, +##0 new monster stats, and our new experience +##0 formula. Use of 0.0.27 for this is encouraged, +##0 though all currently supported clients are +##0 welcome. Please direct all feedback to the +##0 appropriate thread on the forums. + +##0 To participate in this testing, set your server +##0 to enigma.dy.fi. Enigma shouldn't be used +##0 between open test periods, as the content +##0 may be in an unusable state. Characters and +##0 accounts may be wiped at any time between +##0 testing periods. + +##3 Monster Mutations and Experience Point Changes +##3 2008-12-10 + +##0 We have rebalanced monster experience points +##0 and added two new mechanisms to make the +##0 game more challenging: monster mutations, by +##0 which monster attributes (and experience points) +##0 are slightly modified for each individual +##0 monster, and increased boni for shared kills: +##0 killing a monster with a group of fighters now +##0 yields significantly more experience points than +##0 killing it alone. To adjust for the latter +##0 increase, we have reduced base experience points +##0 for low and medium-level monsters, though we +##0 expect levelling to be easier overall. + +##2 The TMW development team + +##3 Mines and weddings! +##3 2008-10-11 + +##0 A new mining operation has started north of +##0 town. The company's director has stated that +##0 the mine's output has been sufficient and no +##0 problems have been encountered. + +##0 A new wedding officiator has been +##0 commissioned. She has set up shop west of +##0 town. Many couples are rejoicing that a new +##0 officiator is in the region. + +##2 ~ Hurnscald Gazette ~ + +##3 Volcano erupted! +##3 14/09/2008 + +##0 A volcano has erupted east of the city, causing +##0 major damage. Repairs are under way. The guard +##0 has cautioned that the new beach area that was +##0 opened up by the rumbling should be explored +##0 with caution. + +##0 In related news, local alchemists have stated +##0 that the ash from the eruption is what caused +##0 many items of clothing to be bleached. + +##2 ~ Tulimshar Herald ~ + +##3 Strange stones appeared and pass cleared +##3 15/04/2008 + +##0 Strange stones appeared in towns all over The +##0 Mana World. No one knows how they appeared +##0 and what they are good for. Can you solve their +##0 riddle? + +##0 In other news: The pass to the southeast of the +##0 desert has been cleared and a mountain area +##0 with a lot of snakes has been discovered behind +##0 it. Rumors say that an eremite lives in that +##0 area who is a genius at leatherworks. + +##2 The Mana World News + +##3 Fast attack bug fixed, gameplay changes +##3 07/04/2008 + +##0 This weekend a fix was applied for the bug that +##0 allowed you to attack with light-speed with +##0 several weapons. We understand this changes +##0 gameplay quite a bit, and as a result the game +##0 will probably need to be adjusted. The existence +##0 of this bug has effectively prevented us from +##0 ever being able to balance the gameplay +##0 properly. + +##0 Please stay with us and allow us some time to +##0 make the necessary adjustments. Suggestions are +##0 welcome! + +##2 TMW Development Team + +##3 The Mana World 0.0.24 released +##3 24/12/2007 + +##0 Female-specific hairstyles, XP gaining +##0 notification and improved resource caching are +##0 but three examples of the new features in this +##0 release. A lot of bug fixes where also made. +##0 See the full details on the website! + +##2 Bjorn Lindeijer + +##3 Village of Hurnscald released +##3 21/08/2007 + +##0 The village of Hurnscald has been released +##0 today. You will find this little village in the +##0 woodland (try to explore paths you found +##0 blocked before). In Hurnscald you will find two +##0 new quests, new items and a lot of little +##0 surprises. Enjoy! + +##2 Crush + +##3 The Mana World 0.0.23 released +##3 04/06/2007 + +##0 A particle engine was added, which allowed us +##0 to add several nice effects to various locations +##0 in the world as well as effects based on hitting +##0 enemies or going level up. A series of bug fixes +##0 was also made. + +##2 Bjorn Lindeijer + +##3 The Mana World 0.0.22.2 released +##3 17/02/2007 + +##0 Several small fixes have been made and we +##0 hope to have solved some updater problems. +##0 Upgrade whenever you're ready. + +##2 Bjorn Lindeijer + +##3 Soulless characters deleted and money cut +##3 21/01/2007 + +##0 A long time ago we have allowed characteres to +##0 sell their soul in order to gain additional +##0 powers. They were explicitly warned that they +##0 would be eventually deleted. This time has now +##0 come. + +##0 In addition, we have cut the fortune of +##0 anybody who had more than 10.000 GP. + +##2 Bjorn Lindeijer + +##3 Server address change! +##3 17/01/2007 + +##0 The animesites.de host is no longer available. +##0 We thank Ultramichy for hosting us for so long +##0 at no cost! The new server address is: + +##1 server.themanaworld.org + +##0 We are now kindly hosted on platinum, thanks +##0 to Platyna. + +##2 Bjorn Lindeijer + +##3 The Mana World 0.0.22.1 released +##3 15/01/2007 + +##0 A minor update was released based on the new +##0 Guichan 0.6.0. Some small fixes are also +##0 included. + +##2 Bjorn Lindeijer + +##3 The Mana World 0.0.22 released +##3 24/12/2006 + +##0 On the edge of Christmas, we've released a +##0 new client version. A Christmas event is +##0 expected to start soon and you'll need the +##0 new client for it, so go get it! Read the +##0 NEWS for file details on what's new. + +##2 Bjorn Lindeijer diff --git a/world/map/npc/001-1/_import.txt b/world/map/npc/001-1/_import.txt new file mode 100644 index 00000000..b6c625ff --- /dev/null +++ b/world/map/npc/001-1/_import.txt @@ -0,0 +1,28 @@ +// Map 001-1: Tulimshar +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 001-1.gat +npc: npc/001-1/_mobs.txt +npc: npc/001-1/_warps.txt +npc: npc/001-1/banker.txt +npc: npc/001-1/barber.txt +npc: npc/001-1/bard.txt +npc: npc/001-1/bernard.txt +npc: npc/001-1/bleacher.txt +npc: npc/001-1/children.txt +npc: npc/001-1/constable.txt +npc: npc/001-1/elanore.txt +npc: npc/001-1/entertainer.txt +npc: npc/001-1/gossip.txt +npc: npc/001-1/guards.txt +npc: npc/001-1/guide.txt +npc: npc/001-1/luca.txt +npc: npc/001-1/mapflags.txt +npc: npc/001-1/merchant.txt +npc: npc/001-1/mikhail.txt +npc: npc/001-1/monster_guide.txt +npc: npc/001-1/rewards_master.txt +npc: npc/001-1/sandra.txt +npc: npc/001-1/sarah.txt +npc: npc/001-1/soul-menhir.txt +npc: npc/001-1/trader.txt +npc: npc/001-1/vincent.txt diff --git a/world/map/npc/001-1/_mobs.txt b/world/map/npc/001-1/_mobs.txt new file mode 100644 index 00000000..c8aa210f --- /dev/null +++ b/world/map/npc/001-1/_mobs.txt @@ -0,0 +1,48 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar mobs + +001-1.gat,45,86,2,1 monster Scorpion 1003,1,30000,30000,Mob001-1::On1003 +001-1.gat,43,85,2,1 monster Scorpion 1003,1,60000,30000,Mob001-1::On1003 +001-1.gat,45,87,1,1 monster Scorpion 1003,1,90000,30000,Mob001-1::On1003 +001-1.gat,45,85,1,1 monster Scorpion 1003,1,180000,30000,Mob001-1::On1003 +001-1.gat,42,86,1,1 monster Scorpion 1003,1,270000,30000,Mob001-1::On1003 +001-1.gat,43,87,2,1 monster Scorpion 1003,1,360000,30000,Mob001-1::On1003 +001-1.gat,83,28,11,12 monster Maggot 1002,5,100000,30000,Mob001-1::On1002 +001-1.gat,115,26,13,9 monster Maggot 1002,3,100000,30000,Mob001-1::On1002 +001-1.gat,124,53,15,13 monster Maggot 1002,10,100000,30000,Mob001-1::On1002 +001-1.gat,120,64,15,13 monster Maggot 1002,11,100000,30000,Mob001-1::On1002 +001-1.gat,53,23,26,4 monster Maggot 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,68,67,9,10 monster Maggots 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,99,81,24,4 monster Maggot 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,139,65,12,23 monster Maggots 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,113,47,8,11 monster Maggot 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,132,38,11,12 monster Maggot 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,77,49,17,13 monster Maggot 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,21,74,6,18 monster Maggot 1002,2,100000,30000,Mob001-1::On1002 +001-1.gat,122,59,17,22 monster Giant Maggot 1006,1,100000,30000,Mob001-1::On1006 +001-1.gat,137,25,15,7 monster Fire Goblin 1011,1,61000,60000,Mob001-1::On1011 + + +001-1.gat,0,0,0 script Mob001-1 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +On1006: + set @mobID, 1006; + callfunc "MobPoints"; + break; + +On1011: + set @mobID, 1011; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/001-1/_warps.txt b/world/map/npc/001-1/_warps.txt new file mode 100644 index 00000000..d116051c --- /dev/null +++ b/world/map/npc/001-1/_warps.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar warps + +001-1.gat,44,88 warp ToSandstorm 3,-1,002-1.gat,58,17 +001-1.gat,44,20 warp toCentralTulimshar 3,-1,021-1.gat,55,145 +001-1.gat,125,20 warp toCentralTulimshar 0,-1,021-1.gat,136,146 +001-1.gat,32,71 warp ToInn -1,-1,001-2.gat,25,34 +001-1.gat,75,41 warp ToHouse -1,-1,001-4.gat,26,33 diff --git a/world/map/npc/001-1/banker.txt b/world/map/npc/001-1/banker.txt new file mode 100644 index 00000000..445b0ebf --- /dev/null +++ b/world/map/npc/001-1/banker.txt @@ -0,0 +1,8 @@ +// + +001-1.gat,57,52,0 script Tybalt 107,{ + callfunc "ClearVariables"; + set @npcname$, "Tybalt"; + callfunc "Banker"; + close; +} diff --git a/world/map/npc/001-1/barber.txt b/world/map/npc/001-1/barber.txt new file mode 100644 index 00000000..502e5401 --- /dev/null +++ b/world/map/npc/001-1/barber.txt @@ -0,0 +1,11 @@ +// + +001-1.gat,53,38,0 script Nicolas 100,{ + mes "[Nicolas the Barber]"; + mes "\"Do you need a barber?\""; + next; + callfunc "Barber"; + mes "[Nicolas the Barber]"; + mes "\"Come again!\""; + close; +} diff --git a/world/map/npc/001-1/bard.txt b/world/map/npc/001-1/bard.txt new file mode 100644 index 00000000..9de957e1 --- /dev/null +++ b/world/map/npc/001-1/bard.txt @@ -0,0 +1,128 @@ +// + +//001-1.gat,46,76,0 script Bard 152,{ +001-1.gat,40,73,0 script Bard 152,{ + setarray @songs$, "\"There once was a bard, who had it hard, because a man in dark green, was very mean.\"", + "\"At Hurnscald inn, there was a person of fairest skin, declining wedding bands from quite a many hands.\"", + "\"As the Sun sets down in the forest's brown, she whom the fragrance holds counts her gold.\""; + set @name$, "Bill Ballshaker the Bard"; + mes "[" + @name$ + "]"; + if (Sex) + mes "\"Greetings, traveler! Have you come to listen to my stories?\""; + if (!Sex) + mes "\"Greetings, fair lady! Well met, on such a lovely day! Might I entertain you with a tale or two?\""; + next; + +L_Main: + menu "Sing me a song, lute man!", L_Song, + "Have you heard any news?", L_News, + "What do you know about...", L_Question, + "Farewell!", -; + close; + +L_News: +// mes "[" + @name$ + "]"; +// mes "\"Quite, quite! Rumour has it that Luca the Hunter, from this very town of Tulimshar, has returned from a long journey.\""; +// next; +// mes "[" + @name$ + "]"; +// mes "\"Many perilous battles he fought, or so his tales go... I am still working on a sonnet that I wish to dedicate to his exploits.\""; +// next; +// mes "[" + @name$ + "]"; +// mes "\"He says that he learned some new skills along the way and wishes to pass them on to others like him, who do not fear the fire of battle!\""; +// next; +// mes "[" + @name$ + "]"; +// mes "\"If you are experienced enough, perhaps he will teach you?\""; +// next; +// goto L_Main; + + mes "[" + @name$ + "]"; + mes "\"News I have for you indeed, lest you have already overheard (for then it would no longer be news to you!)\""; + next; + mes "[" + @name$ + "]"; + mes "\"Rumor has it that an ancient source of magic, a Mana Seed, has been sighted in the west, beyond the fair town of Hurnscald.\""; + next; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_MANASEED_RUMOUR; + mes "[" + @name$ + "]"; + mes "\"Whence it came, nobody knows... but they say that sometimes such Mana Seeds may choose a powerful individual to impart some of its mystic power to!\""; + next; + mes "[" + @name$ + "]"; + mes "\"I wonder who might be qualified?\""; + next; + goto L_Main; + +L_Question: + callfunc "MagicTalkOptionsSetup"; + set @ignore, @QQ_ASTRALSOUL; + callfunc "MagicTalkMenu"; + + if (@c == 0) goto L_Main; + if (@c == @QQ_ELANORE) goto L_Q_elanore; + if (@c == @QQ_MANASEED) goto L_Q_manaseed; + if (@c == @QQ_WYARA) goto L_Q_wyara; + if (@c == @QQ_SAGATHA) goto L_Q_sagatha; + if (@c == @QQ_AULDSBEL) goto L_Q_auldsbel; + if (@c == @QQ_OLDWIZ) goto L_Q_oldwiz; + + mes "[" + @name$ + "]"; + mes "\"Alas, I know very little about this matter.\""; + next; + goto L_Main; + +L_Q_oldwiz: + mes "[" + @name$ + "]"; + mes "\"The old wizard has been an old man for as long as I remember, living near the mountains in his magic hut-- a hut that is bigger on the inside, just like in the old tales of Gyer Filla the Wise....\""; + next; + mes "[" + @name$ + "]"; + mes "\"I doubt that they are the same person, though. For one, I have never seen his hut fly. For another, Gyer never took apprentices.\""; + next; + goto L_Main; + +L_Q_elanore: + mes "[" + @name$ + "]"; + mes "\"Elanore is this town's healer. Rumor has it that she traveled far and wide when she was younger, to learn the deepest secrets of healing magic, after her brother caught a mysterious illness.\""; + next; + goto L_Main; + +L_Q_manaseed: + mes "[" + @name$ + "]"; + mes "\"The Mana Seed is said to be a source of great magic. Perhaps some witch or wizard might know more about it?\""; + next; + goto L_Main; + +L_Q_wyara: + mes "[" + @name$ + "]"; + mes "\"Wyara is not actually from Hurnscald. As a young witch, she decided to settle down there to help the people of Hurnscald. She is kind and gentle, except towards the Doctor, who seems to have little respect for her potions.\""; + next; + goto L_Main; + +L_Q_sagatha: + mes "[" + @name$ + "]"; + mes "\"Sagatha! Ah, such a wonderful and mysterious being; the center of many a tale...\""; + next; + mes "[" + @name$ + "]"; + mes "\"Some say that she is the most powerful witch in all of Argaes. I don't know whether that is true, but I am quite certain that the is the most beautiful of all the witches! Alas, she will let no man touch her...\""; + mes "He sighs."; + next; + mes "[" + @name$ + "]"; + mes "\"I met her only twice, back in my traveling days, but there are two pieces of advice I can give you:\""; + next; + mes "[" + @name$ + "]"; + mes "\"First, she will suffer no fool easily, particularly no man.\""; + next; + mes "[" + @name$ + "]"; + mes "\"Second, the creatures of the forest mean everything to her. Harm them, and you may find her an enemy-- and a powerful one at that...\""; + next; + goto L_Main; + +L_Q_auldsbel: + mes "[" + @name$ + "]"; + mes "\"Auldsbel is some wizard from further north, from what I have gathered. He bought a hut near Hurnscald some years back and often comes here to experiment on things, probably because he is not allowed to do these experiments where he comes from.\""; + next; + goto L_Main; + +L_Song: + mes "[" + @name$ + "]"; + set @id, rand(3); + mes @songs$[@id]; + close; +} diff --git a/world/map/npc/001-1/bernard.txt b/world/map/npc/001-1/bernard.txt new file mode 100644 index 00000000..b93a0d4d --- /dev/null +++ b/world/map/npc/001-1/bernard.txt @@ -0,0 +1,117 @@ +// + +001-1.gat,37,44,0 script Bernard 117,{ + if(TMW_Quest >= 4) goto L_Done2; + if(TMW_Quest == 3) goto L_Progress2; + if(TMW_Quest == 2) goto L_Done1; + if(TMW_Quest == 1) goto L_Progress; + + set @TEMP, rand(2); + if(@TEMP == 0) goto L_Opening0; + if(@TEMP == 1) goto L_Opening1; + +L_Opening0: + mes "[Bernard]"; + mes "\"Tulimshar is crawling with maggots. Hey, I need a favor, could you help me a bit?\""; + next; + goto L_Ask; + +L_Opening1: + mes "[Bernard]"; + mes "\"The taste of maggots in soup is... unforgettable, they taste simply divine! Would you help me kill some?\""; + next; + goto L_Ask; + +L_Ask: + menu + "Yes.", L_Yes, + "No.", L_No; + +L_Yes: + set @TEMP, rand(2); + if(@TEMP == 0) goto L_Req0; + if(@TEMP == 1) goto L_Req1; + +L_Req0: + mes "[Bernard]"; + mes "\"Great! I need a Roasted Maggot for my soup.\""; + next; + goto L_Set; + +L_Req1: + mes "[Bernard]"; + mes "\"Bring me a Roasted Maggot. I'll give you something if you do.\""; + next; + goto L_Set; + +L_Set: + set TMW_Quest,1; + mes "[Bernard]"; + mes "\"Please bring it to me!\""; + close; + +L_Progress: + if (countitem("RoastedMaggot") < 1) goto L_NotEnough; + mes "[Bernard]"; + mes "\"Oooh, perfect! It's perfect!"; + mes "You brought me my Roasted Maggot! Here, have some cake for your troubles.\""; + getinventorylist; + if (@inventorylist_count - (countitem("RoastedMaggot") == 1) > 99 - (countitem("CherryCake") == 0) ) goto L_TooMany; + delitem "RoastedMaggot", 1; + getexp 100, 0; + getitem "CherryCake", 5; + set TMW_Quest, 2; + close; + +L_Progress2: + if (countitem("MaggotSlime") < 3) goto L_NotEnough1; + mes "[Bernard]"; + mes "\"Nice! They're perfect, just perfect!"; + mes "You brought me the 3 Maggot Slimes! Here, have some beer as reward.\""; + getinventorylist; + if ((@inventorylist_count - (countitem("MaggotSlime") == 3) > 99 - (countitem("Beer") == 0) )) goto L_TooMany; + delitem "MaggotSlime", 3; + getexp 100, 0; + getitem "Beer", 3; + set TMW_Quest, 4; + close; + + +L_NotEnough: + mes "[Bernard]"; + mes "\"Oh, please hurry and bring me a Roasted Maggot. I'm yearning for maggot soup!\""; + close; + +L_NotEnough1: + mes "[Bernard]"; + mes "\"Please do hurry and bring me 3 Maggot Slimes, so I can finish my soup!\""; + close; + + +L_Done1: + mes "[Bernard]"; + mes "\"Thank you so much!\""; + mes "\"But... something is missing to make the soup creamy.\""; + next; + mes "\"I need 3 Maggot Slimes for that.\""; + mes "\"Bring them to me, and I'll give you something nice.\""; + set TMW_Quest,3; + close; + +L_Done2: + mes "[Bernard]"; + mes "\"I didn't mention it before, but I also put beer in my soup. I hope you like beer as much as I do, because, you see...\""; + next; + mes "\"Beer is life!\""; + close; + + +L_No: + close; + +L_TooMany: + next; + mes "[Bernard]"; + mes "\"You don't have room for my reward. I'll wait until you do.\""; + close; +} diff --git a/world/map/npc/001-1/bleacher.txt b/world/map/npc/001-1/bleacher.txt new file mode 100644 index 00000000..a3827e43 --- /dev/null +++ b/world/map/npc/001-1/bleacher.txt @@ -0,0 +1,195 @@ +// + +001-1.gat,27,53,0 script Candide 156,{ + mes "[Candide]"; + mes "\"I've figured out how that volcanic ash bleaches cloth."; + mes "I could do it for you, but I'll need three piles of ash and 5,000 GP for supplies per item.\""; + next; + + if (countitem(701) < 3) goto L_no_ash; + + if (zeny < 5000) goto L_no_money; + + menu "I'd like to bleach something", -, + "No thanks", L_close; + +L_bleach_menu: + mes "[Candide]"; + mes "\"What would you like to bleach?\""; + next; + + menu + "Cotton shirt", L_cottonshirt, + "V-Neck sweater", L_vneck, + "Turtleneck sweater", L_tneck, + "Cotton shorts", L_shorts, + "Cotton skirt", L_skirt, + "Miniskirt", L_miniskirt, + "Tank top ", L_tanktop, + "Short tank top", L_tanktop_short, + "Silk robe", L_robe, + "Cotton headband", L_cotton_headband, + "Desert hat", L_desert_hat, + "Cotton boots", L_cotton_boots, + "Cotton gloves", L_cotton_gloves, + "Rabbit ears", L_rabbit_ears, + "Wizard hat", L_wizard_hat, + "Bowler hat", L_bowler_hat, + "Red lined sorcerer robe", L_red_lined_sorcerer_robe, + "Bowler hat (brown)", L_bowler_hat_brown, + "Nevermind", -; + goto L_close; + +L_cottonshirt: + set @normal, 1202; + set @dyeBase, 2050; + goto L_choose_color; + +L_vneck: + set @normal, 624; + set @dyeBase, 2060; + goto L_choose_color; + +L_tneck: + set @normal, 564; + set @dyeBase, 2070; + goto L_choose_color; + +L_shorts: + set @normal, 586; + set @dyeBase, 2110; + goto L_choose_color; + +L_skirt: + set @normal, 632; + set @dyeBase, 2100; + goto L_choose_color; + +L_miniskirt: + set @normal, 771; + set @dyeBase, 2170; + goto L_choose_color; + +L_tanktop: + set @normal, 688; + set @dyeBase, 2090; + goto L_choose_color; + +L_tanktop_short: + set @normal, 689; + set @dyeBase, 2120; + goto L_choose_color; + +L_robe: + set @normal, 720; + set @dyeBase, 2080; + goto L_choose_color; + +L_cotton_headband: + set @normal, 724; + set @dyeBase, 2140; + goto L_choose_color; + +L_desert_hat: + set @normal, 723; + set @dyeBase, 2130; + goto L_choose_color; + +L_cotton_boots: + set @normal, 735; + set @dyeBase, 2150; + goto L_choose_color; + +L_cotton_gloves: + set @normal, 741; + set @dyeBase, 2160; + goto L_choose_color; + +L_rabbit_ears: + set @normal, 1255; + set @dyeBase, 2190; + goto L_choose_color; + +L_wizard_hat: + set @normal, 4028; + set @dyeBase, 2200; + goto L_choose_color; + +L_bowler_hat: + set @normal, 4030; + set @dyeBase, 2210; + goto L_choose_color; + +L_red_lined_sorcerer_robe: + set @normal, 798; + set @dyeBase, 2220; + goto L_choose_color; + +L_bowler_hat_brown: + set @normal, 800; + set @dyeBase, 2230; + goto L_choose_color; + +L_choose_color: + mes "[Candide]"; + mes "\"And the color?\""; + next; + + menu "Red", -, + "Green", -, + "Dark Blue", -, + "Yellow", -, + "Light Blue", -, + "Pink", -, + "Black", -, + "Orange", -, + "Purple", -, + "Dark Green", -; + + set @del, @dyeBase + @menu - 1; + + if (countitem(@del) == 0) goto L_no_item; + + if (countitem(701) < 3) goto L_no_ash; + + if (zeny < 5000) goto L_no_money; + + delitem @del, 1; + getitem @normal, 1; + delitem 701, 3; + set zeny, zeny - 5000; + +L_again: + mes "[Candide]"; + mes "\"Would you like to bleach something else?\""; + next; + + menu "Yes", L_bleach_menu, + "No", L_close; + +L_no_item: + mes "[Candide]"; + mes "\"You don't have one of those.\""; + next; + + goto L_again; + +L_no_ash: + mes "[Candide]"; + mes "\"You don't have enough ash for me to bleach anything."; + mes "I need three piles.\""; + next; + + goto L_close; + +L_no_money: + mes "[Candide]"; + mes "\"You don't have enough gold for me to bleach anything."; + mes "I need 5,000 GP for supplies.\""; + next; + +L_close: + mes "[Candide]"; + mes "\"Come again.\""; + close; +} diff --git a/world/map/npc/001-1/children.txt b/world/map/npc/001-1/children.txt new file mode 100644 index 00000000..4ffb1ba5 --- /dev/null +++ b/world/map/npc/001-1/children.txt @@ -0,0 +1,135 @@ +// Aisha and Nina + +001-1.gat,95,29,0 script Aisha 108,{ + set @TEMP,rand(9); + if(@TEMP == 0) goto L_1; + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 4) goto L_4; + if(@TEMP == 5) goto L_5; + if(@TEMP == 6) goto L_6; + if(@TEMP == 7) goto L_7; + if(@TEMP == 8) goto L_8; + +L_1: + mes "[Aisha]"; + mes "\"Maggots are soo slimey!\""; + close; + +L_2: + mes "[Aisha]"; + mes "\"Want to play ball with me?\""; + close; + +L_3: + mes "[Aisha]"; + mes "\"There are so many monsters; I hate scorpions!\""; + close; + +L_4: + mes "[Aisha]"; + mes "\"When I grow up, I want to be strong enough to kill a scorpion!\""; + close; + +L_5: + mes "[Aisha]"; + mes "\"Mommy told me that you can sell the things that monsters drop.\""; + close; + +L_6: + mes "[Aisha]"; + mes "\"Have you tried to eat a roasted maggot? They are sooo yummy! And you feel much healthier afterwards, too!\""; + close; + +L_7: + mes "[Aisha]"; + mes "\"I want to be a Doctor when I grow up!\""; + close; + +L_8: + mes "[Aisha]"; + mes "\"That volcano was sooo scary! The earth was shaking and everything was breaking down... but now they have rebuilt everything.\""; + close; +} + +001-1.gat,39,67,0 script Nina 103,{ + mes "[Nina]"; + set @TEMP,rand(10); + if(@TEMP == 0) goto L_1; + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 4) goto L_4; + if(@TEMP == 5) goto L_5; + if(@TEMP == 6) goto L_6; + if(@TEMP == 7) goto L_7; + if(@TEMP == 8) goto L_8; + goto L_9; + +L_1: + mes "\"If I learned anything from school, Grenxen founded Tulimshar.\""; + close; + +L_2: + mes "\"When I was picking rocks from the field, I saw a red scorpion.\""; + close; + +L_3: + mes "\"Its polite to state your name before talking to anyone.\""; + close; + +L_4: + + mes "\"I have a Scorpion Doll!\""; + close; + +L_5: + mes "\"I always take some spare Cactus Juice with me on the field. They are heavy, though.\""; + close; + +L_6: + mes "\"When you are feeling bad, eating something can usually help you heal faster.\""; + close; + +L_7: + mes "\"Grenxen is the Demon that founded Tulimshar.\""; + close; + +L_8: + mes "\"That volcano eruption was scary; much of Tulimshar was destroyed. But the mayor had everything rebuilt quickly.\""; + close; + +L_9: + mes "\"I know a very bad word. But I must not say it, because monsters will come and get me if I do!\""; + next; + menu + "A bad word?", L_tell, + "Oh, you better keep it for yourself then.", -; + close; + +L_tell: + mes "[Nina]"; + mes "\"Yes, I heard my mother say it once. And she made me promise her to never say it. Never.\""; + next; + menu "If I promise to never tell anyone, can you tell me the word?", L_keepword, + "I understand, you do not need to tell me...", L_giveword, + "Goodbye!", -; + close; + +L_keepword: + mes "[Nina]"; + mes "\"No.\""; + close; + +L_giveword: + mes "[Nina]"; + mes "Nina looks around as she hushes you to silence. After a few seconds, she whispers to you."; + mes "\"I like you! So I will tell you the bad word. But you can't tell anyone else about it! The bad word is '" + getspellinvocation("aggravate") + "'.\""; + next; + + mes "[Nina]"; + mes "Terrified, she looks around once more."; + mes "\"But you mustn't tell anyone!\""; + close; +} diff --git a/world/map/npc/001-1/constable.txt b/world/map/npc/001-1/constable.txt new file mode 100644 index 00000000..6131f0b4 --- /dev/null +++ b/world/map/npc/001-1/constable.txt @@ -0,0 +1,8 @@ +// + +001-1.gat,37,35,0 script Constable Perry Graf 150,{ +// set @npcname$, "Constable Perry Graf"; + set @canSkip, 1; + callfunc "GameRules"; + close; +} diff --git a/world/map/npc/001-1/elanore.txt b/world/map/npc/001-1/elanore.txt new file mode 100644 index 00000000..2d96ae6c --- /dev/null +++ b/world/map/npc/001-1/elanore.txt @@ -0,0 +1,651 @@ +// + +function script ElanoreFix { + set @Q_MASK, NIBBLE_1_MASK; + set @Q_SHIFT, NIBBLE_1_SHIFT; + + set @Q_STATUS_MAX, 3; // FIXME once level 3 magic was released + + set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT; + if (@Q_status > @Q_STATUS_MAX) + set @Q_status, @STATUS_INITIAL; + if (@Q_status > 1 && (getskilllv(SKILL_MAGIC_LIFE) < 2)) + set @Q_status, @STATUS_INITIAL; + + set QUEST_MAGIC2, + (QUEST_MAGIC2 & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} + +001-1.gat,58,68,0 script Elanore#_M 108,{ + + set @has_magic, getskilllv(SKILL_MAGIC); + + set @Q_MASK, NIBBLE_1_MASK; + set @Q_SHIFT, NIBBLE_1_SHIFT; + + set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT; + set @Q_heal_exp, MAGIC_EXPERIENCE >> 24; + + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC_LIFE; + set @SUP_name$, "Life Magic"; + + set @STATUS_INITIAL, 0; + set @STATUS_LEARNED_LIGHT_HEAL, 1; + set @STATUS_MASTERED_LIGHT_HEAL, 2; + set @STATUS_LEARNED_LAY_ON_HANDS, 3; + set @STATUS_WAITING_FOR_KADIYA, 4; + set @STATUS_READY_TO_LEARN_CURE_POISON, 5; + set @STATUS_LEARNED_CURE_POISON, 6; + + callfunc "ElanoreFix"; + + // This operation works around an earlier possible corruption of this state + if (@Q_status > @Q_STATUS_MAX) + set @Q_status, @STATUS_INITIAL; + callsub S_update_var; + + + if (sc_check(sc_poison)) + goto L_CurePoison; + + if (baselevel > 10) goto L_NoHeal; + + set @TEMP,rand(4); + + if(@TEMP == 0) goto Heal1; + if(@TEMP == 1) goto Heal2; + if(@TEMP == 2) goto Heal3; + if(@TEMP == 3) goto Heal4; + +Heal1: + + mes "[Elanore the Healer]"; + mes "\"You don't look too well; let me treat your wounds.\""; + next; + goto Heal_L; + +Heal2: + + mes "[Elanore the Healer]"; + mes "\"I will make quick work of your wounds.\""; + next; + goto Heal_L; + +Heal3: + + mes "[Elanore the Healer]"; + mes "\"Need a healing?\""; + next; + goto Heal_L; + +Heal4: + + mes "[Elanore the Healer]"; + mes "\"Sometimes you just need to run from battle.\""; + next; + goto Heal_L; + +Heal_L: + + set @TEMP,rand(3); + + if(@TEMP == 0) goto Heal_1; + if(@TEMP == 1) goto Heal_2; + if(@TEMP == 2) goto Heal_3; + if(@TEMP == 3) goto Heal_4; + +Heal_1: + + mes "[Elanore the Healer]"; + mes "\"Here you go!\""; + heal 10000,10000; + close; + +Heal_2: + + mes "[Elanore the Healer]"; + mes "\"Painless, wasn't it?"; + mes "Here you go!\""; + heal 10000,10000; + close; + +Heal_3: + + mes "[Elanore the Healer]"; + mes "\"You should be more careful.\""; + heal 10000,10000; + close; + +Heal_4: + + mes "[Elanore the Healer]"; + mes "\"Much better, right?!\""; + heal 10000,10000; + close; + +L_NoHeal: + if (MAGIC_FLAGS) + goto L_Chat; + +L_NoHealMessage: + mes "[Elanore the Healer]"; + mes "\"I'm sorry but unless you are young and in need, I can't help you, and your level is already higher than ten."; + mes "With so many people still injured from the earthquake, I really have no time to help."; + mes "You can get some rest in the inn near here.\""; + + close; + +L_Chat: + mes "[Elanore the Healer]"; + mes "\"Hello! Can I help you?\""; + next; +L_Main: + if (@has_magic && (@Q_status == @STATUS_INITIAL)) + menu + "Can you heal me?", L_NoHealMessage, + "Can you teach me magic?", L_Teach, + "What do you know about...", L_Question, + "Goodbye!", L_bye; + + if (@has_magic && (@Q_status > @STATUS_INITIAL)) + menu + "Can you heal me?", L_NoHealMessage, + "Can you teach me more?", L_Teach, + "Where can I get more lifestones?", L_Lifestones, + "What do you know about...", L_Question, + "Goodbye!", L_bye; + + if (!@has_magic) + menu + "Can you heal me?", L_NoHealMessage, + "What do you know about...", L_Question, + "Goodbye!", L_bye; + close; + +OnPCKillEvent: + attachrid(@killerrid); + set @Q_heal_exp, MAGIC_EXPERIENCE >> 24; + if (@Q_heal_exp < 8) + goto L_OnPcKillWipe; + set @Q_heal_exp, @Q_heal_exp - 8; + goto L_OnPcKillFinish; +L_OnPcKillWipe: + set @Q_heal_exp, 0; +L_OnPcKillFinish: + set MAGIC_EXPERIENCE, (MAGIC_EXPERIENCE & ~(255 << 24)) | (@Q_heal_exp << 24); + close; + +L_Lifestones: + mes "[Elanore the Healer]"; + mes "\"I always need components for my own healing spells. If you bring me ten gamboge leaves, ten alizarin leaves, ten mauve leaves and ten cobalt leaves, I can make ten lifestones; I will give you half of them.\""; + next; + + menu + "OK, I will get them.", -, + "No way!", -, + "Here you are!", L_Lifestones_Trade, + "Can I make them myself?", L_Lifestones_MakeSelf; + close; + +L_Lifestones_Trade: + if (countitem("MauveHerb") < 10) goto L_Lifestones_Trade_Missing; + if (countitem("GambogeHerb") < 10) goto L_Lifestones_Trade_Missing; + if (countitem("AlizarinHerb") < 10) goto L_Lifestones_Trade_Missing; + if (countitem("CobaltHerb") < 10) goto L_Lifestones_Trade_Missing; + getinventorylist; + if (@inventorylist_count == 100 && countitem("Lifestone") == 0 + && countitem("MauveHerb") > 10 + && countitem("GambogeHerb") > 10 + && countitem("AlizarinHerb") > 10 + && countitem("CobaltHerb") > 10) goto L_Lifestones_NoRoom; + + delitem "MauveHerb", 10; + delitem "GambogeHerb", 10; + delitem "AlizarinHerb", 10; + delitem "CobaltHerb", 10; + getitem "Lifestone", 5; + getexp 200, 1; + mes "[Elanore the Healer]"; + mes "Elanore carefully goes over your leaves, then smiles."; + mes "\"These will do just fine.\""; + mes "She picks up all fourty and presses them together in her hands, then whispers something."; + next; + mes "[Elanore the Healer]"; + mes "As she opens her hands again, the leaves have turned into ten golden crystals."; + mes "\"Five for you and five for me.\""; + mes "She smiles."; + mes "[200 experience points]"; + close; + +L_Lifestones_NoRoom: + mes "[Elanore the Healer]"; + mes "\"Oh... it seems that you have no room for the lifestones. But please do come back later when you have made a little space.\""; + close; + +L_Lifestones_Trade_Missing: + mes "[Elanore the Healer]"; + mes "Elanore counts the leaves you show her."; + mes "\"No, I am sorry. Please bring me ten leaves each of gamboge, alizarin, mauve, and cobalt.\""; + close; + +L_Lifestones_MakeSelf: + mes "[Elanore the Healer]"; + if (@has_magic < 2) + goto L_Lifestones_MakeSelf_no; + +L_Lifestones_MakeSelf_yes: + mes "\"Oh, but of course! You are powerful enough to make your own lifestones, using the enchantment '" + getspellinvocation("enchant-lifestone") + "'. This will consume a bug leg or a maggot slime or one of each of the four healing herbs, though.\""; + next; + mes "[Elanore the Healer]"; + mes "\"You will have to make sure that your powers are pure, though, either by wearing a white robe or some other special magical item that does this for you.\""; + close; + +L_Lifestones_MakeSelf_no: + mes "\"No, you are not powerful enough yet. Please come back and ask me again when you have learned to control more powerful magic, though!\""; + close; + +L_Teach: + if (@Q_status == @STATUS_INITIAL) goto L_Teach_Initial; + if (@Q_status == @STATUS_LEARNED_LIGHT_HEAL) goto L_Teach_CheckAdvanceTo2; + if (@Q_status == @STATUS_MASTERED_LIGHT_HEAL) goto L_Teach_CheckAdvanceToLOH; + if (@Q_status == @STATUS_LEARNED_LAY_ON_HANDS) goto L_Teach_Explain3; + if (@Q_status == @STATUS_WAITING_FOR_KADIYA) goto L_Teach_CheckAdvanceTo3; + if (@Q_status == @STATUS_READY_TO_LEARN_CURE_POISON) goto L_Teach_CurePosion; + if (@Q_status == @STATUS_LEARNED_CURE_POISON) goto L_Teach_dunno; + + mes "[Elanore the Healer]"; + mes "\"You have made good progress, but you lack the magical power to advance further. Also, I would like to observe you some more to be certain that you will make a good healer.\""; + close; + +L_Teach_Initial: + mes "[Elanore the Healer]"; + mes "\"I will only teach you magic of the school of Life, and that only if you prove yourself to be a good healer-- that is, if you use your powers to help others.\""; + mes "She hesistates."; + next; + mes "[Elanore the Healer]"; + mes "\"I don't know you very well, but I don't think that there is any harm in teaching you a simple spell.\""; + mes "She reaches inside her satchel and pulls out a piece of crystal, glittering in the sun."; + mes "\"This here is a lifestone, life energy encased in a crystal shell. You will need it for most healing magic.\""; + next; + mes "[Elanore the Healer]"; + mes "\"To heal someone, first locate the injury. As a beginner, you have to touch the wound; with practice, it will be enough to think about it. Hold the lifestone in one hand, touching the wound with the other.\""; + mes "\"Then say, '" + getspellinvocation("lesser-heal") + "', followed by the name of the one you wish to heal.\""; + next; + mes "[Elanore the Healer]"; + mes "\"You might want to write that down, actually. In fact, you might want to make sure to keep notes of all spells you hear, for you never know if you will hear them again!\""; + mes "\"The invocation was '" + getspellinvocation("lesser-heal") + "'.\""; + next; + mes "[Elanore the Healer]"; + mes "\"This will only cure cuts and bruises, though, and it will take some time to take effect. It will be useless to mend broken bones or more severe injuries!\""; + mes "\"To heal yourself, it's enough to just say '" + getspellinvocation("lesser-heal") + "' by itself.\""; + next; + mes "[Elanore the Healer]"; + mes "\"Let me give you a lifestone to get started with.\""; + next; + + getinventorylist; + if ((@inventorylist_count == 100) && (countitem("Lifestone") == 0)) + goto L_Teach_Initial_Noroom; + + getitem "Lifestone", 1; + set @Q_status, @STATUS_LEARNED_LIGHT_HEAL; + callsub S_update_var; + + mes "[Elanore the Healer]"; + mes "Elanore hands you the crystal."; + mes "\"Here you are. I hope that it will allow you to do good!\""; + close; + +L_Teach_Initial_Noroom: + mes "[Elanore the Healer]"; + mes "\"Oh... you managed to put things into every little nook and pocket, haven't you? Well, come back later, I will give it to you then.\""; + close; + +L_Teach_CheckAdvanceTo2: + mes "[Elanore the Healer]"; + if (@Q_heal_exp < 20) + goto L_Teach_CheckAdvanceTo2_fail; + mes "Elanore smiles at you."; + mes "\"From what I have been hearing, you seem to be doing well on your way to becoming a healer. I have decided to accept you as a student of the School of Life Magic.\""; + next; + + if (getskilllv(SKILL_MAGIC) < 2) + goto L_Teach_AdvanceTo2_warn; + + goto L_Teach_AdvanceTo2_skip; +L_Teach_AdvanceTo2_warn: + mes "[Elanore the Healer]"; + mes "\"But be warned: you won't be able to use advanced healing magic until you are more capable in your regular magic usage.\""; + next; +L_Teach_AdvanceTo2_skip: + + mes "[Elanore the Healer]"; + mes "\"Please stand still.\""; + mes "She walks up to you, holds your shoulders, and smiles at you."; + next; + + mes "[Elanore the Healer]"; + mes "Then, she rises up on her tiptoes and kisses you on your forehead."; + next; + + mes "[Elanore the Healer]"; + mes "You feel a strange, tingling kind of warmth spread through your body."; + + set @Q_status, @STATUS_MASTERED_LIGHT_HEAL; + callsub S_update_var; + set @SUP_xp, 5000; + set @SUP_lvl, 2; + callfunc "SkillUp"; + close; + +L_Teach_CheckAdvanceTo2_fail: + mes "\"I think I would like to observe you for a little longer to see if you would make a good healer.\""; + if (@Q_heal_exp < 5) + mes "\"You are still at the beginning of your path, but do keep practicing.\""; + if ((@Q_heal_exp >= 5) && (@Q_heal_exp < 15)) + mes "\"You are making progress, but you still need more practice.\""; + if (@Q_heal_exp >= 15) + mes "\"You have made good progress, but please do continue in your efforts.\""; + close; + +L_Teach_CheckAdvanceToLOH: + if (getskilllv(SKILL_MAGIC) < 2) + goto L_Teach_LOH_advance_abort0; + if (@Q_heal_exp < 30) + goto L_Teach_LOH_advance_abort1; + + mes "[Elanore the Healer]"; + mes "\"I will now teach you how to heal by laying on your hands. The technique is similar to the spell I taught you at the beginning, but this time you transfer your own health instead of drawing health from a lifestone.\""; + next; + + mes "[Elanore the Healer]"; + mes "\"First, lay your hand on the person you wish to heal. You needn't touch the injury itself, though you have to touch the skin until you are a little more experienced. Then, medidate on the word '" + getspellinvocation("lay-on-hands") + "'\""; + next; + + mes "[Elanore the Healer]"; + mes "\"This will let your own life force flow into the person you are healing. If you are badly injured yourself, you will not be able to do this.\""; + mes "[1000 experience points]"; + getexp 1000, 0; + set @Q_status, @STATUS_LEARNED_LAY_ON_HANDS; + callsub S_update_var; + close; + +L_Teach_LOH_advance_abort0: + mes "[Elanore the Healer]"; + mes "\"You don't have enough magical power to learn the next healing spell yet.\""; + close; + +L_Teach_LOH_advance_abort1: + mes "[Elanore the Healer]"; + mes "\"I'm sorry, but I am not yet convinced that you are a good enough healer. Please continue in your endeavours.\""; + close; + +L_Teach_Explain3: + if (getskilllv(SKILL_MAGIC) < 3) + goto L_Teach_Explain3_abort; + if (@Q_heal_exp < 50) + goto L_Teach_Explain3_fail; + + mes "[Elanore the Healer]"; + mes "Elanore smiles."; + mes "\"You seem to be ready to advance as a healer. There is one favour I must ask of you first, though.\""; + set QUEST_MAGIC2, (QUEST_MAGIC2 & ~(NIBBLE_3_MASK)); // Initialise Kadiya quest + set @Q_status, @STATUS_WAITING_FOR_KADIYA; + callsub S_update_var; + next; + + mes "[Elanore the Healer]"; + mes "\"There is a man here in Tulimshar with a beautiful young daughter; his name is Omar, and his daughter's name is Kadiya.\""; + mes "\"Once, when I was a young apprentice, I made a mistake treating Omar. Ever since, he no longer trusts me.\""; + next; + + mes "[Elanore the Healer]"; + mes "\"But his daugher has contracted Mopox, so she needs help. He doesn't trust me, but perhaps he will trust you; you have been helping quite a few people, after all.\""; + next; + +L_3_menu: + menu + "What should I do?", L_3_what_to_do, + "Where can I find the sick girl?", L_3_where, + "How did you mess up?", L_3_messup, + "I will get started right away.", -, + "Maybe later.", -; + + goto L_Main; + +L_3_what_to_do: + mes "[Elanore the Healer]"; + mes "\"You will have to brew a Mopox cure potion and give it to her. You should ask Caul to help you, he knows the recipe.\""; + next; + + mes "[Elanore the Healer]"; + mes "\"First, you will need a concentration potion and an iron potion-- together, they will give her her strength back. You also need a lifestone, and a gamboge leaf against the toxins in her body.\""; + next; + + mes "[Elanore the Healer]"; + mes "\"You then have to add in roots, water, mauve leaves and sulphur powder until the brew is gooey and neither light nor dark. Caul will explain the details to you.\""; + next; + + mes "[Elanore the Healer]"; + mes "\"There is a transmutation spell to make sulphur powder. If you don't know the magic, perhaps you can ask a transmutation mage to help you with this part.\""; + next; + goto L_3_menu; + +L_3_messup: + mes "[Elanore the Healer]"; + mes "\"Ah... well, Omar is a trader, and a frequent traveler. One day he came back from a journey with fleas in his beard and asked me to get rid of them.\""; + next; + + mes "[Elanore the Healer]"; + mes "\"Unfortunately I used the wrong lotion on the fleas, so instead of being scared away, they grew to enormous proportions and ate up all of his beard.\""; + next; + + mes "[Elanore the Healer]"; + mes "Elanore blushes."; + mes "\"Ever since then he hasn't been very trusting towards my skills, and I suppose that I can't blame him. But I don't want poor Kadiya to suffer because of that.\""; + next; + goto L_3_menu; + +L_3_where: + mes "[Elanore the Healer]"; + mes "\"Kadiya and Omar live relatively close by. See this corner in the inner city wall east of here? Turn past it, then go north. It's the second house.\""; + next; + goto L_3_menu; + +L_Teach_Explain3_abort: + mes "[Elanore the Healer]"; + mes "\"I'm sorry, but you lack the magical power to advance.\""; + close; + +L_Teach_Explain3_fail: + mes "[Elanore the Healer]"; + if (@Q_heal_exp < 30) + mes "\"You seem to have regressed as a healer. This is worrisome; please mend your ways or I will not teach you any further.\""; + if ((@Q_heal_exp >= 30) && (@Q_heal_exp < 40)) + mes "\"You still need more practice in the art of healing.\""; + if ((@Q_heal_exp >= 40)) + mes "\"You are doing well, but you need some more practice as a healer first.\""; + close; + +L_Teach_CheckAdvanceTo3: + callfunc "KadiyaSubquestConsts"; + + if (@Q_kadiya_status >= @Q_STATUS_COMPLETED) + goto L_Teach_AdvanceTo3Ready; + + mes "[Elanore the Healer]"; + mes "\"Please help Kadiya.\""; + next; + + goto L_3_menu; + +L_Teach_AdvanceTo3Ready: + mes "[Elanore the Healer]"; + mes "\"I have heard of what you did. Hiding the potion in her favorite food-- that was clever.\""; + mes "She smiles at you."; + mes "\"Omar let me have a look at her earlier, and she seems to be recovering. You did very well."; + next; + + mes "[Elanore the Healer]"; + mes "Elanor turns towards you, rises up on her toes and kisses you on the forehead."; + next; + + set @xp, 30000; + if (@Q_kadiya_status == @Q_STATUS_COMPLETED_ELANORE) + set @xp, 50000; + + mes "[Elanore the Healer]"; + mes "You feel a strange, tingling kind of warmth spread through your body."; + mes "[" + @xp + " experience points]"; + mes "[Level 3 in Life Magic]"; + + set @Q_status, @STATUS_READY_TO_LEARN_CURE_POISON; + callsub S_update_var; + getexp @xp, 0; + if (getskilllv(SKILL_MAGIC_LIFE) < 3) + setskill SKILL_MAGIC_LIFE, 3; + next; + + + if (@Q_kadiya_status != @Q_STATUS_COMPLETED_ELANORE) + goto L_Main; + + mes "[Elanore the Healer]"; + mes "\"Overall I am impressed by your progress. If you continue as you are doing now, you might become a great healer.\""; + mes "She hands you a handful of lifestones."; + mes "\"Please come back soon; there is more that I would like to teach you.\""; + next; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_ELANORE_OMAR; + getitem "Lifestone", 20; + + goto L_Main; + +L_Teach_CurePosion: + mes "[Elanore the Healer]"; + mes "\"Thank you again for your help with Kadiya!\""; + mes "\"Curing sicknesses is often quite difficult; most of them require complicated potions to be brewed.\""; + next; + mes "[Elanore the Healer]"; + mes "\"Fortunately, things are much easier with most poisons. For those we have a simple spell that only requires a Gamboge leaf.\""; + mes "\"This is the next spell that I would like to teach you.\""; + next; + mes "[Elanore the Healer]"; + mes "\"If you would like to cure someone who is poisoned, first rub a Gamboge leaf between your hands. Your hands must be covered in Gamboge liquid for this to work.\""; + mes "\"Speak the invocation, `" + getspellinvocation("cure-poison") + "'.\""; + mes "\"Next, you either touch the poisoned person with your hands, or speak their name. You have to be close for this to work, though.\""; + next; + mes "[Elanore the Healer]"; + mes "\"Once again, the invocation is `" + getspellinvocation("cure-poison") + "'.\""; + mes "\"Come back again soon; there is another spell I would like to teach you.\""; + next; + set @Q_status, @STATUS_LEARNED_CURE_POISON; + callsub S_update_var; + + goto L_Main; + +L_Teach_dunno: + mes "[Elanore the Healer]"; + mes "\"Hmm. I wanted to teach you something, but I've forgotten what it was... please come back later.\""; + next; + goto L_Main; + +L_NoMagicNoTeach: + mes "[Elanore the Healer]"; + mes "Elanore shakes her head."; + mes "\"I am sorry, but you don't have any magical abilities. I can only teach those who already have the power to do magic.\""; + next; + goto L_Main; + +L_Question: + callfunc "MagicTalkOptionsSetup"; + set @ignore, @QQ_ELANORE; + callfunc "MagicTalkMenu"; + + if (@c == 0) goto L_Main; + if (@c == @QQ_MANASEED) goto L_Q_manaseed; + if (@c == @QQ_MANAPOTION) goto L_Q_manapotion; + if (@c == @QQ_WYARA) goto L_Q_wyara; + if (@c == @QQ_SAGATHA) goto L_Q_sagatha; + if (@c == @QQ_AULDSBEL) goto L_Q_auldsbel; + if (@c == @QQ_OLDWIZ) goto L_Q_oldwiz; + if (@c == @QQ_ASTRALSOUL)goto L_Q_astralsoul; + + mes "[Elanore the Healer]"; + mes "Elanore shakes her head."; + mes "\"I am sorry, but I don't think that I know anything that would help you.\""; + next; + goto L_Main; + +L_Q_astralsoul: + mes "[Elanore the Healer]"; + mes "\"The astral soul skill is one of the most important skills for mages. I learned this focus long time ago. Without that skill your magic is quite useless, isn't it? If the rumors are really true, there is an experienced mage in the Woodlands around Hurnscald.\""; + next; + goto L_Main; + +L_Q_oldwiz: + mes "[Elanore the Healer]"; + mes "\"He is a kind old man. He stays mostly with his books and his apprentice, though we have chatted a few times.\""; + next; + goto L_Main; + +L_Q_manaseed: + mes "[Elanore the Healer]"; + mes "She smiles."; + mes "\"If the rumors are true and there really is a Mana Seed, then that would be wonderful news-- perhaps we will have a few more healers soon!\""; + next; + goto L_Main; + +L_Q_manapotion: + mes "[Elanore the Healer]"; + mes "\"I'm sorry, but I can't help you with that.\""; + next; + goto L_Main; + +L_Q_wyara: + mes "[Elanore the Healer]"; + mes "\"Wyara is the Hurnscald town witch. She was also the town healer before the Doctor moved there.\""; + next; + goto L_Main; + +L_Q_sagatha: + mes "[Elanore the Healer]"; + mes "\"Oh, I have only met Sagatha once or twice, while collecting herbs. She is a warm and gentle person, but she tries to hide it.\""; + next; + goto L_Main; + +L_Q_auldsbel: + mes "[Elanore the Healer]"; + mes "\"Oh, sorry-- I don't really know him very well.\""; + next; + goto L_Main; + + +L_CurePoison: + mes "[Elanore the Healer]"; + mes "\"Oh dear! That looks like poison; hang on...\""; + mes "She performs a complicated gesture."; + sc_end(sc_poison); + sc_end(sc_slowpoison); + misceffect sfx_magic_life, strcharinfo(0); + misceffect sfx_magic_life; + + next; + + mes "[Elanore the Healer]"; + mes "\"There you are, right as rain! Now you take care, all right?\""; + close; + +L_bye: + mes "[Elanore the Healer]"; + mes "\"Goodbye!\""; + close; + +S_update_var: + set QUEST_MAGIC2, + (QUEST_MAGIC2 & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/001-1/entertainer.txt b/world/map/npc/001-1/entertainer.txt new file mode 100644 index 00000000..149f1e2f --- /dev/null +++ b/world/map/npc/001-1/entertainer.txt @@ -0,0 +1,44 @@ +// Emote NPC allows for players to learn the emote skill + +001-1.gat,30,45,0 script Entertainer 165,{ + set @EMOTE_SKILL, 1; + if (getskilllv(@EMOTE_SKILL) > 0) goto L_Has; + + mes "[Entertainer]"; + mes "\"Yes how can I help you?\""; + menu + "What are those emotions above your head?", L_Learn, + "Nothing I guess", -; + close; + +L_Learn: + mes "[Entertainer]"; + mes "\"They are called emotes, I use them to express how I am feeling"; + mes "I can teach you to do them too\""; + menu + "Ok sure", L_Learn2, + "Why would I need to that", -; + close; + +L_Learn2: + setskill @EMOTE_SKILL, 1; + mes "[Entertainer]"; + mes "\"All you have to do is press alt and a number"; + mes "The number determines what emotion will be showned"; + mes "Some clients will also show an emote shortcut-bar with the F12 button\""; + close; + +L_Has: + mes "[Entertainer]"; + mes "\"The entertainment life is a hard life...\" *sigh*"; + close; + + +OnTimer3000: + emotion rand(0,11); + setnpctimer 0; + +OnInit: + initnpctimer; + +} diff --git a/world/map/npc/001-1/gossip.txt b/world/map/npc/001-1/gossip.txt new file mode 100644 index 00000000..0deb42ae --- /dev/null +++ b/world/map/npc/001-1/gossip.txt @@ -0,0 +1,80 @@ +// NPC to provide hints on progression of linear quest chain in Tulimshar + +001-1.gat,49,31,0 script Gladys 154,{ + mes "[Gladys, Town Gossip]"; + mes "\"Hello deary! I hear some of the most fascinating rumors and bits of news. I just heard a bit more today!\""; + mes "\"Would you like me to let you in on the good stuff?\""; + menu + "Sure!", L_Yes, + "No thanks.", L_No; + +L_Yes: + if (TMW_Quest >=40) goto L_Ferry; + if (TMW_Quest >=12) goto L_Desert; + if (TMW_Quest >=10) goto L_Sandra; + if (TMW_Quest >=8) goto L_Vinc; + if (TMW_Quest >=6) goto L_Sarah; + if (TMW_Quest >=4) goto L_Mik; + if (TMW_Quest <1) goto L_Intro; + +L_No: + mes "[Gladys, Town Gossip]"; + mes "\"Very well. Come back whenever you like. I am always getting juicy bits of news!\""; + close; + +L_Intro: + mes "[Gladys, Town Gossip]"; + mes "\"Have you met our lovely guard captain yet? He usually keeps a post just outside the gates where he can keep an eye on things. He likes to talk to new adventurers too.\""; + next; + mes "Gladys, Town Gossip]"; + mes "\"I also overheard some of the children in the square talking today. I think they are having trouble with some of their chores. Kids these days...\""; + next; + mes "The old lady trails off and starts muttering to herself about hills and snow. Perhaps it's best to leave her alone for now."; + close; + +L_Mik: + mes "[Gladys, Town Gossip]"; + mes "\"That nice young boy Bernard gave me some of the soup you helped him make. It was lovely!\""; + next; + mes "[Gladys, Town Gossip]"; + mes "\"One of the ladies in my quilting club mentioned giving a task to her grandson. I have my doubts about whether he ever finished it...\""; + close; + +L_Sarah: + mes "[Gladys, Town Gossip]"; + mes "\"Ethel, the lady in my quilting club, told me you helped her grandson with his chore. That was awfully nice of you!\""; + next; + mes "[Gladys, Town Gossip]"; + mes "\"Do you believe what parents will let their kids do these days?! I heard about this girl at the far side of town who does nothing but eat sweets all day! Honestly, what is the world coming to?\""; + close; + +L_Vinc: + mes "[Gladys, Town Gossip]"; + mes "\"I just got news of an exciting new business opportunity! There's supposed to be a new entrepreneur in town somewhere making toys. You should get in on the ground floor!\""; + close; + +L_Sandra: + mes "[Gladys, Town Gossip]"; + mes "\"How's that toy business working out? Pretty good tip, huh?\""; + next; + mes "[Gladys, Town Gossip]"; + mes "\"I've been hearing reports of you all over town! I think there's only one little girl you haven't assisted, but she's a strange one...always messing about with bugs. Yuck!\""; + close; + +L_Desert: + if (Sex == 0) set @person$, "gal"; + if (Sex == 1) set @person$, "guy"; + + mes "[Gladys, Town Gossip]"; + mes "\"Well, if it isn't " + strcharinfo(0) + "! Our local hero and supernice " + @person$ + ".\""; + mes "\"The whole town is buzzing about you now!\""; + next; + mes "[Gladys, Town Gossip]"; + mes "\"If you're still looking for adventure, I would suggest talking to some of the guards. I hear there is a monster threat outside the city walls!\""; + close; + +L_Ferry: + mes "[Gladys, Town Gossip]"; + mes "I heard that there is a handsome sailor in the north of town who will take people to exotic new places! I'm saving my pennies!\""; + close; +} diff --git a/world/map/npc/001-1/guards.txt b/world/map/npc/001-1/guards.txt new file mode 100644 index 00000000..1cffa515 --- /dev/null +++ b/world/map/npc/001-1/guards.txt @@ -0,0 +1,86 @@ +// + +001-1.gat,48,79,0 script Ekinu 104,{ + mes "[Ekinu the Town Guard]"; + mes "\"What a disaster... I can't believe that we managed to rebuild the town so fast, though.\""; + next; + menu "Can you give me any tips?", L_Tip, + "Do you have information?", L_Info, + "What disaster?", L_disaster; + +L_Tip: + set @TEMP,rand(7); + if(@TEMP == 0) goto L_0; + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 4) goto L_4; + if(@TEMP == 5) goto L_5; + if(@TEMP == 6) goto L_6; +L_1: + mes "[Ekinu the Town Guard]"; + mes "\"Try to carry spare food when on fields or in dungeons, they will come in handy. I always take beer, but don't tell the Sergeant...\""; + close; +L_2: + mes "[Ekinu the Town Guard]"; + mes "\"Always carry a map of where you are, ask the Guides in most towns to get one.\""; + close; +L_3: + mes "[Ekinu the Town Guard]"; + mes "\"When in a dungeon, monsters are more aggressive than if they were outside.\""; + close; +L_4: + mes "[Ekinu the Town Guard]"; + mes "\"When gambling for money in casinos, make sure you have enough emergency money.\""; + close; +L_5: + mes "[Ekinu the Town Guard]"; + mes "\"Never underestimate the enemy.\""; + close; +L_6: + mes "[Ekinu the Town Guard]"; + mes "\"When fighting more than one enemy, try to focus on one at a time.\""; + close; +L_0: + mes "[Ekinu the Town Guard]"; + mes "\"Let me think of something... Oh! Do NOT attack Red scorpions unless you can kill it for sure!\""; + close; + +L_Info: + mes "[Ekinu the Town Guard]"; + mes "\"Everyone wants information... you won't get it, at least not here. I'm not even sure what you mean, to be honest.\""; + close; + +L_disaster: + mes "[Ekinu the Town Guard]"; + mes "\"What do you mean, `what disaster'? Weren't you there? That huge huge volcano ex...rusion... whatever they call it, and the earthquake!\""; + next; + + mes "[Ekinu the Town Guard]"; + mes "\"Half the town was reduced to rubble! Somehow, no-one was seriously injured though, so I guess we were lucky...\""; + next; + + mes "[Ekinu the Town Guard]"; + mes "\"Well, the mayor rebuilt everything quickly, but I have no idea where he got the GP from...\""; + close; +} + +001-1.gat,40,79,0 script Ryan 104,{ + + if (getskilllv(SKILL_MAGIC)) goto L_message; + + mes "[Ryan the Town Guard]"; + mes "ZzzZzzZ..."; + next; + mes "[Ryan the Town Guard]"; + mes "\"Hmmmmmmh...?"; + mes "Oh, I wasn't sleeping, I was just resting my eyes!\""; + close; + +L_message: + mes "[Ryan the Town Guard]"; + mes "\" Watch out for Black Scorpions. They are extremely dangerous.\""; + next; + mes "\"Whenever one approaches the town gate, Ekinu has me run shouting '" + getspellinvocation("aggravate") + "'. Somehow this distracts it so Ekinu can kill it.\""; + close; +} diff --git a/world/map/npc/001-1/guide.txt b/world/map/npc/001-1/guide.txt new file mode 100644 index 00000000..be04e307 --- /dev/null +++ b/world/map/npc/001-1/guide.txt @@ -0,0 +1,179 @@ +// + +001-1.gat,32,27,0 script Ian 102,{ + // This line is only relevant for players, who started before the timestamp was introduced. + // Set the graduation cap flag at the right position. + // It is a bugfix + if ((TUT_var < 4) && (TUT_var & 2)) set FLAGS, FLAGS|FLAG_GOT_GRADUATIONCAP; + + if ((TUT_var != 0) && !(FLAGS & FLAG_GOT_GRADUATIONCAP) && BaseLevel >= 10) callsub S_Grad; + mes "[Ian the Guide]"; + mes "\"Would you like to know about something?\""; + next; + +L_Menu_A: + menu "Fighting", L_Fight, + "Items", L_Items, + "Monsters", L_Monster, + "Stylist", L_Style, + "Quests", L_Quests, + "NPCs", L_NPC, + "Commands", L_Comm, + "Attributes", L_Stats, + "Magic", L_Magic, + "Quick Keys", L_Key, + "Laws", L_Laws, + "I know everything!", L_Know; + close; + +L_Fight: + mes "[Ian the Guide]"; + mes "\"People live in this world by living off of monsters."; + mes "You can fight monsters and even players by hitting the [CTRL] key, or left mouse click.\""; + next; + mes "[Ian the Guide]"; + mes "\"If you get tired of pressing the key too much, you can also type [SHIFT]+[CTRL]."; + mes "This will make your character attack continuously for the time you are inactive.\""; + next; + goto L_Menu_A; + +L_Items: + mes "[Ian the Guide]"; + mes "\"There are three types of items."; + mes "They can be Consumables, Equipment or Miscellaneous\""; + next; + mes "[Ian the Guide]"; + mes "\"Consumable items such as Potions, can be used only once."; + mes "After use, they will disappear from your inventory.\""; + next; + mes "[Ian the Guide]"; + mes "\"Equipment items like Armors, Weapons, Accessories"; + mes "can be equipped for fashionable purposes or to raise your status.\""; + next; + mes "[Ian the Guide]"; + mes "\"Miscellaneous items such as maggot slime, are used"; + mes "in creating other items, or just to trade and sell.\""; + next; + goto L_Menu_A; + +L_Monster: + mes "[Ian the Guide]"; + mes "\"In every world, there are beasts. Monsters can be found almost anywhere!~"; + mes "To fight them, please read [Fighting] if you do not know how.\""; + next; + mes "\"There a several types of monsters, Aggressive, Neutral, and Assistants.\""; + next; + mes "[Ian the Guide]"; + mes "\"Aggressive monsters know that they are always in danger"; + mes "so therefore they always keep their guard up,"; + mes "making them attack anybody in sight.\""; + next; + mes "[Ian the Guide]"; + mes "\"Neutral monsters tend to just lounge around until attacked."; + mes "They will leave everything alone unless they are threatened.\""; + next; + mes "[Ian the Guide]"; + mes "\"Assistants are monsters who help each other."; + mes "You should always check how many are around you before attacking a single one!\""; + next; + goto L_Menu_A; + +L_Style: + mes "[Ian the Guide]"; + mes "\"The stylist NPCs will cut and perm your hair!"; + mes "They are known for their hair growth formula\""; + next; + goto L_Menu_A; + +L_Quests: + mes "[Ian the Guide]"; + mes "\"There are people in the world in need of help!"; + mes "Most of these people aren't afraid to give rewards to those who help them."; + mes "So be nice and help people along the way!\""; + next; + mes "[Ian the Guide]"; + mes "\"If you are looking for a place to get started, I heard that the guard captain just outside the gates is looking for help.\""; + next; + goto L_Menu_A; + +L_NPC: + mes "[Ian the Guide]"; + mes "\"NPCs [Non Playable Characters] are people who are always in the game,"; + mes "tending to many varieties of services from just chatting to helping others.\""; + next; + goto L_Menu_A; + +L_Comm: + mes "[Ian the Guide]"; + mes "\"/clear clears the text box.\""; + mes "\"/help displays the client commands (ones starting with a /) in the chat box.\""; + mes "\"/whisper [name] allows you to message someone privately.\""; + mes "\"/who displays the current number of online users.\""; + mes "\"/where displays the current map's name.\""; + next; + goto L_Menu_A; + +L_Stats: + mes "[Ian the Guide]"; + mes "\"People vary greatly by how much strength, agility, dexterity, intelligence, vitality, and luck they have.\""; + next; + mes "[Ian the Guide]"; + mes "\"Strength helps you carry items, and it also allows you to hit harder-- but it is not too helpful if you focus on missile weapons."; + mes "More agility allows you to attack faster, and to dodge attacks more easily."; + mes "Your dexterity determines how likely you are to hit a monster, and how effective you are with missile weapons.\""; + next; + mes "[Ian the Guide]"; + mes "\"Vitality determines how resistant to injuries you are, and how much damage you can take before you die."; + mes "Intelligence is useful for alchemy and magic, but there are few opportunities for either at the moment."; + mes "Luck determines many small things, including the likelihood of both recieving and dealing critical hits\""; + next; + mes "[Ian the Guide]"; + mes "\"I recommend that you practice your dexterity, since some of the more dangerous monsters are very hard to hit otherwise."; + mes "Don't bother trying to work on your luck, and your intelligence is probably not something anyone cares about either.\""; + next; + goto L_Menu_A; + +L_Magic: + mes "[Ian the Guide]"; + mes "\"In decades past, there was a Mana Seed south of Tulimshar, from which people could draw magical energies. Unfortunately, the seed is gone."; + mes "However, I've overheard the bard mentioning something about this recently... if you are interested in magic, try talking to him!\""; + next; + goto L_Menu_A; + +L_Key: + mes "[Ian the Guide]"; + mes "\"There are many key combinations, press F1 for a short list of them!\""; + next; + goto L_Menu_A; + +L_Laws: + mes "[Ian the Guide]"; + mes "\"The constable can help you with them.\""; + next; + goto L_Menu_A; + +L_Know: + mes "[Ian the Guide]"; + mes "\"Lost? Confused? Want to know why you can't get past a quest, overcome an NPC or find an item? Check http://wiki.themanaworld.org for player hints, walkthroughs, item lists and more!\""; + next; + mes "\"But remember, the game isn't fun when you already know what to do. Use it well or you will lose interest in playing The Mana World! Please help by reporting anything that is unclear, outdated or that needs to be seen on our forums at http://forums.themanaworld.org.\""; + close; + +S_Grad: + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + mes "[Ian the Guide]"; + mes "\"Hey, you've been doing good, let me give you this.\""; + + getitem "GraduationCap", 1; + set FLAGS, FLAGS | FLAG_GOT_GRADUATIONCAP; + next; + + return; + +L_TooMany: + mes "[Ian the Guide]"; + mes "\"I wanted to give you something, but you don't have room for it.\""; + next; + return; +} diff --git a/world/map/npc/001-1/luca.txt b/world/map/npc/001-1/luca.txt new file mode 100644 index 00000000..f8f51f63 --- /dev/null +++ b/world/map/npc/001-1/luca.txt @@ -0,0 +1,451 @@ +// + +001-1.gat,108,55,0 script Luca 102,{ + + set @EXP_BRAWLING, 2000; + + if (BaseLevel >= 35) + goto L_teach; + + if (BaseLevel >= 25) + goto L_teach_soon; + + mes "[Luca the Hunter]"; + mes "\"Ouch! It hurts, this wound I got from battle.\""; + next; + menu "Tell me about it",L_Exp,"Nevermind",L_Nev; + +L_Exp: + mes "[Luca the Hunter]"; + mes "\"I was just coming back from a long journey. I ran into a group of scorpions and started fighting them for experience.\""; + next; + mes "[Luca the Hunter]"; + mes "\"Then, out of a cave came a BLACK one! I had NEVER seen it before!\""; + next; + mes "[Luca the Hunter]"; + mes "\"Luckily i had a camera with me! Here's a picture of it... Let me find it, I put it in my pocket somewhere...\""; + next; + mes "[Luca the Hunter]"; + mes "\"Oh man! My pockets have been ripped clean off!\""; + close; + +L_Nev: + mes "[Luca the Hunter]"; + mes "\"Hmpf!\""; + close; + + +L_teach_soon: + mes "[Luca the Hunter]"; + mes "\"You've grown quite a bit stronger since I first saw you, strolling around town like that! You know, if you train a little more, maybe we can help each other out a little?\""; + close; + +L_teach: + if (getskilllv(SKILL_POOL)) + goto L_teachmore; + + mes "[Luca the Hunter]"; + mes "\"Hey there! You've become quite the adventurer, haven't you? I think it's time that someone taught you some basic skills.\""; + next; + mes "[Luca the Hunter]"; + mes "\"If you want, I can help with that!\""; + next; + menu + "Sure, that sounds fun!", -, + "I'm not interested.", L_Nev; + + mes "[Luca the Hunter]"; + mes "\"All right! It's not all that easy, though. First you have to learn how to focus. That's because you can learn many skills, but you can't focus on all of them all the time.\""; + next; + + mes "[Luca the Hunter]"; + mes "\"When you can do that, you can learn some real skills, and when you know them, you can come back to me to tell me which ones you want to focus on. Deal?\""; + next; + + menu + "Yeah!", L_teach0_follow, + "Certainly!", L_teach0_follow, + "Wait... what do you mean?", -, + "Please explain some more.", -, + "No.", L_Nev; + + callsub S_explain; + +L_teach0_follow: + mes "[Luca the Hunter]"; + mes "\"Great! Now, before I can give you that skill, I have to make sure that those stories about you are all true and that you really are experienced enough.\""; + next; + mes "[Luca the Hunter]"; + mes "\"So I'm going to ask you some easy questions.\""; + next; + + mes "[Luca the Hunter]"; + mes "\"First, who is the man who guards the entrance to the old Tulimshar underground arena?\""; + next; + input @answer$; + if (@answer$ != "Phaet" && @answer$ != "phaet") + goto L_wronganswer; + + mes "[Luca the Hunter]"; + mes "\"Good. Next, what's the name of the pipe-smoker who lives on top of Lore Mountain and makes leathery goods there?\""; + next; + input @answer$; + if (@answer$ != "Pachua" && @answer$ != "pachua") + goto L_wronganswer; + + mes "[Luca the Hunter]"; + mes "\"Great! One more: Who was the adventurer who built Dimond's Cove for Dimond?\""; + next; + input @answer$; + if (@answer$ != "Merlin" && @answer$ != "merlin") + goto L_wronganswer; + + + mes "[Luca the Hunter]"; + mes "Luca laughs in excitement."; + mes "\"All right! You're the real thing, my friend!\""; + next; + + mes "[Luca the Hunter]"; + mes "\"Now stand over there. This should only take a second...\""; + mes "He takes off a pendant he is wearing and holds it up."; + next; + + mes "[Luca the Hunter]"; + mes "\"See that fang at the end of the chain? Keep staring at it at it.\""; + next; + + mes "[Luca the Hunter]"; + mes "He starts swinging the pendant back and forth."; + mes "\"And whatever you do, don't blink. Don't look away, and don't blink.\""; + next; + + mes "[Luca the Hunter]"; + mes "The world slows down around you as you focus on the pendant going back..."; + next; + + mes "and forth..."; + next; + + mes "and back..."; + next; + + mes "and forth..."; + next; + + mes "and back..."; + next; + + mes "and..."; + next; + + mes "You feel relaxed."; + next; + + mes "[Luca the Hunter]"; + mes "\"... still there?\""; + mes "You hear the sound of fingers snapping. Why would someone do that on such a calm day?"; + next; + + mes "[Luca the Hunter]"; + mes "\"Oh, good... I think it worked. Nice job!\""; + mes "He grins."; + mes "[You gain 10,000 experience points]"; + mes "[You learned Skill Focus]"; + setskill SKILL_POOL, 1; + getexp 10000, 0; + next; + + goto L_teachmore2; + + L_wronganswer: + mes "[Luca the Hunter]"; + mes "\"No, that was wrong. I suppose you're not as experienced as I thought you'd be.\""; + close; + +S_explain: + mes "[Luca the Hunter]"; + mes "\"Alright, what do you want to know?\""; + next; +S_explain_loop: + menu + "What's skill focus?", L_explain_focus, + "What skills are there?", L_explain_skills, + "How do skills work?", L_explain_work, + "Thanks, I think I got it!", -; + return; + +L_explain_focus: + mes "[Luca the Hunter]"; + mes "\"Well, you can learn many, many skills. But you can't really use all of them at once, not even old Auldsbels' head is big enough for that! So you have to focus.\""; + next; + mes "[Luca the Hunter]"; + mes "\"But you can change that focus whenever you want. It works like this: You come to me, you tell me what you want to focus on, and we do exercises until it's stuck in your head.\""; + next; + mes "[Luca the Hunter]"; + mes "\"If there's not enough space in your head, you'll first have to stop thinking about some other thing. There's an exercise I learned to do that, so when you talk to me you can just let me know what you want to forget.\""; + next; + mes "[Luca the Hunter]"; + if (getskilllv(SKILL_POOL) == 0) + mes "\"Right now you can't focus on anything yet, so I'll first have to teach you a simple skill to keep your focus.\""; + if (getskilllv(SKILL_POOL) == 1) + mes "\"Right now you can only focus on one thing at a time. So if you want to change, you have to forget whatever else you've focused on.\""; + if (getskilllv(SKILL_POOL) > 1) + mes "\"You can focus on " + getskilllv(SKILL_POOL) + " skills right now.\""; + next; + mes "[Luca the Hunter]"; + mes "\"You can come back to me to focus or unfocus whenever you want, I'm here all day.\""; + next; + mes "\"For unfocusing you need to bring a potion; a special potion. That potion is not the easiest to get, but I am sure you are able to.\""; + next; + goto S_explain_loop; + +L_explain_skills: + mes "[Luca the Hunter]"; + mes "\"Well, I don't really know... lots, I think. I can teach you brawling, which is good when you've run out of arrows or don't have a weapon around.\""; + next; + mes "[Luca the Hunter]"; + mes "\"But there's other skills around. Some mages need special skills to concentrate, so ask around in that crowd, if that's your thing.\""; + next; + mes "[Luca the Hunter]"; + mes "\"I've also heard that there is someone in Hurnscald who can help you make your body more resistant against some things. But body and mind belong together, so you probably have to focus for that, too.\""; + next; + mes "[Luca the Hunter]"; + mes "\"Other than that, just ask around! There have to be some people who can teach you something...\""; + next; + goto S_explain_loop; + +L_explain_work: + mes "[Luca the Hunter]"; + mes "\"Well, skills allow you to be better in some things, or just to do what you couldn't do without them. When you've learned a skill and are focusing on it, then it affects what you do.\""; + next; + mes "[Luca the Hunter]"; + mes "\"Now, when you start out with a skill, you won't be very good at it yet. But if you keep practicing you'll learn how to get better.\""; + next; + mes "[Luca the Hunter]"; + mes "\"My old teacher always called that getting `skill points' and that you can see them with [F5], whoever that is.\""; + next; + //TODO: + //mes "[Luca the Hunter]"; + //mes "\"She also said that with this [F5] thing you can get better at those skills, and that it costs you as many skill points as the level you want to go to.\""; + //next; + mes "[Luca the Hunter]"; + mes "\"She always would have one cactus poition too many... but she was an amazing teacher.\""; + mes "He nods emphatically."; + next; + goto S_explain_loop; + +L_teachmore: + mes "[Luca the Hunter]"; + mes "\"Good to see you again!\""; + next; + +L_teachmore2: + setarray @choices, 0,0,0,0,0; + setarray @choice$, "", "", "", "", ""; + set @choice_nr, 0; + + set @C_focus, 1; + set @C_unfocus, 2; + set @C_teachbrawling, 3; + set @C_teachnothing, 4; + set @C_explainagain, 5; + set @C_nvm, 6; + set @C_focusoverview, 7; + + getactivatedpoolskilllist; + if (!((getskilllv(SKILL_POOL) - @skilllist_count) > 0)) goto L_teachmore2_nof; + getunactivatedpoolskilllist; + if (@skilllist_count == 0) goto L_teachmore2_nof; + set @choices[@choice_nr], @C_focus; + set @choice$[@choice_nr], "I would like to focus."; + set @choice_nr, @choice_nr + 1; +L_teachmore2_nof: + + getactivatedpoolskilllist; + if (@skilllist_count == 0) goto L_teachmore2_nounf; + set @choices[@choice_nr], @C_unfocus; + set @choice$[@choice_nr], "I would like to unfocus."; + set @choice_nr, @choice_nr + 1; +L_teachmore2_nounf: + + if (!(getskilllv(SKILL_BRAWLING))) + set @choices[@choice_nr], @C_teachbrawling; + if (getskilllv(SKILL_BRAWLING)) + set @choices[@choice_nr], @C_teachnothing; + set @choice$[@choice_nr], "Can you teach me a skill?"; + set @choice_nr, @choice_nr + 1; + + set @choices[@choice_nr], @C_explainagain; + set @choice$[@choice_nr], "Can you explain skills again?"; + set @choice_nr, @choice_nr + 1; + + if (!(getskilllv(SKILL_POOL))) goto L_teachmore2_noovv; + set @choices[@choice_nr], @C_focusoverview; + set @choice$[@choice_nr], "Can you tell me what skills I'm currently focused on?"; + set @choice_nr, @choice_nr + 1; +L_teachmore2_noovv: + + set @choices[@choice_nr], @C_nvm; + set @choice$[@choice_nr], "I'm done for now, thanks!"; + set @choice_nr, @choice_nr + 1; + + menu + @choice$[0],-, + @choice$[1],-, + @choice$[2],-, + @choice$[3],-, + @choice$[4],-; + + set @menu, @menu - 1; + if (@choices[@menu] == 0) close; + if (@choices[@menu] == @C_focus) goto L_focus; + if (@choices[@menu] == @C_unfocus) goto L_unfocus; + if (@choices[@menu] == @C_teachbrawling) goto L_teach_brawling; + if (@choices[@menu] == @C_teachnothing) goto L_teach_nothing; + if (@choices[@menu] == @C_explainagain) goto L_teachmore_explain; + if (@choices[@menu] == @C_focusoverview) goto L_focus_overview; + if (@choices[@menu] == @C_nvm) close; + close; + +L_teachmore_explain: + callsub S_explain; + goto L_teachmore2; + +L_focus: + getunactivatedpoolskilllist; + set @skilllist_id[@skilllist_count], 0; + set @skilllist_name$[@skilllist_count], "Nevermind"; + menu + @skilllist_name$[0], -, + @skilllist_name$[1], -, + @skilllist_name$[2], -, + @skilllist_name$[3], -, + @skilllist_name$[4], -, + @skilllist_name$[5], -, + @skilllist_name$[6], -, + @skilllist_name$[7], -; + + set @menu, @menu - 1; + if (@skilllist_id[@menu] == 0) + goto L_teachmore2; + + poolskill @skilllist_id[@menu]; + goto L_teachmore2; + +L_unfocus: + if (countitem("DementiaPotion") > 0) + goto L_unfocus_menu; + + if (MAGIG_FLAGS & MFLAG_KNOWS_UNFOCUS_RECIPE) + goto L_nopotion; + + mes "[Luca the Hunter]"; + mes "\"Unfocusing is one of the harder parts though, because it is sunk in. You see?\""; + next; + mes "\"So to remove that mental focus we will need a special potion.\""; + next; + mes "\"Maybe you should consult some very skilled alchemists.\""; + next; + mes "\"Ah yes, of course you will need a recipe. Although the alchemist usually knows it.\""; + next; + mes "\"The potion is called Grimace of Dementia. So the alchemist will know for sure.\""; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_UNFOCUS_RECIPE; + menu + "Ok, I will get a Grimace of Dementia potion", -, + "Alright, be right back!", -; + close; + +L_nopotion: + mes "[Luca the Hunter]"; + mes "\"Hey, you really need that dementia potion for unfocusing.\""; + next; + mes "\"Come back when you've found a suitable alchemist who can mix such a potion.\""; + next; + goto L_teachmore2; + +L_unfocus_menu: + mes "[Luca the Hunter]"; + mes "\"Ahh, I see you have a dementia potion.\""; + next; + mes "\"What skill would you like to unfocus?\""; + + getactivatedpoolskilllist; + + set @skilllist_id[@skilllist_count], 0; + set @skilllist_name$[@skilllist_count], "Nevermind"; + menu + @skilllist_name$[0], -, + @skilllist_name$[1], -, + @skilllist_name$[2], -, + @skilllist_name$[3], -, + @skilllist_name$[4], -, + @skilllist_name$[5], -, + @skilllist_name$[6], -, + @skilllist_name$[7], -; + + set @menu, @menu - 1; + if (@skilllist_id[@menu] == 0) + goto L_teachmore2; + + if (countitem("DementiaPotion") == 0) goto L_nopotion; + delitem "DementiaPotion", 1; + + unpoolskill @skilllist_id[@menu]; + close; + +L_focus_overview: + getactivatedpoolskilllist; + + if (@skilllist_count != 0) + goto L_focus_overview1; + mes "[Luca the Hunter]"; + mes "\"You aren't focused on a skill at the moment.\""; + next; + goto L_teachmore2; +L_focus_overview1: + mes "[Luca the Hunter]"; + set @message$, "\"At the moment you are focused on "; +L_focus_overview2: + set @skilllist_count, @skilllist_count-1; + set @message$, @message$ + @skilllist_name$[@skilllist_count]; + if (@skilllist_count == 0) + goto L_focus_overview3; + set @message$, @message$ + ", "; + goto L_focus_overview2; +L_focus_overview3: + set @message$, @message$ + ".\""; + mes @message$; + next; + goto L_teachmore2; + +L_teach_brawling: + mes "[Luca the Hunter]"; + mes "\"Well, yes, I can teach you brawling. It's a nice thing, if you have nothing left but your hands to defend yourself.\""; + next; + mes "He is laughing."; + mes "\"And is handy, if some sapling starts getting naughty.\""; + next; + mes "He raises his hands in front of his face and clenches his fists."; + mes "\"Ok, let's go! Hold your hands like this.\""; + next; + mes "......."; + next; + mes "Some bruises later."; + mes "\"Great! I think, you got it.\""; + next; + set @SUP_id, SKILL_BRAWLING; + set @SUP_lvl, 1; + set @SUP_name$, "Brawling"; + set @SUP_xp, @EXP_BRAWLING; + callfunc "SkillUp"; + close; + +L_teach_nothing: + mes "[Luca the Hunter]"; + mes "\"I was able to teach you brawling. For other professions you should visit someone else.\""; + next; + mes "\"You see, I am an adventurer. Everybody has his tricks. But you really should visit someone who is a teacher, not an adventurer, now.\""; + next; + goto L_teachmore2; +} diff --git a/world/map/npc/001-1/mapflags.txt b/world/map/npc/001-1/mapflags.txt new file mode 100644 index 00000000..ba066398 --- /dev/null +++ b/world/map/npc/001-1/mapflags.txt @@ -0,0 +1,2 @@ +001-1.gat mapflag no_player_drops +001-1.gat mapflag town diff --git a/world/map/npc/001-1/merchant.txt b/world/map/npc/001-1/merchant.txt new file mode 100644 index 00000000..a664e74a --- /dev/null +++ b/world/map/npc/001-1/merchant.txt @@ -0,0 +1,3 @@ +// + +001-1.gat,39,52,0 shop Neko 101,501:50,502:60,1201:100,522:300,521:1000,656:250,1202:1000,523:8000,603:-1,724:3000,735:-1 diff --git a/world/map/npc/001-1/mikhail.txt b/world/map/npc/001-1/mikhail.txt new file mode 100644 index 00000000..1db4d9d1 --- /dev/null +++ b/world/map/npc/001-1/mikhail.txt @@ -0,0 +1,68 @@ +// + +001-1.gat,50,46,0 script Mikhail 120, { + if (TMW_Quest >= 6) goto L_Done; + if (TMW_Quest == 5) goto L_Progress; + if (TMW_Quest == 4) goto L_Start; + if (TMW_Quest < 4) goto L_Convince_Mikhail_First; + + // If this happens, something is wrong with the above case handling. + mes "Mikhail looks confused."; + close; + +L_Convince_Mikhail_First: + mes "[Mikhail]"; + mes "\"Hello...\""; + mes ""; + mes "It seems that the boy would like to say more, but does not dare to open up to you. Maybe you should help someone else first, so that he sees your intentions are good."; + close; + +L_Start: + mes "[Mikhail]"; + mes "\"My grandma sent me to get five Maggot Slimes from the maggots in the desert, but they scare me so bad!\""; + next; + mes "\"You look like a nice person. Would you go get them for me?\""; + menu + "Of course, I'll go get them for you.", L_accept, + "I've got other things to do right now.", L_close; + close; + +L_close: + close; + +L_accept: + mes "[Mikhail]"; + mes "\"Thank you so much! I'll wait for you here.\""; + set TMW_Quest, 5; + close; + +L_Progress: + mes "[Mikhail]"; + mes "\"Did you bring me the five Maggot Slimes i need?\""; + next; + menu + "Yes, here they are, kiddo!", L_try, + "Not yet, but I'll be back soon.", L_close; + close; + +L_try: + if countitem("MaggotSlime") >= 5 goto L_get; + mes "[Mikhail]"; + mes "\"It doesn't look like you have them all...\""; + close; + +L_get: + delitem "MaggotSlime", 5; + set TMW_Quest, 6; + mes "[Mikhail]"; + mes "\"Ooh! Thank you so much! I can get back to my grandma now!\""; + next; + getexp 100, 0; + mes "You get 100 xp."; + close; + +L_Done: + mes "[Mikhail]"; + mes "\"Thanks again for helping me get those Maggot Slimes!\""; + close; +} diff --git a/world/map/npc/001-1/monster_guide.txt b/world/map/npc/001-1/monster_guide.txt new file mode 100644 index 00000000..697dc38e --- /dev/null +++ b/world/map/npc/001-1/monster_guide.txt @@ -0,0 +1,37 @@ +// + +001-1.gat,48,52,0 script Aidan 102,{ + if(MPQUEST == 0) goto Register; + mes "[Aidan the Monster Guide]"; + mes "You currently have " +Mobpt+ " Monster Points. These points are acquired while killing monsters"; + close; +Register: + mes "[Aidan the Monster Guide]"; + mes "Oh my, you don't seem to be registered as a Quest Participant. Would you like to register?"; + next; +Choice: + menu "Register",L_R,"Not at the moment",L_N,"Information",L_I; +L_R: + mes "[Aidan the Monster Guide]"; + mes "Give me a second to look over your paperwork."; + next; + mes "[Monster Guide]"; + mes "Well, looks like you qualify!"; + mes "Welcome to the questing world!"; + set MPQUEST,1; + close; +L_N: + mes "[Aidan the Monster Guide]"; + mes "Very well, you don't know what you're missing."; + close; +L_I: + mes "[Aidan the Monster Guide]"; + mes "Here in The Mana World, there are certain rewards for your vanquishing of foes."; + mes "For example, there are Monster Points; every monster you kill has a certain amount of points that get added to your account."; + mes "The more points you have, the more expensive things you can buy using them."; + next; + mes "[Monster Guide]"; + mes "So whaddaya say, sign up won't you?"; + next; + goto Choice; +} diff --git a/world/map/npc/001-1/rewards_master.txt b/world/map/npc/001-1/rewards_master.txt new file mode 100644 index 00000000..028b24c1 --- /dev/null +++ b/world/map/npc/001-1/rewards_master.txt @@ -0,0 +1,141 @@ +// + +001-1.gat,50,53,0 script Ishi 106,{ + if (MPQUEST == 0) goto L_Register; + if (tvis == 0) set tvis, 1; + if (Mobpt < tvis) goto L_NotEnough; + + setarray @Items$, "AppleCake", "Arrow", "Beer", "Boots", "BugLeg", "CactusDrink", "CactusPotion", "Cake", "Candy", "CasinoCoins", "CherryCake", "ChickenLeg", "ChocolateBar", "ChocolateCake", "CottonBoots", "CottonCloth", "CottonShirt", "CottonShorts", "FancyHat", "GreenApple", "HardSpike", "IronOre", "Lifestone", "LightBlueDye", "MaggotSlime", "Milk", "Orange", "OrangeCake", "OrangeCupcake", "PinkPetal", "PileOfAsh", "PinkAntenna", "PoltergeistPowder", "RawLog", "RedApple", "RedDye", "ScorpionStinger", "SerfHat", "SmallHealingPotion", "SmallMushroom", "SnakeSkin", "SpectrePowder", "Steak", "TinyHealingPotion", "WhiteCake", "WhiteFur", "WispPowder", "YellowDye", "Coal"; + + mes "[Ishi the Rewards Master]"; + mes "\"Welcome! I see you have " + Mobpt + " Monster Points. Would you like to exchange some of those for items?\""; + next; + + set @i, 0; + setarray @Menu$, "", "", "", "", "", "", "", "", "", "", "", ""; + callsub SUB_prep_menu; + + menu + @Menu$[0], -, + @Menu$[1], -, + @Menu$[2], -, + @Menu$[3], -, + @Menu$[4], -, + @Menu$[5], -, + @Menu$[6], -, + @Menu$[7], -, + @Menu$[8], -, + @Menu$[9], -, + @Menu$[10], -, + @Menu$[11], -; + + // this is for the last entry "No thanks": + if (@menu > @i) close; + // this is for the "Give all" entry: + if (@menu == 11) goto L_Give_all; + + set @req, @menu; + set @rec, 0; + +L_Item_Loop: + if (@rec == @req || Mobpt < tvis) goto L_Item_Done; + + callsub SUB_give_item; + set @rec, @rec + 1; + goto L_Item_Loop; + +L_Item_Done: + if (@rec < @req) mes "It looks like your Monster Points were over estimated."; + close; + +L_Register: + mes "[Ishi the Rewards Master]"; + mes "\"Hey, it seems like you didn't register as a quest participant yet! You can sign up with Aidan.\""; + close; + +L_NotEnough: + mes "[Ishi the Rewards Master]"; + mes "\"You don't have enough Monster Points for a reward. You'll need to kill some more monsters first.\""; + close; + + + +L_Give_all: + // we need to count how many loop iterations are done there, + // since the server complains about more than 250 (70 according to Jaxad0127) + // gotos without interrupting next statement. + set @gotocounter, 50; + +L_Give_all_loop: + set @gotocounter, @gotocounter - 1; + if (@gotocounter < 1) goto L_Give_all_next; + set @itemgiveerror, 0; + callsub SUB_give_item; + if (@itemgiveerror != 0) goto L_Give_all_done; + goto L_Give_all_loop; + +L_Give_all_next: + next; + mes "[Ishi the Rewards Master]"; + mes "\"You have brought lots of items now. You have still " + Mobpt + " monster points. Shall we continue?\""; + menu + "Yes", L_Give_all, + "No", L_Give_all_done; + close; + +L_Give_all_done: + close; + +////////////////////////////////////////////////// +// Subroutines +////////////////////////////////////////////////// + +SUB_prep_menu: + set @pts, Mobpt; + set @dif, tvis; + +L_Menu_Loop: + if (@pts < @dif || @i == 10) goto L_Menu_Check; + + set @Menu$[@i], @i + 1; + + set @i, @i + 1; + set @pts, @pts - @dif; + set @dif, @dif + 1; + + goto L_Menu_Loop; + +L_Menu_Check: + // if we are able to give 10, we can enable the option to give all we can have + if (@i != 10) goto L_Menu_Done; + set @Menu$[@i], "Please give me as many as I deserve!"; + set @i, @i + 1; + +L_Menu_Done: + set @Menu$[@i], "No thanks"; + return; + +SUB_give_item: + set @itemgiveerror, 0; + getinventorylist; + if (@inventorylist_count == 100) goto SUB_give_noinv; + if (Mobpt < tvis) goto SUB_give_nomobpts; + set Mobpt, Mobpt - tvis; + set tvis, tvis + 1; + set @item$, @Items$[rand(getarraysize(@Items$))]; + + getitem @item$, 1; + + mes "You received one " + getitemname(@item$) + "!"; + return; + +SUB_give_noinv: + mes "Your inventory is full!"; + set @itemgiveerror, 1; + return; + +SUB_give_nomobpts: + mes "It looks like your Monster Points were over estimated."; + set @itemgiveerror, 1; + return; +} diff --git a/world/map/npc/001-1/sandra.txt b/world/map/npc/001-1/sandra.txt new file mode 100644 index 00000000..dcef65c9 --- /dev/null +++ b/world/map/npc/001-1/sandra.txt @@ -0,0 +1,109 @@ +// + +001-1.gat,110,71,0 script Sandra 114,{ + if (TMW_Quest >= 12) goto L_Done; + if (TMW_Quest == 11) goto L_Progress; + if (TMW_Quest == 10) goto L_Start; + + mes "[Sandra]"; + mes "\"Hunting monsters for potion ingredients can sometimes be a difficult task. Maybe you could help me at some point.\""; + close; + +L_Start: + + set @TEMP, rand(4); + if(@TEMP == 0) goto L_Opening0; + if(@TEMP == 1) goto L_Opening1; + if(@TEMP == 2) goto L_Opening2; + if(@TEMP == 3) goto L_Opening3; + +L_Opening0: + mes "[Sandra]"; + mes "\"In the outskirts of Tulimshar, there are some scorpions... I need a favor, please help me! Will you?\""; + next; + goto L_Ask; + +L_Opening1: + mes "[Sandra]"; + mes "\"When you venture to the outskirts of Tulimshar, you can spot scorpions. Will you help me kill some?\""; + next; + goto L_Ask; + +L_Opening2: + mes "[Sandra]"; + mes "\"The Scorpion Stinger carries many properties used in potions. Would you get some for me?\""; + next; + goto L_Ask; + +L_Opening3: + mes "[Sandra]"; + mes "\"You look sturdy enough, will you help me get something?\""; + next; + goto L_Ask; + +L_Ask: + menu + "Yes.", L_Yes, + "No.", L_No; + +L_Yes: + set @TEMP, rand(3); + if(@TEMP == 0) goto L_Req0; + if(@TEMP == 1) goto L_Req1; + if(@TEMP == 2) goto L_Req2; + +L_Req0: + mes "[Sandra]"; + mes "\"I need 5 Scorpion Stingers.\""; + next; + goto L_Set; + +L_Req1: + mes "[Sandra]"; + mes "\"I heard a while ago that stingers from scorpions can be used for medical purposes. I need you to help me get 5 Scorpion Stingers.\""; + next; + goto L_Set; + +L_Req2: + mes "[Sandra]"; + mes "\"Bring me 5 Scorpion Stingers. I'll give you something if you do!\""; + next; + goto L_Set; + +L_Set: + set TMW_Quest,11; + mes "[Sandra]"; + mes "\"Please get them for me!\""; + close; + +L_Progress: + if (countitem("ScorpionStinger") < 5) goto L_NotEnough; + mes "[Sandra]"; + mes "\"Excellent! You brought me 5 Scorpion Stingers!\""; + getinventorylist; + if (@inventorylist_count + (countitem("ScorpionStinger") == 5) - (countitem("Arrow") == 0) > 99) goto L_TooMany; + delitem "ScorpionStinger", 5; + getitem "Bow", 1; + getitem "Arrow", 100; + set TMW_Quest, 12; + close; + +L_NotEnough: + mes "[Sandra]"; + mes "\"Please hurry and bring me 5 Scorpion Stingers.\""; + close; + +L_Done: + mes "[Sandra]"; + mes "\"Thank you for all your help!\""; + close; + +L_No: + close; + +L_TooMany: + next; + mes "[Sandra]"; + mes "\"You don't have room for my reward. I'll wait until you do.\""; + close; +} diff --git a/world/map/npc/001-1/sarah.txt b/world/map/npc/001-1/sarah.txt new file mode 100644 index 00000000..1371d334 --- /dev/null +++ b/world/map/npc/001-1/sarah.txt @@ -0,0 +1,91 @@ +// + +001-1.gat,137,78,0 script Sarah 106,{ + if (TMW_Quest >= 8) goto L_Done; + if (TMW_Quest == 7) goto L_Progress; + if (TMW_Quest == 6) goto L_Start; + if (TMW_Quest < 6) goto L_Convince_Sarah_First; + + // If this is shown, something is wrong with the above case handling. + mes "Sarah looks confused."; + close; + +L_Convince_Sarah_First: + mes "[Sarah]"; + mes "\"Boy, am I hungry or what!\""; + next; + mes "\"The girl suddenly looks at you suspiciously.\""; + next; + mes "\"My mommy says not to talk to strangers!\""; + close; + +L_Start: + + set @TEMP, rand(2); + if(@TEMP == 0) goto L_Opening0; + if(@TEMP == 1) goto L_Opening1; + +L_Opening0: + mes "[Sarah]"; + mes "\"Cherry Cake is the best!\""; + next; + goto L_Ask; + +L_Opening1: + mes "[Sarah]"; + mes "\"Mmm, Cherry Cake... I love it!\""; + next; + goto L_Ask; + +L_Ask: + mes "\"Can you bring me a piece of Cherry Cake? Pretty please?\""; + menu + "Yes.", L_Req0, + "No.", L_No; + +L_Req0: + mes "[Sarah]"; + mes "\"Yippee! Bring me a piece of Cherry Cake, and I'll give you a nice hat!\""; + next; + goto L_Set; + +L_Set: + set TMW_Quest,7; + mes "[Sarah]"; + mes "\"Please bring it to me!\""; + close; + +L_Progress: + if (countitem("CherryCake") < 1) goto L_NotEnough; + mes "[Sarah]"; + mes "\"Whee!\""; + next; + mes "You brought me Cherry Cake! Here is your new hat, as promised.\""; + emotion 9; + getinventorylist; + if ((@inventorylist_count - (countitem("CherryCake") == 1)) > 99) goto L_TooMany; + delitem "CherryCake", 1; + getitem "serfhat", 1; + set TMW_Quest, 8; + close; + +L_NotEnough: + mes "[Sarah]"; + mes "\"Oh, I'm starving! Please bring me Cherry Cake!\""; + close; + +L_Done: + mes "[Sarah]"; + mes "\"It was so tasty, I can't eat anything more... Thank you!\""; + emotion 9; + close; + +L_No: + close; + +L_TooMany: + next; + mes "[Sarah]"; + mes "\"You don't have room for my reward. I'll wait until you do.\""; + close; +} diff --git a/world/map/npc/001-1/soul-menhir.txt b/world/map/npc/001-1/soul-menhir.txt new file mode 100644 index 00000000..00208932 --- /dev/null +++ b/world/map/npc/001-1/soul-menhir.txt @@ -0,0 +1,12 @@ +// + +001-1.gat,38,69,0 script Soul Menhir 144, { + callfunc "ClearVariables"; + set @map$, "001-1.gat"; + setarray @Xs, 37, 38, 39, 37, 39, 37, 39; + setarray @Ys, 68, 68, 68, 69, 69, 70, 70; + set @x, 0; + set @y, 0; + callfunc "SoulMenhir"; + close; +} diff --git a/world/map/npc/001-1/trader.txt b/world/map/npc/001-1/trader.txt new file mode 100644 index 00000000..064597e0 --- /dev/null +++ b/world/map/npc/001-1/trader.txt @@ -0,0 +1,172 @@ +// Teaches Trading skill +// Offers item conversion for non-magic users +// Updated by: TheKandiman +// Reviewed by: Wombat + +001-1.gat,57,33,0 script Trader 115,{ + set @TRADE_SKILL, 2; + set @Ironprice, 1000; + set @Sulphurprice, 1200; + set @Potionprice, 500; + if ((getskilllv(@TRADE_SKILL) > 0) + && baselevel >= 25) + goto L_Trade; + if (getskilllv(@TRADE_SKILL) > 0) goto L_Later; + + mes "[Trader]"; + mes "\"Hello. I came here to trade wares with the people of Tulimshar. Unfortunately for you, I've traded everything I had.\""; + next; + menu + "Oh. I'll go then.", -, + "You don't have anything?", L_More; + close; + +L_More: + mes "[Trader]"; + mes "\"No. I have nothing for you. Except...\""; + next; + menu + "Yes?", L_Except, + "Ok then.", -; + close; + +L_Except: + mes "[Trader]"; + mes "\"I could teach you how to trade. It'll cost you 5GP.\""; + next; + menu + "Sure.", L_Teach, + "No thank you.", -; + close; + +L_Teach: + if (zeny < 5) goto L_NotEnoughMoney; + set zeny, zeny - 5; + setskill @TRADE_SKILL, 1; + mes "[Trader]"; + mes "\"You can initiate trade with someone by right-clicking on them and choosing trade."; + mes "You'll both add the items and set the GP you're putting up then press propose trade."; + mes "After both parties have proposed their side, you can both review the trade, and then accept or reject by closing the window.\""; + next; + mes "[Trader]"; + mes "\"Items added to the trade cannot be removed, and so mistakes have to be dealt with by canceling the trade."; + mes "You need to press the change button to let the other person know about GP changes.\""; + next; + goto L_Later; + +L_Later: + mes "[Trader]"; + mes "\"Please feel free to check back later. I'm expecting a large shipment of goods to trade.\""; + close; + +L_Trade: + mes "[Trader]"; + mes "\"Welcome back! My shipment came in and I have a bunch of things that I can trade now. What would you like?\""; + goto L_Trademenu; + +L_Trademenu: + menu + "Do you have Iron Powder?", L_Iron, + "How about Sulphur Powder?", L_Sulphur, + "I need Medium Healing Potions.", L_Healpots, + "I think I have everything I need, thanks.", -; + close; + +L_Iron: + mes "[Trader]"; + mes "\"I do have a few of those. I will give you 4 Iron Powders for 1 Iron Ore and " + @Ironprice + "gp.\""; + menu + "Sure.", L_Ipowder, + "What a ripoff! No way!", -; + close; + +L_Sulphur: + mes "[Trader]"; + mes "\"I can trade you 5 Sulphur Powders for 1 Pile of Ash and " + @Sulphurprice + "gp.\""; + menu + "Here you go.", L_Spowder, + "Are you nuts?! Forget it!", -; + close; + +L_Healpots: + mes "[Trader]"; + mes "\"Healing potions are always useful, but I rarely need anything larger than the small ones. I will happily trade you 1 Medium Healing Potion for 3 Small Healing Potions and " + @Potionprice + "gp.\""; + menu + "Alright.", L_Pots, + "Whoa, that's way too much.", -; + close; + +L_Ipowder: + if (countitem("IronOre") < 1) goto L_Missing; + if (zeny < @Ironprice) goto L_NotEnoughMoney; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("IronOre") > 1 + && countitem("IronPowder") < 1) + goto L_Full; + delitem "IronOre", 1; + set zeny, zeny - @Ironprice; + getitem "IronPowder", 4; + mes "[Trader]"; + mes "\"There you go. Would you like to trade anything else?\""; + menu + "Yes.", L_Trademenu, + "No.", L_No; + close; + +L_Spowder: + if (countitem("PileOfAsh") < 1) goto L_Missing; + if (zeny < @Sulphurprice) goto L_NotEnoughMoney; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("PileOfAsh") > 1 + && countitem("SulphurPowder") < 1) + goto L_Full; + delitem "PileOfAsh", 1; + set zeny, zeny - @Sulphurprice; + getitem "SulphurPowder", 5; + mes "[Trader]"; + mes "\"There you go. Would you like to trade anything else?\""; + menu + "Yes.", L_Trademenu, + "No.", L_No; + close; + +L_Pots: + if (countitem("SmallHealingPotion") < 3) goto L_Missing; + if (zeny < @Potionprice) goto L_NotEnoughMoney; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("SmallHealingPotion") > 3 + && countitem("MediumHealingPotion") < 1) + goto L_Full; + delitem "SmallHealingPotion", 3; + set zeny, zeny - @Potionprice; + getitem "MediumHealingPotion", 1; + mes "[Trader]"; + mes "\"There you go. Would you like to trade anything else?\""; + menu + "Yes.", L_Trademenu, + "No.", L_No; + close; + +L_Full: + mes "[Trader]"; + mes "\"You must have been making a lot of trades...your bag is completely full! Come back after you've made some room.\""; + close; + +L_Missing: + mes "[Trader]"; + mes "\"It looks like you're missing some items. Please come back when you have enough to trade.\""; + close; + +L_NotEnoughMoney: + mes "[Trader]"; + mes "\"You don't have enough money.\""; + close; + +L_No: + mes "[Trader]"; + mes "\"Have a great day!\""; + close; +} diff --git a/world/map/npc/001-1/vincent.txt b/world/map/npc/001-1/vincent.txt new file mode 100644 index 00000000..78ebba6a --- /dev/null +++ b/world/map/npc/001-1/vincent.txt @@ -0,0 +1,125 @@ +// + +001-1.gat,135,42,0 script Vincent 113,{ + if (TMW_Quest >= 10) goto L_Done; + if (TMW_Quest == 9) goto L_Progress; + if (TMW_Quest == 8) goto L_Start; + if (TMW_Quest < 8) goto L_Convince_Vincent_First; + + // If this happens, something is wrong with the above code. + mes "Vincent looks confused."; + close; + +L_Convince_Vincent_First: + mes "[Vincent]"; + mes "\"I'm making an action figure. I'm almost done with it.\""; + mes ""; + mes "Vincent seems distracted with his near-completed figurine for now."; + close; + + +L_Start: + + set @TEMP, rand(4); + if(@TEMP == 0) goto L_Opening1; + if(@TEMP == 1) goto L_Opening2; + if(@TEMP == 2) goto L_Opening3; + if(@TEMP == 3) goto L_Opening4; + +L_Opening1: + mes "[Vincent]"; + mes "\"I just need 10 more Bug Legs to finish my action figure!\""; + next; + goto L_Ask; + +L_Opening2: + mes "[Vincent]"; + mes "\"This maggot action figure is awesome! I just need to attach 10 Bug Legs.\""; + next; + goto L_Ask; + +L_Opening3: + mes "[Vincent]"; + mes "\"This is a great action figure! A must have! All I need is a few parts...\""; + next; + goto L_Ask; + +L_Opening4: + mes "[Vincent]"; + mes "\"Can you get me 10 Bug Legs? I need them to replace the action figure parts.\""; + next; + goto L_Ask; + +L_Ask: + mes "[Vincent]"; + mes "\"Will you help me find 10 Bug Legs?\""; + next; + menu + "Yes", L_Sure, + "No", -; + close; + +L_Sure: + set TMW_Quest, 9; + set @TEMP,rand(4); + if(@TEMP == 0) goto L_Req1; + if(@TEMP == 1) goto L_Req2; + if(@TEMP == 2) goto L_Req3; + if(@TEMP == 3) goto L_Req4; + +L_Req1: + mes "[Vincent]"; + mes "\"Thank you!\""; + next; + goto L_Wait; + +L_Req2: + mes "[Vincent]"; + mes "\"I don't know how to thank you enough!\""; + next; + goto L_Wait; + +L_Req3: + mes "[Vincent]"; + mes "\"I will thank you when I get them!\""; + next; + goto L_Wait; + +L_Req4: + mes "[Vincent]"; + mes "\"I'm sure I will give a small reward. :D\""; + next; + goto L_Wait; + +L_Wait: + mes "[Vincent]"; + mes "\"Now please go get me 10 Bug Legs.\""; + close; + +L_Progress: + if(countitem("BugLeg") >= 10) goto L_Have; + mes "[Vincent]"; + mes "\"Please help me collect 10 Bug Legs!\""; + close; + +L_Have: + mes "[Vincent]"; + mes "\"Excellent! Finally I can complete the model!!\""; + next; + + if(countitem("BugLeg") < 10) goto L_Progress; + delitem "BugLeg", 10; + set zeny, zeny + 1000; + set TMW_Quest, 10; + + mes "[Vincent]"; + mes "\"Here you go, a little of my appreciation!\""; + mes ""; + mes "[1000 gold]"; + close; + +L_Done: + mes "[Vincent]"; + mes "\"Thanks for your help!\""; + close; +} diff --git a/world/map/npc/001-2/_import.txt b/world/map/npc/001-2/_import.txt new file mode 100644 index 00000000..e318db9b --- /dev/null +++ b/world/map/npc/001-2/_import.txt @@ -0,0 +1,10 @@ +// Map 001-2: Tulimshar +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 001-2.gat +npc: npc/001-2/_mobs.txt +npc: npc/001-2/_warps.txt +npc: npc/001-2/casino.txt +npc: npc/001-2/mapflags.txt +npc: npc/001-2/phaet.txt +npc: npc/001-2/shops.txt +npc: npc/001-2/troupe_leader.txt diff --git a/world/map/npc/001-2/_mobs.txt b/world/map/npc/001-2/_mobs.txt new file mode 100644 index 00000000..6ba5649e --- /dev/null +++ b/world/map/npc/001-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar mobs + + + +001-2.gat,0,0,0 script Mob001-2 -1,{ + end; +} diff --git a/world/map/npc/001-2/_warps.txt b/world/map/npc/001-2/_warps.txt new file mode 100644 index 00000000..fcf625f1 --- /dev/null +++ b/world/map/npc/001-2/_warps.txt @@ -0,0 +1,13 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar warps + +001-2.gat,25,35 warp ToOutside -1,-1,001-1.gat,32,72 +001-2.gat,44,25 warp To2ndFloor -1,0,001-2.gat,65,25 +001-2.gat,64,25 warp To1stFloor -1,-1,001-2.gat,42,25 +001-2.gat,67,30 warp ToBedroom -1,-1,001-2.gat,102,23 +001-2.gat,76,30 warp ToDeposit -1,-1,001-2.gat,130,23 +001-2.gat,69,22 warp ToCasino 0,-1,001-2.gat,32,72 +001-2.gat,103,22 warp To2ndFloor 0,-1,001-2.gat,67,29 +001-2.gat,131,22 warp To2ndFloor 0,-1,001-2.gat,76,29 +001-2.gat,32,73 warp To2ndFloor -1,-1,001-2.gat,68,23 +001-2.gat,71,73 warp ToOutdoor -1,-1,001-1.gat,75,42 diff --git a/world/map/npc/001-2/casino.txt b/world/map/npc/001-2/casino.txt new file mode 100644 index 00000000..cf4943a4 --- /dev/null +++ b/world/map/npc/001-2/casino.txt @@ -0,0 +1,175 @@ +// + +001-2.gat,134,23,0 script Valdo 117,{ + mes "[Valdo the Worker]"; + mes "\"Please let me work, I'm really in a hurry!\""; + close; +} + +001-2.gat,37,65,0 script Slot1 127,{ + callfunc "SlotMachine"; + close; +} + +001-2.gat,39,65,0 script Slot2 127,{ + callfunc "SlotMachine"; + close; +} + +001-2.gat,41,65,0 script Slot3 127,{ + callfunc "SlotMachine"; + close; +} + +001-2.gat,32,67,0 shop MoneyChanger 124,503:10 + +001-2.gat,28,63,0 script BlackJack 107,{ + mes "[Croupier]"; + mes "\"Would you like to play Black Jack?"; + mes "You will need 15 casino coins.\""; + next; + + menu + "Yes", L_Begin, + "No", -; + mes "\"As you wish.\""; + close; + +L_Begin: + if(countitem("CasinoCoins") < 15) goto L_NoCoin; + delitem "CasinoCoins", 15; + set @croupier, rand(0, 4); + set @croupier, @croupier + 17; + set @player, rand(4, 21); + mes "\"You got " + @player + " with your cards."; + if(@player == 21) goto L_End; + mes "Do you want another card?\""; + next; + + menu + "Yes", L_Another, + "No", L_End; + +L_Another: + set @tempace, rand(2, 11); + if (@tempace == 11) goto L_Ace; + set @player, @player + @tempace; + if (@player > 21) goto L_Lost; + if (@player == 21) goto L_End; + mes "\"You got " + @player + " with your cards."; + mes "Do you want another card?\""; + next; + + menu + "Yes", L_Another, + "No", L_End; +L_End: + if (@player <= @croupier) goto L_Lost; + mes "\"Congratulations, you won!"; + mes "I had " + @croupier + "."; + mes "You get 45 casino coins.\""; + getitem "CasinoCoins", 45; + close; + +L_NoCoin: + mes "\"You need at least 15 coins.\""; + close; + +L_Lost: + mes "\"I'm sorry but you lost."; + mes "You got " + @player + " with your cards."; + mes "I had " + @croupier + ".\""; + close; + +L_Ace: + set @player, @player + 11; + if (@player > 21) set @player, @player - 10; + if (@player > 21) goto L_Lost; + if (@player == 21) goto L_End; + mes "You got " + @player + " with your cards."; + mes "Do you want another card?"; + next; + + menu + "Yes", L_Another, + "No", L_End; + close; +} + +001-2.gat,22,69,0 script Roulette 107,{ + mes "\"Good evening monsieur..."; + mes "How much would you like to bet?\""; + next; + + menu + "1 coin", L_b1, + "5 coins", L_b5, + "10 coins", L_b10, + "50 coins", L_b50, + "100 coins", L_b100, + "Maybe I'll play later", -; + mes "Come again."; + close; + +L_b1: + set @bet, 1; + goto L_Check; + +L_b5: + set @bet, 5; + goto L_Check; + +L_b10: + set @bet, 10; + goto L_Check; + +L_b50: + set @bet, 50; + goto L_Check; + +L_b100: + set @bet, 100; + goto L_Check; + +L_Check: + if(countitem("CasinoCoins") < @bet) goto L_NoCoin; + delitem "CasinoCoins", @bet; + menu + "Choose a color", -, + "Choose a number", L_Number; + menu + "Black", -, + "Red", -; + set @color,rand(2); + if(@color == 1) goto L_Lost; + mes "You won!"; + getitem "CasinoCoins", @bet * 2; + close; + +L_Number: + menu + "0", -, "00", -, "1", -, "2", -, "3", -, "4", -, "5", -, "6", -, "7", -, "8", -, + "9", -, "10", -, "11", -, "12", -, "13", -, "14", -, "15", -, "16", -, "17", -, "18", -, + "19", -, "20", -, "21", -, "22", -, "23", -, "24", -, "25", -, "26", -, "27", -, "28", -, + "29", -, "30", -, "31", -, "32", -, "33", -, "34", -, "35", -, "36", -; + + if (@menu == 1) set @number, 0; + if (@menu == 2) set @number, 37; + if (@menu >= 3) set @number, @menu - 2; + + set @roulette, rand(38); + if (@roulette == 37) mes "The ball stopped on 00"; + if (@roulette < 37) mes "The ball stopped on " + @roulette; + if (@number != @roulette) goto L_Lost; + mes "\"You won!\""; + getitem "CasinoCoins", @bet * 10; + close; + +L_NoCoin: + mes "\"You don't have enough coins.\""; + close; + +L_Lost: + mes "\"I'm sorry, you lost.\""; + close; +} diff --git a/world/map/npc/001-2/mapflags.txt b/world/map/npc/001-2/mapflags.txt new file mode 100644 index 00000000..dda29b1e --- /dev/null +++ b/world/map/npc/001-2/mapflags.txt @@ -0,0 +1,2 @@ +001-2.gat mapflag no_player_drops +001-2.gat mapflag town diff --git a/world/map/npc/001-2/phaet.txt b/world/map/npc/001-2/phaet.txt new file mode 100644 index 00000000..e495d93d --- /dev/null +++ b/world/map/npc/001-2/phaet.txt @@ -0,0 +1,30 @@ +// + +001-2.gat,24,23,0 script Phaet 125,{ + mes "[Phaet the Royal Guard]"; + mes "\"Hey, you seem tough enough! Would you like to prove your skills? I'll let you in the arena if you give me 50 gp. You can fight against other players there.\""; + next; + + menu + "Yes", L_Sure, + "No", -; + + mes "[Phaet the Royal Guard]"; + mes "\"Ha ha, coward.\""; + close; + +L_Sure: + if (zeny < 50) goto L_NoMoney; + set zeny, zeny - 50; + + mes "[Phaet the Royal Guard]"; + mes "\"Get ready!\""; + next; + + warp "001-3.gat", 0, 0; + close; + +L_NoMoney: + mes "\"Wait a second, you don't have enough money.\""; + close; +} diff --git a/world/map/npc/001-2/shops.txt b/world/map/npc/001-2/shops.txt new file mode 100644 index 00000000..c70ad113 --- /dev/null +++ b/world/map/npc/001-2/shops.txt @@ -0,0 +1,10 @@ +// + +001-2.gat,26,26,0 shop InnKeeper 112,539:175,513:20,519 + +001-2.gat,103,26,0 script Rebecca 118,{ + set @npcname$, "Rebecca the Inn Keeper"; + set @cost, 100; + callfunc "Inn"; + close; +} diff --git a/world/map/npc/001-2/troupe_leader.txt b/world/map/npc/001-2/troupe_leader.txt new file mode 100644 index 00000000..e7b0486e --- /dev/null +++ b/world/map/npc/001-2/troupe_leader.txt @@ -0,0 +1,51 @@ +// + +001-2.gat,34,25,0 script Troupe Leader 165,{ + if (Inspector == 4) goto L_NohMask_Troupe; + if (Inspector == 13) goto L_NohMask_Found; + + mes "[Troupe Leader]"; + mes "\"Hello. I'm the leader of a traveling theater troupe. We'll be staying here in Tulimshar for a while.\""; + close; + +L_NohMask_Troupe: + mes "[Troupe Leader]"; + mes "\"Yes, a mask was stolen from us the last night we were in Hurnscald.\""; + next; + menu + "Any ideas on who might have taken it?", L_NohMask_Idea, + "Are you sure one of your troupe members didn't hide it and commit those robberies?", L_NohMask_Accuse, + "Hmm...", -; + close; + +L_NohMask_Idea: + set Inspector, 5; + mes "[Troupe Leader]"; + mes "\"Hm...I did see an old man hang out near the theater after our last show.\""; + close; + +L_NohMask_Accuse: + mes "[Troupe Leader]"; + mes "\"I am absolutely positive. None of my troupe have left the city since we got here. Good day!\""; + close; + +L_NohMask_Found: + mes "[Troupe Leader]"; + mes "\"Thank you for finding the mask. You did such a good job, you should keep it.\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_NohMask_TooMany; + mes "[1500 experience points]"; + getexp 1500, 0; + set Inspector, 14; + getitem "NohMask", 1; + next; + mes "[Troupe Leader]"; + mes "\"We don't need it anymore. We're doing different shows here.\""; + close; + +L_NohMask_TooMany: + next; + mes "[Troupe Leader]"; + mes "\"Except, you don't seem to have any room for it. I'll hold onto it for you until you do have room.\""; + close; +} diff --git a/world/map/npc/001-3/_import.txt b/world/map/npc/001-3/_import.txt new file mode 100644 index 00000000..a6b8b692 --- /dev/null +++ b/world/map/npc/001-3/_import.txt @@ -0,0 +1,8 @@ +// Map 001-3: Tulimshar arena +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 001-3.gat +npc: npc/001-3/_mobs.txt +npc: npc/001-3/_warps.txt +npc: npc/001-3/guards.txt +npc: npc/001-3/monsters.txt +npc: npc/001-3/pvpflag.txt diff --git a/world/map/npc/001-3/_mobs.txt b/world/map/npc/001-3/_mobs.txt new file mode 100644 index 00000000..ae4b044f --- /dev/null +++ b/world/map/npc/001-3/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar arena mobs + + + +001-3.gat,0,0,0 script Mob001-3 -1,{ + end; +} diff --git a/world/map/npc/001-3/_warps.txt b/world/map/npc/001-3/_warps.txt new file mode 100644 index 00000000..adb7642a --- /dev/null +++ b/world/map/npc/001-3/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar arena warps + +001-3.gat,72,29 warp ToInn 1,-1,001-2.gat,24,23 diff --git a/world/map/npc/001-3/guards.txt b/world/map/npc/001-3/guards.txt new file mode 100644 index 00000000..5b42ca4f --- /dev/null +++ b/world/map/npc/001-3/guards.txt @@ -0,0 +1,28 @@ +// + +001-3.gat,77,37,0 script Phaet 125,{ + mes "[Phaet the Royal Guard]"; + mes "\"Do you want to go back?\""; + next; + + menu + "Yes", L_Sure, + "No", -; + mes "Have fun."; + close; + +L_Sure: + mes "[Phaet the Royal Guard]"; + mes "\"Ok.\""; + next; + + warp "001-2.gat", 25, 23; + close; +} + +001-3.gat,69,37,0 script Aradin 126,{ + mes "[Aradin the Royal Guard]"; + mes "\"Don't touch me..."; + mes "You wouldn't enjoy the consequences.\""; + close; +} diff --git a/world/map/npc/001-3/monsters.txt b/world/map/npc/001-3/monsters.txt new file mode 100644 index 00000000..04e6b11d --- /dev/null +++ b/world/map/npc/001-3/monsters.txt @@ -0,0 +1,14 @@ +// Map: 001-3 +// This is the Tulimshar Arena -- below Tulimshar. +// + +001-3.gat,0,0,0,0 monster Maggot 1002,10,0,0,Mob6::OnMaggot + +001-3.gat,0,0,0 script Mob6 -1,{ +OnMaggot: + set @mobID, 1002; + callfunc "MobPoints"; + break; + + end; +}
\ No newline at end of file diff --git a/world/map/npc/001-3/pvpflag.txt b/world/map/npc/001-3/pvpflag.txt new file mode 100644 index 00000000..73b6e556 --- /dev/null +++ b/world/map/npc/001-3/pvpflag.txt @@ -0,0 +1 @@ +001-3.gat mapflag pvp diff --git a/world/map/npc/001-4/_import.txt b/world/map/npc/001-4/_import.txt new file mode 100644 index 00000000..aecdcb62 --- /dev/null +++ b/world/map/npc/001-4/_import.txt @@ -0,0 +1,7 @@ +// Map 001-4: Omars house +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 001-4.gat +npc: npc/001-4/_mobs.txt +npc: npc/001-4/_warps.txt +npc: npc/001-4/dedication.txt +npc: npc/001-4/omar.txt diff --git a/world/map/npc/001-4/_mobs.txt b/world/map/npc/001-4/_mobs.txt new file mode 100644 index 00000000..097896c8 --- /dev/null +++ b/world/map/npc/001-4/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Omars house mobs + + + +001-4.gat,0,0,0 script Mob001-4 -1,{ + end; +} diff --git a/world/map/npc/001-4/_warps.txt b/world/map/npc/001-4/_warps.txt new file mode 100644 index 00000000..7831e9a1 --- /dev/null +++ b/world/map/npc/001-4/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Omars house warps + +001-4.gat,26,34 warp toOutdoor -1,-1,001-1.gat,75,42 diff --git a/world/map/npc/001-4/dedication.txt b/world/map/npc/001-4/dedication.txt new file mode 100644 index 00000000..4b240b11 --- /dev/null +++ b/world/map/npc/001-4/dedication.txt @@ -0,0 +1,9 @@ +// Dedication to Irene Christina + +001-4.gat,31,29,0 script #IreneDedication 127,{ + mes "~ Irene Christina ~"; + mes "The song in this house is dedicated to Irene."; + mes ""; + mes "She had seen only twenty hours of this world when she died in her father's arms."; + close; +}; diff --git a/world/map/npc/001-4/omar.txt b/world/map/npc/001-4/omar.txt new file mode 100644 index 00000000..aedf1806 --- /dev/null +++ b/world/map/npc/001-4/omar.txt @@ -0,0 +1,348 @@ +// +function script KadiyaSubquestConsts { + set @Q_kadiya_status, (QUEST_MAGIC2 & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; + + set @Q_STATUS_NONE, 0; + set @Q_STATUS_KNOWS_MOPOX, 1; + set @Q_STATUS_MADE_MOPOX, 2; + set @Q_STATUS_DIDNT_DRINK, 3; + set @Q_STATUS_WANTS_CHOCOCAKE, 4; + set @Q_STATUS_WANTS_ORANGECUPCAKE, 5; + set @Q_STATUS_COMPLETED, 6; + set @Q_STATUS_COMPLETED_ELANORE, 7; + set @Q_STATUS_COMPLETED_NOELANORE, 8; + set @Q_STATUS_COMPLETED_POST_ELANORE, 9; + + if (((QUEST_MAGIC2 & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT) < 4) + set @Q_kadiya_status, @Q_STATUS_NONE; + + if (((QUEST_MAGIC2 & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT) > 4) + set @Q_kadiya_status, @Q_STATUS_COMPLETED_POST_ELANORE; + + return; +} + + +001-4.gat,25,21,0 script Omar 162,{ + callfunc "ElanoreFix"; + callfunc "KadiyaSubquestConsts"; + + set @Q_status, @Q_kadiya_status; + + if (@Q_status >= @Q_STATUS_COMPLETED) + goto L_cured; + + if (@Q_status == @Q_STATUS_DIDNT_DRINK) + goto L_didnt_drink; + + if (@Q_status > @Q_STATUS_DIDNT_DRINK) + goto L_make_food; + + mes "[Omar]"; + mes "\"Welcome to my humble abode.\""; + next; + + menu + "Well met! May I ask who you are?", L_omar, + "What's wrong with your daughter?", L_kadiya_sick, + "Thank you!", -; + close; + +L_omar: + mes "[Omar]"; + mes "\"My name is Omar; I am a trader of oils and spices.\""; + close; + +L_kadiya_sick: + mes "[Omar]"; + mes "\"Kadiya has caught Ponderpox, I fear.\""; + mes "He sighs."; + mes "\"She's has been feverish for many days now. I wish there were something I could do.\""; + next; + + menu + "Have you asked Elanore the healer?", L_sick_elanore, + "How about the Hurnscald hospital?", L_sick_hospital, + "Can I help?", L_sick_self, + "I'm sorry to hear that.", -; + + mes "[Omar]"; + mes "\"Well, she is a strong girl. I am sure that she will get over it eventually.\""; + mes "He smiles, but you see doubt in his eyes."; + close; + +L_sick_elanore: + mes "[Omar]"; + mes "\"Elanore?\""; + mes "He frowns."; + mes "\"She knows nothing. I see no point in talking to her.\""; + close; + +L_sick_hospital: + mes "[Omar]"; + mes "\"Hurnscald is too far away. I don't think that it would be good for her to go on such a long trip.\""; + close; + +L_sick_self: + mes "[Omar]"; + mes "\"You are very kind, but I don't think there is anything you can do.\""; + close; + +L_didnt_drink: + mes "[Omar]"; + mes "\"So she has Mopox, not Ponderpox, you say? Hmm. That is much harder to cure, I think.\""; + mes "\"I am grateful for the effort you put into brewing a potion for her. But it does smell vile...\""; + next; + + mes "[Omar]"; + mes "\"I promised my dear wife that I would never make Kadiya eat or drink anything she doesn't like. So I won't force her to drink this.\""; + next; + + mes "[Omar]"; + set @Q_status, (@Q_STATUS_WANTS_CHOCOCAKE + rand(2)); + callsub S_update_var; + + if (@Q_status == @Q_STATUS_WANTS_ORANGECUPCAKE) + mes "\"If only we could make it smell and taste like orange cupcakes... she really loves those cupcakes.\""; + if (@Q_status == @Q_STATUS_WANTS_CHOCOCAKE) + mes "\"If only this were a chocolate cake and not a potion... she really loves chocolate cakes.\""; + close; + +L_make_food: + mes "[Omar]"; + mes "\"I should stay here to watch over her. I wish I could think of a way to convince her to drink the potion...\""; + if (@Q_status == @Q_STATUS_WANTS_ORANGECUPCAKE) + mes "\"Alas, it is not an orange cupcake.\""; + if (@Q_status == @Q_STATUS_WANTS_CHOCOCAKE) + mes "\"If only it were to smell and taste like her favourite chocolate cake...\""; + close; + +L_cured: + if (@Q_status == @Q_STATUS_COMPLETED) + goto L_cured_choice; + mes "[Omar]"; + mes "\"She is sleeping now, but she seems to be much better. I am sure that she will be up and running around again soon.\""; + close; + +L_cured_choice: + mes "[Omar]"; + mes "\"I am very grateful for your help. I really was sure that it was Ponderpox, not Mopox, that she had.\""; + next; + + menu + "Oh, it was nothing.", L_cured_nothing, + "I didn't do it alone; Elanore helped.", L_cured_elanore, + "That will be 5000 GP.", -; + + mes "[Omar]"; + mes "\"Ah, certainly.\""; + mes "He hands you a small bag of money."; + next; + + set @Q_status, @Q_STATUS_COMPLETED_NOELANORE; + callsub S_update_var; + + set zeny, zeny + 5000; + close; + +L_cured_nothing: + mes "[Omar]"; + mes "\"No, this wasn't nothing. She is everything to me. Here, you deserve a reward.\""; + mes "He hands you a bag of money containing 10,000 GP and two pearls."; + mes "\"And feel free to drop by again whenever you would like!\""; + + set @Q_status, @Q_STATUS_COMPLETED_NOELANORE; + callsub S_update_var; + + getitem "Pearl", 2; + set zeny, zeny + 10000; + close; + +L_cured_elanore: + mes "[Omar]"; + mes "Omar frowns."; + mes "\"That witch? You worked with her without telling me?\""; + mes "He looks over to his daughter, concern suddenly in his eyes."; + mes "\"She is looking better, though...\""; + next; + + mes "[Omar]"; + mes "Omar shakes his head."; + mes "\"I will have to think about this. Please leave me alone.\""; + next; + + set @Q_status, @Q_STATUS_COMPLETED_ELANORE; + callsub S_update_var; + + close; + +S_update_var: + set QUEST_MAGIC2, + (QUEST_MAGIC2 & ~(NIBBLE_3_MASK) + | (@Q_status << NIBBLE_3_SHIFT)); + return; +} + + +001-4.gat,31,20,0 script _______Kadiya 174,{ + callfunc "ElanoreFix"; + set @Q_MASK, NIBBLE_3_MASK; + set @Q_SHIFT, NIBBLE_3_SHIFT; + + callfunc "KadiyaSubquestConsts"; + set @Q_status, @Q_kadiya_status; + + if (@Q_status >= @Q_STATUS_COMPLETED) + goto L_cured; + + mes "You see a young girl lying in bed. At first she doesn't seem to notice you approaching."; + mes "Finally, she turns her head towards you. Judging from the sweat on her forehead and look in her eyes, she is suffering from some kind of fever."; + next; + + mes "[Kadiya]"; + mes "\"Hello,\" she says in a tiny voice."; + next; + + set @M_NAME, 1; + set @M_CANDY, 2; + set @M_POTION, 3; + set @M_CHOCOCAKE, 4; + set @M_CUPCAKE, 5; + + setarray @choice$, "Hello! What's your name?", "Would you like some candy?", "", "", "", "", "", ""; + setarray @choice_idx, @M_NAME, @M_CANDY, 0, 0, 0, 0, 0, 0; + set @choices_nr, 2; + + if (countitem("MopoxCurePotion") == 0) + goto L_M_no_cure; + + set @choice_idx[@choices_nr], @M_POTION; + set @choice$[@choices_nr], "This potion will cure your illness!"; + set @choices_nr, @choices_nr + 1; + +L_M_no_cure: + + if ((countitem("LacedChocolateCake") == 0) || (@Q_status != @Q_STATUS_WANTS_CHOCOCAKE)) + goto L_M_no_chococake; + + set @choice_idx[@choices_nr], @M_CHOCOCAKE; + set @choice$[@choices_nr], "Would you like special chocolate cake?"; + set @choices_nr, @choices_nr + 1; + +L_M_no_chococake: + + if ((countitem("LacedOrangeCupcake") == 0) || (@Q_status != @Q_STATUS_WANTS_ORANGECUPCAKE)) + goto L_M_no_cupcake; + + set @choice_idx[@choices_nr], @M_CUPCAKE; + set @choice$[@choices_nr], "Would you like special orange cupcake?"; + set @choices_nr, @choices_nr + 1; + +L_M_no_cupcake: + + set @choice_idx[@choices_nr], 0; + set @choice$[@choices_nr], "Goodbye."; + set @choices_nr, @choices_nr + 1; + + menu + @choice$[0], -, + @choice$[1], -, + @choice$[2], -, + @choice$[3], -, + @choice$[4], -, + @choice$[5], -; + + set @choice, @choice_idx[@menu - 1]; + + if (@choice == @M_NAME) goto L_name; + if (@choice == @M_CANDY) goto L_no_candy; + if (@choice == @M_POTION) goto L_potion; + if (@choice == @M_CHOCOCAKE) goto L_chococake; + if (@choice == @M_CUPCAKE) goto L_cupcake; + + close; + +L_name: + mes "[Kadiya]"; + mes "She smiles a faint smile."; + mes "\"My name is Kadiya.\""; + + close; + +L_no_candy: + mes "[Kadiya]"; + mes "She hesitates for a moment."; + mes "\"No, thank you. I don't think I should.\""; + + close; + +L_potion: + mes "[Kadiya]"; + if (@Q_status < @Q_STATUS_DIDNT_DRINK) + set @Q_status, @Q_STATUS_DIDNT_DRINK; + callsub S_update_var; + + mes "Kadiya grimaces and pushes the bottle away."; + mes "\"That smells terrible!\""; + next; + + mes "[Kadiya]"; + mes "She pulls the sheets over her head."; + mes "\"I won't drink that!\""; + next; + + close; + +L_chococake: + delitem "LacedChocolateCake", 1; + goto L_do_cure; + +L_cupcake: + delitem "LacedOrangeCupcake", 1; + goto L_do_cure; + +L_do_cure: + if (@Q_status < @Q_STATUS_COMPLETED) + set @Q_status, @Q_STATUS_COMPLETED; + callsub S_update_var; + mes "[Kadiya]"; + mes "Kadiya's eyes widen."; + mes "\"Oh! Daddy, is it okay if I eat this?\""; + mes "Omar nods and smiles. \"You should eat a bit to regain your strength, sweetheart.\""; + next; + + mes "[Kadiya]"; + mes "Kadiya devours your gift in just a handful of bites."; + next; + + mes "[Kadiya]"; + mes "She smiles. \"Thank you! I feel better already!\"."; + next; + + mes "[Kadiya]"; + mes "She looks much healthier, too. Omar walks over and touches her forehead."; + mes "\"Now that is funny-- your fever has gone down quite a bit!\""; + mes "He smiles at you. \"Thank you for your help!\""; + next; + + mes "[Kadiya]"; + mes "\"You should get some sleep now, sweetheart. I'm sure that you will be better soon.\""; + close; + +L_goodbye: + mes "[Kadiya]"; + mes "Goodbye!"; + + close; + +L_cured: + mes "[Kadiya]"; + mes "Kadiya seems to be sleeping calmly. She looks much less sweaty than earlier; unless you are very much mistaken, her fever has disappeared."; + close; + +S_update_var: + set QUEST_MAGIC2, + (QUEST_MAGIC2 & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/002-1/_import.txt b/world/map/npc/002-1/_import.txt new file mode 100644 index 00000000..dfda9d8f --- /dev/null +++ b/world/map/npc/002-1/_import.txt @@ -0,0 +1,12 @@ +// Map 002-1: Sandstorm +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 002-1.gat +npc: npc/002-1/_mobs.txt +npc: npc/002-1/_warps.txt +npc: npc/002-1/lieutenant_dausen.txt +npc: npc/002-1/merchant.txt +npc: npc/002-1/nickos.txt +npc: npc/002-1/nomads.txt +npc: npc/002-1/rogue.txt +npc: npc/002-1/sandstorm_mine_barrier.txt +npc: npc/002-1/stewen.txt diff --git a/world/map/npc/002-1/_mobs.txt b/world/map/npc/002-1/_mobs.txt new file mode 100644 index 00000000..9a9b39b5 --- /dev/null +++ b/world/map/npc/002-1/_mobs.txt @@ -0,0 +1,42 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Sandstorm mobs + +002-1.gat,0,0,0,0 monster Maggot 1002,20,1000,500,Mob002-1::On1002 +002-1.gat,96,98,19,13 monster Maggot 1002,10,100000,30000,Mob002-1::On1002 +002-1.gat,94,35,11,4 monster Maggot 1002,3,100000,30000,Mob002-1::On1002 +002-1.gat,68,59,7,6 monster Maggot 1002,3,100000,30000,Mob002-1::On1002 +002-1.gat,57,86,15,8 monster Maggot 1002,3,100000,30000,Mob002-1::On1002 +002-1.gat,19,94,7,8 monster Maggot 1002,3,100000,30000,Mob002-1::On1002 +002-1.gat,44,35,3,2 monster Maggot 1002,3,100000,30000,Mob002-1::On1002 +002-1.gat,38,29,3,2 monster Maggot 1002,3,100000,30000,Mob002-1::On1002 +002-1.gat,62,91,24,6 monster Maggot 1002,3,100000,30000,Mob002-1::On1002 +002-1.gat,61,74,41,43 monster Fire Goblin 1011,15,100000,30000,Mob002-1::On1011 +002-1.gat,82,24,34,15 monster Scorpion 1003,8,100000,30000,Mob002-1::On1003 +002-1.gat,32,35,34,33 monster Scorpion 1003,8,100000,30000,Mob002-1::On1003 +002-1.gat,27,81,22,43 monster Scorpion 1003,8,100000,30000,Mob002-1::On1003 +002-1.gat,95,75,15,17 monster Black Scorpion 1009,1,100000,1800000,Mob002-1::On1009 + + +002-1.gat,0,0,0 script Mob002-1 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1011: + set @mobID, 1011; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/002-1/_warps.txt b/world/map/npc/002-1/_warps.txt new file mode 100644 index 00000000..85d404f6 --- /dev/null +++ b/world/map/npc/002-1/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Sandstorm warps + +002-1.gat,58,12 warp ToTulimshar 3,-1,001-1.gat,44,80 +002-1.gat,108,79 warp ToEasternDesert -1,1,005-1.gat,23,40 +002-1.gat,12,66 warp ToWesternDesert -1,3,003-1.gat,168,76 +002-1.gat,28,13 warp ToBeach 1,-1,004-1.gat,84,111 diff --git a/world/map/npc/002-1/lieutenant_dausen.txt b/world/map/npc/002-1/lieutenant_dausen.txt new file mode 100644 index 00000000..0573482b --- /dev/null +++ b/world/map/npc/002-1/lieutenant_dausen.txt @@ -0,0 +1,119 @@ +// Lieutenant in charge of monitoring the monster threat surrounding the city. + +002-1.gat,54,27,0 script Lieutenant Dausen 122,{ + + if (TMW_Quest == 33) goto L_LD_Key; + if (TMW_Quest == 19) goto L_LD_Miners; + if (TMW_Quest == 18) goto L_LD_Orders; + if (TMW_Quest == 17) goto L_LD_Nickos_Waits; + if (TMW_Quest == 16) goto L_LD_Nickos; + if (TMW_Quest == 15) goto L_LD_Waits; + if (TMW_Quest == 14) goto L_LD_Woe_Is_Me; + if (TMW_Quest == 13) goto L_LD_Drinks; + if (TMW_Quest == 12) goto L_LD_Start; + if (TMW_Quest < 12) goto L_LD_Get_Rep_First; + + mes "[Lieutenant Dausen]"; + mes "\"Hello. I am Lieutenant Dausen. I monitor the monster threat around the city to ensure the safety of its citizens.\""; + close; + +L_LD_Get_Rep_First: + mes "[Lieutenant Dausen]"; + mes "\"Hello. I am Lieutenant Dausen. I monitor the monster threat around the city to ensure the safety of its citizens.\""; + next; + mes "[Lieutenant Dausen]"; + mes "\"I may have a job for you, stranger, but first I would like to learn more about you. Go walk among the citizens of Tulimshar, see if any of them could use some help. Once you have established a good reputation, word will get to me.\""; + close; + +L_LD_Start: + set TMW_Quest, 13; + mes "[Lieutenant Dausen]"; + mes "\"Out here in the desert, it sure does get hot! My men and I get thirsty rather quickly. Cactus Drinks are our favourite; if you can get some for us, we'd surely appreciate your effort. About 10 would do.\""; + close; + +L_LD_Drinks: + if (countitem ("CactusDrink") < 10) goto L_LD_NotEnough_Drink; + getinventorylist; + if (@inventorylist_count - (countitem("CactusDrink") == 10) > 99) goto L_LD_TooMany; + set TMW_Quest, 14; + delitem "CactusDrink", 10; + getitem "Boots", 1; + mes "[Lieutenant Dausen]"; + mes "\"Great! This will help us make it through the hot day. As a gift for your troubles, take these boots to keep your feet from burning on the sand. Have a good day...\""; + next; + mes "Lieutenant Dausen mumbles to himself and rubs his head."; + next; + mes "\"I have another problem, though. I mixed up the orders to my men, Nickos and Stewen. Someone needs to let them know they're going to have to hold their post for a while longer instead of taking a break. However, I can't leave my post! Oh, what to do, what to do...\""; + menu + "I can help you out, since you helped me too.", L_LD_Help, + "Thanks for the boots, gotta run now.", L_LD_NoHelp; + close; + +L_LD_NotEnough_Drink: + mes "[Lieutenant Dausen]"; + mes "\"Hi again. My men and I sure are thirsty for our favorite drink, the Cactus Drink. If we had about 10, it would help us out a great deal in this sandstorm.\""; + close; + +L_LD_TooMany: + mes "[Lieutenant Dausen]"; + mes "\"Oh, it seems you have too many items for me to give you a reward. Come back after you drop or sell some items.\""; + close; + +L_LD_Woe_Is_Me: + mes "[Lieutenant Dausen]"; + mes "\"I have a problem. I mixed up the orders to my men! Someone needs to let them know they're going to have to hold their post for a while longer instead of taking a break. However, I can't leave my post. Oh, what to do, what to do...\""; + menu + "I can help you out, since you helped me out too.", L_LD_Help, + "Bye-bye.", L_LD_NoHelp; + close; + +L_LD_Help: + set TMW_Quest, 15; + mes "[Lieutenant Dausen]"; + mes "\"Oh! Would you? You are ever most helpful! Could you let Stewen know first? I'm the most worried about the monsters from the eastern desert and he should know first to hold his post. Come back to me after you see him. Hope to hear from you soon!\""; + close; + +L_LD_NoHelp: + mes "[Lieutenant Dausen]"; + mes "\"See you later then.\""; + close; + +L_LD_Waits: + mes "[Lieutenant Dausen]"; + mes "\"I do hope Stewen holds his post. If you could tell them to do so, it would help me out a great deal.\""; + close; + +L_LD_Nickos: + set TMW_Quest, 17; + mes "[Lieutenant Dausen]"; + mes "\"Thanks for letting Stewen know. Can you now tell Nickos to hold his post too? He guards the mine to the south, monitoring the monster threat and protecting the miners when he can.\""; + close; + +L_LD_Nickos_Waits: + mes "[Lieutenant Dausen]"; + mes "\"Could you let Nickos know to hold his post? It would be very helpful. He is guarding the mine south of here.\""; + close; + +L_LD_Orders: + set TMW_Quest, 19; + set zeny, zeny + 500; + mes "[Lieutenant Dausen]"; + mes "\"Thank you for clearing up the orders to my men! Here's some gold for your efforts.\""; + next; + mes "\"If you think you can handle the monsters lurking out here, I'm sure Nickos and the miners could use some help. Talk to you later.\""; + close; + +L_LD_Miners: + mes "[Lieutenant Dausen]"; + mes "\"I monitor the monster threat around the city to ensure the safety of its citizens.\""; + next; + mes "\"If you think you can handle the monsters lurking out here, I'm sure Nickos and the miners could use some help. Talk to you later.\""; + close; + +L_LD_Key: + set TMW_Quest, 34; + mes "[Lieutenant Dausen]"; + mes "\"Oh, Naem lost his key? Here, take this spare. It should help you get into the underground palace.\""; + close; + +} diff --git a/world/map/npc/002-1/merchant.txt b/world/map/npc/002-1/merchant.txt new file mode 100644 index 00000000..8a84ae92 --- /dev/null +++ b/world/map/npc/002-1/merchant.txt @@ -0,0 +1,3 @@ +// + +002-1.gat,19,99,0 shop Ishyah 109,525:800,531:3000,530:8000,1199:3,603:-1 diff --git a/world/map/npc/002-1/nickos.txt b/world/map/npc/002-1/nickos.txt new file mode 100644 index 00000000..bf5de510 --- /dev/null +++ b/world/map/npc/002-1/nickos.txt @@ -0,0 +1,114 @@ +// Sandstorm mine guard + +002-1.gat,28,94,0 script Nickos 123,{ + + if (TMW_Quest == 32) goto L_Nickos_UGQ; + if (TMW_Quest == 31) goto L_Nickos_AS_Done; + if (TMW_Quest == 30) goto L_Nickos_AS_Start; + if (TMW_Quest >= 23) && (TMW_Quest < 30) goto L_Nickos_Guards; + if (TMW_Quest == 22) goto L_Nickos_Check_Happy; + if (TMW_Quest > 19) && (TMW_Quest < 22) goto L_Nickos_Waits; + if (TMW_Quest == 19) goto L_Nickos_Mine; + if (TMW_Quest == 18) goto L_Nickos_Orders_Received; + if (TMW_Quest == 17) goto L_Nickos_Orders; + if (TMW_Quest < 17) goto L_Nickos_See_Dausen_First; + + mes "[Nickos]"; + mes "\"I'm watching this mine to make sure the monsters don't harm the miners.\""; + close; + +L_Nickos_See_Dausen_First: + mes "[Nickos]"; + mes "\"I'm watching this mine to make sure the monsters don't harm the miners.\""; + next; + mes "[Nickos]"; + mes "\"The mines are closed from tourists due to the monster threat. If you want to get in you will need to prove yourself first. Talk to Lieutenant Dausen, my superior, if you want to make a formal complaint.\""; + close; + + +L_Nickos_Orders: + set TMW_Quest, 18; + mes "[Nickos]"; + mes "\"I have to hold my post longer? Argh! I was looking forward to my break. Oh well, thanks for letting me know.\""; + close; + +L_Nickos_Orders_Received: + mes "[Nickos]"; + mes "\"Thanks for letting me know Lieutenant Dausen wants me to stick it out for a while longer. Even though I would've liked my break, I'm sure these miners could use my watchful eye.\""; + close; + +L_Nickos_Mine: + mes "[Nickos]"; + mes "\"I haven't heard from the miners in a while, but I've got to keep to my post unless there is due reason to investigate. Normally the miners take care of themselves without any problem.\""; + next; + mes "[Nickos]"; + mes "\"Could you check on them for me, though?\""; + menu + "Yes.", L_Nickos_Mine_Open, + "No.", L_Nickos_Disappoint; + close; + +L_Nickos_Disappoint: + mes "Nickos looks disappointed."; + close; + +L_Nickos_Mine_Open: + set TMW_Quest, 20; + mes "[Nickos]"; + mes "\"Excellent! You now have my permission to enter the mine. Your assistance helps ease my worries.\""; + close; + +L_Nickos_Waits: + mes "[Nickos]"; + mes "\"Please be sure to get word from Nathan and Naem to make sure everthing is okay down there. Your assistance helps ease my worries.\""; + close; + +L_Nickos_Check_Happy: + set TMW_Quest, 23; + set zeny, zeny + 500; + mes "[Nickos]"; + mes "\"Oh, everything is okay? That's great! I think they are pretty busy and could use some help. Feel free to give them a hand. Here's some gold for your troubles.\""; + close; + +L_Nickos_Guards: + mes "[Nickos]"; + mes "\"I'm watching this mine to make sure the monsters don't harm the miners.\""; + next; + mes "\"Talk to Nathan the miner, I'm sure the miners could use some help down there.\""; + close; + +L_Nickos_AS_Start: + set TMW_Quest, 31; + mes "[Nickos]"; + mes "\"Oh, the angry scorpions are becoming a problem? We could thin down their numbers a bit. I can make it worth your time, but of course, I'll need something to show your work. Bring me 10 Angry Scorpion Stingers to demonstrate your effectiveness, and you will be rewarded for your efforts.\""; + close; + +L_Nickos_AS_Done: + if (countitem ("AngryScorpionStinger") < 10) goto L_Nickos_AS_NotDone; + getinventorylist; + if (@inventorylist_count - (countitem("AngryScorpionStinger") == 10) > 99) goto L_Nickos_TooMany; + set TMW_Quest, 32; + delitem "AngryScorpionStinger", 10; + getitem "LeatherShield", 1; + mes "[Nickos]"; + mes "\"Ah, you are a fine combatant! Take this Leather Shield, it might be useful for your future battles.\""; + next; + mes "\"You might be ready to take on the underground palace. If you are interested, go talk to Naem about unlocking the barrier, he's got the key and the code to open it.\""; + close; + +L_Nickos_AS_NotDone: + mes "[Nickos]"; + mes "\"Bring me 10 Angry Scorpion Stingers and I'll know their numbers are down. You will be rewarded for your efforts.\""; + close; + +L_Nickos_TooMany: + mes "[Nickos]"; + mes "\"Oh, it seems you have too many items. Please get rid some some and I'll give you a reward.\""; + close; + +L_Nickos_UGQ: + mes "[Nickos]"; + mes "\"You might be ready to take on the underground palace. If you are interested, talk to the miners about unlocking the barrier, they've got the key to open it.\""; + close; + +} diff --git a/world/map/npc/002-1/nomads.txt b/world/map/npc/002-1/nomads.txt new file mode 100644 index 00000000..0b7e7426 --- /dev/null +++ b/world/map/npc/002-1/nomads.txt @@ -0,0 +1,16 @@ +// + +002-1.gat,15,67,0 script Samuel 132,{ + mes "[Samuel the Nomad]"; + mes "\"This is really a nice place.\""; + + mes "Don't you think so?\""; + close; +} + +002-1.gat,18,68,0 script Elijah 128,{ + mes "[Elijah the Nomad]"; + mes "\"If I only had a tent...\""; + + close; +} diff --git a/world/map/npc/002-1/rogue.txt b/world/map/npc/002-1/rogue.txt new file mode 100644 index 00000000..e5afe354 --- /dev/null +++ b/world/map/npc/002-1/rogue.txt @@ -0,0 +1,50 @@ +// + +002-1.gat,22,21,0 script Malivox 103,{ + +// if (ResetA_charstate == 1) goto L_Multiple; + +// set @cost, 10000000 / ($ResetA_uses + 1); + + set @cost, baselevel * 100; + + mes "[Rogue Mage]"; + mes "\"I have come across a spell that will"; + mes "reset your status points."; + mes "Normally this spell is expensive, but"; + mes "due to an unusual constellation of the"; + mes "stars I can cast it very cheaply!"; + mes "For you it will cost only "+@cost+" gp.\""; + next; + + menu "Reset my stats",-,"Forget about it",L_Pass; + + if (zeny<@cost) goto L_NoMoney; + +// set $ResetA_uses, $ResetA_uses + 1; +// set ResetA_charstate, 1; + +L_Reset: + + set zeny, zeny-@cost; + + resetstatus; + + mes "[Rogue Mage]"; + mes "\"There you are."; + mes ""; + mes "Good as new!\""; + close; + +L_Pass: + mes "[Rogue Mage]"; + mes "\"Very well then, see you.\""; + close; + +L_NoMoney: + mes "[Rogue Mage]"; + mes "\"Oh dear, the price cannot be bargained."; + mes ""; + mes "Perhaps you can borrow from a friend?\""; + close; +} diff --git a/world/map/npc/002-1/sandstorm_mine_barrier.txt b/world/map/npc/002-1/sandstorm_mine_barrier.txt new file mode 100644 index 00000000..62abceac --- /dev/null +++ b/world/map/npc/002-1/sandstorm_mine_barrier.txt @@ -0,0 +1,14 @@ +//Sandstorm mine barrier + +002-1.gat,20,94,0 script #Sandstorm_Mine_Barrier 127,0,0,{ + + if (TMW_Quest >= 20) goto L_Sandstorm_Barrier_Open; + + message strcharinfo(0), "Some force seems to block your entrance."; + end; + +L_Sandstorm_Barrier_Open: + warp "002-3.gat",37,31; + end; + +} diff --git a/world/map/npc/002-1/stewen.txt b/world/map/npc/002-1/stewen.txt new file mode 100644 index 00000000..6c099b3a --- /dev/null +++ b/world/map/npc/002-1/stewen.txt @@ -0,0 +1,23 @@ +// East sandstorm guard + +002-1.gat,106,76,0 script Stewen 123,{ + + if (TMW_Quest == 16) goto L_TMW_Quest_Received; + if (TMW_Quest == 15) goto L_TMW_Quest; + + mes "[Stewen]"; + mes "\"I'm keeping a watchful eye on the monsters to the east so they don't threaten Tulimshar's citizens. They are pretty strong.\""; + close; + +L_TMW_Quest: + set TMW_Quest, 16; + mes "[Stewen]"; + mes "\"I don't get a break?! Lieutenant Dausen needs to ask the Wizard's Council for more help out here. Either that or give me a raise! Oh well. Thanks for letting me know.\""; + close; + +L_TMW_Quest_Received: + mes "[Stewen]"; + mes "\"Thanks again for letting me know Lieutenant Dausen isn't letting me take a break. Once I get out of here, I'll let him know I want a raise!\""; + close; + +} diff --git a/world/map/npc/002-3/_import.txt b/world/map/npc/002-3/_import.txt new file mode 100644 index 00000000..c6568edf --- /dev/null +++ b/world/map/npc/002-3/_import.txt @@ -0,0 +1,11 @@ +// Map 002-3: Desert mines +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 002-3.gat +npc: npc/002-3/_mobs.txt +npc: npc/002-3/_warps.txt +npc: npc/002-3/mine_triggerone.txt +npc: npc/002-3/mine_triggerthree.txt +npc: npc/002-3/mine_triggertwo.txt +npc: npc/002-3/naem.txt +npc: npc/002-3/nathan.txt +npc: npc/002-3/underground_palace_barrier.txt diff --git a/world/map/npc/002-3/_mobs.txt b/world/map/npc/002-3/_mobs.txt new file mode 100644 index 00000000..26e1a3f1 --- /dev/null +++ b/world/map/npc/002-3/_mobs.txt @@ -0,0 +1,37 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mines mobs + +002-3.gat,39,37,14,10 monster Cave Maggot 1056,5,100000,30000,Mob002-3::On1056 +002-3.gat,91,41,17,20 monster Ice Goblin 1058,3,100000,30000,Mob002-3::On1058 +002-3.gat,71,35,25,17 monster Cave Maggot 1056,4,100000,30000,Mob002-3::On1056 +002-3.gat,68,100,8,5 monster Ice Goblin 1058,2,100000,30000,Mob002-3::On1058 +002-3.gat,68,57,26,24 monster Angry Scorpion 1057,5,100000,30000,Mob002-3::On1057 +002-3.gat,48,57,3,14 monster Angry Scorpion 1057,5,100000,30000,Mob002-3::On1057 +002-3.gat,38,76,15,22 monster Angry Scorpion 1057,4,100000,30000,Mob002-3::On1057 +002-3.gat,58,78,6,17 monster Cave Maggot 1056,4,100000,30000,Mob002-3::On1056 +002-3.gat,89,68,11,32 monster Angry Scorpion 1057,4,100000,30000,Mob002-3::On1057 +002-3.gat,84,93,19,17 monster Cave Maggot 1056,4,100000,30000,Mob002-3::On1056 +002-3.gat,72,77,21,14 monster Ice Goblin 1058,3,100000,30000,Mob002-3::On1058 +002-3.gat,67,91,11,12 monster Angry Scorpion 1057,4,100000,30000,Mob002-3::On1057 +002-3.gat,58,95,6,13 monster Cave Maggot 1056,4,100000,30000,Mob002-3::On1056 +002-3.gat,63,100,2,5 monster Angry Scorpion 1057,3,100000,30000,Mob002-3::On1057 + + +002-3.gat,0,0,0 script Mob002-3 -1,{ +On1056: + set @mobID, 1056; + callfunc "MobPoints"; + break; + +On1057: + set @mobID, 1057; + callfunc "MobPoints"; + break; + +On1058: + set @mobID, 1058; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/002-3/_warps.txt b/world/map/npc/002-3/_warps.txt new file mode 100644 index 00000000..5b7ce47c --- /dev/null +++ b/world/map/npc/002-3/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mines warps + +002-3.gat,37,29 warp Exit -1,-1,002-1.gat,25,95 diff --git a/world/map/npc/002-3/mine_triggerone.txt b/world/map/npc/002-3/mine_triggerone.txt new file mode 100644 index 00000000..d182609b --- /dev/null +++ b/world/map/npc/002-3/mine_triggerone.txt @@ -0,0 +1,52 @@ +//Sandstorm mine trigger 1 Trigger 002-3 35,43 (127) + +002-3.gat,30,47,0 script Button 127,0,0,{ + + if (TMW_Quest == 36) goto L_Trigger_Wrong_1; + if (TMW_Quest == 35) goto L_Trigger_Wrong_1; + if (TMW_Quest == 34) goto L_Trigger_1; + + mes "There is a large button on the ground. A key hole appears on the button."; + close; + +L_Trigger_Wrong_1: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_Wrong_1, + "Put the key in, turn left.", L_Left_Wrong_1, + "Do nothing.", L_Nothing_1; + close; + +L_Right_Wrong_1: + set TMW_Quest, 34; + mes "You turn the key right."; + close; + +L_Left_Wrong_1: + set TMW_Quest, 34; + mes "You turn the key left."; + close; + +L_Trigger_1: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_1, + "Put the key in, turn left.", L_Left_1, + "Do nothing.", L_Nothing_1; + close; + +L_Right_1: + set TMW_Quest, 35; + mes "You turn the key right. A clicking sound echoes throughout the mine."; + close; + +L_Left_1: + set TMW_Quest, 34; + mes "You turn the key left."; + close; + +L_Nothing_1: + mes "You leave the button alone."; + close; + +} diff --git a/world/map/npc/002-3/mine_triggerthree.txt b/world/map/npc/002-3/mine_triggerthree.txt new file mode 100644 index 00000000..828eb594 --- /dev/null +++ b/world/map/npc/002-3/mine_triggerthree.txt @@ -0,0 +1,51 @@ +//Sandstorm mine trigger 3 Trigger 002-3 98,42 (127) + +002-3.gat,91,99,0 script Button 127,0,0,{ + + if (TMW_Quest == 36) goto L_Trigger_Wrong_3; + if (TMW_Quest == 35) goto L_Trigger_3; + if (TMW_Quest == 34) goto L_Trigger_Wrong_3; + + mes "There is a large button on the ground. A key hole appears on the button."; + close; + +L_Trigger_Wrong_3: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_Wrong_3, + "Put the key in, turn left.", L_Left_Wrong_3, + "Do nothing.", L_Nothing_3; + close; + +L_Right_Wrong_3: + set TMW_Quest, 34; + mes "You turn the key right."; + close; + +L_Left_Wrong_3: + set TMW_Quest, 34; + mes "You turn the key left."; + close; + +L_Trigger_3: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_3, + "Put the key in, turn left.", L_Left_3, + "Do nothing.", L_Nothing_3; + close; + +L_Right_3: + set TMW_Quest, 34; + mes "You turn the key right."; + close; + +L_Left_3: + set TMW_Quest, 36; + mes "You turn the key left. A clicking sound echoes throughout the mine."; + close; + +L_Nothing_3: + mes "You leave the button alone."; + close; +} diff --git a/world/map/npc/002-3/mine_triggertwo.txt b/world/map/npc/002-3/mine_triggertwo.txt new file mode 100644 index 00000000..5d005620 --- /dev/null +++ b/world/map/npc/002-3/mine_triggertwo.txt @@ -0,0 +1,53 @@ +//Sandstorm mine trigger + +002-3.gat,100,37,0 script Button 127,0,0,{ + + if (TMW_Quest == 36) goto L_Trigger_2; + if (TMW_Quest == 35) goto L_Trigger_Wrong_2; + if (TMW_Quest == 34) goto L_Trigger_Wrong_2; + + mes "There is a large button on the ground. A key hole appears on the button."; + close; + +L_Trigger_Wrong_2: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_Wrong_2, + "Put the key in, turn left.", L_Left_Wrong_2, + "Do nothing.", L_Nothing_2; + close; + +L_Right_Wrong_2: + set TMW_Quest, 34; + mes "You turn the key right."; + close; + +L_Left_Wrong_2: + set TMW_Quest, 34; + mes "You turn the key left."; + close; + +L_Trigger_2: + mes "There is a large button on the ground. A key hole appears on the button."; + menu + "Put the key in, turn right.", L_Right_2, + "Put the key in, turn left.", L_Left_2, + "Do nothing.", L_Nothing_2; + close; + +L_Right_2: + set TMW_Quest, 34; + mes "You turn the key right."; + close; + +L_Left_2: + set TMW_Quest, 37; + set FLAGS, FLAGS | FLAG_OPENED_UNDERGROUND; + mes "You turn the key left. A clicking sound echoes throughout the mine, followed by a loud thump."; + close; + +L_Nothing_2: + mes "You leave the button alone."; + close; + +} diff --git a/world/map/npc/002-3/naem.txt b/world/map/npc/002-3/naem.txt new file mode 100644 index 00000000..5f0f9bd6 --- /dev/null +++ b/world/map/npc/002-3/naem.txt @@ -0,0 +1,132 @@ +// + +002-3.gat,85,97,6 script Naem 109,{ + + if (FLAGS & FLAG_GOT_NAEM_GLOVES) goto L_Naem_Complete; + if (FLAGS & FLAG_OPENED_UNDERGROUND) goto L_Naem_Gloves; + if (TMW_Quest == 34) goto L_Naem_Code; + if (TMW_Quest == 33) goto L_Naem_Lt; + if (TMW_Quest == 32) goto L_Naem_Memory; + if (TMW_Quest > 29) && (TMW_Quest < 31)goto L_Naem_Great; + if (TMW_Quest == 29) goto L_Naem_Waits_3; + if (TMW_Quest == 28) goto L_Naem_Help_3; + if (TMW_Quest == 27) goto L_Naem_Waits_2; + if (TMW_Quest == 26) goto L_Naem_Help_2; + if (TMW_Quest == 25) goto L_Naem_Waits_1; + if (TMW_Quest == 24) goto L_Naem_Help_1; + if (TMW_Quest == 22) goto L_Naem_Cool; + if (TMW_Quest == 21) goto L_Naem_Okay; + + mes "[Naem]"; + mes "\"I'm just mining away here. Lots of work to do.\""; + close; + +L_Naem_Okay: + set TMW_Quest, 22; + mes "[Naem]"; + mes "\"Oh, hello there. Nickos wanted you to check on me? Yeah, you can tell him I'm okay.\""; + close; + +L_Naem_Cool: + mes "[Naem]"; + mes "\"Yeah, I'm cool. Just mining away here.\""; + close; + +L_Naem_Help_1: + set TMW_Quest, 25; + mes "[Naem]"; + mes "\"Oh, you are here to help move my bags? Cool, I've got a few ready to go. Go ahead and take this one!\""; + next; + mes "Naem hands you a bag of ore."; + next; + mes "[Naem]"; + mes "\"After you deliver that one to Nathan, come on back, I've got a couple more ready to go.\""; + close; + +L_Naem_Waits_1: + mes "[Naem]"; + mes "\"After you deliver that bag of ore to Nathan, come on back, I've got a couple more ready to go.\""; + close; + +L_Naem_Help_2: + set TMW_Quest, 27; + mes "Naem gives you a bag of ore."; + next; + mes "[Naem]"; + mes "\"Just one more after this one and we'll be all caught up!\""; + close; + +L_Naem_Waits_2: + mes "[Naem]"; + mes "\"Just one more bag of ore after the one you got and we'll be all caught up!\""; + close; + +L_Naem_Help_3: + set TMW_Quest, 29; + mes "[Naem]"; + mes "Hands a bag of ore to you."; + next; + mes "\"Last one!\""; + close; + +L_Naem_Waits_3: + mes "[Naem]"; + mes "\"You got my last sack already. Just give it to Nathan and we'll have caught up.\""; + close; + +L_Naem_Great: + mes "[Naem]"; + mes "\"Hi ho! It's off to work I go! I work every day for meager pay, a miner's life for me...\""; + close; + +L_Naem_Memory: + mes "You see Naem grimacing in pain as you approach."; + next; + mes "[Naem]"; + mes "\"Oh, my head! Some rocks fell on me and bonked me pretty good. I'm still a little sore.\""; + menu + "Don't you have a key so I can go to the underground palace?", L_Naem_Palace_No, + "You should be more careful.", L_Naem_Duh; + close; + +L_Naem_Duh: + mes "[Naem]"; + mes "\"I guess I should...\""; + close; + +L_Naem_Palace_No: + set TMW_Quest, 33; + mes "[Naem]"; + mes "\"Oh no! I lost the key! Don't worry though, talk to Lieutenant Dausen about getting the spare key.\""; + close; + +L_Naem_Lt: + mes "[Naem]"; + mes "\"I hurt my head pretty bad. I also lost my key. If you want to get into the underground palace, you'll have to talk to Lieutenant Dausen about getting the spare.\""; + close; + +L_Naem_Code: + mes "[Naem]"; + mes "\"Oh, you got the key. That is good! But my head still hurts... All I remember about the code is you have to put the key into the key hole buttons around the mine in a certain order and turn them in a certain order and it will unlock the underground palace. Sorry, that's all I have for you. Good luck!\""; + close; + +L_Naem_Gloves: + getinventorylist; + if (@inventorylist_count == 100) goto L_Nathan_TooMany; + set FLAGS, FLAGS | FLAG_GOT_NAEM_GLOVES; + getitem "MinerGloves", 1; + mes "[Naem]"; + mes "\"Hey, good job on getting that together! Take these gloves, they might prove useful in the underground palace.\""; + close; + +L_Naem_TooMany: + mes "[Naem]"; + mes "\"You have too many items for me to give you a reward.\""; + close; + +L_Naem_Complete: + mes "[Naem]"; + mes "\"Yo-ho-ho, a miner's life for me!\""; + close; + +} diff --git a/world/map/npc/002-3/nathan.txt b/world/map/npc/002-3/nathan.txt new file mode 100644 index 00000000..6eb56875 --- /dev/null +++ b/world/map/npc/002-3/nathan.txt @@ -0,0 +1,104 @@ +// + +002-3.gat,35,35,6 script Nathan 109,{ + + if (TMW_Quest >= 32) goto L_Nathan_Complete; + if (TMW_Quest == 31) goto L_Nathan_UGQ_Naem; + if (TMW_Quest == 30) goto L_Nathan_Help_Cool; + if (TMW_Quest == 29) goto L_Nathan_Help_Done; + if (TMW_Quest == 28) goto L_Nathan_Waits_3; + if (TMW_Quest == 27) goto L_Nathan_Help_3; + if (TMW_Quest == 26) goto L_Nathan_Waits_2; + if (TMW_Quest == 25) goto L_Nathan_Help_2; + if (TMW_Quest == 24) goto L_Nathan_Waits_1; + if (TMW_Quest == 23) goto L_Nathan_Help_1; + if (TMW_Quest == 21) goto L_Nathan_Cool; + if (TMW_Quest == 20) goto L_Nathan_Okay; + + + mes "[Nathan the Miner]"; + mes "\"It's very dangerous in here. We had a big earthquake here just recently, too... so be careful!\""; + close; + +L_Nathan_Okay: + set TMW_Quest, 21; + mes "[Nathan]"; + mes "\"Hey there! Just mining away down here. You say Nickos was worried about us? Nothing down here we can't handle, but you should try to be safe down here yourself. The monsters can be rather aggressive. Come to think of it, you might want to check on Naem to make sure he's okay. You can find him in the southeast parts of the mine.\""; + close; + +L_Nathan_Cool: + mes "[Nathan]"; + mes "\"Hey, be careful down here, the monsters can be rather aggressive! You might want to check on Naem too. He's at the southeast parts of the mine.\""; + close; + +L_Nathan_Help_1: + set TMW_Quest, 24; + mes "[Nathan]"; + mes "\"Oh, hey again! Nickos told you we need some help down here too? Yeah, Naem could use a spare pair of hands moving his bags of ore to me. He's got a lot of work built up. Just go talk to him and he'll give you the bags. You might have to make a few trips, but I'll make it worth your troubles.\""; + close; + +L_Nathan_Waits_1: + mes "[Nathan]"; + mes "\"Naem could use some help moving his bags of ore to me. He's got a lot of work built up. Just go talk to him and he'll give you the bags. You might have to make a few trips, but I'll make it worth your troubles.\""; + close; + +L_Nathan_Help_2: + set TMW_Quest, 26; + mes "You give the bag of ore to Nathan"; + next; + mes "[Nathan]"; + mes "\"Ah, thank you. Just a couple more and we'll have caught up!\""; + close; + +L_Nathan_Waits_2: + mes "[Nathan]"; + mes "\"Just a couple more and we'll be all caught up!\""; + close; + +L_Nathan_Help_3: + set TMW_Quest, 28; + mes "You hand the bag of ore to Nathan."; + next; + mes "[Nathan]"; + mes "\"Just one more bag and you'll be done!\""; + close; + +L_Nathan_Waits_3: + mes "[Nathan]"; + mes "\"Just get one more bag of ore from Naem and bring it to me and you'll be done.\""; + close; + +L_Nathan_Help_Done: + getinventorylist; + if (@inventorylist_count == 100) goto L_Nathan_TooMany; + set TMW_Quest, 30; + getitem "MinersHat", 1; + mes "[Nathan]"; + mes "You hand the bag of ore to Nathan."; + next; + mes "\"Ah, that should be it! Thank you for your help. Here, take this Miner's Hat. You're a real miner now!\""; + next; + mes "\"Oh, and I noticed a problem with these angry scorpions down here, they seem to make things much more difficult. Maybe you could tell Nickos about it on your way out?\""; + close; + +L_Nathan_TooMany: + mes "[Nathan]"; + mes "\"You have too many items for me to give you a reward.\""; + close; + +L_Nathan_Help_Cool: + mes "[Nathan]"; + mes "\"Be safe down here, it's dangerous for the unexperienced. Mining is a dangerous job, but somebody's got to do it!\""; + close; + +L_Nathan_UGQ_Naem: + mes "[Nathan]"; + mes "\"Thanks for thinning down the angry scorpion population. It sure has made mining a little easier down here! Oh, you say Nickos has given you permission to check out the underground palace? Talk to Naem, he's got the key and the code.\""; + close; + +L_Nathan_Complete: + mes "[Nathan]"; + mes "\"Mining is a dangerous job, but somebody's got to do it!\""; + close; + +} diff --git a/world/map/npc/002-3/underground_palace_barrier.txt b/world/map/npc/002-3/underground_palace_barrier.txt new file mode 100644 index 00000000..34eeaf57 --- /dev/null +++ b/world/map/npc/002-3/underground_palace_barrier.txt @@ -0,0 +1,14 @@ +//underground palace barrier + +002-3.gat,68,98,0 script #UGP_Barrier 127,0,0,{ + + if (TMW_Quest >= 37) goto L_Underground_Palace_Barrier_Open; + message strcharinfo(0), "Some force seems to block your entrance."; + end; + + +L_Underground_Palace_Barrier_Open: + warp "002-4.gat",34,98; + end; + +} diff --git a/world/map/npc/002-4/_import.txt b/world/map/npc/002-4/_import.txt new file mode 100644 index 00000000..46fac3a9 --- /dev/null +++ b/world/map/npc/002-4/_import.txt @@ -0,0 +1,7 @@ +// Map 002-4: Desert mines +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 002-4.gat +npc: npc/002-4/_mobs.txt +npc: npc/002-4/_warps.txt +npc: npc/002-4/chest.txt +npc: npc/002-4/miners.txt diff --git a/world/map/npc/002-4/_mobs.txt b/world/map/npc/002-4/_mobs.txt new file mode 100644 index 00000000..aa8d42a5 --- /dev/null +++ b/world/map/npc/002-4/_mobs.txt @@ -0,0 +1,50 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mines mobs + +002-4.gat,36,89,11,6 monster Ice Goblin 1058,3,100000,30000,Mob002-4::On1058 +002-4.gat,33,76,2,11 monster Cave Maggot 1056,3,100000,30000,Mob002-4::On1056 +002-4.gat,39,67,5,3 monster Angry Scorpion 1057,3,100000,30000,Mob002-4::On1057 +002-4.gat,39,37,17,4 monster Archant 1060,3,100000,30000,Mob002-4::On1060 +002-4.gat,61,70,1,7 monster Ice Goblin 1058,3,100000,30000,Mob002-4::On1058 +002-4.gat,55,96,1,3 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,67,99,11,1 monster Yellow Slime 1007,4,100000,30000,Mob002-4::On1007 +002-4.gat,91,80,1,4 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,88,93,1,4 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,73,77,1,4 monster Archant 1060,2,100000,30000,Mob002-4::On1060 +002-4.gat,93,69,1,4 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,90,62,7,1 monster Yellow Slime 1007,1,100000,30000,Mob002-4::On1007 +002-4.gat,73,35,1,4 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,84,33,1,4 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,84,45,1,4 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,98,37,1,4 monster Archant 1060,1,100000,30000,Mob002-4::On1060 +002-4.gat,92,38,7,1 monster Yellow Slime 1007,2,100000,30000,Mob002-4::On1007 + + +002-4.gat,0,0,0 script Mob002-4 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1056: + set @mobID, 1056; + callfunc "MobPoints"; + break; + +On1057: + set @mobID, 1057; + callfunc "MobPoints"; + break; + +On1058: + set @mobID, 1058; + callfunc "MobPoints"; + break; + +On1060: + set @mobID, 1060; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/002-4/_warps.txt b/world/map/npc/002-4/_warps.txt new file mode 100644 index 00000000..ed406935 --- /dev/null +++ b/world/map/npc/002-4/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mines warps + +002-4.gat,34,99 warp toLevel1 -1,-1,002-3.gat,68,99 diff --git a/world/map/npc/002-4/chest.txt b/world/map/npc/002-4/chest.txt new file mode 100644 index 00000000..542ce345 --- /dev/null +++ b/world/map/npc/002-4/chest.txt @@ -0,0 +1,36 @@ +// + +002-4.gat,93,37,0 script Treasure 111,{ + + if (TMW_Quest >= 38) goto L_Finished; + + mes "There is a chest here."; + mes "Do you want to try to open it?"; + next; + menu + "Yes.", L_Yes, + "No.", -; + close; + +L_Yes: + if(countitem("TreasureKey") < 3) goto L_Not_Enough; + getinventorylist; + if (@inventorylist_count == 100 && countitem("TreasureKey") > 3) goto L_TooMany; + mes "You opened the chest and found a short bow!"; + delitem "TreasureKey", 3; + getitem "ShortBow", 1; + set TMW_Quest, 38; + close; + +L_Not_Enough: + mes "It seems that you do not have the right key for this chest yet..."; + close; + +L_Finished: + mes "You have already opened this chest."; + close; + +L_TooMany: + mes "You do not have enough room to loot this chest. Maybe you should try again later."; + close; +} diff --git a/world/map/npc/002-4/miners.txt b/world/map/npc/002-4/miners.txt new file mode 100644 index 00000000..6e71461d --- /dev/null +++ b/world/map/npc/002-4/miners.txt @@ -0,0 +1,60 @@ +// + +002-4.gat,32,94,6 script Sema 109,{ + + if (TMW_Quest >= 40) goto L_Sema_Done; + if (TMW_Quest == 39) goto L_Sema_Happy; + if (TMW_Quest == 38) goto L_Sema_GCM; + + mes "[Sema the Miner]"; + mes "\"This place is odd. There is a chest somewhere in this palace, but I don't know where. I think the archants have eaten all the spare keys for the chest, too.\""; + close; + +L_Sema_GCM: + mes "[Sema the Miner]"; + mes "\"I saw a giant cave maggot eat one of the other miners and it might eat me! Can you kill it?\""; + menu + "Yes.", L_Sema_Yes, + "No.", L_Sema_No; + close; + +L_Sema_No: + mes "[Sema the Miner]"; + mes "\"Ahh! I am very scared now!\""; + close; + +L_Sema_Yes: + set TMW_Quest, 39; + monster "002-4.gat", 70, 90, "", 1059, 1; + mes "[Sema the Miner]"; + mes "\"Good luck. To prove you killed it, please bring the Iten it swallowed when it ate the miner. Be careful, there could be more than one.\""; + close; + +L_Sema_Happy: + if (countitem ("Iten") < 1) goto L_Sema_Not_Happy; + getinventorylist; + if (@inventorylist_count - (countitem ("Iten") == 1) > 99) goto L_Sema_TooMany; + delitem "Iten", 1; + getitem "DesertShirt", 1; + set TMW_Quest, 40; + mes "[Sema the Miner]"; + mes "\"You killed it! What a relief! Please accept this Desert Shirt as reward.\""; + close; + +L_Sema_TooMany: + mes "[Sema the Miner]"; + mes "\"You have too many items for me to give you a reward. Please drop or sell something so I can give it to you.\""; + close; + +L_Sema_Not_Happy: + set TMW_Quest, 38; + itemheal -Hp, 0; + mes "A stone falls on your head."; + close; + +L_Sema_Done: + mes "[Sema the Miner]"; + mes "\"Thank you for all your help.\""; + close; + +} diff --git a/world/map/npc/003-1/_import.txt b/world/map/npc/003-1/_import.txt new file mode 100644 index 00000000..02340ca2 --- /dev/null +++ b/world/map/npc/003-1/_import.txt @@ -0,0 +1,6 @@ +// Map 003-1: Beach +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 003-1.gat +npc: npc/003-1/_mobs.txt +npc: npc/003-1/_warps.txt +npc: npc/003-1/stranger.txt diff --git a/world/map/npc/003-1/_mobs.txt b/world/map/npc/003-1/_mobs.txt new file mode 100644 index 00000000..5aa53375 --- /dev/null +++ b/world/map/npc/003-1/_mobs.txt @@ -0,0 +1,33 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach mobs + +003-1.gat,64,67,87,93 monster Sea Slime 1033,15,100000,30000,Mob003-1::On1033 +003-1.gat,120,31,22,22 monster Sea Slime 1033,5,100000,30000,Mob003-1::On1033 +003-1.gat,119,68,105,101 monster Green Slime 1005,35,100000,30000,Mob003-1::On1005 +003-1.gat,134,69,76,71 monster Red Scorpion 1004,20,100000,30000,Mob003-1::On1004 +003-1.gat,35,25,10,3 monster Mountain Snake 1026,1,700000,600000,Mob003-1::On1026 + + +003-1.gat,0,0,0 script Mob003-1 -1,{ +On1004: + set @mobID, 1004; + callfunc "MobPoints"; + break; + +On1005: + set @mobID, 1005; + callfunc "MobPoints"; + break; + +On1026: + set @mobID, 1026; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/003-1/_warps.txt b/world/map/npc/003-1/_warps.txt new file mode 100644 index 00000000..09277f19 --- /dev/null +++ b/world/map/npc/003-1/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach warps + +003-1.gat,172,77 warp ToSandstorm -1,3,002-1.gat,15,66 +003-1.gat,141,19 warp ToBeach 1,-1,004-1.gat,37,111 +003-1.gat,48,36 warp toHouse -1,-1,003-2.gat,27,28 +003-1.gat,59,29 warp toStorage -1,-1,003-2.gat,61,28 diff --git a/world/map/npc/003-1/stranger.txt b/world/map/npc/003-1/stranger.txt new file mode 100644 index 00000000..251f1b1c --- /dev/null +++ b/world/map/npc/003-1/stranger.txt @@ -0,0 +1,501 @@ +003-1.gat,35,25,0 script Stranger 192, { + + set @month, 5; + set @start_day, 18; + set @end_day, 25; + set @IRONINGOT, 5; + set @PINKANTENNA, 21; + set @EXP, 20000; + + if (FLAGS & FLAG_TOWEL_COMPLETED) goto L_Event_Done; + if (gettime(6) != @month) goto L_No_Event; + if (gettime(5) < @start_day) goto L_No_Event; + if (gettime(5) > @end_day) goto L_No_Event; + if ((gettimetick(2)-TUT_var < 6*7*86400) || (baselevel < 42 )) //player must be created at least 6 weeks ago and at least level 42 + goto L_No_Event; + if (FLAGS & FLAG_TOWEL_HELPED) goto L_Towel; + + mes "[Stranger]"; + mes "\"Hello, hello! It's great to see you. Maybe you can help me with a little problem I have.\""; + next; + mes "\"I need some materials to repair my spacesh- ahm, it's not important why I need it.\""; + next; + mes "\"Anyway, I'd be really happy if you can give me " + @IRONINGOT + " Iron Ingots and " + @PINKANTENNA + " Pink Antennas.\""; + next; + mes "\"Do you have that for me?\""; + menu + "Yeah, sure.",L_Items, + "No.",L_Close; + close; + +L_Items: + if (countitem("IngotIron") < @IRONINGOT) goto L_No_Item; + if (countitem("PinkAntenna") < @PINKANTENNA) goto L_No_Item; + delitem "IngotIron", @IRONINGOT; + delitem "PinkAntenna", @PINKANTENNA; + getexp @EXP, 0; + set FLAGS, FLAGS | FLAG_TOWEL_HELPED; + + mes "[Stranger]"; + mes "\"Great! Thank you!\""; + next; + mes "\"I have a lot of work to do now. But before you leave...\""; + next; + +L_Towel: + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + mes "[Stranger]"; + mes "\"On May 25th it is a very special day - Towel Day.\""; + next; + mes "\"To celebrate this I'll ask you some questions about my favourite book, The Hitchhiker's Guide to the Galaxy. If you can answer them, I'll give you something very useful.\""; + next; + mes ""; + mes "[Server]"; + mes "The answers might need to have whitespaces."; + mes "If you're using a client which confirms your answer when pressing space, change this setting before continuing."; + mes ""; + next; + mes "[Stranger]"; + mes "\"The first one is easy.\""; + next; + + setarray @easy_questions$, + "What two words are written in big friendly letters on the back cover?", + "What's the name of the paranoid robot?", + "What is the answer to life, the universe and everything?", + "What is the first name of the author of the hitchhikers guide?", + "What is the last name of the author of the hitchhikers guide?", + "Who is the male human protagonist?", + "Who is the female human protagonist?", + "According to the Guide, space is ____?", + "What is the name of the spaceship which was stolen by the president of the universe?", + "How many heads does Zaphod Beeblebrox have?"; + + setarray @easy_answers_amount,2,2,2,2,2,4,4,2,4,2; + + set @random, rand(10); + mes "\"" + @easy_questions$[@random] + "\""; + input @answer$; + + if (@easy_answers_amount[@random] < 4) + goto L_Easy_Skip4; + set @quizparam$, "towelanswer0" + @random + "d"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Easy; +L_Easy_Skip4: + if (@easy_answers_amount[@random] < 3) + goto L_Easy_Skip3; + set @quizparam$, "towelanswer0" + @random + "c"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Easy; +L_Easy_Skip3: + set @quizparam$, "towelanswer0" + @random + "b"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Easy; + + set @quizparam$, "towelanswer0" + @random + "a"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Easy; + + goto L_Wrong_Answer; + +L_Right_Answer_Easy: + mes "[Stranger]"; + mes "\"You're absolutely right. The next one will be more tricky.\""; + next; + + setarray @medium_questions$, + "What is the name of the rock group claiming to be the loudest band in the universe?", + "What star is near Ford's home planet?", + "Which country does the human protagonist come from?", + "What is the name of the computer on The Heart of Gold?", + "What color is a Babel Fish?", + "What did the bowl of petunias think?", + "What body orifice should a babel fish be inserted in to work properly?", + "What is the name of the super computer?", + "What were the second most intelligent creatures on Earth?", + "What race creates the worst poetry in universe?", + "What is the name of the Vogon home planet?", + "What is the name of the Restaurant at the End of the Universe?"; + + setarray @medium_answers_amount,2,2,2,2,2,3,2,2,4,4,2,2; + + set @random, rand(12); + mes "\"" + @medium_questions$[@random] + "\""; + input @answer$; + + if (@medium_answers_amount[@random] < 4) + goto L_Medium_Skip4; + + set @quizparam$, "towelanswer1" + @random + "d"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Medium; +L_Medium_Skip4: + if (@medium_answers_amount[@random] < 3) + goto L_Medium_Skip3; + set @quizparam$, "towelanswer1" + @random + "c"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Medium; +L_Medium_Skip3: + set @quizparam$, "towelanswer1" + @random + "b"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Medium; + + set @quizparam$, "towelanswer1" + @random + "a"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Medium; + + goto L_Wrong_Answer; + +L_Right_Answer_Medium: + mes "[Stranger]"; + mes "\"Not bad, not bad. Let's see if you can answer an even more difficult one.\""; + next; + + setarray @hard_questions$, + "Drinking what drink is like having your brain smashed out by a slice of lemon wrapped round a large gold brick?", + "How many beers should you drink before hitchhiking?", + "What initials are carved into Zaphod Beeblebrox's brain?", + "What is Ford Prefect's nickname?", + "Who is responsible for the fjords of Norway?", + "What game is played on earth as a relict of memories to an ancient war?", + "What is the name of the triple-breasted whore from Eroticon VI?", + "Who will insult every living being in the universe, because he is immortal and getting bored?", + "What is the name of the piteous creature that is continually reincarnated and subsequently killed, each time unknowingly, by Arthur Dent?"; + + setarray @hard_answers_amount,4,2,2,2,2,2,2,4,2; + + set @random, rand(9); + mes "\"" + @hard_questions$[@random] + "\""; + input @answer$; + + if (@hard_answers_amount[@random] < 4) + goto L_Hard_Skip4; + set @quizparam$, "towelanswer2" + @random + "d"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Hard; +L_Hard_Skip4: + if (@hard_answers_amount[@random] < 3) + goto L_Hard_Skip3; + set @quizparam$, "towelanswer2" + @random + "c"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Hard; +L_Hard_Skip3: + set @quizparam$, "towelanswer2" + @random + "b"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Hard; + + set @quizparam$, "towelanswer2" + @random + "a"; + callfunc "StrangerQuiz"; + if (("###" + @answer$ == @quizanswer$)) + goto L_Right_Answer_Hard; + + goto L_Wrong_Answer; + +L_Right_Answer_Hard: + mes "[Stranger]"; + mes "\"Unbelievable! You're really a wise person.\""; + next; + mes "\"One last question, but this shouldn't be a problem for you.\""; + next; + mes "\"What is the most important item for every hitchhiker to have?\""; + input @answer$; + if (@answer$ != "Towel" && @answer != "towel") + goto L_Wrong_Answer; + + mes "[Stranger]"; + mes "\"There you are! A towel is really the most important item for a hitchhiker to have.\""; + next; + mes "\"Please take this.\""; // no full inventory check, this is done before the game + getitem "GreyWarpTowel", 1; + set FLAGS, FLAGS | FLAG_TOWEL_COMPLETED; + next; + mes "[Stranger]"; + mes "\"This towel is even more useful than usual towels are. If you change its color, it uses a special techno-, ahm, let's say, it can help you to get to other places.\""; + next; + mes "\"Bring me some powder made from gemstones and a bottle of water, and I can prepare it for you.\""; + next; + mes "\"Depending on the color it will bring you to different places. It might wear out after a while and it'll loose its color, but I can prepare it for you again.\""; + next; + mes "\"Since I'm not familar with this plane-, ahm, with this area, I can't tell which places you will end up in.\""; + close; + +L_No_Event: + mes "[Stranger]"; + mes "\"Hello. Isn't this a beautiful place?\""; + next; + mes "\"And it really comes in handy that I have my towel with me. A towel is about the most massively useful thing an inte- ahm, a person can have.\""; + next; + mes "\"You can read more about that in my favourite book, 'The Hitchhiker's Guide to the Galaxy'.\""; + close; + +L_No_Item: + mes "[Stranger]"; + mes "\"Hu? It seems you haven't.\""; + close; + +L_Wrong_Answer: + mes "[Stranger]"; + mes "\"Nah, that's wrong. Come back if you want to try again.\""; + close; + +L_Event_Done: + mes "[Stranger]"; + mes "\"Ah, welcome back. Thanks again for your help.\""; + next; + mes "\"Shall I dye your towel?\""; + menu + "That would be great!",-, + "No, thanks.", L_Close; +L_Dye_Towel: + mes "[Stranger]"; + mes "\"Alright, which color do you want?\""; +// the other colors should be added when more places are released + menu + "Red",L_Red, + "Yellow",L_Yellow, + "White",L_White, +// "Blue",L_Blue, +// "Green",L_Green, +// "Purple",L_Purple, + "Orange",L_Orange, + "Pink",L_Pink, +// "Lime",L_Lime, +// "Teal",L_Teal, + "I changed my mind.", L_Close; + close; + +L_Red: + mes "[Stranger]"; + mes "\"Ok, I'll need two bags of Ruby Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderRed") < 2) goto L_No_Powder; + delitem "GemPowderRed", 2; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "RedWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Yellow: + mes "[Stranger]"; + mes "\"Ok, I'll need two bags of Topaz Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderYellow") < 2) goto L_No_Powder; + delitem "GemPowderYellow", 2; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "YellowWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + + +L_White: + mes "[Stranger]"; + mes "\"Ok, I'll need two bags of Diamond Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderWhite") < 2) goto L_No_Powder; + delitem "GemPowderWhite", 2; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "WhiteWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Blue: + mes "[Stranger]"; + mes "\"Ok, I'll need two bags of Sapphire Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderBlue") < 2) goto L_No_Powder; + delitem "GemPowderBlue", 2; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "BlueWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Green: + mes "[Stranger]"; + mes "\"Ok, I'll need two bags of Emerald Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderGreen") < 2) goto L_No_Powder; + delitem "GemPowderGreen", 2; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "GreenWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Purple: + mes "[Stranger]"; + mes "\"Ok, I'll need two bags of Amethyst Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderPurple") < 2) goto L_No_Powder; + delitem "GemPowderPurple", 2; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "PurpleWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Orange: + mes "[Stranger]"; + mes "\"Ok, I'll need one bag of Ruby Powder, one bag of Topaz Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderRed") < 1) goto L_No_Powder; + if (countitem("GemPowderYellow") < 1) goto L_No_Powder; + delitem "GemPowderRed", 1; + delitem "GemPowderYellow", 1; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "OrangeWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Pink: + mes "[Stranger]"; + mes "\"Ok, I'll need one bag of Ruby Powder, one bag of Diamond Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderRed") < 1) goto L_No_Powder; + if (countitem("GemPowderWhite") < 1) goto L_No_Powder; + delitem "GemPowderRed", 1; + delitem "GemPowderWhite", 1; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "PinkWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Lime: + mes "[Stranger]"; + mes "\"Ok, I'll need one bag of Emerald Powder, one bag of Topaz Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderGreen") < 1) goto L_No_Powder; + if (countitem("GemPowderYellow") < 1) goto L_No_Powder; + delitem "GemPowderGreen", 1; + delitem "GemPowderYellow", 1; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "LimeWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_Teal: + mes "[Stranger]"; + mes "\"Ok, I'll need one bag of Emerald Powder, one bag of Sapphire Powder and a bottle of water for that.\""; + next; + if (countitem("GreyWarpTowel") < 1) goto L_No_Towel; + getinventorylist; + if ((countitem("GreyWarpTowel") > 1) && (@inventorylist_count == 100)) goto L_Full_Inv; + if (countitem("BottleOfWater") < 1) goto L_No_Water; + if (countitem("GemPowderGreen") < 1) goto L_No_Powder; + if (countitem("GemPowderBlue") < 1) goto L_No_Powder; + delitem "GemPowderGreen", 1; + delitem "GemPowderBlue", 1; + delitem "GreyWarpTowel", 1; + delitem "BottleOfWater", 1; + getitem "TealWarpTowel", 1; + mes "He takes your towel, the water and the gem powder, then he turns away and does something you can't see. After a few minutes, he turns to you again."; + next; + mes "[Stranger]"; + mes "\"Done! It'll use its color after being used, but just come back and I can dye it again for you.\""; + close; + +L_No_Water: + mes "[Stranger]"; + mes "\"You don't have water.\""; + close; + +L_No_Powder: + mes "[Stranger]"; + mes "\"You need to bring me enough gem powder in that color. Maybe someone used to mining can help you with that.\""; + close; + +L_No_Towel: + mes "[Stranger]"; + mes "\"Where's your towel? It is really useful, you should always keep it with you.\""; + close; + +L_Full_Inv: + mes "[Stranger]"; + mes "\"You carry a lot of stuff with you, don't you? Maybe you should get rid of something.\""; + close; + +L_Close: + close; +} diff --git a/world/map/npc/003-2/_import.txt b/world/map/npc/003-2/_import.txt new file mode 100644 index 00000000..1e6e34cc --- /dev/null +++ b/world/map/npc/003-2/_import.txt @@ -0,0 +1,5 @@ +// Map 003-2: Beach House +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 003-2.gat +npc: npc/003-2/_mobs.txt +npc: npc/003-2/_warps.txt diff --git a/world/map/npc/003-2/_mobs.txt b/world/map/npc/003-2/_mobs.txt new file mode 100644 index 00000000..1828e169 --- /dev/null +++ b/world/map/npc/003-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach House mobs + + + +003-2.gat,0,0,0 script Mob003-2 -1,{ + end; +} diff --git a/world/map/npc/003-2/_warps.txt b/world/map/npc/003-2/_warps.txt new file mode 100644 index 00000000..e9f4bad9 --- /dev/null +++ b/world/map/npc/003-2/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach House warps + +003-2.gat,27,29 warp toOutside -1,-1,003-1.gat,48,37 +003-2.gat,61,29 warp toOutside -1,-1,003-1.gat,59,30 diff --git a/world/map/npc/004-1/_import.txt b/world/map/npc/004-1/_import.txt new file mode 100644 index 00000000..441b28ba --- /dev/null +++ b/world/map/npc/004-1/_import.txt @@ -0,0 +1,5 @@ +// Map 004-1: Beach +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 004-1.gat +npc: npc/004-1/_mobs.txt +npc: npc/004-1/_warps.txt diff --git a/world/map/npc/004-1/_mobs.txt b/world/map/npc/004-1/_mobs.txt new file mode 100644 index 00000000..07f32beb --- /dev/null +++ b/world/map/npc/004-1/_mobs.txt @@ -0,0 +1,35 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach mobs + +004-1.gat,39,57,8,29 monster Sea slime 1033,5,100000,30000,Mob004-1::On1033 +004-1.gat,33,83,9,40 monster Sea Slime 1033,11,100000,30000,Mob004-1::On1033 +004-1.gat,28,103,11,14 monster Sea slime 1033,7,100000,30000,Mob004-1::On1033 +004-1.gat,71,103,27,19 monster Giant maggot 1006,5,100000,30000,Mob004-1::On1006 +004-1.gat,76,68,21,49 monster Red scorpion 1004,13,100000,30000,Mob004-1::On1004 +004-1.gat,68,25,19,10 monster Giant maggot 1006,2,100000,30000,Mob004-1::On1006 +004-1.gat,93,27,2,3 monster Black scorpion 1009,1,120000,60000,Mob004-1::On1009 + + +004-1.gat,0,0,0 script Mob004-1 -1,{ +On1004: + set @mobID, 1004; + callfunc "MobPoints"; + break; + +On1006: + set @mobID, 1006; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/004-1/_warps.txt b/world/map/npc/004-1/_warps.txt new file mode 100644 index 00000000..eb232ec8 --- /dev/null +++ b/world/map/npc/004-1/_warps.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach warps + +004-1.gat,84,113 warp ToSandstorm 1,-1,002-1.gat,29,15 +004-1.gat,37,111 warp ToBeach 1,-1,003-1.gat,141,21 +004-1.gat,80,31 warp ToHouse -1,-1,004-2.gat,21,28 +004-1.gat,86,27 warp To2ndFloor -1,-1,004-2.gat,57,65 +004-1.gat,68,19 warp to041-1 1,-1,041-1.gat,76,94 diff --git a/world/map/npc/004-2/_import.txt b/world/map/npc/004-2/_import.txt new file mode 100644 index 00000000..3efc4d70 --- /dev/null +++ b/world/map/npc/004-2/_import.txt @@ -0,0 +1,5 @@ +// Map 004-2: Beach House +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 004-2.gat +npc: npc/004-2/_mobs.txt +npc: npc/004-2/_warps.txt diff --git a/world/map/npc/004-2/_mobs.txt b/world/map/npc/004-2/_mobs.txt new file mode 100644 index 00000000..dd47ab77 --- /dev/null +++ b/world/map/npc/004-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach House mobs + + + +004-2.gat,0,0,0 script Mob004-2 -1,{ + end; +} diff --git a/world/map/npc/004-2/_warps.txt b/world/map/npc/004-2/_warps.txt new file mode 100644 index 00000000..b69569d3 --- /dev/null +++ b/world/map/npc/004-2/_warps.txt @@ -0,0 +1,11 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Beach House warps + +004-2.gat,39,20 warp ToRoom 0,-1,004-2.gat,75,29 +004-2.gat,75,30 warp ToRoom 0,-1,004-2.gat,38,21 +004-2.gat,21,29 warp ToOutside -1,-1,004-1.gat,80,32 +004-2.gat,62,28 warp ToBasement -1,-1,004-2.gat,21,62 +004-2.gat,20,62 warp To1stFloor -1,-1,004-2.gat,63,28 +004-2.gat,68,66 warp To1stFloor 0,-1,004-2.gat,35,21 +004-2.gat,36,20 warp To2ndFloor 0,-1,004-2.gat,68,65 +004-2.gat,57,66 warp ToOutside -1,-1,004-1.gat,86,28 diff --git a/world/map/npc/005-1/_import.txt b/world/map/npc/005-1/_import.txt new file mode 100644 index 00000000..968adcd7 --- /dev/null +++ b/world/map/npc/005-1/_import.txt @@ -0,0 +1,8 @@ +// Map 005-1: Snake desert +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 005-1.gat +npc: npc/005-1/_mobs.txt +npc: npc/005-1/_warps.txt +npc: npc/005-1/npcs.txt +npc: npc/005-1/spirit.txt +npc: npc/005-1/tree.txt diff --git a/world/map/npc/005-1/_mobs.txt b/world/map/npc/005-1/_mobs.txt new file mode 100644 index 00000000..177b995e --- /dev/null +++ b/world/map/npc/005-1/_mobs.txt @@ -0,0 +1,44 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snake desert mobs + +005-1.gat,0,0,0,0 monster Maggot 1002,1,100000,30000,Mob005-1::On1002 +005-1.gat,0,0,0,0 monster Snake 1010,1,100000,30000,Mob005-1::On1010 +005-1.gat,71,77,9,6 monster Snake 1010,2,40000,50000,Mob005-1::On1010 +005-1.gat,92,25,8,5 monster Snake 1010,3,40000,50000,Mob005-1::On1010 +005-1.gat,98,54,95,52 monster Giant Maggot 1006,20,100000,30000,Mob005-1::On1006 +005-1.gat,91,18,66,23 monster Black Scorpion 1009,7,100000,30000,Mob005-1::On1009 +005-1.gat,99,87,85,32 monster Black Scorpion 1009,8,100000,30000,Mob005-1::On1009 +005-1.gat,30,42,20,23 monster Green Slime 1005,3,100000,30000,Mob005-1::On1005 +005-1.gat,118,70,3,2 monster Green Slime 1005,2,100000,30000,Mob005-1::On1005 +005-1.gat,163,71,32,65 monster Snake 1010,8,100000,30000,Mob005-1::On1010 +005-1.gat,96,49,103,48 monster Maggot 1002,20,100000,30000,Mob005-1::On1002 + + +005-1.gat,0,0,0 script Mob005-1 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1005: + set @mobID, 1005; + callfunc "MobPoints"; + break; + +On1006: + set @mobID, 1006; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1010: + set @mobID, 1010; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/005-1/_warps.txt b/world/map/npc/005-1/_warps.txt new file mode 100644 index 00000000..6d8c2597 --- /dev/null +++ b/world/map/npc/005-1/_warps.txt @@ -0,0 +1,19 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snake desert warps + +005-1.gat,19,41 warp ToSandstorm -1,2,002-1.gat,106,78 +005-1.gat,89,23 warp ToSnakeCave -1,-1,005-3.gat,52,34 +005-1.gat,71,75 warp ToSnakeCave -1,-1,005-3.gat,33,82 +005-1.gat,167,108 warp ToDesertMountains -1,-1,006-1.gat,20,33 +005-1.gat,168,107 warp ToDesertMountains -1,-1,006-1.gat,21,32 +005-1.gat,169,106 warp ToDesertMountains -1,-1,006-1.gat,22,31 +005-1.gat,171,104 warp ToDesertMountains -1,-1,006-1.gat,24,29 +005-1.gat,170,105 warp ToDesertMountains -1,-1,006-1.gat,23,30 +005-1.gat,172,103 warp ToDesertMountains -1,-1,006-1.gat,25,28 +005-1.gat,174,101 warp ToDesertMountains -1,-1,006-1.gat,27,26 +005-1.gat,173,102 warp ToDesertMountains -1,-1,006-1.gat,26,27 +005-1.gat,175,100 warp ToDesertMountains -1,-1,006-1.gat,28,25 +005-1.gat,176,99 warp ToDesertMountains -1,-1,006-1.gat,29,24 +005-1.gat,177,98 warp ToDesertMountains -1,-1,006-1.gat,30,23 +005-1.gat,178,97 warp ToDesertMountains -1,-1,006-1.gat,31,22 +005-1.gat,179,96 warp ToDesertMountains -1,-1,006-1.gat,32,21 diff --git a/world/map/npc/005-1/npcs.txt b/world/map/npc/005-1/npcs.txt new file mode 100644 index 00000000..12f37ca1 --- /dev/null +++ b/world/map/npc/005-1/npcs.txt @@ -0,0 +1,17 @@ +// + +005-1.gat,69,76,0 shop George 115,530:3000,1199:1,529:-1,539:175,562:500 + +005-1.gat,66,75,0 script Kieron 132,{ + mes "[Kieron]"; + mes "\"Be careful if you're going in that cave,"; + mes "it's packed full of monsters.\""; + close; +} + +005-1.gat,91,23,0 script William 131,{ + mes "[William]"; + mes "\"Going in the cave?"; + mes "You better watch your step, last time I checked it was full of monsters!\""; + close; +} diff --git a/world/map/npc/005-1/spirit.txt b/world/map/npc/005-1/spirit.txt new file mode 100644 index 00000000..d6723c8e --- /dev/null +++ b/world/map/npc/005-1/spirit.txt @@ -0,0 +1,305 @@ +function script EarthImpTouch { + if (getskilllv(SKILL_MAGIC)) + goto L_message; + + mes "[Well]"; + mes "You hear noises from within the well."; + close; + +L_message: + set @Q_MASK, NIBBLE_0_MASK; + set @Q_SHIFT, NIBBLE_0_SHIFT; + set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT; + + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC_NATURE; + set @SUP_name$, "Nature Magic"; + + set @Q_STATUS_INITIAL, 0; + set @Q_STATUS_ONQUEST, 1; + set @Q_STATUS_STUDENT0, 2; + set @Q_STATUS_STUDENT1, 3; + set @Q_STATUS_STUDENT2, 4; + set @Q_STATUS_STUDENT3, 5; + + set @s$, "girl"; + if (Sex) + set @s$, "boy"; + + if (MAGIC_FLAGS & MFLAG_KNOWS_IMP) + goto L_wb; + + mes "[Well]"; + mes "Something is inside that well, and now that you have turned your attention towards it, it seems to be talking to you!"; + next; + + mes "[Well]"; + mes "\"Hey! You there! Yes, I'm talking to you!\""; + mes "That strange voice seems to be coming from inside your head!"; + next; + + menu + "Who, me?", -, + "Leave me alone!", L_close, + "Aaah! I'm hearing voices!", L_silly_close; + + mes "[Well]"; + mes "\"I'm in here, in the well, talking to you! If I'm not very mistaken, you are a powerful wizard-to-be, except that nobody has showed you how to properly do magic yet!\""; + next; + + menu + "Who are you?", -, + "Aaaah! The voices are after me!", L_silly_close, + "Whatever it is, I'm not interested.", L_close; + + mes "[Earth Spirit]"; + mes "\"I'm an earth spirit; my name isn't important... all that matters is that I like you, and that I will help you become a powerful wizard if you help me. Just a fair deal, no more than that...\""; + next; + + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_IMP; + + goto L_main; +L_wb: + mes "[Earth Spirit]"; + mes "\"It's excellent to see you again!\""; + next; + +L_main: + menu + "How did you get trapped?", L_Q_trapped, + "Can you teach me magic and spells?", L_Q_magic, + "What do you know about...", L_Q, + "Goodbye!", -; + close; + +L_Q_trapped: + mes "[Earth Spirit]"; + mes "\"Oh, a wicked witch grew jealous of my power and locked me up in this well.\""; + next; + goto L_main; + +L_Q: + mes "[Earth Spirit]"; + mes "\"Stop bothering me with your questions, will you? I'm trying to make you a powerful wizard, after all!\""; + next; + goto L_main; + +L_Q_magic: + if (@Q_status == @Q_STATUS_ONQUEST) + goto L_Q_magic_1; + if (@Q_status == @Q_STATUS_STUDENT0) + goto L_Q_magic_2; + if (@Q_status == @Q_STATUS_STUDENT1) + goto L_Q_magic_3; + if (@Q_status == @Q_STATUS_STUDENT2) + goto L_Q_magic_4; + + mes "[Earth Spirit]"; + mes "\"Good, good... that's the right attitude! Yes, I can teach you magic, but first you must prove that you are worthy to be my student!\""; + next; + + mes "[Earth Spirit]"; + mes "\"North-west of here sits and old, dead tree. Well, not completely dead, not yet, but almost. It's nothing special. Well, maybe a little, but not really. I want you to cut off one of its branches.\""; + next; + + menu + "No way.", L_silly_close, + "Sure.", L_Q_tree_ok, + "Why that particular tree?", -; + + mes "[Earth Spirit]"; + mes "\"Oh, you and your questions! Well, that tree was a druid once, so the branches contain a bit of its lifeforce. And that's useful.\""; + next; + + menu + "Yuck.", L_silly_close, + "Sure, whatever.", L_Q_tree_ok, + "Isn't that like cutting off someone's arm?", -; + + mes "[Earth Spirit]"; + mes "\"Oooh... now come on! Don't be so sentimental. He turned himself into a tree, he can hardly expect everyone to leave him alone.\""; + next; + + mes "[Earth Spirit]"; + mes "\"Who knows if he can even feel anything anymore? I'm sure he can't, being wooden and all. Besides, it's only a measly tree. Not like I'm asking you to cut him down!.\""; + next; + + menu + "No way.", L_silly_close, + "Alright, that makes sense.", L_Q_tree_ok; + +L_Q_tree_ok: + mes "[Earth Spirit]"; + mes "\"Good, good, good! Yes, that will be very good! So, come back when you have the branch. Oh, and bring 100,000 GP, too, as an enrollment fee.\""; + set @Q_status, @Q_STATUS_ONQUEST; + callsub S_update_var; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_CUTTREE; + next; + goto L_main; + +L_Q_magic_1: + mes "[Earth Spirit]"; + mes "\"Yes, yes, if you bring me the branch and the money, then I will!\""; + next; + menu + "Here are the branch and the money.", -, + "How much money did you want again?", L_Q_tree_howmuch, + "How can I cut it?", L_Q_tree_how, + "Where was the tree again?", L_Q_tree_where, + "What is that tree?", L_Q_tree_what; + + if (countitem("DruidTreeBranch") < 1) + goto L_Q_tree_none; + if (!(MAGIC_FLAGS & MFLAG_DID_CUTTREE)) + goto L_Q_tree_dry; + if (zeny < 100000) + goto L_Q_tree_nomoney; + + set zeny, zeny - 100000; + delitem "DruidTreeBranch", 1; + + mes "[Earth Spirit]"; + mes "Following the earth sprite's instructions, you throw branch and GP into the well."; + next; + + mes "[Earth Spirit]"; + mes "\"Well done, very well done! Consider yourself my student now.\""; + + set @SUP_xp, 5000; + set @SUP_lvl, 2; + callfunc "SkillUp"; + next; + + set @Q_status, @Q_STATUS_STUDENT0; + callsub S_update_var; + goto L_main; + +L_Q_magic_finish: + mes "[1000 experience points]"; + set @Q_status, @Q_status + 1; + callsub S_update_var; + getexp 1000,0; + next; + goto L_main; + +L_Q_magic_2: + mes "[Earth Spirit]"; + mes "\"Yes, of course! For just 20,000 GP I will teach you your first spell!\""; + next; + + menu + "Here you are.", -, + "No.", L_main; + + if (zeny < 20000) + goto L_no20k; + + set zeny, zeny - 20000; + + mes "[Earth Spirit]"; + mes "\"Kekeke... excellent! Yes, here goes your first spell, the flying backpack! If you are overloaded, it will take the load off your shoulders.\""; + next; + + mes "[Earth Spirit]"; + mes "\"Take a cocoon, living or dead, and suffuse it in magic. Whisper '" + getspellinvocation("flying-backpack") + "', and feel it float!\""; + goto L_Q_magic_finish; + +L_Q_magic_3: + mes "[Earth Spirit]"; + mes "\"But yes, yes! Only 20,000 GP, once again, and I will teach you a far more useful spell!\""; + next; + + menu + "Here you are.", -, + "No.", L_main; + + if (zeny < 20000) + goto L_no20k; + + set zeny, zeny - 20000; + + mes "[Earth Spirit]"; + mes "\"Yeees, good! This one is a protection spell, making your skin harder. You need a hard spike for it, though. Hold that spike in your hands, and focus on it.\""; + next; + + mes "[Earth Spirit]"; + mes "\"Next, say '" + getspellinvocation("protect") + "', and feel your skin grow rigid! Very useful against stings and stabs and pokes and pricks and that sort of stuff.\""; + goto L_Q_magic_finish; + +L_Q_magic_4: + mes "[Earth Spirit]"; + mes "\"Naah, you're too weak now! Come back later when you have grown!\""; + next; + goto L_main; + +L_no20k: + mes "[Earth Spirit]"; + mes "\"You can't pay me 20,000 if you don't have that much!\""; + next; + goto L_main; + +L_Q_tree_none: + mes "[Earth Spirit]"; + mes "\"Where is your branch?\""; + next; + goto L_main; + +L_Q_tree_dry: + mes "[Earth Spirit]"; + mes "\"That won't do. This branch is completely dead; you'll have to get another.\""; + next; + goto L_main; + +L_Q_tree_nomoney: + mes "[Earth Spirit]"; + mes "\"No, you don't have enough money! Come back when you have 100,000.\""; + next; + goto L_main; + +L_Q_tree_howmuch: + mes "[Earth Spirit]"; + mes "\"It's only 100,000 GP to become my student.\""; + next; + goto L_main; + +L_Q_tree_how: + mes "[Earth Spirit]"; + mes "\"Oh... right, the tree might be protected. Only a bone knife will cut that. No idea where you can find one, but I'm sure you will manage!\""; + next; + goto L_main; + +L_Q_tree_where: + mes "[Earth Spirit]"; + mes "\"North-west of here.\""; + next; + goto L_main; + +L_Q_tree_what: + mes "[Earth Spirit]"; + mes "\"Just some silly druid who turned himself into a tree; nothing important.\""; + next; + goto L_main; + +L_silly_close: + if (MAGIC_FLAGS & MFLAG_KNOWS_IMP) + mes "[Earth Spirit]"; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_IMP)) + mes "[Well]"; + mes "\"Silly " + @s$ + ".\""; +L_close: + close; + +S_update_var: + set QUEST_MAGIC2, + (QUEST_MAGIC2 & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} + +005-1.gat,118,70,0 script #EarthImp0#_M 127,{ + callfunc "EarthImpTouch"; +} + +005-1.gat,119,70,0 script #EarthImp1#_M 127,{ + callfunc "EarthImpTouch"; +} diff --git a/world/map/npc/005-1/tree.txt b/world/map/npc/005-1/tree.txt new file mode 100644 index 00000000..54b7ed1c --- /dev/null +++ b/world/map/npc/005-1/tree.txt @@ -0,0 +1,162 @@ +function script QuestTreeTrigger { + set @Q_MASK, NIBBLE_2_MASK; + set @Q_SHIFT, NIBBLE_2_SHIFT; + + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + set @Q_status_lower, @Q_status & 3; + set @Q_status, (@Q_status & 12) >> 2; + + if (@Q_status & @flag) + close; // already did that + + if (@flag == 2) + goto L_hug; + +L_cont: + set @Q_status, @Q_status | @flag; + callsub S_update_var; + + if (@Q_status != 3) + close; + + if (MAGIC_FLAGS & MFLAG_DID_CUTTREE) + close; + + mes "Maybe it is just a trick of the light, but you can't help but think that the tree looks different... healthier, almost younger."; + mes "[20000 experience points]"; + getexp 20000, 0; + set @value, 15; + callfunc "QuestSagathaHappy"; + close; + +L_hug: + mes "You hug the tree."; + next; + goto L_cont; + +S_update_var: + set @Q_wr_status, (@Q_status << 2) | @Q_status_lower; + set QUEST_MAGIC, + (QUEST_MAGIC & ~(@Q_MASK) + | (@Q_wr_status << @Q_SHIFT)); + return; +} + +function script QuestTreeTouch { + set @Q_MASK, NIBBLE_2_MASK; + set @Q_SHIFT, NIBBLE_2_SHIFT; + + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + set @Q_status, (@Q_status & 12) >> 2; + + if (@Q_status == 3) + goto L_happy; + + if ((MAGIC_FLAGS & (MFLAG_KNOWS_DRUIDTREE | MFLAG_KNOWS_CUTTREE)) == MFLAG_KNOWS_CUTTREE) + goto L_cut; + + if ((MAGIC_FLAGS & (MFLAG_KNOWS_DRUIDTREE | MFLAG_KNOWS_CUTTREE)) == MFLAG_KNOWS_DRUIDTREE) + goto L_water; + + if ((MAGIC_FLAGS & (MFLAG_KNOWS_DRUIDTREE | MFLAG_KNOWS_CUTTREE)) > 0) //i.e., both are set + goto L_both; + + mes "[Dying Tree]"; + mes "You see a strange tree."; + close; + +L_cut: + mes "[Dying Tree]"; + mes "This must be the tree that the earth spirit was referring to."; + next; + menu + "Cut off a branch", L_do_cut, + "Leave it alone", -; + close; + +L_water: + mes "[Dying Tree]"; + mes "This must be the druid tree."; + next; + menu + "Water the tree", L_givewater, + "Kiss tree", L_kiss, + "Leave it alone", -; + close; + +L_both: + mes "[Dying Tree]"; + mes "This must be the druid tree that Wyara and the earth spirit were talking about."; + next; + menu + "Water the tree", L_givewater, + "Kiss tree", L_kiss, + "Cut off a branch", L_do_cut, + "Leave it alone", -; + close; + +L_givewater: + if (countitem("BottleOfWater") < 1) + goto L_no_water; + delitem "BottleOfWater", 1; + getitem "EmptyBottle", 1; + + mes "[Dying Tree]"; + mes "You pour a bottle of water into the sand. The water dissipates quickly, without any effect."; + close; + +L_no_water: + mes "[Dying Tree]"; + mes "You don't have any water."; + close; + +L_kiss: + mes "[Dying Tree]"; + mes "You pluck out a splinter from your lip."; + mes "Somehow, you don't think that this helped."; + close; + +L_do_cut: + if (countitem(570) < 1) + goto L_no_boneknife; + + if (MAGIC_FLAGS & MFLAG_DID_CUTTREE) + goto L_really_cut; + + mes "[Dying Tree]"; + mes "You find a suitable branch and put your bone knife in position."; + mes "Holding the branch, you have an uneasy feeling-- as if something inside the tree were trying to resist you..."; + mes "Do you want to continue cutting?"; + next; + + menu + "Nah... better not.", -, + "Yes, let's cut!", L_really_cut; + close; + +L_really_cut: + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_DID_CUTTREE; + getitem "DruidTreeBranch", 1; + mes "[Dying Tree]"; + mes "You cut off a branch from the tree."; + mes "For an instant, you have an uneasy feeling, as if the branch were writhing in your hand..."; + close; + +L_no_boneknife: + mes "[Dying Tree]"; + mes "Try as you might, you can't seem to find a way to cut off a branch. Perhaps you need a different tool for cutting?"; + close; + +L_happy: + mes "[Druid Tree]"; + mes "The tree looks younger and healthier now."; + close; +} + +005-1.gat,79,41,0 script #DruidTree0#_M 127,{ + callfunc "QuestTreeTouch"; +} + +005-1.gat,80,41,0 script #DruidTree1#_M 127,{ + callfunc "QuestTreeTouch"; +} diff --git a/world/map/npc/005-3/_import.txt b/world/map/npc/005-3/_import.txt new file mode 100644 index 00000000..23982113 --- /dev/null +++ b/world/map/npc/005-3/_import.txt @@ -0,0 +1,6 @@ +// Map 005-3: Snake pit +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 005-3.gat +npc: npc/005-3/_mobs.txt +npc: npc/005-3/_warps.txt +npc: npc/005-3/monsters.txt diff --git a/world/map/npc/005-3/_mobs.txt b/world/map/npc/005-3/_mobs.txt new file mode 100644 index 00000000..b5c48308 --- /dev/null +++ b/world/map/npc/005-3/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snake pit mobs + + + +005-3.gat,0,0,0 script Mob005-3 -1,{ + end; +} diff --git a/world/map/npc/005-3/_warps.txt b/world/map/npc/005-3/_warps.txt new file mode 100644 index 00000000..3005e84b --- /dev/null +++ b/world/map/npc/005-3/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snake pit warps + +005-3.gat,52,33 warp CaveExit -1,-1,005-1.gat,89,24 +005-3.gat,33,82 warp CaveExit -1,-1,005-1.gat,71,75 +005-3.gat,85,49 warp toBossCave -1,-1,005-4.gat,36,35 diff --git a/world/map/npc/005-3/monsters.txt b/world/map/npc/005-3/monsters.txt new file mode 100644 index 00000000..439b6300 --- /dev/null +++ b/world/map/npc/005-3/monsters.txt @@ -0,0 +1,14 @@ +// Map: 05-3 +// This is the Snake Pit, a cave in the Snake Desert. +// + +005-3.gat,0,0,0,0 monster Snake 1010,175,0,0,Mob22::OnSnake + +005-3.gat,0,0,0 script Mob22 -1,{ +OnSnake: + set @mobID, 1010; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/005-4/_import.txt b/world/map/npc/005-4/_import.txt new file mode 100644 index 00000000..946e3c1d --- /dev/null +++ b/world/map/npc/005-4/_import.txt @@ -0,0 +1,6 @@ +// Map 005-4: Electricity Boss Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 005-4.gat +npc: npc/005-4/_mobs.txt +npc: npc/005-4/_warps.txt +npc: npc/005-4/bossfight.txt diff --git a/world/map/npc/005-4/_mobs.txt b/world/map/npc/005-4/_mobs.txt new file mode 100644 index 00000000..9ab766cd --- /dev/null +++ b/world/map/npc/005-4/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Electricity Boss Cave mobs + + + +005-4.gat,0,0,0 script Mob005-4 -1,{ + end; +} diff --git a/world/map/npc/005-4/_warps.txt b/world/map/npc/005-4/_warps.txt new file mode 100644 index 00000000..18e5e182 --- /dev/null +++ b/world/map/npc/005-4/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Electricity Boss Cave warps + +005-4.gat,37,36 warp toCave 0,-1,005-3.gat,85,50 diff --git a/world/map/npc/005-4/bossfight.txt b/world/map/npc/005-4/bossfight.txt new file mode 100644 index 00000000..2f040462 --- /dev/null +++ b/world/map/npc/005-4/bossfight.txt @@ -0,0 +1,208 @@ +//Author: Kage + +005-4.gat,36,19,0 script Switch#elecave 127,{ + if ($@ELE_CAVE_STATUS != 0) goto L_Enjoy; + + mes "*You see a switch, it is flipped off*"; + menu "No, I am NOT flipping the switch... thats final.", L_Exit, + "Ha! What's the worst that could happen?", -; + + mes "*As you flip the switch, the cave starts to rumble*"; + + if ($@ELE_CAVE_STATUS != 0) goto L_Enjoy; // Prevent from starting level 1 from two different players + + set $@ELE_CAVE_STATUS, 1; + set $@ELE_CAVE_PLAYER_COUNT, getareausers("005-4.gat", 19, 19, 54, 37); + + startnpctimer; + +L_Start_Level_1: + set $@ELE_CAVE_LEVEL, 1; + + mapannounce "005-4.gat", "Level 1 starting", 0; + + // Random colors for everyone! + areatimer "005-4.gat", 19, 19, 54, 37, 10, "Switch#elecave::onChaos"; + + // Two red, two blue. + areamonster "005-4.gat", 19, 19, 54, 37, "", 1080, 2, "Switch#elecave::onBlueDeath"; + areamonster "005-4.gat", 19, 19, 54, 37, "", 1081, 2, "Switch#elecave::onRedDeath"; + goto L_Exit; // This one is triggered on talking to the switch. + +L_Enjoy: + mes "*It seems the switch is stuck in the on position*"; +L_Exit: + close; + end; + +//-----------------------No player talking below this line------------------------------- + +// Fight logic +OnTimer3000: + setnpctimer 0; + + // We stop if no live players are around + if ($@ELE_CAVE_PLAYER_COUNT == 0) goto L_CleanUp; + set $@ELE_CAVE_PLAYER_COUNT, 0; // The onTick refills this with a live count + + // We punish them for having a different count (Aka need kill them at the same time) + set $@ELE_CAVE_RED_COUNT, mobcount("005-4.gat","Switch#elecave::onRedDeath") + 1; + set $@ELE_CAVE_BLUE_COUNT, mobcount("005-4.gat","Switch#elecave::onBlueDeath") + 1; + + set $@ELE_CAVE_DIFF, 0; + if ($@ELE_CAVE_RED_COUNT > $@ELE_CAVE_BLUE_COUNT) goto L_More_Red; + if ($@ELE_CAVE_RED_COUNT < $@ELE_CAVE_BLUE_COUNT) goto L_More_Blue; + goto L_Next_Step; + +L_More_Red: + set $@ELE_CAVE_DIFF, $@ELE_CAVE_RED_COUNT - $@ELE_CAVE_BLUE_COUNT; + mapannounce "005-4.gat", "Their are too many red ions in the air!", 0; + goto L_Next_Step; + +L_More_Blue: + set $@ELE_CAVE_DIFF, $@ELE_CAVE_BLUE_COUNT - $@ELE_CAVE_RED_COUNT; + mapannounce "005-4.gat", "Their are too many blue ions in the air!", 0; + goto L_Next_Step; + +L_Next_Step: + // Basic per player logic + areatimer "005-4.gat", 19, 19, 54, 37, 10, "Switch#elecave::onTick"; + + if ($@ELE_CAVE_RED_COUNT == 0 && $@ELE_CAVE_BLUE_COUNT == 0) goto L_Next_Level; + + end; + +L_Next_Level: + if ($@ELE_CAVE_LEVEL == 1) goto L_Start_Level_2; + if ($@ELE_CAVE_LEVEL == 2) goto L_Start_Level_3; + if ($@ELE_CAVE_LEVEL == 3) goto L_CleanUp; + end; + +L_Start_Level_2: + set $@ELE_CAVE_LEVEL, 2; + + mapannounce "005-4.gat", "Level 2 starting", 0; + + // Random colors for everyone! + areatimer "005-4.gat", 19, 19, 54, 37, 10, "Switch#elecave::onChaos"; + + // four red, four blue. + areamonster "005-4.gat", 19, 19, 54, 37, "", 1080, 4, "Switch#elecave::onBlueDeath"; + areamonster "005-4.gat", 19, 19, 54, 37, "", 1081, 4, "Switch#elecave::onRedDeath"; + end; + +L_Start_Level_3: + set $@ELE_CAVE_LEVEL, 3; + + mapannounce "005-4.gat", "Level 3 starting", 0; + + // Random colors for everyone! + areatimer "005-4.gat", 19, 19, 54, 37, 10, "Switch#elecave::onChaos"; + + // eight red, eight blue. + areamonster "005-4.gat", 19, 19, 54, 37, "", 1080, 8, "Switch#elecave::onBlueDeath"; + areamonster "005-4.gat", 19, 19, 54, 37, "", 1081, 8, "Switch#elecave::onRedDeath"; + end; + +// Being ticks + +onChaos: + if (isdead(0)) end; +L_Set_Color: + message strcharinfo(0), "You feel funny."; + set @ELE_CAVE_COLOR, rand(1, 2); + end; + +onTick: + if (isdead(0)) end; + + // Count this player as alive + set $@ELE_CAVE_PLAYER_COUNT, $@ELE_CAVE_PLAYER_COUNT + 1; + + set @drainamount, MaxHp / -20; + + if ($@ELE_CAVE_DIFF != 0) heal @drainamount * $@ELE_CAVE_DIFF, 0; + + // Make sure they have a color + if (@ELE_CAVE_COLOR == 0) goto L_Set_Color; + + if (@ELE_CAVE_COLOR == 1) goto L_Do_Red; + if (@ELE_CAVE_COLOR == 2) goto L_Do_Blue; + + end; + +L_Do_Red: + specialeffect2 120; // Red effects + + // Punish blue players who stand around a red player + areatimer "005-4.gat", getx(0) - 2, gety(0) - 2, getx(0) + 2, gety(0) + 2, 10, "Switch#elecave::onBlue"; + + if (isin("005-4.gat", 42, 19, 54, 32)) goto L_Heal; + if (isin("005-4.gat", 32, 19, 54, 37)) end; + message strcharinfo(0), "Sparks are flying between you and a piller."; + heal MaxHp / -6, 0; + + end; + +L_Do_Blue: + specialeffect2 121; // Blue effects + + // Punish red players who stand around a blue player + areatimer "005-4.gat", getx(0) - 2, gety(0) - 2, getx(0) + 2, gety(0) + 2, 10, "Switch#elecave::onRed"; + + if (isin("005-4.gat", 19, 19, 31, 32)) goto L_Heal; + if (isin("005-4.gat", 19, 19, 41, 37)) end; + message strcharinfo(0), "Sparks are flying between you and a piller."; + heal MaxHp / -6, 0; + + end; + +L_Heal: + heal MaxHp / 20, 0; + end; + +// Punishment triggers +onRed: + if (@ELE_CAVE_COLOR == 2) end; + message strcharinfo(0), "Sparks are flying between you and the person you are next to!"; + heal MaxHp / -5, 0; + end; + +onBlue: + if (@ELE_CAVE_COLOR == 1) end; + message strcharinfo(0), "Sparks are flying between you and the person you are next to!"; + heal MaxHp / -5, 0; + end; + + +// Death triggers +onBlueDeath: + // Blue players have to kill blue sparks + if (@ELE_CAVE_COLOR == 2) end; + message strcharinfo(0), "The dieing spark reacts explosively with you."; + heal MaxHp / -2, 0; + end; + +onRedDeath: + // Red players have to kill red sparks + if (@ELE_CAVE_COLOR == 1) end; + message strcharinfo(0), "The dieing spark reacts explosively with you."; + heal MaxHp / -2, 0; + end; + +onInit: + initnpctimer; + stopnpctimer; +L_CleanUp: + set $@ELE_CAVE_STATUS, 0; + set $@ELE_CAVE_PLAYER_COUNT, 0; + set $@ELE_CAVE_LEVEL, 0; + set $@ELE_CAVE_ROUND_TIMER, 0; + + killmonster "005-4.gat", "Switch#elecave::onBlueDeath"; + killmonster "005-4.gat", "Switch#elecave::onRedDeath"; + + stopnpctimer; + setnpctimer 0; + end; +} diff --git a/world/map/npc/006-1/_import.txt b/world/map/npc/006-1/_import.txt new file mode 100644 index 00000000..ec566450 --- /dev/null +++ b/world/map/npc/006-1/_import.txt @@ -0,0 +1,7 @@ +// Map 006-1: Desert mountains +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 006-1.gat +npc: npc/006-1/_mobs.txt +npc: npc/006-1/_warps.txt +npc: npc/006-1/mika.txt +npc: npc/006-1/pachua.txt diff --git a/world/map/npc/006-1/_mobs.txt b/world/map/npc/006-1/_mobs.txt new file mode 100644 index 00000000..d3dffdd8 --- /dev/null +++ b/world/map/npc/006-1/_mobs.txt @@ -0,0 +1,38 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mountains mobs + +006-1.gat,25,34,12,31 monster Snake 1010,3,100000,30000,Mob006-1::On1010 +006-1.gat,36,29,9,16 monster Snake 1010,1,100000,30000,Mob006-1::On1010 +006-1.gat,34,41,4,6 monster Mountain Snake 1026,1,30000,75000,Mob006-1::On1026 +006-1.gat,55,37,27,23 monster Mountain Snake 1026,3,150000,10000,Mob006-1::On1026 +006-1.gat,89,26,33,13 monster Mountain Snake 1026,5,15000,75000,Mob006-1::On1026 +006-1.gat,118,43,22,40 monster Mountain Snake 1026,8,15000,75000,Mob006-1::On1026 +006-1.gat,115,49,6,3 monster Mountain Snake 1026,3,15000,75000,Mob006-1::On1026 +006-1.gat,88,47,36,11 monster Mountain Snake 1026,3,15000,75000,Mob006-1::On1026 +006-1.gat,105,72,25,16 monster Mountain Snake 1026,3,15000,75000,Mob006-1::On1026 +006-1.gat,75,106,16,22 monster Mountain Snake 1026,4,15000,75000,Mob006-1::On1026 +006-1.gat,102,97,36,29 monster Mountain Snake 1026,8,15000,75000,Mob006-1::On1026 +006-1.gat,65,65,49,30 monster Mountain Snake 1026,8,15000,75000,Mob006-1::On1026 +006-1.gat,95,120,38,13 monster Mountain Snake 1026,5,15000,75000,Mob006-1::On1026 +006-1.gat,54,120,29,7 monster Mountain Snake 1026,4,15000,75000,Mob006-1::On1026 +006-1.gat,36,98,33,35 monster Scorpion 1003,10,100000,30000,Mob006-1::On1003 + + +006-1.gat,0,0,0 script Mob006-1 -1,{ +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +On1010: + set @mobID, 1010; + callfunc "MobPoints"; + break; + +On1026: + set @mobID, 1026; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/006-1/_warps.txt b/world/map/npc/006-1/_warps.txt new file mode 100644 index 00000000..eab79c2b --- /dev/null +++ b/world/map/npc/006-1/_warps.txt @@ -0,0 +1,36 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mountains warps + +006-1.gat,28,21 warp ToDesert -1,-1,005-1.gat,175,96 +006-1.gat,27,22 warp ToDesert -1,-1,005-1.gat,174,97 +006-1.gat,30,19 warp ToDesert -1,-1,005-1.gat,177,94 +006-1.gat,29,20 warp ToDesert -1,-1,005-1.gat,176,95 +006-1.gat,26,23 warp ToDesert -1,-1,005-1.gat,173,98 +006-1.gat,25,24 warp ToDesert -1,-1,005-1.gat,172,99 +006-1.gat,23,26 warp ToDesert -1,-1,005-1.gat,170,101 +006-1.gat,24,25 warp ToDesert -1,-1,005-1.gat,171,100 +006-1.gat,22,27 warp ToDesert -1,-1,005-1.gat,169,102 +006-1.gat,21,28 warp ToDesert -1,-1,005-1.gat,168,103 +006-1.gat,20,29 warp ToDesert -1,-1,005-1.gat,167,104 +006-1.gat,19,30 warp ToDesert -1,-1,005-1.gat,166,105 +006-1.gat,18,31 warp ToDesert -1,-1,005-1.gat,165,106 +006-1.gat,40,26 warp ToCave -1,-1,006-3.gat,40,27 +006-1.gat,60,58 warp ToCave -1,-1,006-3.gat,60,69 +006-1.gat,62,30 warp ToCave -1,-1,006-3.gat,62,31 +006-1.gat,55,27 warp ToCave -1,-1,006-3.gat,55,28 +006-1.gat,77,44 warp ToCave -1,-1,006-3.gat,77,45 +006-1.gat,86,24 warp ToCave -1,-1,006-3.gat,86,25 +006-1.gat,91,24 warp ToCave -1,-1,006-3.gat,91,25 +006-1.gat,104,44 warp ToCave -1,-1,006-3.gat,104,45 +006-1.gat,122,24 warp ToCave -1,-1,006-3.gat,122,25 +006-1.gat,114,49 warp ToCave -1,-1,006-3.gat,114,50 +006-1.gat,110,56 warp ToCave -1,-1,006-3.gat,110,57 +006-1.gat,125,59 warp ToCave -1,-1,006-3.gat,125,60 +006-1.gat,92,63 warp ToCave -1,-1,006-3.gat,92,64 +006-1.gat,112,74 warp ToCave -1,-1,006-3.gat,112,75 +006-1.gat,121,110 warp ToCave -1,-1,006-3.gat,121,111 +006-1.gat,79,120 warp ToCave -1,-1,006-3.gat,79,121 +006-1.gat,38,121 warp ToCave -1,-1,006-3.gat,38,122 +006-1.gat,74,90 warp ToCave -1,-1,006-3.gat,74,91 +006-1.gat,51,90 warp ToCave -1,-1,006-3.gat,51,91 +006-1.gat,30,123 warp ToCave -1,-1,032-3.gat,128,31 diff --git a/world/map/npc/006-1/mika.txt b/world/map/npc/006-1/mika.txt new file mode 100644 index 00000000..fc2e6f44 --- /dev/null +++ b/world/map/npc/006-1/mika.txt @@ -0,0 +1,8 @@ +006-1.gat,39,27,0 script Mika 114,{ + mes "[Mika]"; + mes "\"My father told me about a man living in this desert who makes clothes out of snake skin.\""; + next; + mes "[Mika]"; + mes "\"Maybe you can find him, but be careful you don't get lost in the tunnels!\""; + close; +} diff --git a/world/map/npc/006-1/pachua.txt b/world/map/npc/006-1/pachua.txt new file mode 100644 index 00000000..c7bd1855 --- /dev/null +++ b/world/map/npc/006-1/pachua.txt @@ -0,0 +1,311 @@ +006-1.gat,23,100,0 script Pachua 143,{ + + set @LEATHER_PATCH_PRICE, 300; + set @wants_leather_patch, QUEST_Forestbow_state & NIBBLE_4_MASK; + +// lines belong to easter 2011: +// set @month, 4; +// set @start_day, 15; +// set @end_day, 30; + + if (QUEST_MIRIAM_cheat != 0) goto L_warp_cheat; + if (QUEST_MIRIAM_start != 0) goto L_smoke; + +// lines belong to easter 2011: +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 1) goto L_Basket; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 2) goto L_MakeBasket; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 3) goto L_SeeBunny; + +L_Begin: + mes "[Chief Pachua]"; + mes ""; + mes "\"How!\""; + next; + + if (getequipid(equip_head) == 643 || getequipid(equip_head) == 644) goto L_WearingCowboy; + if (getequipid(equip_legs) == 642) goto L_WearingChaps; + + mes "[Chief Pachua]"; + mes ""; + mes "\"For generations my tribe has been crafting special clothes out of different items.\""; + next; + +L_Check_Shops: + if((countitem("JeansShorts") > 0 && countitem("SnakeSkin") > 9) && (countitem("FancyHat") > 0 && countitem("SnakeSkin") > 1)) goto L_Super_store; + if(countitem("JeansShorts") > 0 && countitem("SnakeSkin") > 9) goto L_Chaps_store; + if(countitem("FancyHat") > 0 && countitem("SnakeSkin") > 1) goto L_Cowboy_store; + + mes "[Chief Pachua]"; + mes ""; + mes "\"Maybe if you bring me the right materials I can make something for you.\""; + next; + + if (@wants_leather_patch) + menu "Wait, can you make a leather patch for me?", L_leather_patch, + "OK, bye.", -; + + close; + +L_CheckStuff: + mes "[Chief Pachua]"; + mes ""; + mes "\"Let me see what you have there.\""; + next; + return; + +L_Super_store: + callsub L_CheckStuff; + mes "[Chief Pachua]"; + mes ""; + mes "\"Ahh you have lots of good items to work with.\""; + mes ""; + mes "\"With them I can make you either"; + mes "a Cowboy hat or Snake Skin Chaps\""; + next; + if (@wants_leather_patch) + menu + "Cowboy hat, please.", L_BuyCowboy, + "Snake Skin Chaps sound good.", L_BuyChaps, + "Can you make a leather patch?", L_leather_patch, + "Not now, maybe later.", L_NoDeal; + if (!@wants_leather_patch) + menu + "Cowboy hat, please.", L_BuyCowboy, + "Snake Skin Chaps sound good.", L_BuyChaps, + "Not now, maybe later.", L_NoDeal; + +L_Cowboy_store: + callsub L_CheckStuff; + mes "[Chief Pachua]"; + mes ""; + mes "\"To make you a Cowboy hat I will need:"; + mes "1 Fancy hat"; + mes "2 Snake skins"; + mes "5.000 GP\""; + mes ""; + mes "\"Do we have a deal?\""; + next; + if (@wants_leather_patch) + menu + "Yes, that's fine.", L_BuyCowboy, + "Can you make a leather patch?", L_leather_patch, + "On second thought, maybe later.", L_NoDeal; + if (!@wants_leather_patch) + menu + "Yes, that's fine.", L_BuyCowboy, + "On second thought, maybe later.", L_NoDeal; + +L_Chaps_store: + callsub L_CheckStuff; + mes "[Chief Pachua]"; + mes ""; + mes "\"To make you a pair of Snake Skin Chaps I will need:"; + mes "1 Jeans Shorts"; + mes "10 Snake skins"; + mes "10.000 GP\""; + mes ""; + mes "\"Do we have a deal?\""; + next; + if (!@wants_leather_patch) + menu + "Yes, that's fine.", L_BuyChaps, + "On second thought, maybe later.", L_NoDeal; + if (@wants_leather_patch) + menu + "Yes, that's fine.", L_BuyChaps, + "Can you make a leather patch?", L_leather_patch, + "On second thought, maybe later.", L_NoDeal; + +L_BuyChaps: + if (zeny < 10000) goto L_NoMoney; + if (countitem("JeansShorts") < 1) goto L_NoJeans; + if (countitem("SnakeSkin") < 10) goto L_NoSkin; + set zeny, zeny - 10000; + delitem "SnakeSkin", 10; + delitem "JeansShorts", 1; + getitem "JeansChaps", 1; + goto L_DealDone; + +L_BuyCowboy: + if (zeny < 5000) goto L_NoMoney; + if (countitem("FancyHat") < 1) goto L_NoFancy; + if (countitem("SnakeSkin") < 2) goto L_NoSkin; + set zeny, zeny - 5000; + delitem "SnakeSkin", 2; + delitem "FancyHat", 1; + set @temp,rand(2); + if(@temp == 0) goto L_Cowboy_white; + goto L_Cowboy_black; + +L_Cowboy_white: + getitem "WhiteCowboyHat", 1; + goto L_DealDone; + +L_Cowboy_black: + getitem "BlackCowboyHat", 1; + goto L_DealDone; + +L_leather_patch: + mes "[Chief Pachua]"; + mes ""; + mes "\"If you just want a piece of leather, then yes, I can make that. Bring me a snake skin and " + @LEATHER_PATCH_PRICE + " GP.\""; + next; + + menu "Here you are.", -, + "OK, I'll be back later.", L_End, + "That's too expensive!.", L_NoDeal; + + if (countitem("SnakeSkin") < 1) goto L_NoSkins; + if (zeny < @LEATHER_PATCH_PRICE) goto L_NoMoney; + getinventorylist; + if (@inventorylist_count == 100 && countitem("SnakeSkin") > 1) goto L_TooMany; + + set zeny, zeny - @LEATHER_PATCH_PRICE; + delitem "SnakeSkin", 1; + getitem "LeatherPatch", 1; + goto L_DealDone; + +L_DealDone: + mes "[Chief Pachua]"; + mes ""; + mes "\"Here you are!\""; + mes ""; + mes "\"Come back any time.\""; + close; + +L_NoDeal: + mes "[Chief Pachua]"; + mes ""; + mes "\"Alright, but you won't get a better deal anywhere else!\""; + close; + +L_NoMoney: + mes "[Chief Pachua]"; + mes ""; + mes "\"Oh dear, it seems you don't have enough money.\""; + close; + +L_NoJeans: + mes "[Chief Pachua]"; + mes ""; + mes "\"Oh dear, it seems you don't have enough jeans shorts.\""; + close; + +L_NoFancy: + mes "[Chief Pachua]"; + mes ""; + mes "\"Oh dear, it seems you don't have enough fancy hats.\""; + close; + +L_NoSkins: + mes "[Chief Pachua]"; + mes ""; + mes "\"Oh dear, it seems you don't have enough snake skins.\""; + close; + +L_WearingCowboy: + mes "[Chief Pachua]"; + mes ""; + mes "\"Ah, I see that you are wearing a hat made with the ancient methods of my tribe.\""; + next; + goto L_Check_Shops; + +L_WearingChaps: + mes "[Chief Pachua]"; + mes ""; + mes "\"Ah, I see that you are wearing pants made by my tribe.\""; + next; + goto L_Check_Shops; + +L_End: + close; + +L_TooMany: + mes "[Chief Pachua]"; + mes ""; + mes "\"You don't have room for a leather patch. Come back later.\""; + close; + +L_smoke: + message strcharinfo(0), "Pachua quickly inhales from his pipe and releases a ring of smoke towards the sky!"; + set QUEST_MIRIAM_run, gettimetick(1) - QUEST_MIRIAM_start; + set QUEST_MIRIAM_start, 0; + end; + +L_warp_cheat: + if (@warp_cheat == 1) goto L_Begin; + message strcharinfo(0), "Pachua releases a ring of smoke towards the sky! But, by the look on his face, you can tell he is suspicious about your methods..."; + set @warp_cheat, 1; + end; + +L_Basket: + mes "[Chief Pachua]"; + mes ""; + mes "\"For generations my tribe has been crafting special clothes out of different items.\""; + mes "\"Maybe if you bring me the right materials I can make something for you.\""; + next; + menu + "Do you work only with clothes? Because I was looking for a basket.", -; + mes "\"A basket? In our tribe, we craft baskets of all kinds using only reeds. This basket, you need it to carry your items?\""; + menu + "No. It is for the Easter Bunny. I offered to get him one.", -; + mes "\"I appreciate your attitude. Maybe I can help you with that.\""; + menu + "I would be really grateful if you could do that!", -, + "Nah, I decided not to do that stupid quest.", L_End, + "I would prefer to talk to you about other stuff.", L_Begin; //should go to pachuas's regular chat + set QUEST_Easter11, 2; + +L_MakeBasket: + mes "[Chief Pachua]"; + mes ""; + mes "\"I will need you to gather reeds for me.\""; + mes "\"5 bundles should do it.\""; + mes "\"You should be able to get those from mouboos as they graze.\""; + menu + "I have the Reeds!", -, + "Ok, I will be back soon", L_End, + "I changed my mind, forget about it", L_End, + "Can I talk to you about another stuff?", L_Begin; //should go to pachuas's regular chat + + if(countitem("ReedBundle") < 5) goto L_EasterNotEnough; + if(countitem("ReedBundle") >= 5) goto L_EasterEnough; + close; + +L_EasterNotEnough: + mes "[Chief Pachua]"; + mes ""; + mes "\"You do not have enough Reed Bundles for me to work with.\""; + mes "\"Go gather more.\""; + close; + +L_EasterEnough: + getinventorylist; + if (@inventorylist_count == 100 && countitem("ReedBundle") > 5) goto L_EasterTooMany; + if(countitem("ReedBundle") < 5) goto L_EasterNotEnough; + delitem "ReedBundle", 5; + getitem "EasterBasket", 1; + set QUEST_Easter11, 3; + mes "[Chief Pachua]"; + mes ""; + mes "\"You have gathered enough reeds for me to make the basket.\""; + mes "He skillfully soaks the reeds you brought him,"; + mes "then swiftly weaves them into a basket shape."; + mes "Next, he places the damp basket in the sun to dry for a minute before handing it over to you."; + mes "\"Here is your Easter Basket.\""; + close; + +L_EasterTooMany: + mes "[Chief Pachua]"; + mes ""; + mes "\"You don't have room for the Easter Basket. Come back later.\""; + close; + +L_SeeBunny: + mes "[Chief Pachua]"; + mes ""; + mes "\"You need to return to the Easter Bunny now.\""; + next; + goto L_Begin; + +} diff --git a/world/map/npc/006-3/_import.txt b/world/map/npc/006-3/_import.txt new file mode 100644 index 00000000..85228166 --- /dev/null +++ b/world/map/npc/006-3/_import.txt @@ -0,0 +1,5 @@ +// Map 006-3: Desert mountain caves +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 006-3.gat +npc: npc/006-3/_mobs.txt +npc: npc/006-3/_warps.txt diff --git a/world/map/npc/006-3/_mobs.txt b/world/map/npc/006-3/_mobs.txt new file mode 100644 index 00000000..2a401fa6 --- /dev/null +++ b/world/map/npc/006-3/_mobs.txt @@ -0,0 +1,52 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mountain caves mobs + +006-3.gat,108,25,36,8 monster Mountain Snake 1026,3,15000,90000,Mob006-3::On1026 +006-3.gat,99,50,14,13 monster Mountain Snake 1026,1,15000,90000,Mob006-3::On1026 +006-3.gat,89,63,14,11 monster Mountain Snake 1026,2,15000,90000,Mob006-3::On1026 +006-3.gat,86,90,29,9 monster Mountain Snake 1026,3,15000,90000,Mob006-3::On1026 +006-3.gat,109,78,12,9 monster Mountain Snake 1026,1,15000,90000,Mob006-3::On1026 +006-3.gat,119,117,15,14 monster Mountain Snake 1026,4,15000,90000,Mob006-3::On1026 +006-3.gat,65,71,31,35 monster Mountain Snake 1026,10,15000,90000,Mob006-3::On1026 +006-3.gat,57,105,27,30 monster Mountain Snake 1026,8,15000,90000,Mob006-3::On1026 +006-3.gat,73,120,16,5 monster Mountain Snake 1026,3,15000,90000,Mob006-3::On1026 +006-3.gat,117,54,11,9 monster Mountain Snake 1026,4,15000,90000,Mob006-3::On1026 +006-3.gat,123,62,10,5 monster Mountain Snake 1026,3,15000,90000,Mob006-3::On1026 +006-3.gat,84,27,5,7 monster Mountain Snake 1026,1,15000,90000,Mob006-3::On1026 +006-3.gat,40,40,36,28 monster Mountain Snake 1026,8,15000,90000,Mob006-3::On1026 +006-3.gat,34,60,27,11 monster Mountain Snake 1026,3,15000,90000,Mob006-3::On1026 +006-3.gat,87,74,26,9 monster Red Slime 1008,1,15000,10000,Mob006-3::On1008 +006-3.gat,120,76,9,21 monster Red Slime 1008,3,15000,10000,Mob006-3::On1008 +006-3.gat,101,85,14,8 monster Red Slimes 1008,4,15000,10000,Mob006-3::On1008 +006-3.gat,44,124,29,7 monster Mountain Snake 1026,5,15000,90000,Mob006-3::On1026 +006-3.gat,90,125,17,7 monster Mountain Snake 1026,5,15000,90000,Mob006-3::On1026 +006-3.gat,30,88,13,20 monster Red Slime 1008,3,90000,30000,Mob006-3::On1008 +006-3.gat,122,98,10,16 monster Spider 1012,3,90000,30000,Mob006-3::On1012 +006-3.gat,112,104,7,13 monster Spider 1012,1,90000,30000,Mob006-3::On1012 +006-3.gat,103,108,9,9 monster Spider 1012,1,90000,30000,Mob006-3::On1012 +006-3.gat,83,107,13,14 monster Yellow slime 1007,6,90000,30000,Mob006-3::On1007 + + +006-3.gat,0,0,0 script Mob006-3 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1008: + set @mobID, 1008; + callfunc "MobPoints"; + break; + +On1012: + set @mobID, 1012; + callfunc "MobPoints"; + break; + +On1026: + set @mobID, 1026; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/006-3/_warps.txt b/world/map/npc/006-3/_warps.txt new file mode 100644 index 00000000..807c49b8 --- /dev/null +++ b/world/map/npc/006-3/_warps.txt @@ -0,0 +1,22 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Desert mountain caves warps + +006-3.gat,40,26 warp ToOutside -1,-1,006-1.gat,40,27 +006-3.gat,55,27 warp ToOutside -1,-1,006-1.gat,55,28 +006-3.gat,62,30 warp ToOutside -1,-1,006-1.gat,62,31 +006-3.gat,86,24 warp ToOutside -1,-1,006-1.gat,86,25 +006-3.gat,91,24 warp ToOutside -1,-1,006-1.gat,91,25 +006-3.gat,122,24 warp ToOutside -1,-1,006-1.gat,122,25 +006-3.gat,114,49 warp ToOutside -1,-1,006-1.gat,114,50 +006-3.gat,104,44 warp ToOutside -1,-1,006-1.gat,104,45 +006-3.gat,77,44 warp ToOutside -1,-1,006-1.gat,77,45 +006-3.gat,60,68 warp ToOutside -1,-1,006-1.gat,60,59 +006-3.gat,92,63 warp ToOutside -1,-1,006-1.gat,92,64 +006-3.gat,112,74 warp ToOutside -1,-1,006-1.gat,112,75 +006-3.gat,110,56 warp ToOutside -1,-1,006-1.gat,110,57 +006-3.gat,125,59 warp ToOutside -1,-1,006-1.gat,125,60 +006-3.gat,74,90 warp ToOutside -1,-1,006-1.gat,74,91 +006-3.gat,51,90 warp ToOutside -1,-1,006-1.gat,51,91 +006-3.gat,38,121 warp ToOutside -1,-1,006-1.gat,38,122 +006-3.gat,79,120 warp ToOutside -1,-1,006-1.gat,79,121 +006-3.gat,121,110 warp ToOutside -1,-1,006-1.gat,121,111 diff --git a/world/map/npc/007-1/_import.txt b/world/map/npc/007-1/_import.txt new file mode 100644 index 00000000..0e3373a3 --- /dev/null +++ b/world/map/npc/007-1/_import.txt @@ -0,0 +1,6 @@ +// Map 007-1: Woodland +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 007-1.gat +npc: npc/007-1/_mobs.txt +npc: npc/007-1/_warps.txt +npc: npc/007-1/voltain.txt diff --git a/world/map/npc/007-1/_mobs.txt b/world/map/npc/007-1/_mobs.txt new file mode 100644 index 00000000..7f7a266c --- /dev/null +++ b/world/map/npc/007-1/_mobs.txt @@ -0,0 +1,62 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mobs + +007-1.gat,0,0,0,0 monster PinkFlower 1014,17,100000,30000,Mob007-1::On1014 +007-1.gat,0,0,0,0 monster Spiky Mushroom 1019,15,100000,30000,Mob007-1::On1019 +007-1.gat,0,0,0,0 monster Snail 1041,25,100000,30000,Mob007-1::On1041 +007-1.gat,0,0,0,0 monster Mauve 1029,3,270000,180000,Mob007-1::On1029 +007-1.gat,0,0,0,0 monster Gamboge 1031,1,2700000,1800000,Mob007-1::On1031 +007-1.gat,0,0,0,0 monster SilkWorm 1035,2,60000,30000,Mob007-1::On1035 +007-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob007-1::On1037 +007-1.gat,0,0,0,0 monster Squirrel 1038,25,30,20,Mob007-1::On1038 +007-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob007-1::On1055 + + +007-1.gat,0,0,0 script Mob007-1 -1,{ +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1029: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +On1031: + set @mobID, 1031; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1041: + set @mobID, 1041; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/007-1/_warps.txt b/world/map/npc/007-1/_warps.txt new file mode 100644 index 00000000..71ac7a33 --- /dev/null +++ b/world/map/npc/007-1/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland warps + +007-1.gat,20,54 warp ToHurnscald -1,0,010-1.gat,127,53 +007-1.gat,69,21 warp ToHurnscald 2,-1,008-1.gat,78,100 +007-1.gat,122,20 warp ToHurnscald 1,-1,008-1.gat,132,98 diff --git a/world/map/npc/007-1/voltain.txt b/world/map/npc/007-1/voltain.txt new file mode 100644 index 00000000..ff13d70b --- /dev/null +++ b/world/map/npc/007-1/voltain.txt @@ -0,0 +1,363 @@ +// # NPC Name: Voltain +// # LEAD AUTHOR: Pjotr Orial +// # AUTHORS: MrDudle, tarq, Salmondine, Jenalya, Pjotr Orial +// # REVIEWERS: Jenalya +// # +// # Basic Idea: A Person with lots of dark minds requires different stuff. +// # Basically he tries to figure out, how to poison moobous, since he doesn't like the nature at all +// # +// # The variables are not attached to a player but to an npc variable, so it is more or less random, which +// # quest comes up, when a player asks him. +// # +// # used Variables: global variable $state +// # $state = 0: bring bottles +// # $state = 1: bring black scorpion stinger +// # $state = 2: bring bug legs +// # $state = 3: bring another black scorpion stinger +// # $state = 4: bring mauve herbs +// # $state = 5: bring raw logs +// # $state = 6: bring red apples +// # $state = 7: bring cobalt herbs +// # $state = 8: bring snake tongues +// # $state = 9: bring alizarin herbs +// # $state = 10:bring steak +// # $state = 11: bring arrows +// # $state = 12: bring gamboge herbs +// # $state = 13 bring chocolate cake + +007-1.gat,37,21,0 script Voltain 103, { + +set @BOTTLE_NEEDED, 3; +set @BOTTLE_REWARD_XP, 100; +set @BOTTLE_REWARD_GOLD, 450; + +set @BLACK_SC_ST_NEEDED, 5; +set @BLACK_SC_ST_REWARD_XP, 500; +set @BLACK_SC_ST_REWARD_GOLD, 250; + +set @BUGLEG_NEEDED, 10; +set @BUGLEG_REWARD_XP, 200; +set @BUGLEG_REWARD_GOLD, 150; + +set @HERBS_NEEDED, 7; +set @HERBS_REWARD_XP, 200; +set @HERBS_REWARD_GOLD, 250; + +set @RAWLOG_NEEDED, 5; +set @RAWLOG_REWARD_XP, 330; +set @RAWLOG_REWARD_GOLD, 300; + +set @REDAPPLE_NEEDED, 7; +set @REDAPPLE_REWARD_XP, 330; +set @REDAPPLE_REWARD_GOLD, 300; + +set @STEAK_NEEDED, 2; +set @STEAK_REWARD_XP, 330; +set @STEAK_REWARD_GOLD, 280; + +set @ARROW_NEEDED, 25; +set @ARROW_REWARD_XP, 330; +set @ARROW_REWARD_GOLD, 100; + +set @SNAKETONGUE_NEEDED, 3; +set @SNAKETONGUE_REWARD_XP, 330; +set @SNAKETONGUE_REWARD_GOLD, 100; + +set @CHOCOLATECAKE_NEEDED, 3; +set @CHOCOLATECAKE_REWARD_XP, 330; +set @CHOCOLATECAKE_REWARD_GOLD, 180; + +if ($state == 1) goto state1; +if ($state == 2) goto state2; +if ($state == 3) goto state3; +if ($state == 4) goto state4; +if ($state == 5) goto state5; +if ($state == 6) goto state6; +if ($state == 7) goto state7; +if ($state == 8) goto state8; +if ($state == 9) goto state9; +if ($state == 10) goto state10; +if ($state == 11) goto state11; +if ($state == 12) goto state12; +if ($state == 13) goto state13; +// default: trap through to state0! + +state0: +mes "[Voltain]"; +mes "\"What are you doing bothering me? Can't you see I'm busy! Oh, I'm sorry, I thought you were my assistant. Never mind that... would you care to help me?\""; +next; + +menu + "Sure I do!", -, + "No, you creep me out.", L_NOHELP; + +mes "[Voltain]"; +mes "\"I'm working on a very special potion. I need some empty bottles to keep the ingredients in. Care to go find me " + @BOTTLE_NEEDED + " empty bottles?!\""; +next; + +menu + "I've got the bottles.", -, + "I don't feel like helping you get garbage...", L_CLOSE; + +if (countitem("EmptyBottle") < @BOTTLE_NEEDED) goto L_NOT_ENOUGH; + delitem "EmptyBottle", @BOTTLE_NEEDED; + set zeny, zeny + @BOTTLE_REWARD_GOLD; + getexp @BOTTLE_REWARD_XP, 0; + set $state, 1; + mes "\"Thanks for the bottles. Much easier to carry liquid in them.\""; + close; + +state1: +mes "[Voltain]"; +mes "\"I'm making a potion that requires lots of venom. I'm in need of " + @BLACK_SC_ST_NEEDED + " black scorpion stingers.\""; +next; + +menu + "I've got the stingers!", -, + "I'll go search for them.", L_CLOSE; + +mes "[Voltain]"; + if (countitem("BlackScorpionStinger") < @BLACK_SC_ST_NEEDED) goto L_NOT_ENOUGH; + delitem "BlackScorpionStinger", @BLACK_SC_ST_NEEDED; + set zeny, zeny + @BLACK_SC_ST_REWARD_GOLD; + getexp @BLACK_SC_ST_REWARD_XP, 0; + set $state, 2; + mes "\"Well, since you went to the trouble of getting me these here's a little something for your time...\""; + close; + + +state2: +mes "[Voltain]"; +mes "\"Care to to help me with my potion? I need " + @BUGLEG_NEEDED + " bug legs so that I can thicken the potion.\""; +next; + +menu + "I've got the bug legs.", -, + "I'd rather not carry around dead bugs for you.", L_NOHELP ; + +mes "[Voltain]"; + if (countitem("BugLeg") < @BUGLEG_NEEDED) goto L_NOT_ENOUGH; + delitem "BugLeg", @BUGLEG_NEEDED; + set zeny, zeny + @BUGLEG_REWARD_GOLD; + getexp @BUGLEG_REWARD_XP, 0; + set $state, 3; + mes "\"Great! My potion is ready to poison the moub...I mean cure scorpion stings. \""; + close; + +state3: +mes "[Voltain]"; +mes "\"I find myself in need of a black scorpion stinger... Damn mouboo are hard to kill...forget you heard that.\""; +next; + +menu + "Here's the stinger.", -, + "I DID HEAR THAT! I will not help you KILL mouboo!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("BlackScorpionStinger") < 1) goto L_NOT_ENOUGH; + delitem "BlackScorpionStinger", 1; + getexp @BLACK_SC_ST_REWARD_XP, 0; + set $state, 4; + mes "\"Great! Now I can really kill that monster!\""; + close; + +state4: +mes "[Voltain]"; +mes "\"I need to thicken a veno.. Oh, a potion actually. I want to try mauve herbs for that, so can you bring me " + @HERBS_NEEDED + ", please?\""; +next; + +menu + "Here are the herbs.", -, + "So you want to do a venom? I will not help you!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("MauveHerb") < @HERBS_NEEDED) goto L_NOT_ENOUGH; + delitem "MauveHerb", @HERBS_NEEDED; + getexp @HERBS_REWARD_XP, 0; + set zeny, zeny + @HERBS_REWARD_GOLD; + set $state, 5; + mes "\"Great! Now I can thicken the potion! I will try directly.\""; + close; + + +state5: +mes "[Voltain]"; +mes "\"Hello I am looking for " + @RAWLOG_NEEDED + " raw logs, maybe you could help me getting some? I want to try to build a mouboo trap.. Uhm actually no! I want to build a device to destroy these traps. So can you help me?\""; +next; + +menu + "Here are the raw logs.", -, + "So you want build traps for mouboos? NO WAY!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("RawLog") < @RAWLOG_NEEDED) goto L_NOT_ENOUGH; + delitem "RawLog", @RAWLOG_NEEDED; + getexp @RAWLOG_REWARD_XP, 0; + set zeny, zeny + @RAWLOG_REWARD_GOLD; + set $state, 6; + mes "\"Great! Now I can thicken the potion! I will try directly.\""; + close; + +state6: +mes "[Voltain]"; +mes "\"Hello I am looking for " + @REDAPPLE_NEEDED + " red apples, maybe I can inject some venoms.. DOH not this again! Of course I meant a strength potion. Did you hear about the new potions from Caul? He is a pretty good alchimist. He can do strength potions, can't he?\""; +next; + +menu + "Here are the red apples.", -, + "I am not sure...", L_CLOSE; + +mes "[Voltain]"; + if (countitem("RedApple") < @REDAPPLE_NEEDED) goto L_NOT_ENOUGH; + delitem "RedApple", @REDAPPLE_NEEDED; + getexp @REDAPPLE_REWARD_XP, 0; + set zeny, zeny + @REDAPPLE_REWARD_GOLD; + set $state,7; + mes "\"Very well, this will be useful.\""; + close; + +state7: +mes "[Voltain]"; +mes "\"I need to thicken a veno.. Oh, a potion actually. Cobalt herbs might be good for that, so can you bring me " + @HERBS_NEEDED + ", please?\""; +next; + +menu + "Here are the herbs.", -, + "So you want to do a venom? I will not help you!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("CobaltHerb") < @HERBS_NEEDED) goto L_NOT_ENOUGH; + delitem "CobaltHerb", @HERBS_NEEDED; + getexp @HERBS_REWARD_XP, 0; + set zeny, zeny + @HERBS_REWARD_GOLD; + set $state, 8; + mes "\"Great! Now I can go on with the ven- the experiments for the welfare of humanity, i mean.\""; + close; + +state8: +mes "[Voltain]"; +mes "\"I am in need of snake tongues. They can help me getting very strong venom extracts. So I would like you to bring me " + @SNAKETONGUE_NEEDED + " snake tongues.\""; +next; + +menu + "Sure, here you go!", -, + "Maybe you will find someone else, I got stuff to do on my own!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("SnakeTongue") < @SNAKETONGUE_NEEDED) goto L_NOT_ENOUGH; + delitem "SnakeTongue", @SNAKETONGUE_NEEDED; + getexp @SNAKETONGUE_REWARD_XP, 0; + set zeny, zeny + @SNAKETONGUE_REWARD_GOLD; + set $state, 9; + mes "\"Excellent, now I can extract the venom to- uhm, nevermind. Thanks for your help.\""; + close; + +state9: +mes "[Voltain]"; +mes "\"I need to thicken a veno.. Oh, a potion actually. I want to try alizarin herbs for that, so can you bring me " + @HERBS_NEEDED + ", please?\""; +next; + +menu + "Here are the herbs.", -, + "So you want to do a venom? I will not help you!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("AlizarinHerb") < @HERBS_NEEDED) goto L_NOT_ENOUGH; + delitem "AlizarinHerb", @HERBS_NEEDED; + getexp @HERBS_REWARD_XP, 0; + set zeny, zeny + @HERBS_REWARD_GOLD; + set $state, 10; + mes "\"Great! Now I can thicken the potion! I will try directly.\""; + close; + +state10: +mes "[Voltain]"; +mes "\"Oh I am hungry. Maybe I can eat some steaks. Could you bring me a steak, please?\""; +next; +mes "\"Oh, I just wonder if i can inject some ven... Forget about that! Bring me " + @STEAK_NEEDED + "steaks!\""; +next; + +menu + "Here you go.", -, + "Help yourself! In the Hurnscald Inn you can get some meals for sure!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("Steak") < @STEAK_NEEDED) goto L_NOT_ENOUGH; + delitem "Steak", @STEAK_NEEDED; + getexp @STEAK_REWARD_XP, 0; + set zeny, zeny + @STEAK_REWARD_GOLD; + set $state, 11; + mes "\"Thanks a lot. I will really enjoy my meal.\""; + close; + +state11: +mes "[Voltain]"; +mes "\"Could I have some arrows please? I have lost my hunting equipment when I was in the caves. Some dark creatures were chasing me!\""; +next; +mes "\"Acually I wonder if I can use these arrows for building a mouboo trap.... Oh wait! I need some" + @ARROW_NEEDED + " arrows for my self defence right? So do not talk about it!\""; + +menu + "Here you go.", -, + "Sorry I don't have arrows here!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("Arrow") < @ARROW_NEEDED) goto L_NOT_ENOUGH; + delitem "Arrow", @ARROW_NEEDED; + getexp @ARROW_REWARD_XP, 0; + set zeny, zeny + @ARROW_REWARD_GOLD; + set $state, 12; + mes "\"Thanks a lot. Now I feel more secure here in the outdoors.\""; + close; + +state12: +mes "[Voltain]"; +mes "\"I need to thicken a veno.. Oh, a potion actually. I want to try gamboge herbs for that, so can you bring me " + @HERBS_NEEDED + ", please?\""; +next; + +menu + "Here are the herbs.", -, + "So you want to do a venom? I will not help you!", L_CLOSE; + +mes "[Voltain]"; + if (countitem("GambogeHerb") < @HERBS_NEEDED) goto L_NOT_ENOUGH; + delitem "GambogeHerb", @HERBS_NEEDED; + getexp @HERBS_REWARD_XP, 0; + set zeny, zeny + @HERBS_REWARD_GOLD; + set $state, 13; + mes "\"Great! Now I can thicken the potion! I will try directly.\""; + close; + +state13: +mes "[Voltain]"; +mes "\"Doing so many ev- good things makes me hungry. I feel in the mood for a Chocolate Cake. Can you bring me " + @CHOCOLATECAKE_NEEDED + " , please? \""; +next; + +menu + "Here it is.", -, + "I don't feel in the mood to bring you a cake.", L_CLOSE; + +mes "[Voltain]"; + if (countitem("ChocolateCake") < @CHOCOLATECAKE_NEEDED) goto L_NOT_ENOUGH; + delitem "ChocolateCake", @CHOCOLATECAKE_NEEDED; + getexp @CHOCOLATECAKE_REWARD_XP, 0; + set zeny, zeny + @CHOCOLATECAKE_REWARD_GOLD; + set $state, 0; + mes "\"I love chocolate cakes. I wonder, if I can use my ven- \""; + emotion 5; + close; + +L_NOHELP: +mes "\"If you don't want to help me, then away with you. Bothering me won't help me get my work done.\""; +mes "Voltain then mumbles something under his breath that you cannot quite make out"; +mes "\"... These damn kids. \""; +close; + +L_CLOSE: +close; + +L_NOT_ENOUGH: +mes "\"Can't you count!? I need more. \""; +close; +} + + diff --git a/world/map/npc/008-1/_import.txt b/world/map/npc/008-1/_import.txt new file mode 100644 index 00000000..f517bb23 --- /dev/null +++ b/world/map/npc/008-1/_import.txt @@ -0,0 +1,10 @@ +// Map 008-1: Hurnscald outskirts +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 008-1.gat +npc: npc/008-1/_mobs.txt +npc: npc/008-1/_warps.txt +npc: npc/008-1/andra.txt +npc: npc/008-1/diryn.txt +npc: npc/008-1/dock.txt +npc: npc/008-1/george.txt +npc: npc/008-1/hinnak.txt diff --git a/world/map/npc/008-1/_mobs.txt b/world/map/npc/008-1/_mobs.txt new file mode 100644 index 00000000..a4d8c3cf --- /dev/null +++ b/world/map/npc/008-1/_mobs.txt @@ -0,0 +1,62 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hurnscald outskirts mobs + +008-1.gat,0,0,0,0 monster PinkFlower 1014,10,20,0,Mob008-1::On1014 +008-1.gat,0,0,0,0 monster Pinkie 1018,18,20,0,Mob008-1::On1018 +008-1.gat,0,0,0,0 monster SpikyMushroom 1019,18,20,0,Mob008-1::On1019 +008-1.gat,0,0,0,0 monster Snail 1041,5,30,0,Mob008-1::On1041 +008-1.gat,0,0,0,0 monster Mauve 1029,2,270000,180000,Mob008-1::On1029 +008-1.gat,0,0,0,0 monster SilkWorm 1035,2,60000,30000,Mob008-1::On1035 +008-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob008-1::On1037 +008-1.gat,0,0,0,0 monster Squirrel 1038,10,30,20,Mob008-1::On1038 +008-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob008-1::On1055 + + +008-1.gat,0,0,0 script Mob008-1 -1,{ +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1018: + set @mobID, 1018; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1029: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1041: + set @mobID, 1041; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/008-1/_warps.txt b/world/map/npc/008-1/_warps.txt new file mode 100644 index 00000000..8cc5b652 --- /dev/null +++ b/world/map/npc/008-1/_warps.txt @@ -0,0 +1,11 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hurnscald outskirts warps + +008-1.gat,54,61 warp HurnscaldWestGate -1,1,009-1.gat,26,36 +008-1.gat,79,80 warp HurnscaldSouthGate 2,-1,009-1.gat,48,54 +008-1.gat,127,61 warp HurnscaldEastGate -1,0,009-1.gat,96,35 +008-1.gat,79,49 warp HurnscaldNorthGate 2,-1,009-1.gat,48,24 +008-1.gat,24,62 warp ToWoodland -1,2,011-1.gat,122,61 +008-1.gat,79,17 warp ToWoodlandMines 2,-1,018-1.gat,79,97 +008-1.gat,79,102 warp ToWoodland 2,-1,007-1.gat,68,23 +008-1.gat,132,101 warp ToWoodland 1,-1,007-1.gat,122,23 diff --git a/world/map/npc/008-1/andra.txt b/world/map/npc/008-1/andra.txt new file mode 100644 index 00000000..8e80d3c5 --- /dev/null +++ b/world/map/npc/008-1/andra.txt @@ -0,0 +1,151 @@ +// Andra asks for your help to keep the soil fertile. The best way to do it is planting, so she asks for water and seeds. When she plants the seeds, some plants are spawned. + +008-1.gat,36,26,0 script Andra 201,{ + set @water_amount, 1; + set @seeds_amount, 4; + if ($@andra_status == 1) goto L_Planting; + if (baselevel < 30) goto L_TooYoung; + if (FLAGS & FLAG_ANDRA_HELPED) goto L_Return; + mes "[Andra]"; + mes "\"Hello, my name is Andra. You see those nice trees? I planted every single one of them! I'm very proud of my work!\""; + next; + menu + "Nice! I imagine you planted them a long time ago, right?", -, + "Sorry, but I'm not interested in plants and trees.", L_DislikePlants; + mes "[Andra]"; + mes "\"That is the fun part... It took only some months... and look how healthy and beautiful they are!\""; + next; + menu + "How is that possible?", -; + mes "[Andra]"; + mes "\"A few years ago, a nice woman from Tulimshar did something amazing to the land around here... I guess her name was Eomie. I have no idea what she did, but since she worked on this land, everything you plant here will grow really fast!\""; + next; + mes "\"But I am very worried about something she told me when she left... She warned me that this place needs constant care. If one small spot is not cultivated for a long time, it will become less and less fertile.\""; + next; + mes "And she also told me that this soil is so fertile because it has a lot of nutrients not only on this side, but everywhere. So it is certain that all soil in this place will become weaker if we let a lot of unfertilized spots...\""; + next; + menu + "That sounds bad! But you just need to keep planting, right?", -; + mes "[Andra]"; + mes "\"Exactly! But it is a big place. And I don't have too much money to buy seeds. If only I could find someone who could help me... ah... I know you are probably busy, but since you are here, would you like to help me in this noble task?\""; + menu + "Of course! What can I do to help you?", -, + "Not right now, I'm really busy.", L_Busy; + mes "[Andra]"; + mes "\"Yay! I knew you would help me! I just need seeds and water... I think " + @seeds_amount + " Grass Seeds and " + @water_amount + " Bottle(s) of Water should be enough to grow some plants on the place. If you give the items, you can let the rest with me.\""; + next; + menu + "I don't have it right now, but I will come back later.", L_Close, + "Here are the seeds and the water.", -; + if (countitem("BottleOfWater") < @water_amount || countitem("GrassSeed") < @seeds_amount) goto L_NotEnough; + if ($@spawned_plants >= $@MAX_GLOBAL_PLANTS) goto L_Gather; + mes "[Andra]"; + mes "\"Great! Thank you for you help. If you have more items and want to help again, feel free to talk to me. We just have to be careful to not oversoak the soil with water.. but you don't need to worry, I will know when it is the right time to stop planting."; + next; + delitem "BottleOfWater", @water_amount; + delitem "GrassSeed", @seeds_amount; + set FLAGS, FLAGS | FLAG_ANDRA_HELPED; + mes "Andra pours some water in a lot of different places and then throws some seeds to the sky. The wind carries some of them really far from her."; + close2; + +L_PreSummon: + set $@andra_status, 1; + set $@farmer$, strcharinfo(0); + startnpctimer; + end; + +OnTimer1000: + set $@plant_id, rand(1029,1032); + areamonster "008-1.gat",44,18,135,46,"plant",$@plant_id,$@PLANTS_PER_SEED, "Andra::OnPlantDeath"; + attachrid(getcharid(3,$@farmer$)); + message strcharinfo(0), "Andra: I think some plants will grow almost instantly! Just Watch..."; + set $@spawned_plants, $@spawned_plants + $@PLANTS_PER_SEED; + end; + +OnTimer3000: + set $@plant_id, rand(1029,1032); + areamonster "008-1.gat",44,18,135,46,"plant",$@plant_id,$@PLANTS_PER_SEED, "Andra::OnPlantDeath"; + set $@spawned_plants, $@spawned_plants + $@PLANTS_PER_SEED; + end; + +OnTimer5000: + set $@plant_id, rand(1029,1032); + areamonster "008-1.gat",44,18,135,46,"plant",$@plant_id,$@PLANTS_PER_SEED, "Andra::OnPlantDeath"; + set $@spawned_plants, $@spawned_plants + $@PLANTS_PER_SEED; + end; + +OnTimer7000: + set $@plant_id, rand(1029,1032); + areamonster "008-1.gat",44,18,135,46,"plant",$@plant_id,$@PLANTS_PER_SEED, "Andra::OnPlantDeath"; + attachrid(getcharid(3,$@farmer$)); + message strcharinfo(0), "Andra: Good... Just take a walk and you will be able to see how your seeds turned into some nice looking plants."; + set $@spawned_plants, $@spawned_plants + $@PLANTS_PER_SEED; + set $@andra_status, 0; + set $@farmer$, ""; + setnpctimer 0; + stopnpctimer; + end; + +L_Return: + mes "[Andra]"; + mes "\"Hi " + strcharinfo(0) + ", good to see you! You came back to help me again?\""; + next; + menu + "Yes, and I already have the seeds and the water.", -, + "No, I just wanted to say hello.", L_Bye; + if ($@spawned_plants >= $@MAX_GLOBAL_PLANTS) goto L_Gather; + if (countitem("BottleOfWater") < @water_amount || countitem("GrassSeed") < @seeds_amount) goto L_NotEnough; + delitem "BottleOfWater", @water_amount; + delitem "GrassSeed", @seeds_amount; + mes "Andra pours some water in a lot of different places and then throws the seeds to the sky. The wind carries some of them really far from her."; + close2; + goto L_PreSummon; + +OnPlantDeath: + set $@spawned_plants, $@spawned_plants - 1; + end; + +L_NotEnough: + mes "[Andra]"; + mes "\"Sorry, but you don't have the items I need... Please, come back when you have them.\""; + close; + +L_Gather: + mes "[Andra]"; + mes "\"Look at all those plants! I think we shoudn't plant more seeds until someone gather those herbs...\""; + close; + +L_Bye: + mes "[Andra]"; + mes "\"Oh, you are a nice person... Thanks!\""; + close; + +L_Busy: + mes "[Andra]"; + mes "\"Ok, I understand. Come back if have some free time!\""; + close; + +L_DislikePlants: + mes "[Andra]"; + mes "\"Really? How can someone dislike plants and trees? What a strange thing...\""; + close; + +L_Planting: + mes "[Andra]"; + mes "\"Sorry, I can't talk right now. I am planting some seeds " + $@farmer$ + " gave me.\""; + close; + +L_Close: + close; + +L_TooYoung: + mes "[Andra]"; + mes "\"I'm sorry, I can't talk right now. I am really busy with those trees! If you feel like talking, maybe you should come back later.\""; + close; + +OnInit: + set $@PLANTS_PER_SEED, 3; + set $@MAX_GLOBAL_PLANTS, 100; // You can plant only if the amount of plants currently in the map is < than this value. + initnpctimer; + stopnpctimer; +} diff --git a/world/map/npc/008-1/diryn.txt b/world/map/npc/008-1/diryn.txt new file mode 100644 index 00000000..c5ab21a4 --- /dev/null +++ b/world/map/npc/008-1/diryn.txt @@ -0,0 +1,84 @@ +//This is a teleportation (warp) NPC. Its purpose is to offer expensive, fast trips throughout the world. + +008-1.gat,81,82,0 script Diryn the Traveler 103,{ + mes "[Diryn]"; + mes "\"Greetings. I am Diryn the Traveler, Assistant Councilor of Tulimshar and teleporter extraordinaire. Tulimshar is expanding our influence throughout the world, so I was sent here to aid all who are willing and able to take on the threats to our interests.\""; + next; + mes "\"The monsters of the world have grown out of control, harming people, trade and travel. Needless to say, Tulimshar is not happy with this problem. Our solution: Rally those powerful enough to combat the monster threat and send them to hot spots to challenge the monster threat head on. However, teleportation to these areas is not only extremely dangerous, but also highly expensive. Do you think you got what it takes?\""; + menu + "I sure do!", L_Diryn_Yes, + "No thank you", L_Diryn_No; + close; + +L_Diryn_Yes: + mes "[Diryn]"; + mes "\"Excellent. I can send you to many places, but again, the fees are large. Where shall I send you?\""; + menu + "Druid Tree (1500 GP)", L_Diryn_Druid_Tree, + "Graveyard (1500 GP)", L_Diryn_Graveyard, + "Magic House (1000 GP)", L_Diryn_Magic_House, + "Terranite Cave (1500 GP)", L_Diryn_Terranite, + "Tulimshar Town Square (1000 GP)", L_Diryn_Tulimshar, + "Nivalis (1000 GP)", L_Diryn_Nivalis, + "Not Interested", L_Diryn_No; + close; + +L_Diryn_Druid_Tree: + if (zeny < 1500) goto L_NoMoney; + mes "[Diryn]"; + mes "\"Be fearless!\""; + set zeny, zeny-1500; + warp "005-1.gat",73,36; + close; + +L_Diryn_Graveyard: + if (zeny < 1500) goto L_NoMoney; + mes "[Diryn]"; + mes "\"Be fearless!\""; + set zeny, zeny-1500; + warp "027-1.gat",70,85; + close; + +L_Diryn_Magic_House: + if (zeny < 1000) goto L_NoMoney; + mes "[Diryn]"; + mes "\"Be fearless!\""; + set zeny, zeny-1000; + warp "013-1.gat",45,92; + close; + +L_Diryn_Terranite: + if (zeny < 1500) goto L_NoMoney; + mes "[Diryn]"; + mes "\"Be fearless!\""; + set zeny, zeny-1500; + warp "012-3.gat",445,65; + close; + +L_Diryn_Tulimshar: + if (zeny < 1000) goto L_NoMoney; + mes "[Diryn]"; + mes "\"Be fearless!\""; + set zeny, zeny-1000; + warp "001-1.gat",44,70; + close; + +L_Diryn_Nivalis: + if (zeny < 1000) goto L_NoMoney; + mes "[Diryn]"; + mes "\"Be fearless!\""; + set zeny, zeny-1000; + warp "020-1.gat",71,100; + close; + +L_Diryn_No: + mes "[Diryn]"; + mes "\"Perhaps some day you will have the courage to help us. Enjoy your stay here in Hurnscald.\""; + close; + +L_NoMoney: + mes "[Diryn]"; + mes "\"Sorry, you don't have enough. Maybe next time.\""; + close; + +} diff --git a/world/map/npc/008-1/dock.txt b/world/map/npc/008-1/dock.txt new file mode 100644 index 00000000..46aa5a92 --- /dev/null +++ b/world/map/npc/008-1/dock.txt @@ -0,0 +1,6 @@ +// The ferry dock + +008-1.gat,140,64,0 script #hurnscalddock 127,2,1,{ + set @loc, DOCK_hurnscald; + callfunc "Ferry"; +} diff --git a/world/map/npc/008-1/george.txt b/world/map/npc/008-1/george.txt new file mode 100644 index 00000000..429fdbca --- /dev/null +++ b/world/map/npc/008-1/george.txt @@ -0,0 +1,25 @@ +// + +008-1.gat,136,36,0 script George 138,{ + if (getequipid(equip_head) == 617) goto L_Pirate; + if (getequipid(equip_head) == 622) goto L_Bandana; + if (getequipid(equip_head) == 621) goto L_EyePatch; + mes "[George the Pirate]"; + mes "\"Arrrrh! 'Tis some kind of treasure map!\""; + close; + +L_Pirate: + mes "[George the Pirate]"; + mes "\"Arrrrh! Ye be wearing a pirate's hat!\""; + close; + +L_Bandana: + mes "[George the Pirate]"; + mes "\"Arrrrh! Ye remind me of my old first mate!\""; + close; + +L_EyePatch: + mes "[George the Pirate]"; + mes "\"Arrrrh! Looks like ye lost an eye there!\""; + close; +} diff --git a/world/map/npc/008-1/hinnak.txt b/world/map/npc/008-1/hinnak.txt new file mode 100644 index 00000000..4d17310c --- /dev/null +++ b/world/map/npc/008-1/hinnak.txt @@ -0,0 +1,263 @@ +//################################################################################# +//# # +//# this script file contains the npc scripts for the quest to obtain a scythe. # +//# # +//# Needed: 10 Pink Antenna # +//# # +//# Reward: Scythe # +//# # +//################################################################################# + +//Farmer + +008-1.gat,101,30,0 script Hinnak 142, { + if (Inspector == 10) goto L_NohMask; + +L_No_NohMask: + if (QUEST_Scythe_state == 1) goto L_Exchange; + if (QUEST_Scythe_state == 2) goto L_ThanksAgain; + if (getequipid(equip_head) == 751) goto L_Intro_Hat; + + mes "[Farmer Hinnak]"; + mes "\"Argh! I hate them! I @#$% hate them! I @#$% hate these @#$% pinkies!\""; + next; + + menu + "You need some anger control therapy.", -, + "Why do you hate them?", L_Reason; + close; + +L_Intro_Hat: + mes "The farmer lunges at you with a farming implement."; + next; + heal -50, 0; + + menu + "I'm out of here.", -, + "Whoa, what are you doing?", L_Intro_Hat_Explain; + close; + +L_Intro_Hat_Explain: + mes "[Farmer Hinnak]"; + mes "\"Sorry, you look like a pinkie. They've been destroying my fields, and I guess I got a bit worked up.\""; + next; + goto L_Help; + +L_Reason: + mes "[Farmer Hinnak]"; + mes "\"These @#$% beasts are jumping around in my fields destroying all my harvest."; + mes "But they are too fast. I can't catch them.\""; + next; + + menu + "Want me to help you?", L_Help, + "Well, life ain't fair.", -; + close; + +L_Help: + mes "[Farmer Hinnak]"; + mes "\"Yes, you look quite fast. Maybe you can catch some of them. That will pay them a lesson."; + mes "Slay some of them and bring me 10 of their antennae.\""; + set QUEST_Scythe_state, 1; + next; + + menu + "Sure, I'm on my way", -, + "How much is this worth to you?", L_Reward; + close; + +L_Reward: + mes "[Farmer Hinnak]"; + mes "\"Well, I can't offer you much. But I got an old scythe laying around. Maybe you can use it as a weapon.\""; + close; + +L_Exchange: + if (getequipid(equip_head) != 751) goto L_Exchange_Start; + mes "The farmer glares at your hat."; + next; + +L_Exchange_Start: + mes "[Farmer Hinnak]"; + mes "\"Have you got the 10 antennae?\""; + next; + + menu + "Not yet, but I am working on it.", -, + "Sure, here they are!", L_Exchange_Exchange; + close; + +L_Exchange_Exchange: + if (countitem("PinkAntenna") < 10) goto L_Exchange_Notenough; + getinventorylist; + if (@inventorylist_count == 100 && countitem("PinkAntenna") > 10) goto L_Exchange_TooMany; + delitem "PinkAntenna", 10; + getitem "Scythe", 1; + set QUEST_Scythe_state, 2; + mes "[Farmer Hinnak]"; + mes "\"Thank you very much. I've got something for you. My old scythe. Maybe you can use it as a weapon. It is a bit cumbersome but its strikes are deadly.\""; + close; + +L_Exchange_Notenough: + mes "[Farmer Hinnak]"; + mes "\"It doesn't look like you do.\""; + close; + +L_Exchange_TooMany: + mes "[Farmer Hinnak]"; + mes "\"Looks like you don't have room for this. Come back later to receive your reward. Hold on to the antennea until then.\""; + close; + +L_ThanksAgain: + if (getequipid(equip_head) == 751) goto L_ThanksHat; + mes "[Farmer Hinnak]"; + mes "\"Good to see you again, and thanks again for helping me with the pinkies!\""; + next; + goto L_ThanksMenu; + +L_ThanksHat: + mes "[Farmer Hinnak]"; + mes "\"That better be a trophy on your head.\""; + menu + "It is.", -; + + mes "[Farmer Hinnak]"; + mes "\"Good then. Thanks for your help with the pinkies.\""; + +L_ThanksMenu: + menu + "Sure, any time!", -, + "Anything else you want me to do?", -, + "You're welcome. Bye!", L_Bye; + + mes "[Farmer Hinnak]"; + mes "\"Actually, it's been a long day. If it's no trouble, could you get me a beer?\""; + next; + + menu + "Here you are.", L_GiveBeer, + "Sure, I'll go get one. Bye!", L_Bye, + "You shouldn't drink while working!", -; + + mes "[Farmer Hinnak]"; + mes "\"Well, I'm done for the day, and I'm quite old enough to decide when I can have a beer, thank you!\""; + next; + + menu + "Sorry... here you are.", L_GiveBeer, + "I don't have any.", L_NoBeer; + +L_GiveBeer: + if (countitem("Beer") < 1) goto L_NoBeer; + delitem "Beer", 1; + mes "[Farmer Hinnak]"; + mes "Hinnak takes a sip."; + mes "\"Aaah! Nothing like a well-deserved beer after a long day of tending the crops!\""; + mes "\"Thanks, that was very kind of you!\""; + next; + + mes "[Farmer Hinnak]"; + mes "He takes another sip."; + mes "\"Thanks! You know, I had the strangest thing happen to me. I had this patch of ground that was really clumpy; lots of clay, you see.\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"Right over there.\""; + mes "He points to a stretch of soft, raked ground."; + mes "\"Looks much better now, doesn't it? But how I got there is kind-a scary...\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"I'd been trying to break it up for a while, but that kind of work is a pain. So my wife said that I should go and see the witch, just in case she knows something.\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"And sure enough I ask the witch, and she has a look at it. 'Nothing I can do', she says, 'but I can ask a friend'.\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"So the next day another witch shows up. Gorgeous woman, but when she looked at me, the scares went scuttling down my spine....\""; + mes "\"First thing she asked was if I'm a farmer. Said her friend had told her that I needed help.\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"I show her what the problem is, and she tells me to go inside and wait.\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"Hinnak drains his beer in one long sip, then hesitates."; + next; + + mes "[Farmer Hinnak]"; + mes "\"So I go inside. I'm barely in when it starts raining outside, pouring cats and mouboos!\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"Not so weird, perhaps, except that it was been bright and sunny just a second before! So I rush out, my wife telling me to leave the witch alone, and I see her standing there in the middle of the rain...\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"None of the raindrops touched her, as if they was afraid!\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"Then she yells out some gobbledygook word, and out of the ground there comes a swarm of maggots, crawling and digging and climbing over each other's backs...\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"And then she turns to me! Seeing her stare, for a moment there I think that she'll turn me into a pinkie, for sure...\""; + next; + + mes "[Farmer Hinnak]"; + mes "\"But all she says is, 'if you'd stayed inside, you wouldn't be wet now'.\""; + next; + + menu + "Hahaha!", L_Sagatha_hahaha, + "Whoah, scary...", L_Sagatha_scary, + "What was that gobbledygook word?", L_Sagatha_word, + "I better go now.", -; + goto L_Bye; + +L_Sagatha_hahaha: + mes "[Farmer Hinnak]"; + mes "\"Yeah, funny now... But you should've seen that stare! Ah, well, never mind.\""; + close; + +L_Sagatha_scary: + mes "[Farmer Hinnak]"; + mes "\"Yeah, you could say that...\""; + mes "He stares into his empty beer jug, as if wishing it weren't empty yet."; + close; + +L_Sagatha_word: + mes "[Farmer Hinnak]"; + mes "\"Oh, I can't be sure... but something like '" + getspellinvocation("summon-maggots") + "', I think.\""; + close; + +L_NoBeer: + mes "[Farmer Hinnak]"; + mes "\"Ah... no beer? Oh well.\""; + close; + +L_Bye: + mes "[Farmer Hinnak]"; + mes "\"Bye!\""; + close; + +L_NohMask: + menu + "Did you see anyone in a mask come by here at night?", L_NohMask_Mask, + "Did you see anyone with a large satchel come by here at night?", L_NohMask_Satchel, + "Hello", L_No_NohMask; + close; + +L_NohMask_Mask: + mes "[Farmer Hinnak]"; + mes "\"No. It tends to be too dark to see a mask.\""; + close; + +L_NohMask_Satchel: + mes "[Farmer Hinnak]"; + mes "\"Yes, I saw someone with a large sack on their back go to the mining camp.\""; + close; +} diff --git a/world/map/npc/009-1/_import.txt b/world/map/npc/009-1/_import.txt new file mode 100644 index 00000000..cfd187fb --- /dev/null +++ b/world/map/npc/009-1/_import.txt @@ -0,0 +1,13 @@ +// Map 009-1: Hurnscald +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 009-1.gat +npc: npc/009-1/_mobs.txt +npc: npc/009-1/_warps.txt +npc: npc/009-1/jack.txt +npc: npc/009-1/mapflags.txt +npc: npc/009-1/milly.txt +npc: npc/009-1/old_man.txt +npc: npc/009-1/old_woman.txt +npc: npc/009-1/sabine.txt +npc: npc/009-1/soul-menhir.txt +npc: npc/009-1/water_pump.txt diff --git a/world/map/npc/009-1/_mobs.txt b/world/map/npc/009-1/_mobs.txt new file mode 100644 index 00000000..629d177e --- /dev/null +++ b/world/map/npc/009-1/_mobs.txt @@ -0,0 +1,33 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hurnscald mobs + +009-1.gat,74,32,2,1 monster Clover patch 1037,1,100000,120000,Mob009-1::On1037 +009-1.gat,29,44,9,13 monster PinkFlower 1014,2,0,250,Mob009-1::On1014 +009-1.gat,88,51,15,4 monster Squirrel 1038,2,0,5000,Mob009-1::On1038 +009-1.gat,80,38,5,5 monster Squirrel 1038,1,0,5000,Mob009-1::On1038 +009-1.gat,0,0,0,0 monster Butterfly 1055,5,30,20,Mob009-1::On1055 + + +009-1.gat,0,0,0 script Mob009-1 -1,{ +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/009-1/_warps.txt b/world/map/npc/009-1/_warps.txt new file mode 100644 index 00000000..c8a7fad7 --- /dev/null +++ b/world/map/npc/009-1/_warps.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hurnscald warps + +009-1.gat,49,55 warp HurnscaldSouthGate 2,-1,008-1.gat,78,82 +009-1.gat,97,36 warp HurnscaldEastGate -1,0,008-1.gat,129,60 +009-1.gat,35,30 warp ToInn -1,-1,009-2.gat,50,55 +009-1.gat,58,46 warp ToGeneralStore -1,-1,009-2.gat,27,105 +009-1.gat,59,33 warp ToArcherShop -1,-1,009-2.gat,95,29 +009-1.gat,71,30 warp ToPotionShop -1,-1,009-2.gat,130,25 +009-1.gat,80,31 warp ToHospital -1,-1,009-2.gat,149,66 +009-1.gat,72,44 warp ToMayor -1,-1,009-2.gat,114,77 +009-1.gat,91,46 warp ToBlacksmith 0,-1,009-2.gat,181,66 +009-1.gat,24,36 warp HurnscaldWestGate -1,1,008-1.gat,53,61 +009-1.gat,49,24 warp HurnscaldNorthGate 2,-1,008-1.gat,78,48 diff --git a/world/map/npc/009-1/jack.txt b/world/map/npc/009-1/jack.txt new file mode 100644 index 00000000..a0ee0b43 --- /dev/null +++ b/world/map/npc/009-1/jack.txt @@ -0,0 +1,260 @@ +//################################################################################# +//# # +//# This script file contains the npc scripts for two quests: # +//# # +//# Quest1: Obtaining a Forest bow # +//# Needed: About 20 Raw logs, 5000gp, some chatting and running # +//# Reward: Forest bow # +//# # +//# Quest2: Obtaining a Wooden shield # +//# Needed: 40 Raw logs, 5000gp # +//# Reward: Wooden shield and 2500exp # +//# # +//# Variables used: @QUEST_Forestbow_state, nibbles 0 and 1 # +//################################################################################# + +// Lumberjack +009-1.gat,40,45,0 script Jack 141, { + set @RAWLOGS_AMOUNT, 40; + set @SHIELD_COST, 5000; + set @QUEST_SHIELD_EXP, 2500; + + set @Q_Forestbow_MASK, NIBBLE_0_MASK; + set @Q_Forestbow_SHIFT, NIBBLE_0_SHIFT; + + set @Q_Woodenshield_MASK, NIBBLE_1_MASK; + set @Q_Woodenshield_SHIFT, NIBBLE_1_SHIFT; + + set @Q_Forestbow, ((QUEST_Forestbow_state & @Q_Forestbow_MASK) >> @Q_Forestbow_SHIFT); + set @Q_Woodenshield, ((QUEST_Forestbow_state & @Q_Woodenshield_MASK) >> @Q_Woodenshield_SHIFT); + + if (@Q_Woodenshield >= 3) goto L_Shield_state_3; + if (@Q_Woodenshield == 2) goto L_Shield_state_2; + if (@Q_Woodenshield == 1) goto L_Shield_state_1; + if (@Q_Forestbow > 1) goto L_Bow_state_2; + + mes "[Jack Lumber]"; + mes "\"Hello there, my name is Jack Lumber, the enemy of all trees. If you need some firewood just let me know.\""; + if (Inspector == 1) callsub S_NohMask_Ask; + next; + if (@Q_Forestbow < 1) close; + + menu + "I heard you aren't delivering any more living wood. Why not?", -; + + mes "[Jack Lumber]"; + mes "\"Why not?! I value my life, that's why!.\""; + + next; + menu + "What do you mean?", -; + + mes "[Jack Lumber]"; + mes "\"A week ago I was going to chop down one of those twigleaf trees in the forest to the southwest. These twigleafs are the trees that give me the living wood you speak of. I was just chopping away with my axe and what happened? One of its branches hit me! I thought it fell down or the wind blew it. It hurt! I shook it off and struck it again with my axe and another branch hit me! I got angry and started to chop off all the branches near the ground so this couldn't happen anymore. But I still can't believe what happened next.\""; + + next; + menu + "What happened? ", -; + + mes "[Jack Lumber]"; + mes "\"You'll think I am insane when I tell you.\""; + + next; + menu + "I won't. I promise.", -; + + mes "[Jack Lumber]"; + mes "\"OK. After I chopped off a few branches the whole tree started to move. Its roots tore out of the earth, all the branches started to wave around and a face appeared on the trunk. The whole tree CAME TO LIFE! It was mad!\""; + next; + menu + "Did you run away?", -, + "Did you fight it?", -; + + mes "[Jack Lumber]"; + mes "\"I fought, of course! I took my axe and attacked the beast! It hit me here *points at a bruise at his shoulder*, here *lifts his trouser leg to show another bruise* and here *lifts his shirt and reveals some even worse bruises*. But i didn't give up. I chopped away at it, branch after branch, and in the end I chopped off its roots and it fell to the ground motionless.\""; + + next; + menu + "So you beat the monster? Then why are you so scared?", -; + + mes "[Jack Lumber]"; + mes "\"Well, I was exhausted and had to rest. A few minutes passed and suddenly I was surrounded by a dozen or more of these living trees!\""; + + next; + menu + "Did you fight them, too? ", -; + + mes "[Jack Lumber]"; + mes "\"Are you crazy? I barely destroyed one of those beasts. I was in no shape to fight again. I ran away as fast as I could. Lucky for me the monsters aren't that fast on their tiny root legs. Ha!\""; + + next; + menu + "So you aren't chopping down trees anymore?", -; + + mes "[Jack Lumber]"; + mes "\"I still do. It's my job. But I no longer chop those twigleafs, I'll tell you that. I know the bowyer master wants some wood from them, but I don't care. I won't risk my life for a few gold pieces. If you want to, just go to the southwest. But I won't go there ever again.\""; + + next; + menu + "Southwest you say? OK, thank you.", -; + + set @Q_Forestbow, 2; + callsub S_Update_Mask; + + close; + +L_Bow_state_2: + // Bow state 4: The player has found a perfect piece of wood. + if (@Q_Forestbow > 3) goto L_Bow_state_4; + + mes "\"Good luck hunting those tree monsters - you will need it.\""; + if (Inspector == 1) callsub S_NohMask_Ask; + close; + +L_Bow_state_4: + mes "[Jack Lumber]"; + mes "\"You've finally found that perfect piece of living wood Alan needs to make a Forest bow, haven't you?\""; + + next; + menu + "I couldn't afford the bow, though...", L_Shield_state_0, + "No, I'm still looking.", L_Bow_state_4_reaffirm, + "Yes, I've got the Forest bow now.", -, + "I'm a melee warrior, I don't need bows.", L_Shield_state_0; + + // Check if the player tells the truth (continue on in any case) + if (@Q_Forestbow > 4) goto L_Shield_state_0; + + mes "[Jack Lumber]"; + mes "\"Hrmph. I'm someone who respects those speaking the truth.\""; + + next; + goto L_Shield_state_0; + +L_Bow_state_4_reaffirm: + mes "[Jack Lumber]"; + mes "\"You should go talk to Alan again.\""; + close; + +L_Shield_state_0: + set @Q_Woodenshield, 1; + callsub S_Update_Mask; + + if (Sex == 0) set @child_of_jack$, "daughter"; + if (Sex == 1) set @child_of_jack$, "son"; + + mes "[Jack Lumber]"; + mes "\"You no doubt remember how I struggled with those beasts, fighting for my life. Scared me, those seven-branched little stumps did! Never since that day have I strayed near them. And here comes you, cutting them down one by one. I'm proud of you, to dare those trunks a fight. You're strong as if you were my own " + @child_of_jack$ + "!\""; + next; + goto L_Shield_state_1; + +L_Shield_state_1: + mes "[Jack Lumber]"; + mes "\"I have an idea. What would you say about a new shield?\""; + next; + + if (Inspector == 1) + menu + "No thanks.", L_End, + "Yes, please!", -, + "Actually, I'd like to know if you've seen any strange happenings in town.", L_NohMask_Answer; + if (Inspector != 1) + menu + "No thanks.", L_End, + "Yes, please!", -; + + mes "[Jack Lumber]"; + mes "\"All I need is " + @RAWLOGS_AMOUNT + " raw logs. This needn't be highest-quality wood; pretty much any log you can find should work. Oh, and I'll also need " + @SHIELD_COST + " GP for other materials.\""; + next; + + set @Q_Woodenshield, 2; + callsub S_Update_Mask; + close; + +L_End: + close; + +L_Shield_state_2: + mes "[Jack Lumber]"; + mes "\"Let's see if you have enough of everything.\""; + next; + + if (countitem("RawLog") < @RAWLOGS_AMOUNT) goto L_Not_enough_logs; + if (zeny < @SHIELD_COST) goto L_Not_enough_money; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + + delitem "RawLog", @RAWLOGS_AMOUNT; + set zeny, zeny - @SHIELD_COST; + getexp @QUEST_SHIELD_EXP, 0; + getitem "WoodenShield", 1; + + set @Q_Woodenshield, 3; + callsub S_Update_Mask; + mes "[Jack Lumber]"; + mes "\"Have a seat.\""; + mes "Jack saws the logs into pieces, then shaves them until they are smooth to the touch."; + mes "Applying some strong-smelling liquid, he tans them in darker hues."; + next; + + mes "[Jack Lumber]"; + mes "Grabbing one of two leftover pieces, he begins to carve it into a round shape, then repeats this with the second piece-- shield handles, from what you can tell."; + next; + + mes "[Jack Lumber]"; + mes "Meanwhile, the sun has dried the other pieces. Jack places them next to each other, adds a frame, and nails everything together."; + mes "The resulting shield looks usable already, but Jack applies another liquid to it and leaves it to dry for a few moments."; + next; + + mes "[Jack Lumber]"; + mes "Finally, he hands the shield to you."; + mes "\"Enjoy your new shield!\""; + mes "[" + @QUEST_SHIELD_EXP + " experience points]"; + next; + goto L_End; + +L_Not_enough_logs: + mes "[Jack Lumber]"; + mes "\"You don't have enough wood for me to craft this shield; I need a total of " + @RAWLOGS_AMOUNT + " raw logs.\""; + close; + +L_Not_enough_money: + mes "[Jack Lumber]"; + mes "\"You don't have enough gold, I'm afraid. I need " + @SHIELD_COST + " GP to finish your shield.\""; + close; + +L_TooMany: + mes "[Jack Lumber]"; + mes "\"You don't have enough room for the shield. Come back when you do.\""; + close; + +L_Shield_state_3: + mes "[Jack Lumber]"; + mes "\"I hope that my shield will serve you well!\""; + next; + + if (Inspector == 1) + menu + "Me too.", -, + "Have you seen anything that might be connected to the recent robberies in town?", L_NohMask_Answer; + close; + +S_NohMask_Ask: + next; + menu + "I'll keep that in mind.", -, + "Have you seen anything that might be connected to the recent robberies in town?", L_NohMask_Answer; + return; + +L_NohMask_Answer: + mes "[Jack Lumber]"; + mes "\"Sorry, no.\""; + close; + +S_Update_Mask: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_Forestbow_MASK | @Q_Woodenshield_MASK)) + | (@Q_Forestbow << @Q_Forestbow_SHIFT) + | (@Q_Woodenshield << @Q_Woodenshield_SHIFT); + return; +} diff --git a/world/map/npc/009-1/mapflags.txt b/world/map/npc/009-1/mapflags.txt new file mode 100644 index 00000000..f435d5d7 --- /dev/null +++ b/world/map/npc/009-1/mapflags.txt @@ -0,0 +1,2 @@ +009-1.gat mapflag no_player_drops +009-1.gat mapflag town diff --git a/world/map/npc/009-1/milly.txt b/world/map/npc/009-1/milly.txt new file mode 100644 index 00000000..2935d314 --- /dev/null +++ b/world/map/npc/009-1/milly.txt @@ -0,0 +1,25 @@ +009-1.gat,81,41,0 script Milly 114, { + mes "[Milly]"; + mes "\"Hello.\""; + next; + if (Inspector == 1) goto L_NohMask; + close; + +L_NohMask: + menu + "Have you seen anything strange lately?", L_NohMask_Strange, + "Do you know anything about the recent robberies?", L_NohMask_Robbery, + "Hello", -; + close; + +L_NohMask_Strange: + mes "[Milly]"; + mes "\"I haven't seen anything strange.\""; + close; + +L_NohMask_Robbery: + mes "[Milly]"; + mes "\"No, sorry.\""; + close; +} + diff --git a/world/map/npc/009-1/old_man.txt b/world/map/npc/009-1/old_man.txt new file mode 100644 index 00000000..84079138 --- /dev/null +++ b/world/map/npc/009-1/old_man.txt @@ -0,0 +1,34 @@ +// Old man + +009-1.gat,85,51,0 script Old Man 159,{ + mes "[Old Man]"; + mes "\"Don't let those monsters get to you.\""; + next; + if (Inspector == 1) goto L_NohMask_Ask; + if (Inspector == 6) goto L_NohMask_Accuse; + close; + +L_NohMask_Ask: + menu + "Have you seen anything strange lately?", L_NohMask_Ask_Nothing, + "Do you know anything about the recent robberies?", L_NohMask_Ask_Nothing, + "I won't, thank you.", -; + close; + +L_NohMask_Ask_Nothing: + mes "[Old Man]"; + mes "\"I'm sorry, but I didn't see anything. You should ask my old woman.\""; + close; + +L_NohMask_Accuse: + menu + "The leader of the troupe said you hung around them a lot while they were in town.", L_NohMask_Accuse_Respond, + "I won't, thank you.", -; + close; + +L_NohMask_Accuse_Respond: + mes "[Old Man]"; + mes "\"Yes, I hung around the theater a lot. I was an actor when I was younger. But I wasn't there that night. Me and the wife were at home all night.\""; + set Inspector, 7; + close; +} diff --git a/world/map/npc/009-1/old_woman.txt b/world/map/npc/009-1/old_woman.txt new file mode 100644 index 00000000..c48b3557 --- /dev/null +++ b/world/map/npc/009-1/old_woman.txt @@ -0,0 +1,78 @@ +// Old woman + +009-1.gat,29,43,0 script Old Woman 154,{ + if (BaseLevel < 40) goto L_Lower; + + mes "[Old Woman]"; + mes "\"Hello deary.\""; + next; + +L_Continue: + if ((Inspector >= 1 && Inspector <= 7) || Inspector == 9) goto L_NohMask; + close; + +L_Lower: + mes "[Old Woman]"; + mes "\"Watch out for these flowers. They don't like to be messed with.\""; + next; + goto L_Continue; + +L_NohMask: + if (Inspector == 7) goto L_NohMask_Alibi; + callfunc "ProcessEquip"; + if (@torsoC == cDarkBlue && @legsC == cDarkBlue) goto L_NohMask_Fake; + if (Inspector >= 3 && Inspector <= 6) close; + + menu + "Have you seen anything strange lately?", L_NohMask_FirstAsk, + "Do you know anything about the recent robberies?", L_NohMask_FirstAsk, + "Hello", -; + close; + +L_NohMask_FirstAsk: + mes "[Old Woman]"; + mes "\"Yes, but I'm only talking to the inspector himself!\""; + if (Inspector == 1) set Inspector, 2; + close; + +L_NohMask_Alibi: + menu + "Was your husband with you at home all night the last night that the troupe was in town?", -; + + mes "[Old Woman]"; + mes "\"Yes, we were both at home all night.\""; + set Inspector, 8; + close; + +L_NohMask_Fake: + if (Inspector == 9) goto L_NohMask_Fake_Satchel; + if (Inspector >= 3 && Inspector <= 6) goto L_NohMask_Filler; + + mes "[Old Woman]"; + mes "\"I saw someone sneaking around town wearing a theater mask. It looked like one of the masks used by the troupe that was in town recently.\""; + set Inspector, 3; + close; + +L_NohMask_Filler: + mes "[Old Woman]"; + mes "\"I hope you catch that naughty person!\""; + close; + +L_NohMask_Fake_Satchel: + mes "[Old Woman]"; + mes "\"I've remembered something else. The night the troupe left, I saw someone with a theater mask take a large satchel out of town. He was heading north.\""; + set Inspector, 10; + close; + +OnPCDieEvent: + if (countitem(E10_TOKEN_ID) < 1) end; + delitem E10_TOKEN_ID, 1; + getitem "DarkPetal", 1; + message strcharinfo(0), "As you fall, the dark rose crumbles..."; + if ((Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK >= E10_STATE_ROSE_ROSE_USED) end; + message strcharinfo(0), "There is a strange feeling pulling at you. A place... unfamiliar, yet unavoidable."; + message strcharinfo(0), "But you do not move... the force is too distant, too weak, a shadow of the power that it might have once been."; + set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_ROSE_USED << E10_STATE_ROSE_SHIFT); + end; + +} diff --git a/world/map/npc/009-1/sabine.txt b/world/map/npc/009-1/sabine.txt new file mode 100644 index 00000000..b8a45859 --- /dev/null +++ b/world/map/npc/009-1/sabine.txt @@ -0,0 +1,26 @@ +// Girl sitting on bench + +009-1.gat,88,27,0 script Sabine 106,{ + mes "[Sabine]"; + mes "\"Isn't this place pretty? I love hanging out here!\""; + next; + if (Inspector == 1) goto L_NohMask; + close; + +L_NohMask: + menu + "Have you seen anything strange lately?", L_NohMask_Strange, + "Do you know anything about the recent robberies?", L_NohMask_Robbery, + "Yes, it is.", -; + close; + +L_NohMask_Strange: + mes "[Sabine]"; + mes "\"I haven't seen anything strange.\""; + close; + +L_NohMask_Robbery: + mes "[Sabine]"; + mes "\"No, sorry.\""; + close; +} diff --git a/world/map/npc/009-1/soul-menhir.txt b/world/map/npc/009-1/soul-menhir.txt new file mode 100644 index 00000000..5daadd23 --- /dev/null +++ b/world/map/npc/009-1/soul-menhir.txt @@ -0,0 +1,12 @@ +// + +009-1.gat,53,40,0 script Soul Menhir 144, { + callfunc "ClearVariables"; + set @map$, "009-1.gat"; + setarray @Xs, 52, 53, 54, 52, 54, 52, 54; + setarray @Ys, 39, 39, 39, 40, 40, 41, 41; + set @x, 0; + set @y, 0; + callfunc "SoulMenhir"; + close; +} diff --git a/world/map/npc/009-1/water_pump.txt b/world/map/npc/009-1/water_pump.txt new file mode 100644 index 00000000..42c36d64 --- /dev/null +++ b/world/map/npc/009-1/water_pump.txt @@ -0,0 +1,5 @@ +// Water pump. YOu can fill empty b ottles here + +009-1.gat,76,33,0 script Water Pump 203,{ + callfunc "WaterBottle"; +} diff --git a/world/map/npc/009-2/_import.txt b/world/map/npc/009-2/_import.txt new file mode 100644 index 00000000..5289780c --- /dev/null +++ b/world/map/npc/009-2/_import.txt @@ -0,0 +1,23 @@ +// Map 009-2: Hurnscald +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 009-2.gat +npc: npc/009-2/_mobs.txt +npc: npc/009-2/_warps.txt +npc: npc/009-2/airlia.txt +npc: npc/009-2/alan.txt +npc: npc/009-2/doctor.txt +npc: npc/009-2/drunks.txt +npc: npc/009-2/inspector.txt +npc: npc/009-2/kfahr.txt +npc: npc/009-2/lena.txt +npc: npc/009-2/mapflags.txt +npc: npc/009-2/misc.txt +npc: npc/009-2/nicholas.txt +npc: npc/009-2/nurse.txt +npc: npc/009-2/olana.txt +npc: npc/009-2/peter.txt +npc: npc/009-2/richard.txt +npc: npc/009-2/selim.txt +npc: npc/009-2/shops.txt +npc: npc/009-2/waitress.txt +npc: npc/009-2/wyara.txt diff --git a/world/map/npc/009-2/_mobs.txt b/world/map/npc/009-2/_mobs.txt new file mode 100644 index 00000000..5ce2976c --- /dev/null +++ b/world/map/npc/009-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hurnscald mobs + + + +009-2.gat,0,0,0 script Mob009-2 -1,{ + end; +} diff --git a/world/map/npc/009-2/_warps.txt b/world/map/npc/009-2/_warps.txt new file mode 100644 index 00000000..e6c791c5 --- /dev/null +++ b/world/map/npc/009-2/_warps.txt @@ -0,0 +1,23 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hurnscald warps + +009-2.gat,75,23 warp To1stFloor 0,-1,009-2.gat,73,46 +009-2.gat,95,30 warp ToOutdoor -1,-1,009-1.gat,59,34 +009-2.gat,130,26 warp ToOutdoor -1,-1,009-1.gat,71,31 +009-2.gat,144,26 warp To2ndFloor 0,-1,009-2.gat,143,44 +009-2.gat,144,42 warp To3rdFloor 0,-1,009-2.gat,143,24 +009-2.gat,155,47 warp To1stFloor 0,-1,009-2.gat,154,63 +009-2.gat,114,46 warp To1stFloor 0,-1,009-2.gat,113,69 +009-2.gat,50,55 warp ToOutdoor -1,-1,009-1.gat,35,31 +009-2.gat,74,53 warp ToCellar -1,-1,009-2.gat,143,81 +009-2.gat,74,45 warp To2ndFloor 0,-1,009-2.gat,74,23 +009-2.gat,114,78 warp ToOutdoor -1,-1,009-1.gat,72,45 +009-2.gat,114,68 warp To2ndFloor 0,-1,009-2.gat,113,46 +009-2.gat,149,67 warp ToOutdoor -1,-1,009-1.gat,80,32 +009-2.gat,143,79 warp To1stFloor -1,-1,009-2.gat,74,52 +009-2.gat,155,62 warp To2ndFloor 0,-1,009-2.gat,154,46 +009-2.gat,182,67 warp ToOutdoor 0,-1,009-1.gat,91,47 +009-2.gat,147,89 warp ToCaveBeneathHurnscald -1,-1,009-3.gat,173,22 +009-2.gat,27,106 warp ToOutdoor -1,-1,009-1.gat,58,47 +009-2.gat,46,50 warp ToPrivateRooms -1,-1,009-2.gat,75,78 +009-2.gat,77,78 warp ToPrivateRooms -1,-1,009-2.gat,48,50 diff --git a/world/map/npc/009-2/airlia.txt b/world/map/npc/009-2/airlia.txt new file mode 100644 index 00000000..5ccaea3f --- /dev/null +++ b/world/map/npc/009-2/airlia.txt @@ -0,0 +1,268 @@ +// Airlia, daughter of the cemetary caretaker + +// Future extensions: +// * Add banter and random replies for the unlimited subquests +// * Airlia quest = 2 unlocks options with Fighters of the Undead NPCs (in Cemetery), such as the 'Kill Sir Truk' quest +// * Airlia quest = 2 unlocks other options, perhaps with future Warrior Guild prospects (this is long term) + + +009-2.gat,123,71,0 script Airlia 108,{ + // Subquest 1a: Caretaker's daughter (initial, once) + set @LETTER_REWARD_GOLD_INITIAL, 1000; + set @LETTER_REWARD_EXP_INITIAL, 2000; + + set @Q_STATUS_RECIEVED_FIRST_LETTER, 2; + set @Q_STATUS_DELIVERED_FIRST_LETTER, 3; + + // Subquest 1b: Continued delivery of letters (unlimited) + set @LETTER_REWARD_GOLD, 42; + set @LETTER_REWARD_EXP, 500; + + set @Q_STATUS_HAS_NO_NEW_LETTER, 4; + set @Q_STATUS_HAS_NEW_LETTER, 5; + + // Subquest 2a: Fetch those undead drops (initial, once) + // TODO: Set sane values below + set @FETCH_AMOUNT_INITIAL, 50; + set @FETCH_LABEL_INITIAL$, "Bone"; + set @FETCH_REWARD_GOLD_INITIAL, 5000; + set @FETCH_REWARD_EXP_INITIAL, 50000; + + set @Q_STATUS_HELP_AIRLIA, 1; + set @Q_STATUS_INITIAL_FETCH_REWARDED, 2; + + // Subquest 2b: Fetch those undead drops (unlimited) + // TODO: Set sane values below + set @FETCH_AMOUNT, 10; + set @FETCH_LABEL$, "DiseasedHeart"; + set @FETCH_REWARD_GOLD, 6000; + set @FETCH_REWARD_EXP, 40000; + + + if (QUEST_Airlia == @Q_STATUS_INITIAL_FETCH_REWARDED) goto L_Rewarded; + if (QUEST_Airlia == @Q_STATUS_HELP_AIRLIA) goto L_Fetch; + if (QUEST_Graveyard_Caretaker > @Q_STATUS_RECIEVED_FIRST_LETTER) goto L_Airlia_intro; + +L_Caretaker: + mes "[Airlia]"; + mes "\"Greetings. Do you need a housing permit, or to license your mount?\""; + next; + + if (QUEST_Graveyard_Caretaker < @Q_STATUS_RECIEVED_FIRST_LETTER) + menu + "Sorry, no.", -, + "My what?", L_Caretaker_mount; + + if (QUEST_Graveyard_Caretaker == @Q_STATUS_RECIEVED_FIRST_LETTER) + menu + "Sorry, no.", -, + "I have a letter from your father.", L_Caretaker_first_reward, + "My what?", L_Caretaker_mount; + + mes "[Airlia]"; + mes "\"Nobody ever does...\""; + close; + +L_Caretaker_mount: + // The mention of mounts will certainly gather some interest from players, + // this section may be extended. + close; + +L_Caretaker_first_reward: + mes "[Airlia]"; + mes "\"Oh! Thank you very, very much! Please take this for your trouble.\""; + if (@LETTER_REWARD_GOLD_INITIAL > 0) + mes "[" + @LETTER_REWARD_GOLD_INITIAL + " GP]"; + if (@LETTER_REWARD_EXP_INITIAL > 0) + mes "[" + @LETTER_REWARD_EXP_INITIAL + " experience points]"; + + set zeny, zeny + @LETTER_REWARD_GOLD_INITIAL; + getexp @LETTER_REWARD_EXP_INITIAL, 0; + set QUEST_Graveyard_Caretaker, @Q_STATUS_DELIVERED_FIRST_LETTER; + close; + +L_Caretaker_later_rewards: + mes "[Airlia]"; + mes "\"Oh! Thank you very, very much! Please take this for your trouble.\""; + if (@LETTER_REWARD_GOLD > 0) + mes "[" + @LETTER_REWARD_GOLD + " GP]"; + if (@LETTER_REWARD_EXP > 0) + mes "[" + @LETTER_REWARD_EXP + " experience points]"; + + set zeny, zeny + @LETTER_REWARD_GOLD; + getexp @LETTER_REWARD_EXP, 0; + set QUEST_Graveyard_Caretaker, @Q_STATUS_HAS_NO_NEW_LETTER; + close; + +L_Airlia_intro: + mes "[Airlia]"; + mes "\"My poor father, doomed to that awful cemetery.\""; + next; + + // CASE REMOVED: + // This step is pointless and just forces the player to make a selection that doesn't effect anything. + // ALSO it misses the case where QUEST_Graveyard_Caretaker == 3, in this case it proceeds to the message without wasting player clicks + // Removing this check will make execution the same for QUEST_Graveyard_Caretaker == 3 and QUEST_Graveyard_Caretaker == 4 + // If for some reason this is desireable, uncomment it and make sure to catch the extra case mentioned + // + //if (QUEST_Graveyard_Caretaker == @Q_STATUS_HAS_NO_NEW_LETTER) + // menu + // "...", -; + + if (QUEST_Graveyard_Caretaker == @Q_STATUS_HAS_NEW_LETTER) + menu + "...", -, + "Oh, I have a letter from him.", L_Caretaker_later_rewards; + + mes "[Airlia]"; + mes "\"You know, there are many who believe that each time the undead rise after being killed, they lose mana."; + mes "Eventually, there will not be enough mana for them to rise again and they can be at rest. Do you believe this is true?\""; + next; + + menu + "I believe so, yes.", L_Airlia_intro_mana_loss, + "Maybe...", L_Airlia_intro_mana_loss, + "No, that is not proven.", -; + + mes "[Airlia]"; + mes "\"Oh...\""; + close; + +L_Airlia_intro_mana_loss: + mes "[Airlia]"; + mes "\"When I am not working, I recruit help for the esteemed Fighters of the Undead, or FoU."; + mes "They are an official group effort of the Warriors' Guild and Magicians, you know, a very prestigious group.\""; + next; + + menu + "...", L_Airlia_intro_fou, + "I have heard of them.", L_Airlia_intro_fou, + "Keep up the good work. I have to go now, bye.", -; + close; + +L_Airlia_intro_fou: + mes "[Airlia]"; + mes "\"If we drain those evil creatures of their mana, I can get my father back. He is getting very old. Will you help us?\""; + next; + + menu + "Of course I will.", L_Airlia_intro_fight, + "Sure, I guess.", L_Airlia_intro_fight, + "Thanks, but no thanks. I have other business to attend to.", -; + close; + +L_Airlia_intro_fight: + mes "[Airlia]"; + mes "\"Great, just kill any of the undead creatures you can and bring me proof of your work, and I will put in a word for you with the guild.\""; + next; + + menu + "I'm on it.", -, + "What sort of proof?", L_Airlia_intro_proof; + + set QUEST_Airlia, @Q_STATUS_HELP_AIRLIA; + close; + +L_Airlia_intro_proof: + mes "[Airlia]"; + mes "\"Let's say " + @FETCH_AMOUNT_INITIAL + " " + getitemname(@FETCH_LABEL_INITIAL$) + "s. You don't know how much this means to me, thank you.\""; + set QUEST_Airlia, @Q_STATUS_HELP_AIRLIA; + close; + +L_Fetch: + mes "[Airlia]"; + mes "\"Thank you for helping my father.\""; + next; + + // Make sure to check if the player has a letter to deliver. + // If the check is not made then there is a bug, where the player + // has a letter but has not completed the initial fetch + // and is prevented from turing in the letter until the fetch is completed. + // + if (QUEST_Graveyard_Caretaker < @Q_STATUS_HAS_NEW_LETTER) + menu + "You are welcome.", -, + "I have collected the " + @FETCH_AMOUNT_INITIAL + " " + getitemname(@FETCH_LABEL_INITIAL$) + "s.", L_Fetch_initial_reward; + + if (QUEST_Graveyard_Caretaker == @Q_STATUS_HAS_NEW_LETTER) + menu + "You are welcome.", -, + "I have another letter from your father.", L_Caretaker_later_rewards, + "I have collected the " + @FETCH_AMOUNT_INITIAL + " " + getitemname(@FETCH_LABEL_INITIAL$) + "s.", L_Fetch_initial_reward; + + // The following checks are REDUNDANT + // The only way to get to this lable is after a check for QUEST_Airlia == @Q_STATUS_HELP_AIRLIA + // Incase you weren't paying attention: @Q_STATUS_HELP_AIRLIA = 1 < @Q_STATUS_INITIAL_FETCH_REWARDED + // Note: proper handling of the first case is done above. + // The second case never gets executed anyway and not handled. + // + //if (QUEST_Airlia < @Q_STATUS_INITIAL_FETCH_REWARDED) + // menu + // "You are welcome.", -, + // "I have collected the " + @FETCH_AMOUNT_INITIAL + " " + getitemname(@FETCH_LABEL_INITIAL$) + "s.", L_Fetch_initial_reward; + // + //if (QUEST_Airlia == @Q_STATUS_INITIAL_FETCH_REWARDED) + // menu + // "You are welcome.", -, + // "I have collected the " + @FETCH_AMOUNT + " " + getitemname(@FETCH_LABEL$) + "s.", L_Fetch_later_rewards; + + close; + +L_Fetch_initial_reward: + if (countitem(@FETCH_LABEL_INITIAL$) < @FETCH_AMOUNT_INITIAL) goto L_Fetch_not_enough; + + mes "[Airlia]"; + mes "\"Excellent work. You are definitely a great warrior. I will tell the guild of your deeds.\""; + if (@FETCH_REWARD_GOLD_INITIAL > 0) + mes "[" + @FETCH_REWARD_GOLD_INITIAL + " GP]"; + if (@FETCH_REWARD_EXP_INITIAL > 0) + mes "[" + @FETCH_REWARD_EXP_INITIAL + " experience points]"; + delitem @FETCH_LABEL_INITIAL$, @FETCH_AMOUNT_INITIAL; + set zeny, zeny + @FETCH_REWARD_GOLD_INITIAL; + getexp @FETCH_REWARD_EXP_INITIAL, 0; + set QUEST_Airlia, @Q_STATUS_INITIAL_FETCH_REWARDED; + next; + + mes "[Airlia]"; + // TODO: Write the dialogue when I'm not tired... + mes "\"Oh, before you leave. We all must do what we can to stop this tragedy."; + mes "If you are willing to keep draining the undead of mana, I will give you what gold I can afford as a token of my gratitude.\""; + close; + +L_Fetch_later_rewards: + if (countitem(@FETCH_LABEL$) < @FETCH_AMOUNT) goto L_Fetch_not_enough; + + mes "[Airlia]"; + mes "\"Excellent work. You are definitely a great warrior.\""; + if (@FETCH_REWARD_GOLD > 0) + mes "[" + @FETCH_REWARD_GOLD + " GP]"; + if (@FETCH_REWARD_EXP > 0) + mes "[" + @FETCH_REWARD_EXP + " experience points]"; + delitem @FETCH_LABEL$, @FETCH_AMOUNT; + set zeny, zeny + @FETCH_REWARD_GOLD; + getexp @FETCH_REWARD_EXP, 0; + close; + +L_Fetch_not_enough: + mes "[Airlia]"; + mes "\"I'm sorry, I didn't realize you couldn't count. Perhaps when I have some free time, I can help you learn if you'd like.\""; + close; + +L_Rewarded: + mes "[Airlia]"; + mes "\"Thank you for your help.\""; + next; + + if (QUEST_Graveyard_Caretaker < @Q_STATUS_HAS_NEW_LETTER) + menu + "You are welcome.", -, + "I have collected the " + @FETCH_AMOUNT + " " + getitemname(@FETCH_LABEL$) + "s.", L_Fetch_later_rewards; + + if (QUEST_Graveyard_Caretaker == @Q_STATUS_HAS_NEW_LETTER) + menu + "You are welcome.", -, + "I have another letter from your father.", L_Caretaker_later_rewards, + "I have collected the " + @FETCH_AMOUNT + " " + getitemname(@FETCH_LABEL$) + "s.", L_Fetch_later_rewards; + + close; +} diff --git a/world/map/npc/009-2/alan.txt b/world/map/npc/009-2/alan.txt new file mode 100644 index 00000000..f19990d9 --- /dev/null +++ b/world/map/npc/009-2/alan.txt @@ -0,0 +1,224 @@ +//################################################################################# +//# # +//# This script file contains the npc scripts for the quest to obtain a forestbow # +//# # +//# Needed: 10 Raw Logs, 5000gp, some chatting and running. # +//# # +//# Reward: Forest Bow # +//################################################################################# + +// Archer Shop Master +009-2.gat,99,23,0 script Alan 125, { + set @Q_MASK, NIBBLE_0_MASK; + set @Q_SHIFT, NIBBLE_0_SHIFT; + + set @Q_status, ((QUEST_Forestbow_state) & @Q_MASK) >> @Q_SHIFT; + + if (@Q_status == 1) goto L_State_1; + if (@Q_status == 2) goto L_State_2; + if (@Q_status == 3) goto L_State_3; + if (@Q_status == 4) goto L_State_4; + if (@Q_status == 5) goto L_State_5; + + mes "[Alan]"; + mes "\"When you want to buy something then please speak to my apprentice. I am only doing special requests.\""; + next; + if (Inspector == 1) + menu + "OK, thanks.", -, + "Can you make me a really good bow?", L_State_0_1, + "Have you seen anything strange recently that might be connected to the robberies?", L_NohMask_Answer; + if (Inspector != 1) + menu + "OK, thanks.", -, + "Can you make me a really good bow?", L_State_0_1; + close; + +L_State_0_1: + mes "[Alan]"; + mes "\"You mean like one of my legendary forest bows?\""; + next; + menu + "Yes, that would be nice.", -; + mes "[Alan]"; + mes "\"Sorry, I am not making these anymore.\""; + next; + menu + "Oh, too bad.", -, + "What? Why not?", L_State_0_2; + close; + +L_State_0_2: + mes "[Alan]"; + mes "\"The problem is that I am short of material. My forestbows are not made of regular wood, you know."; + mes "They are made of special living wood. And only the best logs of living wood are good enough for them."; + mes "I used to get these logs from Jack, the lumberjack. But the last time I asked him for a new delivery he said that he would never again get any for me.\""; + + set @Q_status, 1; + callsub S_Update_Var; + + next; + menu + "Too bad.", -, + "Did you ask him why?", L_State_0_3; + close; + +L_State_0_3: + mes "[Alan]"; + mes "\"Sure I did. But he just told me to leave him alone. Maybe you could ask him what's wrong?\""; + next; + menu + "OK, I'll ask him.", -, + "I am sure he got his reasons.", -; + close; + +L_State_1: + mes "[Alan]"; + mes "\"Did you already ask Jack why he won't deliver me any more living wood?\""; + next; + if (Inspector == 1) + menu + "No, I haven't had the time yet.", -, + "No, I didn't find him yet.", L_State_1_1, + "Have you seen anything strange recently that might be connected to the robberies?", L_NohMask_Answer; + if (Inspector != 1) + menu + "No, I haven't had the time yet.", -, + "No, I didn't find him yet.", L_State_1_1; + close; + +L_State_1_1: + mes "[Alan]"; + mes "\"When you leave my shop just go southwest over the village plaza. You can't miss it.\""; + close; + +L_State_2: + mes "[Alan]"; + mes "\"Did you already ask Jack why he won't deliver me any more living wood?\""; + next; + if (Inspector == 1) + menu + "Yes, I did. He said that the trees turned into dangerous monsters.", -, + "Have you seen anything strange recently that might be connected to the robberies?", L_NohMask_Answer; + if (Inspector != 1) + menu + "Yes, I did. He said that the trees turned into dangerous monsters.", -; + mes "[Alan]"; + mes "\"Oh, that's really bad news. Maybe you can do his job?"; + mes "When you kill some of these tree monsters and bring me their wood I can take a look at them."; + mes "Maybe you will find a piece of wood that is strong enough to become one of my forest bows.\""; + + set @Q_status, 3; + callsub S_Update_Var; + + close; + +L_State_3: + mes "[Alan]"; + mes "\"How is the hunt going? Did you bring me any wood?\""; + if (countitem(569) < 1) close; + next; + if (Inspector == 1) + menu + "Here, take a look!", L_State_3_try, + "Yes, but I need it for something else.", -, + "Have you seen anything strange recently that might be connected to the robberies?", L_NohMask_Answer; + if (Inspector != 1) + menu + "Here, take a look!", L_State_3_try, + "Yes, but I need it for something else.", -; + close; + +L_State_3_try: + if (countitem(569) < 1) goto L_No_Log; + delitem "RawLog", 1; + mes "[Alan]"; + mes "\"Hmmm... looks ok, but is it strong enough?\""; + mes "Alan bends the log over his knee."; + next; + set @Temp1, rand(20); + if (@Temp1 == 0) goto L_State_3_success; + mes "The log breaks with a loud crack."; + next; + mes "[Alan]"; + mes "\"Sorry, this log was too weak for one of my forest bows. Now it is junk. Give me another.\""; + if (countitem(569) < 1) close; + next; + menu + "Sure, here you go.", L_State_3_try, + "Hey! Stop breaking my stuff!", -; + close; + +L_State_3_success: + mes "Alan tries as hard as he can but the log won't bend."; + next; + mes "[Alan]"; + mes "\"Aaah! Yes! That is a really fine piece of wood you brought me. It will make an excellent bow!\""; + next; + set @Q_status, 4; + callsub S_Update_Var; + +L_State_4: + mes "[Alan]"; + mes "\"I can make you a really nice forest bow out of this. I just need 10,000 GP for material and work time.\""; + next; + if (Inspector == 1) + menu + "10,000??? What a ripoff!", -, + "Sure, here you go!", L_State_4_pay, + "Have you seen anything strange recently that might be connected to the robberies?", L_NohMask_Answer; + if (Inspector != 1) + menu + "10,000??? What a ripoff!", -, + "Sure, here you go!", L_State_4_pay; + close; + +L_State_4_pay: + if (zeny < 10000) goto L_State_4_nocash; + getinventorylist; + if (@inventorylist_count == 100) goto L_State_4_TooMany; + set zeny, zeny - 10000; + getitem "ForestBow", 1; + set @Q_status, 5; + callsub S_Update_Var; + mes "[Alan]"; + mes "\"Here you go - have fun with it.\""; + close; + +L_State_4_nocash: + mes "[Alan]"; + mes "\"Seems like you are out of cash.\""; + close; + +L_State_4_TooMany: + mes "[Alan]"; + mes "\"Seems like you don't have room for this bow. Come back later.\""; + close; + +L_State_5: + mes "[Alan]"; + mes "\"I hope you are satisfied with your forest bow. It is one of my best works.\""; + next; + + if (Inspector == 1) + menu + "I am!", -, + "Have you seen anything strange recently that might be connected to the robberies?", L_NohMask_Answer; + close; + +L_NohMask_Answer: + mes "[Alan]"; + mes "\"No.\""; + close; + +L_No_Log: + mes "[Alan]"; + mes "\"Where should I look at? You don't have a raw log.\""; + close; + +S_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/009-2/doctor.txt b/world/map/npc/009-2/doctor.txt new file mode 100644 index 00000000..2fbfcbd1 --- /dev/null +++ b/world/map/npc/009-2/doctor.txt @@ -0,0 +1,81 @@ +// Doctor + +009-2.gat,148,25,0 script Doctor 107,{ + if (getequipid(equip_head) == 616) goto L_Axe; + if (getequipid(equip_head) == 621) goto L_Eyepatch; + + mes "[Doctor]"; + mes "\"Hello, can I help you?\""; + next; + + if (Inspector == 1) + menu + "I think I am sick!", L_Cure, + "No, I feel fine.", -, + "Have you seen anything strange in town? Anything that might have to do with the robberies?", L_NohMask; + if (Inspector != 1) + menu + "I think I am sick!", L_Cure, + "No, I feel fine.", -; + + mes "[Doctor]"; + mes "\"Then please stop wasting my precious time.\""; + close; + +L_Cure: + mes "[Doctor]"; + if (sc_check(sc_poison)) + goto L_CurePoison; + mes "The doctor examines you briefly."; + mes "\"Nonsense! You look fine and dandy to me. All you need is a bit more exercise and fresh fruit in your diet!\""; + close; + +L_CurePoison: + mes "\"Well, well, well! Look at all those green bubbles coming out of your head; that looks like poisoning to me! Did you eat something rotten?\""; + next; + mes "[Doctor]"; + mes "The doctor pulls out a syringe and fills it with a white liquid from a jar on his desk."; + mes "\"Now hold still, this won't hurt a bit...\""; + next; + mes "[Doctor]"; + sc_end(sc_poison); + sc_end(sc_slowpoison); + mes "*Ouch!*"; + mes "\"Next time, be more careful! Make sure to cook any meats before you eat them, and don't eat fish once it starts to smell.\""; + close; + +L_Axe: + mes "[Doctor]"; + mes "\"Oh my, what happened to you?\""; + next; + mes "[Doctor]"; + mes "\"Wait. Thats just a fake. Shame on you!\""; + close; + +L_Eyepatch: + mes "[Doctor]"; + mes "\"Would you like a glass eye to replace that eye patch you have? We just got a whole load of them in today. I'll even let you keep the patch as a souvenir.\""; + next; + menu + "Yes, please.", L_Eyepatch_GlassEye, + "No thank you", -; + + mes "[Doctor]"; + mes "\"If you change your mind, please come back and see me.\""; + close; + +L_Eyepatch_GlassEye: + mes "[Doctor]"; + mes "\"Now, where did I put that box of eyes...\""; + mes "He goes off to look for them and comes back empty handed."; + next; + + mes "[Doctor]"; + mes "\"I can't seem to find where I put that box. You should come back later, I may have found them by then.\""; + close; + +L_NohMask: + mes "[Doctor]"; + mes "\"No, I haven't seen anything.\""; + close; +} diff --git a/world/map/npc/009-2/drunks.txt b/world/map/npc/009-2/drunks.txt new file mode 100644 index 00000000..61246b4e --- /dev/null +++ b/world/map/npc/009-2/drunks.txt @@ -0,0 +1,16 @@ +//Left drinking contest guy + +009-2.gat,65,55,0 script Drinker 121, { + mes "[Binge Drinker]"; + mes "\"Ha! I'll drink muuuch mo.. more than you! Im not ooone biiit dr...dr..unk!\""; + close; +} + +//Right drinking contest guy + +009-2.gat,68,55,0 script Drinker 121, { + mes "[Binge Drinker]"; + mes "\"I can still drink more! Better give up you... you... teelotaler! MORE BEER MELINDA!\""; + //I know it's called "teetotaler". That error is on purpose. + close; +} diff --git a/world/map/npc/009-2/inspector.txt b/world/map/npc/009-2/inspector.txt new file mode 100644 index 00000000..f25d026a --- /dev/null +++ b/world/map/npc/009-2/inspector.txt @@ -0,0 +1,127 @@ +// + +009-2.gat,24,99,0 script Inspector#Hurnscald 150,{ + if (Inspector == 0 && BaseLevel >= 30) goto L_NohMask_Start; + if (Inspector == 1) goto L_NohMask_AskVillage; + if (Inspector == 2) goto L_NohMask_OldWoman; + if (Inspector == 3) goto L_NohMask_TheaterMask; + if (Inspector == 4) goto L_NohMask_TravelingTroupe; + if (Inspector == 5) goto L_NohMask_OldMan; + if (Inspector == 6) goto L_NohMask_OldMan_2; + if (Inspector == 7) goto L_NohMask_Alibi; + if (Inspector == 8) goto L_NohMask_Alibi_2; + if (Inspector == 9) goto L_NohMask_Alibi_3; + if (Inspector == 10) goto L_NohMask_Satchel; + if (Inspector == 11) goto L_NohMask_Basement; + if (Inspector == 12) goto L_NohMask_Note; + if (Inspector == 13) goto L_NohMask_TravelingTroupe_2; + if (Inspector == 14) goto L_NohMask_Over; + if (Inspector == 15) goto L_NohMask_End; + mes "[Inspector]"; + mes "\"I'm sorry, but I'm busy looking into this string of robberies.\""; + close; + +L_NohMask_Start: + mes "\"Hmm...what to do.\""; + mes "He looks up and into your face."; + next; + + mes "[Inspector]"; + mes "\"You look capable, will you help me solve these robberies?\""; + next; + + menu + "Yes", L_NohMask_Accept, + "No", -; + close; + +L_NohMask_Accept: + set Inspector, 1; + mes "[Inspector]"; + mes "\"Ok then. I'd like you to ask the villagers about the recent string of robberies.\""; + close; + +L_NohMask_AskVillage: + mes "[Inspector]"; + mes "\"Please continue talking to the villagers.\""; + close; + +L_NohMask_OldWoman: + mes "[Inspector]"; + mes "\"Hm...I don't know if I trust her eyesight or memory. See if someone else knows anything.\""; + close; + +L_NohMask_TheaterMask: + set Inspector, 4; + mes "[Inspector]"; + mes "\"Someone in a theater mask, eh? There was a traveling theater troupe in town recently, but they've moved on to Tulimshar. Please go talk to their leader about this.\""; + close; + +L_NohMask_TravelingTroupe: + mes "[Inspector]"; + mes "\"Please go talk to the leader of the traveling troupe about the theater mask.\""; + close; + +L_NohMask_OldMan: + set Inspector, 6; + mes "[Inspector]"; + mes "\"Hm...an old man? Could you interrogate him for me?\""; + close; + +L_NohMask_OldMan_2: + mes "[Inspector]"; + mes "\"Have you talked with the old man yet?\""; + close; + +L_NohMask_Alibi: + mes "[Inspector]"; + mes "\"Can you verify that with his wife?\""; + close; + +L_NohMask_Alibi_2: + set Inspector, 9; + mes "[Inspector]"; + mes "\"Hm...then it couldn't be him. I'm not sure where to go from here, maybe you can find something else. Try talking to everyone again.\""; + close; + +L_NohMask_Alibi_3: + mes "[Inspector]"; + mes "\"Made any progress yet?\""; + close; + +L_NohMask_Satchel: + mes "[Inspector]"; + mes "\"Then go north and investigate!\""; + close; + +L_NohMask_Basement: + mes "[Inspector]"; + mes "\"Did you look over the basement?\""; + close; + +L_NohMask_Note: + set Inspector, 13; + mes "[Inspector]"; + mes "\"What a strange note. I'll keep track of this, while you return the mask to the troupe.\""; + mes ""; + mes "\"By the way, stay sharp! I may call upon you again.\""; + close; + +L_NohMask_TravelingTroupe_2: + mes "[Inspector]"; + mes "\"Please return the mask to the traveling troupe.\""; + close; + +L_NohMask_Over: + set Inspector, 15; + mes "[Inspector]"; + mes "\"My men have found all of the stolen items. They were all in the mining camp. We still don't know who did it.\""; + mes "[2500 experience points]"; + getexp 2500, 0; + close; + +L_NohMask_End: + mes "[Inspector]"; + mes "\"Remember to stay sharp. I might need your help on another case.\""; + close; +} diff --git a/world/map/npc/009-2/kfahr.txt b/world/map/npc/009-2/kfahr.txt new file mode 100644 index 00000000..b45a1f80 --- /dev/null +++ b/world/map/npc/009-2/kfahr.txt @@ -0,0 +1,1249 @@ +//################################################################################# +//# +//# Kfahr the Desert Warrior. +//# Participates in two quests: +//# - Sole participant in the Bone Knife quest: +//# (10 black scorpion stingers + 10 small mushrooms + level 40) -> Bone Knife +//# - Sole participant in the Golden Stinger subquest +//# (subquest for the Monster Oil subquest, cf. Nicholas' Setzer Quest) +//# (win arm-wrestling + bring 10 snake skins + level 60) -> golden stinger +//# +//# Variables used: @QUEST_Forestbow_state, nibble 2 (knife quest) +//# @QUEST_Forestbow_state, nibble 3 (monster oil subquest) +//# +//################################################################################# + +009-2.gat,67,57,0 script Kfahr 125,{ + + set @QS_NEWBIE, 0; + set @QS_MET_KFAHR, 1; + set @QS_KNOWS_KFAHR, 2; + set @QS_KNIFE_QUEST, 3; + set @QS_KNIFE_QUEST_DONE, 4; + set @QS_LOST_WRESTLING, 5; + set @QS_STINGER_QUEST, 6; + set @QS_STINGER_QUEST_DONE, 7; + + set @BLACK_STINGERS_NR, 10; + set @MUSHROOMS_NR, 10; + set @SNAKE_SKINS_NR, 10; + + set @KNIFE_QUEST_XP, 50000; + set @STINGER_QUEST_XP, 80000; + + set @Q_MASK, NIBBLE_2_MASK; + set @Q_SHIFT, NIBBLE_2_SHIFT; + + set @Q_status, (QUEST_Forestbow_state & @Q_MASK) >> @Q_SHIFT; + + set @Q_needs_stinger, ((QUEST_Forestbow_state & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT) > 1; + + if (@Q_status == @QS_KNIFE_QUEST) + goto L_knife_quest_check; + + if (@Q_status == @QS_STINGER_QUEST) + goto L_stinger_quest_check; + + if (@Q_status > @QS_NEWBIE) + goto L_meet_again; + + mes "[Warrior]"; + mes "You stand before a battle-scarred, darkly tanned warrior, brimming with muscles."; + mes "Just looking at him you smell danger, adventure, excitement..."; + next; + + mes "[Warrior]"; + mes "On second thought, he really could use a bath."; + mes ""; + mes "The warrior turns towards you, grinning broadly."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Why, hello there! Come to visit Kfahr the Warrior to hear of my exploits, have you?\""; + mes "He laughs heartily and gives you a slap on the back."; + mes "\"Can't blame you, can't blame you at all! Here, take a seat!\""; + next; + + set @has_beer, 0; + set @beer_count, 0; + set @last_story, 0; + + set @Q_status, @QS_MET_KFAHR; + callsub L_Update_Var; + + goto L_main_menu; + +L_meet_again: + mes "[Kfahr the Warrior]"; + mes "Kfahr nods and grins as you greet him."; + mes "\"Came back for more stories? Have a seat!\""; + next; + goto L_main_menu; + +L_main_menu: + if (@Q_status >= @QS_KNOWS_KFAHR) + goto L_real_main_menu; + menu "Who are you?", -, + "Goodbye.", L_end; + + mes "[Kfahr the Warrior]"; + mes "Kfahr laughs again."; + mes "\"Surely you jest! You must have heard of Kfahr, Slayer of Toby Rick the Desert Worm, Raider of the Lost Temple, Hero of Tulimshar?\""; + next; + + menu "Uhm...", -, + "Well...", -, + "To be quite honest...", -, + "Excuse me, someone is, er, whispering me...", L_end; + + mes "[Kfahr the Warrior]"; + mes "\"Ah, I knew it! So you have come to hear some tales about the dangers of the desert? You've come to the right man!\""; + next; + + set @Q_status, @QS_KNOWS_KFAHR; + callsub L_Update_Var; + goto L_real_main_menu; + +L_tale_sub: + if (@current_story == @last_story) + goto L_same_story_abort; + if (@has_beer == 0) + goto L_out_of_beer_abort; + set @last_story, @current_story; + set @has_beer, 0; + set @story_abort, 0; + return; + +L_same_story_abort: + mes "[Kfahr the Warrior]"; + mes "Kfahr frowns."; + mes "\"I only just told you that story. Trust me, the others are worth hearing, too!\""; + next; + set @story_abort, 1; + return; + +L_out_of_beer_abort: + mes "[Kfahr the Warrior]"; + if (@beer_count > 4) + mes "\"I think I've talked 'nuff for now... but thanks for lis'ning!\""; + if (@beer_count <= 4) + mes "\"Now that's one of my favorite tales, but my throat is just a little too dry to talk about something like that... could you help me out a little here?\""; + next; + set @story_abort, 1; + return; + +L_real_main_menu: + if (@Q_needs_stinger) + goto L_long_main_menu; + + menu "What's a Desert Worm?", L_tale_desert_worm, + "Desert Temple?", L_tale_desert_temple, + "Hero of Tulimshar?", L_tale_hero_tulimshar, + "Tell me about the desert!", L_tale_desert, + "I want to become as powerful as you!", L_gain_power, + "Here, have a beer!", L_give_beer, + "Goodbye!", L_end; + + close; + +L_long_main_menu: + + menu "What's a Desert Worm?", L_tale_desert_worm, + "Desert Temple?", L_tale_desert_temple, + "Hero of Tulimshar?", L_tale_hero_tulimshar, + "Tell me about the desert!", L_tale_desert, + "I want to become as powerful as you!", L_gain_power, + "Have you fought any Golden Scorpions?", L_golden_scorpion, + "Here, have a beer!", L_give_beer, + "Goodbye!", L_end; + + close; + +L_tale_desert_worm: + set @current_story, 1; + callsub L_tale_sub; + if (@story_abort) goto L_main_menu; + + mes "[Kfahr the Warrior]"; + mes "Kfahr smiles and leans back."; + mes "\"A desert worm is probably the largest creature you will ever see, larger even than most dragons. It spans a good twenty chains (or six box tosses if you're used to the Imperial system) in length, has a thick, rubbery skin, and teeth as long as my legs.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Most are a darkish gray, except for the young ones; those are more purplish, I've been told. Well, anyway, you hardly ever see one of them in their entirety, you only see the head, if they decide to come out and fight-- they tend to burrow under the ground.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"They are terrifying beasts, but lack any intelligent thought whatsoever. They just eat whatever gets in their way. There's nothing out there that can kill one, I think, and they can grow hundreds of years old.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Fortunately, they're kind of rare these days, and mostly roam in the empty deserts far, far south of Tulimshar. They don't like the area too close to the mountains, I think; probably too rocky underground.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr takes a sip from his beer."; + mes "\"Anyway. Desert worms are dangerous, as I said, but there was one particularly terrifying one, called Toby Rick. You must've heard of it-- the greatest and most dangerous worm, scourge of the trade routes. It could smell humans from miles away.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Most desert worms don't smell or see or feel much, you see. They just notice when something's walking nearby, then jump up and swallow it. But Toby Rick was different. He was a terrifying beast, three times as long as a regular worm.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"So to feed itself, it had learned to smell. That's right, the beast had grown nostrils and learned how to use 'em!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"One day I was hired to protect a caravan going north to Tulimshar, with a friend of mine, old Arvek. He only came along for the fun, of course; it's not as if I really need much help defending a caravan... or at least normally it isn't.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Arvek's fun to have about. His manners are as bad as his breath, but he knows how to make a laugh out of everything. One thing you musnt't ever do with him, though, and that is to try his `homebrew'-- some kind of ale he makes out of maggot slime...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr takes another sip of beer, momentarily irritated as if surprised by the taste."; + mes "\"Anyway, This time was different. We were barely three days out in the desert, when we spotted him-- `the Black Worm!', the Caravan Master cried, `Over there; it will kill us all!'\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I had barely enough time to draw out my sword, and the beast was upon us! The caravan people were fleeing for their lives, so it was up to me and Arvek to stop it.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"That was madness, of course; no-one takes on a desert worm, if they have a choice. But we didn't; you see, with most desert worms you can just stand still and it won't notice you and pass by. But not with this one!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr leans forward."; + mes "\"So this humongous beast came roaring towards us, a big back hole where the mouth is, spikey fins sticking out to the side, all ready to swallow us all! My sword felt like a toothpick against that monster!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "He pauses, then leans back a little to take another long sip from his beer."; + mes "\"So it seemed that our last hour was at hand, that we'd be swallowed and never heard from again!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Aha, but Kfahr doesn't die quite so easily. What happened was this: Me and Arvek charged towards that thing, slashing and stabbing, but our blows would just glance off. The beast roared and just slid by us, slapping us to the side with its fins like maggots, knocking us to the ground.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"It bolted up into the air, and tore down on the caravan, swallowing each and everyone in there in a single big gulp!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Then it turned around towards us. Those fins had hit us pretty badly; I had lost my shield and Arvek his backpack. Better for him, I suppose, but I had been rather fond of that shield-- not that it would have helped me much here...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr leans foward again, nearly knocking over his beer."; + mes "\"So the beast charges at the two of us again and we dodge-- Arvek left, me right. The beast is smarter than the average desert worm, though, and had expected that-- so it bends to the side and swallows poor Arvek, hair and hide and all.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr's eyes sparkle with excitement."; + mes "\"It turns around, trying to get me too. I dodge it-- left, then the same again, I dodge it right. But it can't go on like that, the beast isn't tiring, but I am...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"So for one instant I think that this might be it, that I might die out here! A worthy death, I suppose, against the king of desert worms! And just as I think that, I bump against something\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr slaps on the table."; + mes "\"Arvek's backpack! Doesn't sound terribly exciting, of course-- what am I going to do, toss it at the beast and hope that it chokes on it?\""; + next; + + mes "[Kfahr the Warrior]"; + mes "He grins."; + mes "\"But I remember something better. That beast had grown nostrils, right? So it can smell and taste! So I tear open his backpack and pull out that big snakeskin of that disgusting maggot ale of his. It's still filled to the brim.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I quickly put on my gloves again, because I don't want to touch that stuff with my bare skin. The beast is almost upon me, but I have only that one chance-- so I squeeze the skin while sticking my thumb into the opening, until I can see the black of its nostrils...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"...and when I think it's almost too late already, I shoot out that revolting brew at the beast's smelling holes, and I hit! Two at once, and up and sideways it rolls, away from me, and roaring and bellowing in pain!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"It roared for a good five minutes, then convulsed... and first it spat out old Arvek, who was a bit irritated at all that because, as he told me, he had `almost pierced the pancreas', whatever that means...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Next it spat out the caravan, and then some other caravan it had plucked off from elswehere. Somehow, everyone from there was still alive, too.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Then it slid away from us, away to the north, but we could see it getting slower and slower.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Two days later we caught up with it, but it was already dead then and had started to smell. We looked around and inside of it, found treasures and remnants of some less fortunate caravans and split them up appropriately.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"(I never told Arvek that it was his brew that killed it; he'd never have forgiven me.)\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"One of the nomads that had been travelling with the other caravan then told me that you could make special kinds of knives and swords and armor out of desert worm bones.\""; + next; + + menu "Hang on... bones in a... worm?", L_worm_bones, + "That's neat! Do you have any that I could see?", L_worm_see_bones, + "And then?", L_worm_final, + "Zzzzzzzz.......", L_end; + +L_worm_final: + mes "[Kfahr the Warrior]"; + mes "\"Nothing much else happened on that trip. When we arrived in Tulimshar, people at first didn't believe the story, of course, until we showed them the treasures and the bones. Ah, those were wonderful days...\""; + mes "He sighs and leans back, a nostalgic look on his face."; + next; + + goto L_main_menu; + +L_worm_bones: + mes "[Kfahr the Warrior]"; + mes "\"Weren't you listening? A desert worm is not a regular worm; a worm couldn't survive in the desert.\""; + next; + + menu "Do you have any bones that I could see?", L_worm_see_bones, + "Never mind that, what happened then?", L_worm_final, + "Zzzzzzzz.......", L_end; + +L_worm_see_bones: + if (@Q_status == @QS_KNIFE_QUEST) + goto L_boneknife_quest_ip; + + if (@Q_status > @QS_KNIFE_QUEST) + goto L_worm_continue2; + + if (baselevel >= 40) + goto L_boneknife_quest; + + mes "[Kfahr the Warrior]"; + mes "\"Of course!\""; + mes "He pulls out a strangely curved knife with a yellow-whiteish blade that is almost transparent at the edge."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"When hardened properly, this bone knife can last a lifetime! One of the best knives you will find, too.\""; + mes "He puts the knife back into his pocket."; + next; + + goto L_main_menu; + + +L_worm_continue2: + mes "[Kfahr the Warrior]"; + mes "Kfahr laughs."; + mes "\"Just have a look at the knife I gave you if you don't believe me!\""; + next; + + goto L_main_menu; + +L_tale_desert_temple: + set @current_story, 2; + callsub L_tale_sub; + if (@story_abort) goto L_main_menu; + + mes "[Kfahr the Warrior]"; + mes "\"Ah, that...\""; + mes "Kfahr leans back and takes a sip from his beer."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"That was many years ago, when George and I were just kids. George later became a pirate, you see; he always loved hunting for treasure. But back in those days it was all on level ground.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"George had found a treasure map somewhere... and when I say `found', I mean that in a fairly liberal sense; he always loved those maps, almost as much as the excitement of hunting for treasure.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Anyway, that map pointed to a spot in the desert a good day's walk south of Tulimshar. So we grabbed our satchels and coats and packed food and water, and headed there in the evening.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We walked all night. As you know, it's best not to travel during the day if you can avoid it, and we were young and energetic in those days, so that was easily avoided.\""; + mes "He sighs and takes another sip."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Anyway, when the sun rose in the morning, we still hadn't found the place. So we climbed up on the nearest dune and looked all around to find it.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"But there was nothing, nothing at all. We looked and looked-- and suddenly George screamed: While we weren't paying attention to nearby things, scorpions had crept up on us!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"The scorpions had smelled the food we had brought and cut open our satchels, tearing our waterskins and making a mess of our food-- and now that they were done with that, they were coming for us!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We didn't have any suitable weapons, and not much of a choice either, so we made a break for it. We ran into the desert, fast as our legs would carry us, and the scorpions after us.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We very nearly didn't make it. There was nothing around but sand, and we had no water, no food-- at least we'd had our breakfast already-- and the sun kept burning, and burning, and trying to cook us alive.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We had long lost the scorpions, but we were dry like parchment, and exhausted from all the sun and running. So we sat down in the shades of a dune and contemplated our options.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Without water we couldn't last during the day. So our only hope was to find shelter somewhere-- except that the only thing around was sand, and the mid-day sun would rob that of all shelter.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"So we resigned to continuing to search for something, anything-- it was either that, or die of thirst for sure. The only problem was that we were already so thirsty and it was so bright that we couldn't see nor walk straight anymore.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"So we had barely made it to the top of the next dune when George slipped and rolled down the other side. I wanted to catch him, but I was too dizzy myself, and so I rolled after him.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We seemed to roll down for hours, and I kept feeling dizzier and dizzier; I didn't have the strength to stop. When we arrived at the bottom, I just wanted to lie down and let the sun dry me up.\""; + mes "Kfahr takes a deep sip of beer. \"Aaah.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I was being foolish, of course. You should never give up, no matter how hopeless the situation may seem. Anyway, I finally did decide to get up on my knees and look around again...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"...and what I saw right before me, believe it or not, was a giant face of a man, carved into rock-- there, in the middle of the desert, half-sunk, a shattered visage!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I pulled George up-- I didn't have the strength to speak, but walking seemed to work-- and we slowly made our way over to it. We weren't thinking much, just trying to find some shade, so we climbed into that thing's ear.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Inside it felt moist, as if it was a real ear-- not that I've climbed inside a real ear, mind you! But that feeling of cool and dampness and water was like a magical healing potion; we suddenly felt strength in our legs again.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"When we looked aorund, we noticed that there was a passage leading further underground, and long-spent torches on the wall. Fortunately I still had my tinderbox, so I wrapped my shirt around a torch and lighted it.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We climbed down, and soon we heard the dripping of water-- we had found an underground water-hole! More than that, we had found a gigantic underground cave, and, at the end of it, a huge portal.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We first drenched ourselves in water-- somehow managing not to douse the torch-- and drank until we were ready to burst. When we had rested, we went to the portal to have a closer look.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"The portal was made out of bronze, or some similar metal, with images of snakes engraved all over. Curious as we were, we pulled the door open-- it wasn't locked or barred in any way-- and had a look inside.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"The passages in there were cool and dark, with a ceiling high enough to swallow the light of my torch. There were snakes, quite a few of them, but we were both quick-footed and managed to avoid them.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"There were chambers and inscriptions and more torches, but not a living being besides us and the snakes. Hmm. Though I could have sworn that some of the statues there were following us with their eyes...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"All went well, until George stepped into a trap. A piece of ground just caved in, and if I hadn't grabbed his hand at the last second, he would have ended up on some rusty and probably poisoned spikes on the bottom...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"But I moved too fast, and slipped, and let go of the torch to catch myself with the other hand-- and the torch ended up in the bottom of the pit! Well, better the torch than George, I suppose...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Still, we no longer had any light. Being careless, I had gotten my tinderbox wet while we were at the water-hole, so we couldn't make another torch either.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We had the choice between staying by our torch and watching it die, and then follow suit at the hands, or, well, fangs of the snakes, or wandering off in the dark, to be eaten by snakes someplace else.\""; + mes "Kfahr empties his beer, looking a bit disappointed."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Anyway, we took the latter option. We wandered through the dark, somehow barely avoiding the snakes and the traps, running into walls and hitting our heads on archways, until, suddenly, we saw something shining up ahead.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"That thing was on some kind of pedestal, and it looked like a golden tablet of sorts. We clambered towards it-- the only source of light in here, the only thing that could save us-- and hesitated.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Should we just take it? This was clearly some kind of temple, so it might be something sacred. George and I argued about it for a while, until I decided to end the discussion-- so I simply grabbed it: we needed light.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"At that point, a terrible grinding noise started all around us, as the pedestal began to sink into the ground. We had triggered some ancient trap!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Holes on the walls were opening up, and snakes began to gush out-- only now did we realise that we were in a huge, opulent chamber, with gold and gems and images all around! But now it was too late for any looting; we had to run for our lives!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"So we ran from that slithering mass, faster than we ever had! We had no idea where we were going of course, but at least we had light again...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Somehow we got lucky, somehow we escaped. It was evening again when we climbed out of that ear into the desert again, with only our lives and that golden tablet. We only barely made it back to Tulimshar in the morning.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"But we did have the tablet as a proof of what happened.\""; + mes "He grins."; + mes "\"That was my first real adventure, I think. Ah, those were exciting days.\""; + next; + + menu "Wow.", -, + "What happened to the tablet?", L_tale_tablet, + "Did you go there again?", L_tale_temple_again, + "Zzzzzzz.....", L_end; + + goto L_main_menu; + +L_tale_tablet: + + mes "[Kfahr the Warrior]"; + mes "\"Well, we couldn't read it. We later sold it for a good price, to a young travelling archeologist; Doctor Nohlidge or something like that. She said that the engravings described sacrifical practices of an ancient snake cult...\""; + mes "He shrugs."; + next; + goto L_main_menu; + +L_tale_temple_again: + + mes "[Kfahr the Warrior]"; + mes "Kfahr laughs."; + mes "\"Of course we tried to go there again. After seeing all that treasure, George wouldn't give up on it. We tried many times-- as did others, from what I've heard-- but we never found it again.\""; + next; + goto L_main_menu; + +L_tale_hero_tulimshar: + set @current_story, 3; + callsub L_tale_sub; + if (@story_abort) goto L_main_menu; + + mes "[Kfahr the Warrior]"; + mes "\"Yes, Hero of Tulimshar. That was many years"; + mes "ago, but I did save the city of Tulimshar from a deadly drought.\""; + mes "He grins broadly."; + mes "\"And quite a feat that was, let me tell you!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Back in those days, there wasn't much trade with Hurnscald, and Tulimshar was dependent on its own water supply-- critically dependent, even.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Now, one day the water people drew from the wells started smelling. The smell was nauseating, and people who drank from it became violently sick.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"So the entire town was without water, except for the water reserves in the cistern. Someone had to act quickly-- and of course that someone was me.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"With nothing more than a torch, some light armor and a sword, I climbed down one of the wells. It was a long climb; the wells go down fairly deep.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I noticed that there were some holes in the walls of the wells, with hollow spaces on the sides... Hmm, that reminds me that I still have to check whether the rumors of a labyrinth underneath Tulimshar are true.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Anyway, it took me a long time to get down, and every minute the stench was getting worse-- something really bad was down there. I had to stop and tie a wet piece of cloth over my mouth so that I wouldn't inhale all of that nasty stuff.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"My torch was in an even poorer shape-- whatever was making that smell had killed the flame, so I soon had to rely on the light from above to see anything.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Finally I arrived at the water level. All Tulimshar wells dip into the same underground lake, which is on the side of a huge underground cavern. And in the midst of that cavern lay-- hardly visible through the greenish mist coming from it-- a Stinkewyrm!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Stinkewyrms are smaller cousins of dragons, but just as dangerous. They have a green, sticky skin, and, well, they stink. A lot. This one was particularly bad-- it had filled up the entire cave with stinkiness!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I climbed down and swam to the shore. The stench was terrible; I had to hold my breath to get closer to the monster. There it was, lying on the ground, snoring, poisoning all our water! So I tried to wake it up to scare it away.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I kicked it. I yelled at it. (Bad mistake, I got some of that stinky stuff in my lungs.) I poked at it with my sword. I even tried to poke it in the eyes, but I couldn't get that close to its mouth-- that was where most of the smell was coming from.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"After a few attempts I couldn't take it anymore, so I had myself be pulled up again. It took me a while to recover and to tell the tale. We talked about what could be done, but no-one had an idea.\""; + mes "Kfahr takes a deep sip from his beer."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Finally, I came up with something. Stinkewyrms love that terrible stench of theirs, so what should be their natural enemy? Why, soap, of course!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"We couldn't just dump all the soap into the underground lake, of course; the water would be undrinkable again. So we collected some of the soap, and I climbed down again with it.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Having arrived at the bottom, I cut off the biggest of the water buckets and filled it with water-- and that was a really big one, I could hardly carry it when it was full. Then I dissolved most the soap, and poured that onto the Stinkewyrm's head.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr laughs."; + mes "\"Ah, that caught its attention! You should have seen that dragon roar, as it jumped to its feet and tried to find out who had soaped it! I rushed back to the water and made another bucket of soap water.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"But it had noticed me! And as soon as it had realized where I was, it came after me. Then it stopped, towering right before me, its stench nearly killing me, and grinned that broad, crooked-teeth dragon smile of its kind.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Then it took a deep breath-- and I realised that that was probably 'it' for me; Stinkewyrms can breathe fire like real dragons, and I didn't have the time to run back to the water.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"But when it breathed out, only a tiny little flame came out-- and a lot of terrible smell that nearly knocked me off my feet.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"For you see, it had generated so much of the deadly smell around itself that even its own fire breath couldn't survive!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"So it stared at me, mouth wide agape-- the perfect opening!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I stormed at it and before it could even blink, it had a huge load of bubbly soap water down its throat.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"You should have heard the coughing and shaking! I swear, I thought the roof would collapse as it was jumping and choking...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Bubbles were coming out of its mouth, its nostrils, even its ears! The poor wyrm must have never felt so clean in its life!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"I was out of soap, but the beast didn't know that-- so I quickly grabbed another bucket and charged it again.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"And it worked! Seeing me like this again, it ran, squealing, back into the underground caves from where it must have come.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr roars with laughter and slaps his hands on the table."; + mes "\"So we defeated it with hygiene! Ah, that was wonderful. After a day, the stench had worn off enough that we could drink the water again, and a week later it was almost completely gone. And of course I was the hero of the day.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr downs the rest of his beer."; + mes "\"And from that day on they called me the `Hero of Tulimshar'.\""; + next; + + goto L_main_menu; + +L_tale_desert: + set @current_story, 4; + callsub L_tale_sub; + if (@story_abort) goto L_main_menu; + + mes "[Kfahr the Warrior]"; + mes "Kfahr leans back, trying to find the right words to describe the desert."; + mes "\"The desert... a cold and lonely place at night, and a hot and lonely place during the day.\""; + mes "For someone who apparently spent most of his life in the desert, his insights sometimes seem less than profound."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"The desert is a living hell during some times of the year. Filled with black scorpions and snakes, except for the shadier areas, and mountain snakes if you go further east.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"South of Tulimshar is a fairly protected region; the nomads keep the snakes out of there and you'll find only relatively harmless monsters. But go west from there, to the beach, and it's scorpions and snakes...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"...and east of there you find the old Hatmaker cave, now filled to the brim with snakes! Rumors have it that this was once an oasis, in centuries long gone by, but as far as I'm concerned that pit is just a dump that you best avoid.\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Go further to the east and you'll find ol' Pachua up on the mountain. He seems to have some kind of power over the mountain snakes there; they never attack him. I think he's a bit creepy, personally...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "\"...but if he offers you some of his tobacco, then by all means give it a try! That stuff is amazing.\""; + mes "He laughs, then begins to cough."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Not terribly healthy, though, I s'pose...\""; + next; + + goto L_main_menu; + +L_gain_power: + if ((@beer_count - @has_beer) < 1) + goto L_listen_to_a_story_first; + + if (@Q_status < @QS_KNIFE_QUEST) + goto L_boneknife_quest; + + mes "[Kfahr the Warrior]"; + mes "\"Yeees, yes... doesn't everyone?\""; + mes "He laughs briefly."; + mes "\"Don't worry-- you can't become as powerful as I, of course, but if you keep practicing, you can get pretty damn close! Just make sure to pick your opponents carefully, and know when to run to live another day!\""; + next; + + goto L_main_menu; + +L_listen_to_a_story_first: + mes "[Kfahr the Warrior]"; + mes "\"That's the spirit! Perhaps you better listen to one of my tales, then!\""; + next; + goto L_main_menu; + +L_boneknife_quest: + if (@Q_status == @QS_KNIFE_QUEST) + goto L_boneknife_quest_ip; + + if (@Q_status > @QS_KNIFE_QUEST) + goto L_boneknife_quest_completed; + + if (baselevel < 40) + goto L_boneknife_quest_tooweak; + + mes "[Kfahr the Warrior]"; + mes "Kfahr stares at you for a moment, then nods."; + mes "\"You seem reasonably skilled. I think I may have something that I no longer need, but I don't want to give it to just anyone...\""; + mes "He hesitates, obviously trying to make up his mind about something, then continues."; + + set @Q_status, @QS_KNIFE_QUEST; + callsub L_Update_Var; + next; + +L_boneknife_quest_ip: + mes "[Kfahr the Warrior]"; + mes "\"Bring me " + @BLACK_STINGERS_NR + " black scorpion stingers and " + @MUSHROOMS_NR + " small mushrooms to prove that you are a competent warrior, and I'll see if I have something for you.\""; + mes "He grins."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"But while you are here... perhaps you would like to listen to another story?\""; + next; + + goto L_main_menu; + +L_boneknife_quest_completed: + mes "[Kfahr the Warrior]"; + mes "\"I really don't have anything else I'd want to give away to make you stronger. Look around a bit yourself! You won't become a hero if you keep begging for help!\""; + next; + goto L_main_menu; + +L_boneknife_quest_tooweak: + mes "[Kfahr the Warrior]"; + mes "\"You know, little one, if you keep practicing a little and come back once you're a bit stronger, I might have something for you...\""; + mes "He winks."; + next; + goto L_main_menu; + + +L_knife_quest_check: + mes "[Kfahr the Warrior]"; + mes "Kfahr eyes you with unconcealed amusement."; + mes "\"Welcome back! Did you bring me the things I asked for?\""; + next; + + menu "Yes, here they are!", L_knife_quest_completecheck, + "Er, what were those things again?", L_boneknife_quest_ip, + "No, sorry, I didn't have the time.", L_main_menu, + "I forgot! Let me get them right now.", L_end; + close; + +L_knife_quest_completecheck: + if (countitem("BlackScorpionStinger") < @BLACK_STINGERS_NR) + goto L_knife_quest_missing_stingers; + + if (countitem("SmallMushroom") < @MUSHROOMS_NR) + goto L_knife_quest_missing_mushrooms; + + + mes "[Kfahr the Warrior]"; + mes "Kfahr is delighted."; + mes "\"Well done, well done! Now that's what I call Warrior spirit!\""; + mes "He laughs, then suddenly stops, turning to you with suspicion in his eyes."; + mes "\"You DID get those yourself, didn't you? Not buy them or somesuch...?\""; + next; + + mes "[Kfahr the Warrior]"; + mes "Before you can answer, he laughs and slaps you on the back again."; + mes "\"Ah, what am I thinking! Too many years in the desert make you a little suspicious of everyone and everything! Naah, I believe you.\""; + mes "He pulls a strangely curved knife out of a side pocket and holds it up to the light. The blade is partly transparent, and looks quite sharp."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"It's a bone knife, carved out of the umplex bone of a desert worm... you can probably guess which one.\""; + mes "He grins broadly again, weighing the weapon."; + mes "\"It's a little heavy, but one of the best knives you can get. Certainly beats a short sword any time of day.\""; + mes "I had the nomads make me a few of them, and I hardly use them nowadays, so I think I can part with this one."; + next; + + if (countitem("BlackScorpionStinger") < @BLACK_STINGERS_NR) + goto L_knife_quest_missing_stingers_2; + + if (countitem("SmallMushroom") < @MUSHROOMS_NR) + goto L_knife_quest_missing_mushrooms_2; + getinventorylist; + if (@inventorylist_count == 100) goto L_Knife_TooMany; + + mes "[Kfahr the Warrior]"; + mes "He hands you the knife."; + mes "\"Oh, and I think I'll keep those in return; I know someone who will trade them for antidote potions.\""; + mes "He pockets the stingers and mushrooms."; + mes "[" + @KNIFE_QUEST_XP + " experience points]"; + + set @Q_status, @QS_KNIFE_QUEST_DONE; + callsub L_Update_Var; + + delitem "BlackScorpionStinger", @BLACK_STINGERS_NR; + delitem "SmallMushroom", @MUSHROOMS_NR; + getexp @KNIFE_QUEST_XP, 0; + getitem "BoneKnife", 1; + next; + + goto L_main_menu; + +L_Knife_TooMany: + mes "[Kfahr the Warrior]"; + mes "\"You don't have room for this. Come back when you do.\""; + close; + +L_knife_quest_missing_stingers: + mes "[Kfahr the Warrior]"; + mes "\"No, no... I said " + @BLACK_STINGERS_NR + " black scorpion stingers."; + if (countitem("BlackScorpionStinger")) + mes "You will need " + (@BLACK_STINGERS_NR - (countitem ("BlackScorpionStinger"))) + " more of those.\""; + if (countitem("BlackScorpionStinger") == 0) + mes "You didn't bring even a single one!\""; + close; + +L_knife_quest_missing_stingers_2: + mes "[Kfahr the Warrior]"; + mes "\"You just had " + @BLACK_STINGERS_NR + " black scorpion stingers. What happened to them?"; + if (countitem("BlackScorpionStinger")) + mes "You will need " + (@BLACK_STINGERS_NR - (countitem ("BlackScorpionStinger"))) + " more of those.\""; + if (countitem("BlackScorpionStinger") == 0) + mes "You didn't bring even a single one!\""; + close; + +L_knife_quest_missing_mushrooms: + mes "[Kfahr the Warrior]"; + mes "\"No, no... I said " + @MUSHROOMS_NR + " small mushrooms."; + if (countitem("SmallMushroom")) + mes "You will need " + (@MUSHROOMS_NR - (countitem ("SmallMushroom"))) + " more of those.\""; + if (countitem("SmallMushroom") == 0) + mes "You didn't bring me even a single little mushroom!\""; + close; + +L_knife_quest_missing_mushrooms_2: + mes "[Kfahr the Warrior]"; + mes "\"You just had " + @MUSHROOMS_NR + " small mushrooms. What happened to them?"; + if (countitem("SmallMushroom")) + mes "You will need " + (@MUSHROOMS_NR - (countitem ("SmallMushroom"))) + " more of those.\""; + if (countitem("SmallMushroom") == 0) + mes "You didn't bring me even a single little mushroom!\""; + close; + +L_stinger_quest_check: + mes "[Kfahr the Warrior]"; + mes "Kfahr grins at you."; + mes "\"Welcome, welcome! Did you bring me my snake skins?\""; + next; + + menu "Yes, here they are!", L_snakeskins_completecheck, + "No, sorry, I didn't have the time.", L_main_menu, + "I forgot! Let me get them right now.", L_end; + close; + + +L_snakeskins_completecheck: + if (countitem("SnakeSkin") < @SNAKE_SKINS_NR) + goto L_snakeskins_missing; + getinventorylist; + if (@inventorylist_count == 100) goto L_SnakeSkins_TooMany; + + delitem "SnakeSkin", @SNAKE_SKINS_NR; + getitem "GoldenScorpionStinger", 1; + + set @Q_status, @QS_STINGER_QUEST_DONE; + callsub L_Update_Var; + + getexp @STINGER_QUEST_XP, 0; + + mes "[Kfahr the Warrior]"; + mes "Kfahr takes the skins and pulls a golden scorpion stinger out of his pocket."; + mes "\"Well, you've earned it. But be careful-- the poison in there is still lethal, after all those years.\""; + mes "He hands you the scorpion stinger."; + mes "[" + @STINGER_QUEST_XP + " experience points]"; + next; + goto L_main_menu; + +L_snakeskins_missing: + mes "[Kfahr the Warrior]"; + mes "\"No, no... I said " + @SNAKE_SKINS_NR + " snake skins."; + if (countitem("SnakeSkin")) + mes "You will need " + (@SNAKE_SKINS_NR - (countitem ("SnakeSkin"))) + " more of those.\""; + if (countitem("SnakeSkin") == 0) + mes "You didn't bring even a single skin!\""; + close; + +L_SnakeSkins_TooMany: + mes "[Kfahr the Warrior]"; + mes "\"You don't have room for this. Come back when you do.\""; + close; + +L_give_beer: + if (countitem("Beer") < 1) + goto L_player_out_of_beer; + + if (@has_beer) + goto L_enough_beer_for_now; + + if @beer_count > 4 + goto L_too_much_beer; + + setarray @beermessages$, + "Ah yes... a warrior's drink!", + "Generous, generous! I like that!", + "Hahah! That's just what I needed!", + "I love this town! Hurnscaldian hospitality! Mrahahahah!", + "A'ight, one more can't hurt, eh?"; + + set @mesg$, @beermessages$[@beer_count]; + + delitem "Beer", 1; + + set @has_beer, 1; + set @beer_count, @beer_count + 1; + + mes "[Kfahr the Warrior]"; + mes "Kfahr is visibly delighted."; + mes "\"" + @mesg$ + "\""; + mes "He takes a deep sip."; + mes "\"Aaah, magnificent!\""; + + if (@beer_count > 4) + mes "Kfahr seems quite relaxed now."; + + next; + + goto L_main_menu; + +L_enough_beer_for_now: + mes "[Kfahr the Warrior]"; + mes "\"Generous, generous! But I still have plenty in here!\""; + mes "He laughs and takes a sip from the beer you gave him earlier."; + next; + goto L_main_menu; + +L_too_much_beer: + mes "[Kfahr the Warrior]"; + mes "Kfahr leans back and sighs heavily."; + mes "\"Very, very generous... bu' I think I'm fine for now.\""; + mes "He suppresses a burp."; + next; + goto L_main_menu; + +L_player_out_of_beer: + mes "[Kfahr the Warrior]"; + mes "Kfahr stares at you, then begins to laugh."; + mes "\"Mrahahahahaha! Here's the beer! Right, right! Naah, I get it! Save your gold for whatever you need it for! But if you have some spare and want to share a beer, you know where to find me!\""; + next; + goto L_main_menu; + +L_golden_scorpion: + if (@Q_status > @QS_STINGER_QUEST) + goto L_golden_scorpion_over_ask; + + if (@Q_status == @QS_STINGER_QUEST) + goto L_golden_scorpion_ask_again; + + if (@Q_status == @QS_LOST_WRESTLING) + goto L_golden_scorpion_wrestle_again; + + mes "[Kfahr the Warrior]"; + mes "He grins."; + mes "\"Fought any? I single-handedly raided a nest of those beasts! Ah, but golden scorpions are almost unheard of in these parts. Why do you ask?\""; + next; + + menu "Never mind, I was just curious.", L_main_menu, + "I need a golden scorpion stinger.", -; + + mes "[Kfahr the Warrior]"; + mes "\"A golden scorpion stinger? Those are rare and valuable, I hope that you know that!\""; + + if (baselevel < 60) + goto L_too_lowlevel_for_stinger; + + if (@Q_status < @QS_KNIFE_QUEST) + goto L_golden_requires_knife_quest; + + if (@Q_status < @QS_KNIFE_QUEST_DONE) + goto L_golden_requires_knife_quest_done; + + mes "\"Still, you are a warrior of repute. I'll consider giving it to you...\""; + next; + + mes "[Kfahr the Warrior]"; + mes "A mischievous sparkle lightens up in his eyes."; + mes "\"...if you arm-wrestle me for it!\""; + next; + +L_golden_scorpion_wrestle_intro: + + menu "Never!", L_main_menu, + "Wait... what?", L_wrestle_explain, + "Bring it on!", L_golden_scorpion_wrestle; + close; + +L_golden_requires_knife_quest_done: + mes "He hesitates."; + mes "\"But no, this is too valuable. Perhaps if you finish that other quest I gave you...?\"."; + next; + goto L_main_menu; + +L_golden_requires_knife_quest: + mes "He hesitates."; + mes "\"But no, this is too valuable. I think I should have you prove your worthiness with another quest first...\""; + next; + goto L_boneknife_quest; + +L_wrestle_explain: + mes "[Kfahr the Warrior]"; + mes "\"Arm wrestling! Arm against arm! And whoever is stronger wins! If you manage to defeat me, I'll give you a little quest for the stinger. How about it?\""; + next; + goto L_golden_scorpion_wrestle_intro; + +L_too_lowlevel_for_stinger: + mes "\"Well, I have one, but I can't just give it to anyone. Maybe if you train a little and become a worthy warrior I will consider giving it away...\""; + next; + goto L_main_menu; + +L_golden_scorpion_over_ask: + mes "[Kfahr the Warrior]"; + mes "\"Is this about the stingers again? I already gave you a golden stinger, I'm not going to part with any more.\""; + next; + goto L_main_menu; + +L_golden_scorpion_ask_again: + mes "[Kfahr the Warrior]"; + mes "\"This is about the stinger again, right? Well, just bring me " + @SNAKE_SKINS_NR + " snake skins, and you can have one.\""; + next; + goto L_main_menu; + +L_golden_scorpion_wrestle_again: + mes "[Kfahr the Warrior]"; + mes "\"This is about the stinger again, eh? So you want to give it another try?\""; + mes "He grins broadly."; + next; + goto L_golden_scorpion_wrestle; + +L_golden_scorpion_wrestle: + mes "[Kfahr the Warrior]"; + mes "You sit down. Both of you place your arms on the table, on opposing sides, and grab each other's hands."; + next; + + set @KFAHR_STR, 70 + @beer_count * 6; + set @KFAHR_AGI, 60 - @beer_count * 5; + set @kfahr_stamina, 120; + + set @PC_STR, readparam(bStr); + set @PC_AGI, readparam(bAgi); + set @PC_MAX_STAMINA, readparam(bVit) + 20; + set @pc_stamina, @PC_MAX_STAMINA; + + setarray @positions$, + "Kfahr's hand is almost on the table.", + "Kfahr's hand is pushed back.", + "Kfahr and your hands are centered.", + "Your hand is pushed back.", + "Your hand is almost on the table."; + + set @position, 2; + set @first_round, 1; + +L_wrestle_loop: + mes "[Arm-wrestling with Kfahr]"; + + mes @positions$[@position]; + + if ((@PC_STAMINA * 2 <= @PC_MAX_STAMINA) && (@PC_STAMINA * 4 > @PC_MAX_STAMINA)) + mes "You feel a little exhausted."; + if (@PC_STAMINA * 4 <= @PC_MAX_STAMINA) + mes "You feel very exhausted."; + next; + + menu "Push!", L_wrestle_push, + "Hold!", L_wrestle_hold, + "Slam!", L_wrestle_slam, + "Consider your options", L_wrestle_info; + close; + +L_wrestle_info: + mes "[Arm-wrestling with Kfahr]"; + mes "Kfahr is a strong arm-wrestling opponent. Winning against him won't be easy."; + mes "Each round you have to choose an action; what you choose determines both your chances of moving each other's arms and how much weaker you get."; + next; + mes "[Arm-wrestling with Kfahr]"; + mes "If you PUSH, you may be able to push him back, but if you fail, you will lose more stamina than if you had succeeded."; + next; + mes "[Arm-wrestling with Kfahr]"; + mes "If you HOLD, you lose little stamina and may be able to hold him and drain his stength, but you cannot win just by holding."; + next; + mes "[Arm-wrestling with Kfahr]"; + mes "If you SLAM, you try to move against him quickly-- if you are successful, you may push him back quite a bit, but losing this will drain you badly."; + next; + goto L_wrestle_loop; + + +L_wrestle_push: + set @kfahr_def, @KFAHR_STR; + set @attack, @PC_STR; + set @cost_factor, 2; + callsub L_wrestle_attack; + if (@result < -1) + set @result, -1; // can't push back further than one + goto L_wrestle_next; + +L_wrestle_hold: + set @kfahr_def, @KFAHR_STR; + set @attack, @PC_STR; + set @cost_factor, 1; + callsub L_wrestle_attack; + if (@result < 0) + set @result, 0; // hold only + goto L_wrestle_next; + +L_wrestle_slam: + if (@beer_count == 5 && @first_round) goto L_quick_slam; + set @kfahr_def, @KFAHR_AGI; + set @attack, @PC_AGI; + set @cost_factor, 4; + callsub L_wrestle_attack; + goto L_wrestle_next; + + +L_wrestle_attack: + set @kfahr_stamina_bonus, @kfahr_stamina; + set @pc_stamina_bonus, @kfahr_stamina; + + if (@kfahr_stamina_bonus > 40) + set @kfahr_stamina_bonus, 40; + + if (@pc_stamina_bonus > 40) + set @pc_stamina_bonus, 40; + + set @score, @kfahr_def + @kfahr_stamina_bonus - @attack - @pc_stamina_bonus + rand(20) - rand(20); + + set @result, @score / 10; + + if (@result > 1) + set @result, 1; + + if (@result > 0) set @kfahr_stamina, @kfahr_stamina - 12; + if (@result == 0) set @kfahr_stamina, @kfahr_stamina - 16; + if (@result < 0) set @kfahr_stamina, @kfahr_stamina - 8; + + if (@result < 0) set @pc_stamina, @pc_stamina - (6 * @cost_factor); + if (@result == 0) set @pc_stamina, @pc_stamina - (8 * @cost_factor); + if (@result > 0) set @pc_stamina, @pc_stamina - (4 * @cost_factor); + + if (@kfahr_stamina < 0) + set @kfahr_stamina, 0; + + if (@kfahr_stamina < 0) + set @pc_stamina, 0; + + return; + +L_wrestle_next: + set @first_round, 0; + + mes "[Arm-wrestling with Kfahr]"; + if (@result < 0) mes "You manage to push him back!"; + if (@result == 0) mes "You hold your position!"; + if (@result > 0) mes "Kfahr pushes you back!"; + next; + + set @position, @position + @result; + if (@position < 0) goto L_wrestle_win; + if (@position > 4) goto L_wrestle_lose; + + goto L_wrestle_loop; + +L_wrestle_lose: + mes "[Arm-wrestling with Kfahr]"; + mes "Kfahr slams your hand on the table."; + next; + + mes "[Kfahr the Warrior]"; + mes "\"Don't worry! It was a good attempt-- but beating Kfahr is not quite so easy!\""; + mes "He laughs and slaps you on the shoulder."; + mes "\"But come back any time you want to try again!\""; + next; + + set @Q_status, @QS_LOST_WRESTLING; + callsub L_Update_Var; + + goto L_main_menu; + +L_quick_slam: + mes "[Arm-wrestling with Kfahr]"; + mes "Your hands have barely touched as you push against him with all your might. His reactions slowed by the beer, Kfahr doesn't stand a chance."; + next; + goto L_wrestle_win; + +L_wrestle_win: + mes "[Arm-wrestling with Kfahr]"; + mes "You slam Kfahr's hand on the table."; + next; + + mes "[Kfahr the Warrior]"; + mes "Kfahr stares first at the hand, then at you, incredulously."; + mes "Then he begins to roar with laughter, slapping you on the shoulder."; + mes "\"Excellent, excellent! Caught me in a weak moment there, did ya!\""; + next; + + mes "[Kfahr the Warrior]"; + mes "After calming down, Kfahr outlines your quest."; + mes "\"As I promised, I will give you the stinger if you do something for me. Get me " + @SNAKE_SKINS_NR + " snake skins, and I'll let you have it.\""; + next; + + set @Q_status, @QS_STINGER_QUEST; + callsub L_Update_Var; + + goto L_main_menu; + +L_end: + close; + +L_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/009-2/lena.txt b/world/map/npc/009-2/lena.txt new file mode 100644 index 00000000..23f0e165 --- /dev/null +++ b/world/map/npc/009-2/lena.txt @@ -0,0 +1,107 @@ +// Quest for Fairy Hat and Forest Armor + +009-2.gat,146,43,0 script Lena 182,{ + + if (TMW_Quest >= 46) goto L_Lena_Done; + if (TMW_Quest == 45) goto L_Lena_Success; + if (TMW_Quest == 44) goto L_Lena_Bandit_Leader_Fail; + if (TMW_Quest == 43) goto L_Lena_Bandit_Leader_Fail; + if (TMW_Quest == 42) goto L_Lena_Bandit_Leader; + if (TMW_Quest == 41) goto L_Lena_Fairy_Hat; + if (TMW_Quest == 40) && (baselevel >= 30) goto L_Lena_Start; + + mes "[Lena]"; + mes "\"I got ambushed by a group of bandits and one of them stabbed me pretty good. Hopefully I heal up soon so I can fight this menace.\""; + next; + mes "\"Ah, I wish my dear friend Nickos could be here. He's one of the guards in Tulimshar and he'd know how to deal with those outlaws!\""; + close; + +L_Lena_Start: + mes "[Lena]"; + mes "\"While wandering through the forest, I was ambushed by bandits. Though I got them all, one of them stabbed me pretty good. I'm still healing from that encounter. I'm worried that the bandit threat may spread.\""; + menu + "Don't worry, I can take out some of these scumbags.", L_Lena_Approves, + "I think I left my courage in another pair of pants. See you later!", L_Lena_No_Fan; + close; + +L_Lena_Approves: + set TMW_Quest, 41; + mes "[Lena]"; + mes "\"You look like you can handle yourself in a fight. If you can take on this scourge I'll reward you with a hat like mine. In order to prove your mettle, bring me 10 Bandit Hoods so I know they've met their match.\""; + areamonster "008-1.gat",25,60,40,65,"Bandit",1064,3, "::"; + areamonster "011-1.gat",35,40,65,60,"Bandit",1064,3, "::"; + close; + +L_Lena_No_Fan: + mes "[Lena]"; + mes "\"What will Hurnscald do if these bandits overrun the town? I hope you reconsider.\""; + close; + +L_Lena_Fairy_Hat: + if (countitem("BanditHood") < 10) goto L_Lena_NotEnough; + getinventorylist; + if (@inventorylist_count - (countitem("BanditHood")== 10) > 99) goto L_TooMany; + set TMW_Quest, 42; + delitem "BanditHood", 10; + getitem "FairyHat", 1; + mes "[Lena]"; + mes "\"Ah, you've brought me the Bandit Hoods. As promised, here is a hat like mine.\""; + next; + mes "\"Unfortunately, I feel this bandit threat may have grown. Perhaps they are being lead? I noticed many of them seem to hang around a cave just west of Hurnscald. If you could defeat their leader I know they will become less of a threat to Hurnscald. I'll reward you with armor like mine if you do. Sound like something you could do?\""; + menu + "Consider it done!", L_Lena_Bandit_Leader_Yes, + "Woah there, that sounds a bit harder than what I can succeed at.", L_Lena_NoWay; + close; + +L_Lena_NotEnough: + mes "[Lena]"; + mes "\"You don't have enough Bandit Hoods to prove you are taking care of this threat. Please come back with 10 Bandit Hoods to show you are taking care of these bandits.\""; + close; + +L_Lena_Bandit_Leader: + mes "[Lena]"; + mes "\"I feel this bandit threat may have grown. Perhaps they are being lead? I noticed many of them seem to hang around a cave just west of Hurnscald. If you could defeat their leader I know they will become less of a threat to Hurnscald. I'll reward you with armor like mine if you do. Sound like something you could do?\""; + menu + "Consider it done!", L_Lena_Bandit_Leader_Yes, + "Woah there, that sounds a bit harder than what I can succeed at.", L_Lena_NoWay; + close; + +L_Lena_Bandit_Leader_Yes: + set TMW_Quest, 43; + areamonster "008-1.gat",25,60,40,65,"Bandit",1064,3, "::"; + areamonster "011-1.gat",35,40,65,60,"Bandit",1064,3, "::"; + mes "[Lena]"; + mes "\"You have a brave heart. Though I know you can succeed on your own, I recommend finding others to help you defeat the bandit leader. I believe he could pose a significant threat to solitary individuals seeking to challenge him. Good luck!\""; + close; + +L_Lena_NoWay: + mes "[Lena]"; + mes "\"That is too bad. Feel free to return at any time. This bandit threat needs to be pushed back.\""; + close; + +L_Lena_Bandit_Leader_Fail: + set TMW_Quest, 43; + mes "[Lena]"; + mes "\"You haven't killed the bandit leader yet. This is a big problem. Please be careful.\""; + close; + +L_Lena_Success: + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + set TMW_Quest, 46; + getitem "ForestArmor", 1; + mes "[Lena]"; + mes "\"Excellent! You killed the bandit leader. Here is the armor as I promised you. Safe journeys!\""; + close; + +L_Lena_Done: + mes "[Lena]"; + mes "\"Thank you for all your help. With your efforts, we can only hope this scourge doesn't see a resurgence.\""; + close; + +L_TooMany: + mes "[Lena]"; + mes "\"You have too many items in your inventory. Please get rid of something so I can reward you.\""; + close; + +} diff --git a/world/map/npc/009-2/mapflags.txt b/world/map/npc/009-2/mapflags.txt new file mode 100644 index 00000000..84ee64b6 --- /dev/null +++ b/world/map/npc/009-2/mapflags.txt @@ -0,0 +1,2 @@ +009-2.gat mapflag no_player_drops +009-2.gat mapflag town diff --git a/world/map/npc/009-2/misc.txt b/world/map/npc/009-2/misc.txt new file mode 100644 index 00000000..b969af7d --- /dev/null +++ b/world/map/npc/009-2/misc.txt @@ -0,0 +1,61 @@ +//Note in bar + +009-2.gat,54,49,0 script Note 127, { + mes "[Note]"; + mes "\"We refuse service to anyone who:\""; + mes "\"-Has a bubblehead\""; + mes "\"-Is not properly shaded\""; + mes "\"-Can't walk without stopping after every step\""; + close; + // In case you don't get the joke - it's a parody on Illutia. +} + +//Bookshelf +009-2.gat,109,44,0 script #Book 127, { + if (getskilllv(SKILL_MAGIC)) + goto L_magic; + mes "[Bookshelf]"; + mes "This bookshelf seems to have a selection of diaries and manuscripts, though you can't make out anything that strikes you as being particularly interesting."; + close; + +L_magic: + mes "[Bookshelf]"; + mes "Browsing through the books, you come across a manuscript entitled 'Notes of Potaffe, On Transmutation'."; + next; + + if (getskilllv(SKILL_MAGIC_TRANSMUTE) < 2) + goto L_magic_boring; + + mes "[Bookshelf]"; + mes "Leafing through the manuscript, you find that you can read little of the tiny handwriting, and understand only a fraction of what is said."; + next; + + mes "[Bookshelf]"; + mes "After a while, you stumble across a section that appears to be in more careful handwriting. The author notes that he (or she?) is describing a completely new transmutation there."; + next; + + mes "[Bookshelf]"; + mes "Excitedly, you turn the page-- only to find that it is stuck to the next, and won't get unstuck!"; + next; + + mes "[Bookshelf]"; + mes "The page after that is more scribbly again, with many crossed-out words and sections, and side remarks such as 'It almost worked' or 'Worked fine yesterday.'"; + next; + + mes "[Bookshelf]"; + mes "The last word on that page is '" + getspellinvocation("make-iron-powder") + "', underlined twice, with a comment saying 'finally got it right'."; + next; + + mes "[Bookshelf]"; + mes "Unfortunately, you can't make out from the text what the transmutation is for or whether it requires any material components..."; + next; + + mes "[Bookshelf]"; + mes "You can't make out anything else of value, so you place the manuscript back in the bookshelf."; + close; + +L_magic_boring: + mes "[Bookshelf]"; + mes "Leafing through the manuscript, you find that you understand too little of what is said there to make any sense of it."; + close; +} diff --git a/world/map/npc/009-2/nicholas.txt b/world/map/npc/009-2/nicholas.txt new file mode 100644 index 00000000..9ce99879 --- /dev/null +++ b/world/map/npc/009-2/nicholas.txt @@ -0,0 +1,400 @@ +//################################################################################# +//# +//# Nicholas the Smith. +//# Participates in iron ore smithery and the following quests: +//# - Together with Pachua: Iron Shield quest (repeatable) +//# (6 iron ingots, 2 infantry helmets, 20000 GP, leather patch) -> iron shield +//# - Primary participant in the Setzer quest (monster oil/golden stinger subquests) +//# +//# Variables used: @QUEST_Forestbow_state, nibble 3 (setzer quest) +//# @QUEST_Forestbow_state, nibble 4 (iron shield quest) +//# +//################################################################################# + +009-2.gat,185,55,0 script Nicholas 135,{ + + set @SETZER_XP, 100000; + set @SHIELD_XP, 20000; + + set @SHIELD_INITIAL, 0; + set @SHIELD_KNOWS_PATCH, 1; // knows that a leather patch is needed + set @SHIELD_COMPLETED, 2; // shield completed once + + set @SETZER_INITIAL, 0; + set @SETZER_KNOWS_OIL, 1; + set @SETZER_KNOWS_STINGER, 2; + set @SETZER_FLAG_MADE_OIL, 4; + set @SETZER_FLAG_MADE_SETZER, 8; + + set @Q_SETZER_MASK, NIBBLE_3_MASK; + set @Q_SETZER_SHIFT, NIBBLE_3_SHIFT; + + set @Q_SHIELD_MASK, NIBBLE_4_MASK; + set @Q_SHIELD_SHIFT, NIBBLE_4_SHIFT; + + set @Q_SETZER_status, (QUEST_Forestbow_state & @Q_SETZER_MASK) >> @Q_SETZER_SHIFT; + set @Q_SHIELD_status, (QUEST_Forestbow_state & @Q_SHIELD_MASK) >> @Q_SHIELD_SHIFT; + + mes "[Nicholas]"; + mes "\"Hello, there! I'm an expert blacksmith. If you get me some Coal and Iron Ingots, I could make you a very valuable shield or helmet.\""; + next; + menu + "I have Iron Ingots!", L_Check, + "Where can I get Coal and Iron Ingots?", L_Info, + "I'm okay, thanks.", L_Pass; + +L_Check: + mes "[Nicholas]"; + mes "\"Let me take a look at how much you have...\""; + next; + if ( (countitem("IngotIron")<3) || (countitem("Coal") < 6) ) goto L_NoItem; + if ( (countitem("IngotIron")<6) || (countitem("Coal") < 12) ) goto L_StageA; + if ( (countitem("IngotIron")<9) || (countitem("Coal") < 18) ) goto L_StageB; + goto L_StageC; + +L_Info: + mes "[Nicholas]"; + mes "\"You can find Coal and Iron Ore in mines. Once you have Coal and Iron Ore, find a smith that will smelt the Iron Ore and cast them into Iron Ingots.\""; + next; + mes "[Nicholas]"; + mes "\"Come back here with some Coal and Iron Ingots, and I'll make something nice for you.\""; + close; + +L_Pass: + mes "[Nicholas]"; + mes "\"Oh, okay. Come back any time.\""; + close; + +L_StageA: + mes "[Nicholas]"; + mes "\"That's just enough for me to make you a winged Knight's Helmet, but it'll cost you 10,000GP, 6 Coal and 3 Iron Ingots.\""; + next; + goto L_main_menu; + +L_StageB: + mes "[Nicholas]"; + mes "\"Ahh, with that much Coal and Iron Ingots I can make you one of two helmets, for only 10,000GP, or I can make you a shield, for 20,000GP.\""; + mes ""; + mes "\"What would you like?\""; + next; + goto L_main_menu; + +L_StageC: + mes "[Nicholas]"; + mes "\"Excellent, that's enough to make three different types of helmet. My fee is 10,000GP. I can also make a shield, but that will cost you 20,000 GP.\""; + mes ""; + mes "\"Which will it be?\""; + next; + goto L_main_menu; + +L_main_menu: + + set @CHOICE_KNIGHT, 1; + set @CHOICE_CRUSADE, 2; + set @CHOICE_WARLORD, 3; + set @CHOICE_SHIELD, 4; + set @CHOICE_SETZER, 5; + set @CHOICE_CANCEL, 6; + + setarray @choice$, "", "", "", "", "", ""; + set @choices_nr, 0; + setarray @choice_idx, 0, 0, 0, 0, 0, 0; + + if (countitem("ShortSword") < 1) goto L_main_menu_post_setzer; + set @choice$[@choices_nr], "Can you make my Short Sword better?"; + set @choice_idx[@choices_nr], @CHOICE_SETZER; + set @choices_nr, 1 + @choices_nr; + +L_main_menu_post_setzer: + + if ( (countitem("IngotIron")<3) || (countitem("Coal") <6) ) goto L_no_more_helmets; + set @choice$[@choices_nr], "Knight's Helmet (3 Iron Ingots & 6 Coal)."; + set @choice_idx[@choices_nr], @CHOICE_KNIGHT; + set @choices_nr, 1 + @choices_nr; + + if ( (countitem("IngotIron")<6) || (countitem("Coal") < 12) ) goto L_no_more_helmets; + + set @choice$[@choices_nr], "Crusade Helmet (6 Iron Ingots & 12 Coal)."; + set @choice_idx[@choices_nr], @CHOICE_CRUSADE; + set @choices_nr, 1 + @choices_nr; + + set @choice$[@choices_nr], "Steel Shield (6 Iron Ingots & 12 Coal)."; + set @choice_idx[@choices_nr], @CHOICE_SHIELD; + set @choices_nr, 1 + @choices_nr; + + if ( (countitem("IngotIron")<9) || (countitem("Coal") < 18) ) goto L_no_more_helmets; + + set @choice$[@choices_nr], "Warlord Helmet (9 Iron Ingots & 18 Coal)."; + set @choice_idx[@choices_nr], @CHOICE_WARLORD; + set @choices_nr, 1 + @choices_nr; +L_no_more_helmets: + set @choice$[@choices_nr], "No thanks."; + set @choice_idx[@choices_nr], @CHOICE_CANCEL; + set @choices_nr, 1 + @choices_nr; + + menu @choice$[0], -, + @choice$[1], -, + @choice$[2], -, + @choice$[3], -, + @choice$[4], -, + @choice$[5], -; + + set @menu, @menu - 1; + + if (@menu >= @choices_nr) + close; + + set @choice, @choice_idx[@menu]; + + if (@choice == @CHOICE_KNIGHT) goto L_YesKnight; + if (@choice == @CHOICE_CRUSADE) goto L_YesCrusade; + if (@choice == @CHOICE_WARLORD) goto L_YesWarlord; + if (@choice == @CHOICE_SHIELD) goto L_YesShield; + if (@choice == @CHOICE_SETZER) goto L_SetzerQuest; + if (@choice == @CHOICE_CANCEL) goto L_end; + + close; + + +L_NoItem: + mes "[Nicholas]"; + mes "\"It appears you don't have enough Coal and Iron Ingots for me to work with. Please do come back when you have more, though.\""; + close; + +L_ComeBack: + mes "[Nicholas]"; + mes "\"Come back any time.\""; + close; + +L_NoMoney: + mes "[Nicholas]"; + mes "\"Oh dear, it seems you don't have enough money.\""; + close; + +L_YesKnight: + if (zeny < 10000) goto L_NoMoney; + if ( (countitem("IngotIron")<3) || (countitem("Coal") < 6) ) goto L_NoItem; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + set zeny, zeny - 10000; + delitem "IngotIron", 3; + delitem "Coal", 6; + getitem "KnightsHelmet", 1; + goto L_Done; + +L_YesCrusade: + if (zeny < 10000) goto L_NoMoney; + if ( (countitem("IngotIron")<6) || (countitem("Coal") < 12) ) goto L_NoItem; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + set zeny, zeny-10000; + delitem "IngotIron", 6; + delitem "Coal", 12; + getitem "CrusadeHelmet", 1; + goto L_Done; + +L_YesWarlord: + if (zeny < 10000) goto L_NoMoney; + if ( (countitem("IngotIron")<9) || (countitem("Coal") < 18) ) goto L_NoItem; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + set zeny, zeny-10000; + delitem "IngotIron", 9; + delitem "Coal", 18; + getitem "WarlordHelmet", 1; + goto L_Done; + +L_YesShield: + mes "[Nicholas]"; + mes "Nicholas examines your Iron Ingots."; + mes "\"No, this iron is too brittle; for something as large as a shield I need to mix in softer iron. Can I see if you have anything suitable?\""; + next; + + menu "Sure, have a look!", -, + "No.", L_Pass; + + if (countitem("InfantryHelmet") == 1) goto L_MoreInfantry; + if (countitem("InfantryHelmet") == 0) goto L_NoInfantry; + + mes "[Nicholas]"; + mes "Nicholas pulls out two of your Infantry Helmets."; + mes "\"I can use those... yes, that should work. Now all I need is a Leather Patch for the handle, and 20,000 GP.\""; + + if (@Q_SHIELD_status < @SHIELD_KNOWS_PATCH) + set @Q_SHIELD_status, @SHIELD_KNOWS_PATCH; + callsub L_Update_Var; + + next; + + menu "Here you are!", -, + "Where can I get a Leather Patch?", L_WhereLeather, + "No way.", L_Pass; + + if (zeny < 20000) goto L_ShieldNoZeny; + if (countitem("InfantryHelmet") < 2) goto L_ShieldNoInfantry; + if (countitem("IngotIron") < 6) goto L_ShieldNoIngot; + if (countitem("Coal") < 12) goto L_ShieldNoCoal; + if (countitem("LeatherPatch") < 1) goto L_ShieldNoLeatherPatch; + // No inventory check needed, as infantry helms are removed, opening two slots + + mes "[Nicholas]"; + mes "\"Yes, it looks as if you have all that is needed!\""; + mes "You watch Nicholas melt the ingots and helmets and form a shield out of the resulting iron. He then cuts your Leather Patch apart and adds it to the handles."; + mes "\"Here is your shield!\""; + + delitem "InfantryHelmet", 1; + delitem "InfantryHelmet", 1; + delitem "LeatherPatch", 1; + delitem "IngotIron", 6; + delitem "Coal", 12; + set zeny, zeny - 20000; + + if (@Q_SHIELD_status < @SHIELD_COMPLETED) + getexp @SHIELD_XP, 0; + if (@Q_SHIELD_status < @SHIELD_COMPLETED) + mes "[" + @SHIELD_XP + " experience points]"; + + set @Q_SHIELD_status, @SHIELD_COMPLETED; // get XP only once + callsub L_Update_Var; + + getitem "SteelShield", 1; + close; + +L_ShieldNoZeny: + mes "[Nicholas]"; + mes "\"I am sorry, but I must ask that you pay 20,000 GP; this is quality work.\""; + close; + +L_ShieldNoInfantry: + mes "[Nicholas]"; + mes "\"Now this is strange... I could have sworn that you had two Infantry Helmets right here. Well, come back if you have some more!\""; + close; + +L_ShieldNoIngot: + mes "[Nicholas]"; + mes "\"How odd... didn't I put your Iron Ingots on the table right here? Well, I will need them back to make the shield.\""; + close; + +L_ShieldNoCoal: + mes "[Nicholas]"; + mes "\"How odd... didn't I put your Coal on the table right here? Well, I will need it back to make the shield.\""; + close; + +L_ShieldNoLeatherPatch: + mes "[Nicholas]"; + mes "\"You don't have a suitable Leather Patch. I'm sorry, but a shield without one would chafe terribly.\""; + close; + +L_MoreInfantry: + mes "[Nicholas]"; + mes "Nicholas takes your Infantry Helmet and examines it."; + mes "\"Yes, this is perfect! If you can bring me another one of those, I can make your shield.\""; + close; + +L_NoInfantry: + mes "[Nicholas]"; + mes "Nicholas shakes his head."; + mes "\"No, none of these items are suitable. Try looking for somewhat large metal items.\""; + close; + +L_WhereLeather: + mes "[Nicholas]"; + mes "\"Hmm. You should look for someone who can work with some kind of leather. Rumor has it that there is someone in the eastern desert who can, but I haven't been there.\""; + close; + + +L_SetzerQuest: + mes "[Nicholas]"; + if (@Q_SETZER_status & @SETZER_FLAG_MADE_SETZER) + mes "\"Another one? Sure, why not.\""; + mes "Nicholas examines your Short Sword, then nods."; + mes "\"This is good quality. I can make something special out of it, with three ingot bars of iron, six lumps of coal and 50,000 GP -- but I will also need a potion of monster oil.\""; + if (@Q_SETZER_status < @SETZER_KNOWS_OIL) + set @Q_SETZER_status, @SETZER_KNOWS_OIL; + callsub L_Update_Var; + next; + + menu "Here you are.", -, + "Monster oil? What's that?", L_ExplainMonsterOil, + "HOW much? Nevermind then!", L_Pass; + + if (zeny < 50000) goto L_SetzerNoZeny; + if ( (countitem("IngotIron") < 3) || (countitem("Coal") < 6) ) goto L_SetzerNoIngot; + if (countitem("MonsterOilPotion") < 1) goto L_SetzerNoMonsterOil; + if (countitem("ShortSword") < 1) goto L_SetzerNoSword; + // No inventory check needed, as the short sword is removed, opening a slot + + mes "[Nicholas]"; + mes "Nicholas takes the items, heats up your sword and pounds it with a heavy hammer. As you watch, it turns thinner and flatter. Finally he pours the monster oil over it, heats the metal up again and douses it in water."; + + set zeny, zeny - 50000; + delitem "IngotIron", 3; + delitem "Coal", 6; + delitem "MonsterOilPotion", 1; + delitem "ShortSword", 1; + + getitem "Setzer", 1; + if (!(@Q_SETZER_status & @SETZER_FLAG_MADE_SETZER)) + mes "[" + @SETZER_XP + " experience points]"; + if (!(@Q_SETZER_status & @SETZER_FLAG_MADE_SETZER)) + getexp @SETZER_XP, 1; + set @Q_SETZER_status, @Q_SETZER_status | @SETZER_FLAG_MADE_SETZER; + callsub L_Update_Var; + next; + + mes "[Nicholas]"; + mes "Nicholas hands you the completed sword. It feels strangely light in your hands."; + mes "\"I made it lighter and faster, it should also cut a little better now. This kind of sword is called a Setzer, after a famous gambler who invented it as a weapon in between a knife and a sword.\""; + next; + + mes "[Nicholas]"; + mes "\"I'm quite happy with this one. Be careful around the edge, though, it is quite sharp!\""; + close; + +L_ExplainMonsterOil: + mes "[Nicholas]"; + mes "\"Monster oil is a special oil that can be used to harden thin sheets of metal, if used properly. Unfortunately, it is very hard to get. Perhaps one of our local alchemists can help you with it?\""; + close; + +L_SetzerNoZeny: + mes "[Nicholas]"; + mes "\"I am sorry, but I must ask that you pay 50,000 GP; the kind of weapon I am thinking of is not easy to make.\""; + close; + +L_SetzerNoIngot: + mes "[Nicholas]"; + mes "\"Without 3 ingots of iron, and six lumps of coal, I can't improve your sword.\""; + close; + +L_SetzerNoMonsterOil: + mes "[Nicholas]"; + mes "\"I know that monster oil is hard to come by, but I can't do much without it. Ask an alchemist if you need help making it.\""; + close; + +L_SetzerNoSword: + mes "[Nicholas]"; + mes "\"I will need your old Short Sword as a basis. Please bring it to me first.\""; + close; + +L_end: + close; + +L_Done: + mes "[Nicholas]"; + mes "\"Here you go!\""; + mes ""; + mes "\"Come back any time.\""; + close; + +L_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_SHIELD_MASK | @Q_SETZER_MASK) + | (@Q_SHIELD_status << @Q_SHIELD_SHIFT) + | (@Q_SETZER_status << @Q_SETZER_SHIFT)); + return; + +L_TooMany: + mes "[Nicholas]"; + mes "\"You don't have room for it. Come back later when you do.\""; + close; +} diff --git a/world/map/npc/009-2/nurse.txt b/world/map/npc/009-2/nurse.txt new file mode 100644 index 00000000..a47fdf95 --- /dev/null +++ b/world/map/npc/009-2/nurse.txt @@ -0,0 +1,521 @@ + //###################################################################################### +//# Nurse +//# AUTHORS: Jenalya and Pjotr Orial +//# REVIEWED BY: +//# heals player below level 20 for free and tells players about the doctor on the 3rd floor. +//# +//# gives the resist-poison skill, used global (!) variable: "$NPC_NURSE", split up in 4 bytes: +//# byte0 (bit 0-7) = healing_needed, byte1 (bit 8-15) = venum_needed, byte2 (bit 16-23) = stabilizer_needed +//# byte3 (bit 24-31) still unused +//# used player-variable: QUEST_Forestbow, nibble7 +//# states: +//# 0 if skills are available, she tells you about her plans of doing the antidote, +//# need black scorpion stingers and snake tongues +//# 1 waits for ingredients: black scorpion stingers and snake tongues +//# 2 waits for ingredients: acorns, apples, orange, healing potion, when these ingreds are there, +//# she mixes the stuff (modify global variable!) +//# 3 you can start the minigame, 3 tries remaining +//# 4 you can start the minigame, 2 tries remaining +//# 5 you can start the minigame, 1 try remaining +//# 6 not enough stuff remaining, jump to state 1 +//# 7 yay! you made it! + + +//###################################################################################### +009-2.gat,147,65,0 script Nurse 119, { + set @SNAKET_AMOUNT, 5; + set @BSCORPIONST_AMOUNT, 10; + // This quest can be done very often: so give less xp + set @QUEST1_EXP, 300; + set @ACORNS_AMOUNT, 10; + set @GREENAPPLE_AMOUNT, 5; + set @REDAPPLE_AMOUNT, 5; + set @ORANGE_AMOUNT, 5; + set @HEALING_AMOUNT, 3; + // This quest can be done very often: so give less xp + set @QUEST2_EXP, 700; + set @ANTIDOTE_EXP, 10000; + + set @Q_poison_MASK, NIBBLE_7_MASK; + set @Q_poison_SHIFT, NIBBLE_7_SHIFT; + set @Q_poison, (QUEST_Forestbow_state & @Q_poison_MASK) >> @Q_poison_SHIFT; + + if (@Q_poison == 7) goto state7; + if (@Q_poison == 6) goto state6; + if (@Q_poison == 5) goto state5; + if (@Q_poison == 4) goto state4; + if (@Q_poison == 3) goto state3; + if (@Q_poison == 2) goto state2; + if (@Q_poison == 1) goto state1; + if (getskilllv(SKILL_POOL)) goto state0; + +L_Usual: + mes "[Nurse]"; + mes "\"How can I help you?\""; + next; + + if (Inspector == 1) + menu + "Oooh, these wounds! They hurt so much!", L_Heal, + "I don't feel so well, I might be sick.", L_Doctor, + "Have you seen anything out of the ordinary?", L_NohMask, + "No, I'm fine.", -; + if (Inspector != 1) + menu + "Oooh, these wounds! They hurt so much!", L_Heal, + "I don't feel so well, I might be sick.", L_Doctor, + "No, I'm fine.", -; + mes "[Nurse]"; + mes "\"Then I would ask you to leave. There are people who really need our help.\""; + close; + +L_Doctor: + mes "[Nurse]"; + mes "\"Then you should better see the doctor. He is usually in his office on the 3rd floor.\""; + close; + +L_Heal: + if (baselevel > 20) goto L_NoHeal; + mes "[Nurse]"; + mes "\"Here, let me heal you.\""; + next; + heal 10000, 10000; + close; + +L_NoHeal: + mes "[Nurse]"; + mes "\"I'm sorry but I'm here only to help young people."; + mes "Your level is already higher than 20."; + mes "You can get some rest in the inn near here.\""; + close; + +L_NohMask: + mes "[Nurse]"; + mes "\"I'm too busy here to observe the town.\""; + close; + +state0: + mes "[Nurse]"; + mes "\"Welcome! You really look like a competent person. Maybe you can help to deal with a problem we have.\""; + next; + mes "\"We recently had some accidents in the mines. It seems that the creatures in the mines became more aggressive.\""; + next; + mes "\"Unfortunately, some of them are poisonous and it is very difficult for us to help the miners.\""; + next; + mes "\"For that reason, I want to do some research on this subject, to create an antidote. But I need help to get some ingredients, someone who is able to deal with the dangerous creatures in the mines.\""; + next; + menu + "I will do what I can. What do you need?", L_firstquest, + "I'm really sorry, but I don't think I can help you.", -; + + mes "\"That is disagreeable to hear. Maybe I can find another person to take this task.\""; + next; + goto L_Usual; + +L_firstquest: + set @Q_poison, 1; + callsub S_Update_Var; + + mes "\"That's great! First, I need some parts of the poisonous creatures.\""; + next; +L_ExplainAgain1: + mes "\"Please bring me five tongues of snakes and ten stingers of black scorpions.\""; + close; + +state1: + mes "[Nurse]"; + mes "\"You are back, wonderful! Did you get what we need for the antidote?\""; + next; + menu + "Actually, I have another question.", L_Usual, + "Sorry, I forgot. What shall I bring you?", L_ExplainAgain1, + "I have what you asked for.", -, + "I'm still working on that.", quit; + + if (countitem("SnakeTongue") < @SNAKET_AMOUNT || countitem("BlackScorpionStinger") < @BSCORPIONST_AMOUNT) goto L_NotEnough; + delitem "SnakeTongue", @SNAKET_AMOUNT; + delitem "BlackScorpionStinger", @BSCORPIONST_AMOUNT; + getexp @QUEST1_EXP, 0; + + set @Q_poison, 2; + callsub S_Update_Var; + + mes "[Nurse]"; + mes "\"Very good. Now I have to extract the poison from this, it will take some time.\""; + next; + mes "\"But there are some other things we will need in any case. It would be courteous if you could get them meanwhile.\""; + next; +L_ExplainAgain2: + mes "\"Please bring me ten acorns, five red apples, five green apples and also five oranges. And we need some small healing potions. They will be useful to hold off the baneful effects. Three of them will be enough, I guess.\""; + close; + +state2: + mes "You look at the nurse, who seems to be really tired, with shadows under her eyes. When she recognizes you, she smiles."; + mes "[Nurse]"; + mes "\"I managed to extract the poisonous components. We should be able to create an antidote, if you have everything else we need.\""; + next; + menu + "Actually, I have another question.", L_Usual, + "I have a bad memory. Can you tell me again what we need?", L_ExplainAgain2, + "I managed to get everything we need.", -, + "I will go and get it.", quit; + + if (countitem("Acorn") < @ACORNS_AMOUNT || countitem("GreenApple") < @GREENAPPLE_AMOUNT || countitem("RedApple") < @REDAPPLE_AMOUNT || countitem("Orange") < @ORANGE_AMOUNT || countitem("SmallHealingPotion") < @HEALING_AMOUNT) goto L_NotEnough; + delitem "Acorn", @ACORNS_AMOUNT; + delitem "GreenApple", @GREENAPPLE_AMOUNT; + delitem "RedApple", @REDAPPLE_AMOUNT; + delitem "Orange", @ORANGE_AMOUNT; + delitem "SmallHealingPotion", @HEALING_AMOUNT; + getexp @QUEST2_EXP, 0; + + set @Q_poison, 3; + callsub S_Update_Var; + +L_Chemistry: + callsub L_Shuffle_Need; + mes "The nurse takes the ingredients you brought and starts to squeeze the fruits and to crush the acorns. Then she put the fruit juices in some complicated looking chemical device."; + next; + mes "After some minutes, it is blubbering and steaming and a liquid is dripping in a pot under the device."; + next; + mes "Then she takes the acorn flour and the liquid and goes to a place back in the room, where she does something you don't see."; + next; + mes "After just a few moments, she comes back with a smiling face, holding two different bottles in her hand."; + next; + mes "[Nurse]"; + mes "\"That was easy compared to the things to be done with the stingers and snake tongues.\""; + next; + mes "Then her facial expression gets more serious."; + next; + mes "\"When we try to find the right mixture for the antidote, we need to test it.\""; + next; + mes "\"For that purpose, I will poison you. Then you drink the antidote to see if it works.\""; + next; + mes "\"If we make a mistake, this might be exhausting and painful, so you should rest a while and prepare yourself.\""; + next; + mes "\"Come back when you feel ready for that task.\""; + close; + +state3: + mes "[Nurse]"; + mes "\"Hello my friend. You feel prepared to test the antidote?\""; + next; + menu + "Actually, I have another question.", L_Usual, + "Yes, let us begin.",-; + +L_Exp_Game: + mes "[Nurse]"; + mes "\"Listen carefully! I will explain what you need to do.\""; + next; + mes "\"I have here two different distillates. One is the venom extract, the other one is a stabilizer.\""; + next; + mes "\"We also have the healing potion.\""; + next; + mes "\"The problem is that I can only guess the concentration of the venom and the stabilizer. My equipment isn't good enough to determine them precisely.\""; + next; + mes "\"You need to find the right amount of each ingredient. I will tell you what I can know with my analysis methods.\""; + next; + mes "\"Shall we start?\""; + next; + menu + "Please explain it again.", L_Exp_Game, + "Alright.", -; +L_Game: + set @Q_poison, @Q_poison + 1; + callsub S_Update_Var; + // healing, venom, stabilizer + callsub L_Load_Need; + //descriptions + set @desc_length, 6; + + setarray @desc$,"very little","only a little", "little","much", "a lot", "very much", "a huge amount"; + + set @divisor, @count / @desc_length; + + set @hlIndex, (@hlNeed-@offset) /@divisor; + set @vnIndex, (@vnNeed-@offset) /@divisor; + set @stIndex, (@stNeed-@offset) /@divisor; + + mes "[Nurse]"; + mes "\"I guess you need " + @desc$[@hlIndex] + " of the healing potion.\""; + next; + mes "\"You need " + @desc$[@vnIndex] + " of the venom extracts, I suppose.\""; + next; + mes "\"As far as I can tell you will need " + @desc$[@stIndex] + " of the stabilizer.\""; + next; + + if(@hlNeed/@vnNeed > 1 ) mes "\"I see that the healing potions are needed at least " + @hlNeed/@vnNeed + " times as much as the venom.\""; + if(@vnNeed/@hlNeed > 1 ) mes "\"I see that the venom extracts are needed at least " + @vnNeed/@hlNeed + " times as much as the healing potions.\""; + if ( (@hlNeed/@vnNeed > 1 ) || (@vnNeed/@hlNeed > 1 )) next; + + if(@stNeed/@vnNeed > 1 ) mes "\"I see that the stabilizer is needed at least " + @stNeed/@vnNeed + " times as much as the venom extracts.\""; + if(@vnNeed/@stNeed > 1 ) mes "\"I see that the venom extracts are needed at least " + @vnNeed/@stNeed + " times as much as the stabilizer.\""; + if ((@vnNeed/@stNeed > 1 ) || (@stNeed/@vnNeed > 1 )) next; + + if(@stNeed/@hlNeed > 1 ) mes "\"I see that the stabilizer is needed at least " + @stNeed/@hlNeed + " times as much as the healing potions.\""; + if(@hlNeed/@stNeed > 1 ) mes "\"I see that the healing potions are needed at least " + @hlNeed/@stNeed + " times as much as the stabilizer.\""; + if ((@hlNeed/@stNeed > 1 ) || (@stNeed/@hlNeed > 1 )) next; + +L_choosePut: + set @max, @count+@offset-1; + set @min, @offset; + mes "\"My scale goes up to " + @max + ". I suggest to put at least " + @min +" drops on the scale.\""; + next; + + mes "\"How many drops of the healing potion should we use?\""; + input @hlPut; + if (@hlPut < @offset) goto L_Game_tooless; + if (@hlPut > @max) goto L_Game_toomuch; + + mes "\"How many drops of the venom extract potion should we use? \""; + input @vnPut; + if (@vnPut < @offset) goto L_Game_tooless; + if (@vnPut > @max) goto L_Game_toomuch; + + mes "\"How many drops of the stabilizer potion should we use? \""; + input @stPut; + if (@stPut < @offset) goto L_Game_tooless; + if (@stPut > @max) goto L_Game_toomuch; + + mes "The nurse puts the potions together according to your instructions. Then she takes a spoon and stirs it."; + next; + mes "You take the glass and look suspiciously at the liquid, which has changed to an odd colour."; + next; + mes "[Nurse]"; + mes "\"Alright, now I will inject the venom into you, then you should drink the antidote immediately. Are you ready?\""; + next; + mes "You take a deep breath and nod."; + next; + mes "The nurse take a scary looking syringe out of a drawer and swabs your arm with disinfection dabber."; + next; + mes "Then she stings the syringe in your vein and pushs it down. After a few seconds, your heart starts pounding quicker and you begin to sweat all over your body."; + next; + mes "[Nurse]"; + mes "\"Drink the antidote!\""; + next; + mes "You lift the glass to your lips and drink it all at once."; + next; + + if ( (@hlPut > @hlNeed) && (@vnPut > @vnNeed) ) goto m_hl_m_vn; + if ( (@hlPut > @hlNeed) && (@vnPut <= @vnNeed) ) goto m_hl_l_vn; + if ( (@hlPut <= @hlNeed) && (@vnPut > @vnNeed) ) goto l_hl_m_vn; + if ( (@hlPut < @hlNeed) && (@vnPut < @vnNeed) ) goto l_hl_l_vn; + + mes "You feel quite normal."; + mes "[Nurse]"; + mes "\"Oh yes, the concentration of the healing potions and the venom extracts seem to be right.\""; + next; + set @hl_vn_ok, 1; + goto check_st; + +m_hl_m_vn: + //poison for 3 minutes + sc_start sc_poison, 1, 20; + mes "You begin to feel really dizzy. And you feel so light - you can't help yourself and burst out with laughter. What a strange feeling!"; + next; + mes "The nurse looks at you with a really worried look on her face. As you open your mouth to tell her that you feel alright, the content of your stomach finds its way out through your throat and on the floor."; + next; + mes "The feeling of happiness disappears, but you seem to be still poisoned."; + goto check_st; + +m_hl_l_vn: + //poison for 1 minute + sc_start sc_poison, 1, 20; + mes "You feel the pain of the poison weaken. This seems promising. The thought that you might have been successful makes you feel enormously happy."; + next; + mes "But a few seconds later, you wonder what was the reason for your happiness."; + next; + mes "Anyway, what are you doing here? Actually, where are you?"; + next; + mes "You don't care, you feel so great. You start to giggle and laugh uncontrollably. What a wonderful feeling. "; + next; + mes "Suddenly, the world has some really strange colors. As you watch this woman in front of you changing her color from dark green to a light purple, you become really tired."; + next; + mes "You lay down on the floor and fall asleep."; + next; + mes "As you open your eyes again, the nurse shines in your face with a lamp and pulls your eyelids open. Then she nods."; + next; + mes "\"Very well, you are sober again.\""; + next; + + goto check_st; + +l_hl_m_vn: + // first poison for 10 minutes, player will die anyway + sc_start sc_poison, 1, 20; + mes "You feel a sting in your stomach and your heart starts pounding loudly."; + next; + mes "The room is getting dark."; + next; + mes "...and darker..."; + next; + mes "......."; + // bye bye player! + heal -Hp, 0; + // close instead of telling how much stabilizer is needed + close; + // goto check_st; + +l_hl_l_vn: + //poison for 1 minute + sc_start sc_poison, 1, 20; + mes "The antidote seems to have no effect."; + goto check_st; + +check_st: + if ( (@stPut < @stNeed) ) goto l_st; + if ( (@stPut > @stNeed) ) goto m_st; + if (@hl_vn_ok == 1) goto allcorrect; + + mes "[Nurse]"; + mes "\"The amount of the stabilizer seems alright, but we have to think again about the other ingredients.\""; + next; + goto notallcorrect; + +l_st: + mes "[Nurse]"; + mes "\"It looks like we used not enough of the stabilizer. The antidote will lose its effect after some time.\""; + next; + goto notallcorrect; +m_st: + mes "[Nurse]"; + mes "\"It looks like we used too much of the stabilizer. The antidote will turn into venom again after some time.\""; + next; + goto notallcorrect; +allcorrect: + mes "You feel totally normal again."; + next; + mes "[Nurse]"; + mes "\"Wonderful! You made it! Now I will be able to help all the people who get poisoned in the mines!\""; + next; + mes "\"Thank you so much! Oh, and it seems as if you have gained the skill to resist poison someway. This is great.\""; + next; + mes "\"You should talk to someone who can help you to focus on your skills.\""; + next; + getexp @ANTIDOTE, 0; + setskill SKILL_RESIST_POISON, 1; + set @Q_poison, 7; + callsub S_Update_Var; + close; + +notallcorrect: + mes "[Nurse]"; + mes "\"It didn't work. You are a really brave person. Now you should rest and recover. I hope you won't give up now. Please come back later, so we can try it again.\""; + next; + + close; +state4: + mes "The nurse has a worried look in her face."; + mes "[Nurse]"; + mes "\"Hello. I hope you recovered well.\""; + next; + mes "\"There is enough of the distillates left to have another try.\""; + next; + mes "\"Oh no, with all that trouble I forgot to label your distillate.\""; + next; + mes "She holds up two ampullas."; + next; + mes "\"I hope this one is yours. I'm sorry.\""; + next; + mes "\"If you feel ok, we could try it again.\""; + next; + + menu + "I still feel a bit dizzy, so I don't want to do it now.", L_Usual, + "I'm ok. We can try, but please explain again.", L_Exp_Game, + "Let's start right now.", L_Game; + +state5: + mes "The nurse looks at you pitifully."; + mes "[Nurse]"; + mes "\"Hello. I'm really sorry for causing you so much pain.\""; + next; + mes "\"But if we succeed we will be heroes! I will be able to help a lot of people.\""; + next; + mes "\"Next time you might remind me to label the distillates correctly. I am sorry that it is screwed up again.\""; + next; + mes "\"There is enough stuff left for one last try.\""; + next; + mes "\"If we don't get it this time, you will have to get new ingredients.\""; + next; + mes "\"Do you want to try again?\""; + next; + + menu + "I still feel a bit dizzy, so I don't want to do it now.", L_Usual, + "I'm ok. We can try, but please explain again.", L_Exp_Game, + "Let's start right now.", L_Game; + +state6: + mes "The nurse looks at you pitifully."; + mes "[Nurse]"; + mes "\"There is not enough stuff left for another try.\""; + next; + mes "\"We should try again, right?\""; + set @Q_poison, 1; + callsub S_Update_Var; + + goto L_ExplainAgain1; + +state7: // geschafft + mes "[Nurse]"; + mes "\"Thanks a lot, you can call yourself a true hero now!\""; + next; + mes "\"I am able to help the poisoned miners quite well now.\""; + next; + goto L_Usual; + +L_NotEnough: + mes "[Nurse]"; + mes "\"This must be a misunderstanding. You don't have all the things I asked you for.\""; + if (@Q_poison == 1) goto L_ExplainAgain1; + if (@Q_poison == 2) goto L_ExplainAgain2; + // the following close *should* never be reached, but who knows, whoever will mess this script up! + close; + +quit: + close; + +S_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_poison_MASK) + | (@Q_poison << @Q_poison_SHIFT)); + return; + +L_Game_init_vars: + set @count, 24; + set @offset, 1; + return; + +L_Shuffle_Need: + callsub L_Game_init_vars; + set @hlNeed, @offset + rand(@count); + set @vnNeed, @offset + rand(@count); + set @stNeed, @offset + rand(@count); + + set $NPC_NURSE, + ($NPC_NURSE & ~(BYTE_0_MASK | BYTE_1_MASK | BYTE_2_MASK) + | (@hlNeed << BYTE_0_SHIFT) + | (@vnNeed << BYTE_1_SHIFT) + | (@stNeed << BYTE_2_SHIFT)); + return; + +L_Load_Need: + callsub L_Game_init_vars; + set @hlNeed, ($NPC_NURSE & BYTE_0_MASK) >> BYTE_0_SHIFT; + set @vnNeed, ($NPC_NURSE & BYTE_1_MASK) >> BYTE_1_SHIFT; + set @stNeed, ($NPC_NURSE & BYTE_2_MASK) >> BYTE_2_SHIFT; + return; + +L_Game_tooless: + mes "[Nurse]"; + mes "\"That is nothing! You need to put in there at least a small amount."; + goto L_choosePut; + +L_Game_toomuch: + mes "[Nurse]"; + mes "\"This would be way too much for my scale. I don't want to break it.\""; + goto L_choosePut; +} + + diff --git a/world/map/npc/009-2/olana.txt b/world/map/npc/009-2/olana.txt new file mode 100644 index 00000000..fdc7098a --- /dev/null +++ b/world/map/npc/009-2/olana.txt @@ -0,0 +1,199 @@ +009-2.gat,63,79,0 script Olana 190,{ + + if (FLAGS & FLAG_ROSSI_COMPLETED) goto L_FinalEnd; + if (Rossy_Quest == 17 || Rossy_Quest == 18) goto L_End; + + + if (Rossy_Quest >= 14 && Rossy_Quest <= 16) goto L_Julia; + if (Rossy_Quest == 13) goto L_Best; + if (Rossy_Quest == 12) goto L_Give; + if (Rossy_Quest == 11) goto L_Allergic; + if (Rossy_Quest == 10) goto L_BringRose; + if (Rossy_Quest == 9) goto L_RC; + if (Rossy_Quest == 8) goto L_Rose; + if (Rossy_Quest >= 6 && Rossy_Quest < 8) goto L_BL; + if (Rossy_Quest == 5) goto L_Bring; + if (Rossy_Quest == 4) goto L_See; + if (Rossy_Quest == 3) goto L_Worried; + if (Rossy_Quest == 1 || Rossy_Quest == 2) goto L_Daughter; + + mes "[Olana]"; + mes "\"Hello. Usually guests don't come here.\""; + next; + mes "\"My name is Olana, my father owns this inn. I'm living in Tulimshar, but came to Hurnscald on vacation with my two young daughters, Rossy and Julia.\""; + if (baselevel < 50) close; + next; + mes "\"I let my two lovely girls play in the woods nearby but they didn't come back yet!\""; + next; + mes "Olana suddenly looks very pale and starts to shiver."; + next; + mes "\"Oh, I have a bad feeling about this whole situation... If you go to the forest near the swamps, can you see if you find my daughters? I need to know if they are safe.\""; + menu + "Sure, I can do that.", -, + "I am sorry, I don't usually go to this area", L_No; + set Rossy_Quest, 1; + close; + +L_Daughter: + mes "*Olana looks really worried... she seems about to burst into tears...*"; + if (Rossy_Quest == 1) close; + next; + menu + "Wait, I saw Rossy, she is fine.", L_Help, + "Hey, don't worry, I'm sure they'll be back soon.", L_No; + +L_No: + close; + +L_Help: + mes "[Olana]"; + mes "\"Oh yes? Is Rossy alright? That's good. I'm relieved. But what about Julia?\""; + next; + menu + "I didn't find Julia yet, sorry", -; + mes "\"Ok. They must be playing hide and seek. Thanks again... I can't express how grateful I am.\""; + set Rossy_Quest, 3; + close; + +L_Worried: + mes "*Olana smiles at you, trying to show some happiness, but her facial expression only conveys tension and preoccupation*"; + close; + +L_See: + if (gotcherry == 1) goto L_Task; + if (countitem("cherry") < 10) goto L_Worried; + menu + "Hi, Rossy asked me to give you this. She says it is a gift from her and from Julia", -; + mes "[Olana]"; + mes "\"Ohhh... How sweet... Sometimes Rossy impress me with her kindness. Here. You are spending so much time helping us, and we give nothing back. Take this as a small reward. \""; + delitem "cherry", 10; + getexp 1000, 0; + set zeny, zeny + 1000; + set gotcherry, 1; + goto L_Task; + +L_Task: + mes "[Olana]"; + mes "\"I know I barely know you, but can I ask you for a small favor?\""; + menu + "Sure, tell me about it.", L_Cont, + "No, sorry, I'm busy.", L_No; + +L_Cont: + mes "[Olana]"; + mes "\"Would you mind giving this letter to my little Rossy? Today is the last day for her final exam, and I know my daughter. If I don't remind her, she will surely forget about it and flunk the exam. I would deliver it myself, but I can't walk, my knees...\""; + menu + "Of course I can. Hand me the letter, I'll give it to Rossy as soon as I see her.", L_Let, + "No, sorry, I'm not interested in that sort of task. Hand it to her yourself.", L_No; + +L_Let: + mes "[Olana]"; + set Rossy_Quest, 5; + set gotcherry, 0; + mes "\"Thank you again. Please, bring it to her as fast as you can.\""; + close; + +L_Bring: + mes "[Olana]"; + mes "\"Please, bring this letter to my daughter as fast as you can.\""; + close; + +L_BL: + mes "[Olana]"; + mes "\"Good, now she won't forget her final exam.\""; + close; + +L_Rose: + menu + "Hi, Rossy did great in the exam. David told me her potion was flawless.", -; + mes "[Olana]"; + mes "\"Wow! Really? That is great! I would like to congratulate my little Rossy, would you help me?\""; + menu + "Just tell me what to do.", -, + "No, I'm busy, maybe later.", L_No; + mes "[Olana]"; + mes "\"Can you bring me 15 [Red Rose]s? I would like to give them to Rossy. I am sure she will love it!\""; + menu + "Ok, I will be back with the roses.", L_RG, + "I'm allergic to roses, can't even touch them. Sorry.", L_No; + +L_RG: + if (Rossy_Quest == 8) set Rossy_Quest, 9; + mes "[Olana]"; + mes "\"Please, bring me 15 [Red Rose]s as soon as you can.\""; + close; + +L_RC: + if(countitem("redrose") < 15) goto L_RG; + mes "[Olana]"; + set Rossy_Quest, 10; + mes "\"Great job! Please hand them to my brilliant daughter, Rossy.\""; + close; + +L_BringRose: + mes "[Olana]"; + mes "\"Now please hand them to my brilliant daughter, Rossy.\""; + close; + +L_Allergic: + mes "[Olana]"; + mes "\"Did she like my present?\""; + menu + "Sure she did...", L_No, + "Well, you should known that your daughter is allergic to roses.", -; + set Rossy_Quest, 12; + mes "[Olana]"; + mes "\"How stupid I am! Here, take some of my money and buy [Red Tulip]s instead, the same amount. Keep the flowers.\""; + set zeny, zeny + 1500; + next; + mes "\"Please, tell Rossy I am really sorry. My mind was in Julia when I asked you to bring the red roses, they are her favorite.\""; + menu + "I will give her the tulips when I see her.", -; + mes "[Olana]"; + mes "\"And don't forget to tell her that I'm really sorry.\""; + close; + +L_Give: + mes "[Olana]"; + mes "\""+ strcharinfo(0) +", please, get 15 [Red Tulip]s and hand them to Rossy. Don't forget to tell her that I'm really sorry.\""; + close; + +L_Best: + mes "[Olana]"; + mes "\"Thank you for your help "+ strcharinfo(0) +"!\""; + close; + +L_Julia: + mes "[Olana]"; + mes "\"Oh no, I can't take this anymore. Something must have happened... Where is Julia? I want to know where she is! Please, find her "+ strcharinfo(0) +"!\""; + close; + +L_End: + mes "[Olana]"; + mes "\"Where is Julia? I want to know where she is! Please, find her "+ strcharinfo(0) +"!\""; + menu + "She'll be back soon, trust me, I saved her from an evil spirit.", L_Found, + "I didn't see her yet, sorry.", L_No; + +L_Found: + mes "[Olana]"; + if (Rossy_Quest == 17) set Rossy_Quest, 18; + if (Rossy_Quest == 18) set Rossy_Quest, 19; + mes "\"Thank you "+ strcharinfo(0) +", thank you! Here is a reward for you.\""; + getexp 5000, 0; + set zeny, zeny + 5000; + if (Rossy_Quest == 19) goto L_Clear; + close; + +L_Clear: + set Rossy_Quest, 0; + set cavefights, 0; + set FLAGS, FLAGS | FLAG_ROSSI_COMPLETED; + close; + +L_FinalEnd: + mes "[Olana]"; + mes "*The mother is calmly waiting her daughters to come back for dinner.*"; + close; + +} diff --git a/world/map/npc/009-2/peter.txt b/world/map/npc/009-2/peter.txt new file mode 100644 index 00000000..11d9931d --- /dev/null +++ b/world/map/npc/009-2/peter.txt @@ -0,0 +1,80 @@ +// Nicholas' Apprentice and Armorsmith + +009-2.gat,183,57,0 script Peter 157,{ + + mes "[Peter]"; + mes "\"Hello, I am Peter, apprentice to Nicholas.\""; + next; + mes "\"I can make you some sturdy armor: you must give me Iron Ingots to craft with and some gold pieces for my efforts.\""; + next; + mes "[Peter]"; + mes "\"What would you like me to make?\""; + menu + "Chain Mail (10 coal, 5 ingots and 20000 GP).", L_Peter_Chain_Mail, + "Light Plate (20 coal, 10 ingots and 50000 GP).", L_Peter_Light_Plate, + "Warlord Plate (30 coal, 15 ingots and 100000 GP).", L_Peter_Warlord_Plate, + "Nevermind.", -; + close; + +L_Peter_Chain_Mail: + if (zeny < 20000) goto L_Peter_NotEnough_Zeny; + if (countitem("IngotIron") < 5) goto L_Peter_NotEnough_Ingot; + if (countitem("Coal") < 10) goto L_Peter_NotEnough_Coal; + getinventorylist; + if (@inventorylist_count == 100) goto L_Peter_TooMany; + set zeny, zeny - 20000; + delitem "IngotIron", 5; + getitem "ChainmailShirt", 1; + mes "[Peter]"; + mes "\"Here you go!\""; + close; + +L_Peter_Light_Plate: + if (zeny < 50000) goto L_Peter_NotEnough_Zeny; + if (countitem("IngotIron") < 10) goto L_Peter_NotEnough_Ingot; + if (countitem("Coal") < 20) goto L_Peter_NotEnough_Coal; + getinventorylist; + if (@inventorylist_count == 100) goto L_Peter_TooMany; + set zeny, zeny - 50000; + delitem "IngotIron", 10; + delitem "Coal", 20; + getitem "LightPlatemail", 1; + mes "[Peter]"; + mes "\"Here you go!\""; + close; + +L_Peter_Warlord_Plate: + if (zeny < 100000) goto L_Peter_NotEnough_Zeny; + if (countitem("IngotIron") < 15) goto L_Peter_NotEnough_Ingot; + if (countitem("Coal") < 30) goto L_Peter_NotEnough_Coal; + getinventorylist; + if (@inventorylist_count == 100) goto L_Peter_TooMany; + set zeny, zeny - 100000; + delitem "IngotIron", 15; + delitem "Coal", 30; + getitem "WarlordPlate", 1; + mes "[Peter]"; + mes "\"Here you go!\""; + close; + +L_Peter_NotEnough_Zeny: + mes "[Peter]"; + mes "\"You don't have enough gold.\""; + close; + +L_Peter_NotEnough_Ingot: + mes "[Peter]"; + mes "\"You don't have enough ingots.\""; + close; + +L_Peter_NotEnough_Coal: + mes "[Peter]"; + mes "\"You don't have enough Coal.\""; + close; + +L_Peter_TooMany: + mes "[Peter]"; + mes "\"You have too much stuff. Please get rid of something if you want some armor.\""; + close; + +} diff --git a/world/map/npc/009-2/richard.txt b/world/map/npc/009-2/richard.txt new file mode 100644 index 00000000..023f1244 --- /dev/null +++ b/world/map/npc/009-2/richard.txt @@ -0,0 +1,8 @@ +// + +009-2.gat,20,99,0 script Richard 161,{ + callfunc "ClearVariables"; + set @npcname$, "Richard"; + callfunc "Banker"; + close; +} diff --git a/world/map/npc/009-2/selim.txt b/world/map/npc/009-2/selim.txt new file mode 100644 index 00000000..dc7d29df --- /dev/null +++ b/world/map/npc/009-2/selim.txt @@ -0,0 +1,210 @@ +//################################################################################# +//# # +//# This script file contains the script for the cloth dyer. It has been # +//# revised to require dye items; collaborating NPCs are Selim and Angus. # +//# # +//################################################################################# + +009-2.gat,32,104,0 script Selim 142,{ + setarray @all_colours$, "red", "green", "dark blue", "yellow", "light blue", "pink", "black", "orange", "purple", "dark green"; + setarray @all_colours_cap$, "Red", "Green", "Dark Blue", "Yellow", "Light Blue", "Pink", "Black", "Orange", "Purple", "Dark Green"; + + mes "[Selim]"; + mes "\"What can I dye for you today?\""; + set QUEST_clothdyer_state, 3; + next; + +L_clothes_choice: + set @pronoun$, "it"; + set @is_verb$, "is"; + menu + "Cotton shirt", L_cottonshirt, + "V-Neck sweater", L_vneck, + "Turtleneck sweater", L_tneck, + "Cotton shorts", L_shorts, + "Cotton skirt", L_skirt, + "Miniskirt", L_miniskirt, + "Tank top ", L_tanktop, + "Short tank top", L_tanktop_short, + "Silk robe", L_robe, + "Cotton headband", L_headband, + "Desert hat", L_desert_hat, + "Cotton boots", L_cottonboots, + "Cotton gloves", L_cottongloves, + "Rabbit ears", L_rabbitears, + "Wizard hat", L_wizardhat, + "Bowler hat", L_bowlerhat, + "Red lined sorcerer robe", L_redlinedsorcererrobe, + "Bowler hat (brown)", L_bowlerhatbrown, + "I'm fine for now, thanks.", -; + close; + +L_cottonshirt: + set @del, 1202; + set @new, 2050; + set @name$, "cotton shirt"; + goto L_picked_item; + +L_vneck: + set @del, 624; + set @new, 2060; + set @name$, "V-neck sweater"; + goto L_picked_item; + +L_tneck: + set @del, 564; + set @new, 2070; + set @name$, "turtleneck sweater"; + goto L_picked_item; + +L_shorts: + set @del, 586; + set @new, 2110; + set @name$, "cotton shorts"; + set @pronoun$, "them"; + set @is_verb$, "are"; + goto L_picked_item; + +L_skirt: + set @del, 632; + set @new, 2100; + set @name$, "cotton skirt"; + goto L_picked_item; + +L_miniskirt: + set @del, 771; + set @new, 2170; + set @name$, "miniskirt"; + goto L_picked_item; + +L_tanktop: + set @del, 688; + set @new, 2090; + set @name$, "tanktop"; + goto L_picked_item; + +L_tanktop_short: + set @del, 689; + set @new, 2120; + set @name$, "short tanktop"; + goto L_picked_item; + +L_robe: + set @del, 720; + set @new, 2080; + set @name$, "silk robe"; + goto L_picked_item; + +L_headband: + set @del, 724; + set @new, 2140; + set @name$, "cotton headband"; + goto L_picked_item; + +L_desert_hat: + set @del, 723; + set @new, 2130; + set @name$, "desert hat"; + goto L_picked_item; + +L_cottonboots: + set @del, 735; + set @new, 2150; + set @name$, "cotton boots"; + goto L_picked_item; + +L_cottongloves: + set @del, 741; + set @new, 2160; + set @name$, "cotton gloves"; + goto L_picked_item; + +L_rabbitears: + set @del, 1255; + set @new, 2190; + set @name$, "rabbit ears"; + set @pronoun$, "them"; + set @is_verb$, "are"; + goto L_picked_item; + +L_wizardhat: + set @del, 4028; + set @new, 2200; + set @name$, "wizard hat"; + goto L_picked_item; + +L_bowlerhat: + set @del, 4030; + set @new, 2210; + set @name$, "bowler hat"; + goto L_picked_item; + +L_redlinedsorcererrobe: + set @del, 798; + set @new, 2220; + set @name$, "red lined sorcerer robe"; + goto L_picked_item; + +L_bowlerhatbrown: + set @del, 800; + set @new, 2230; + set @name$, "bowler hat (brown)"; + goto L_picked_item; + +L_picked_item: + if (countitem(@del) == 0) goto L_havenone; +L_colour: + mes "[Selim]"; + mes "\"Excellent. Now, what color do you want?\""; + next; + menu + @all_colours_cap$[0], -, + @all_colours_cap$[1], -, + @all_colours_cap$[2], -, + @all_colours_cap$[3], -, + @all_colours_cap$[4], -, + @all_colours_cap$[5], -, + @all_colours_cap$[6], -, + @all_colours_cap$[7], -, + @all_colours_cap$[8], -, + @all_colours_cap$[9], -; + set @colour, @menu - 1; + set @vial, 690 + @colour; + if (countitem(@vial) == 0) goto L_no_dye; + goto L_finish; + +L_no_dye: + mes "[Selim]"; + mes "\"I would love to dye your " + @name$ + " for you, but you will have to bring me some " + @all_colours$[@colour] + " dye first.\""; + next; + menu + "Sorry, I meant a different color.", L_colour, + "I wanted to dye a different item anyway.", L_clothes_choice, + "What do you mean, `bring you dye'?", L_explain_dye, + "Where would I get dye?", L_explain_dye, + "Never mind.", -; + close; + +L_explain_dye: + if (QUEST_clothdyer_knowsdye < 1) set QUEST_clothdyer_knowsdye, 1; + mes "[Selim]"; + mes "\"Well, dye is very expensive, and since I don't charge adventurers anything, I can't give you any for free."; + mes "But most alchemists can make dye; perhaps you can find one around here.\""; + close; + +L_finish: + if (countitem(@del) == 0) goto L_havenone; + delitem @vial, 1; + delitem @del, 1; + getitem @new + @colour, 1; + mes "[Selim]"; + mes "\"Here " + @is_verb$ + " your " + @all_colours$[@colour] + " " + @name$ + "! Please let " + @pronoun$ + " dry for a minute before you put " + @pronoun$ + " on.\""; + close; + +L_havenone: + mes "[Selim]"; + mes "\"You don't have any uncolored " + @name$ + "? That's unfortunate."; + mes "Would you like to dye something else?\""; + next; + goto L_clothes_choice; +} diff --git a/world/map/npc/009-2/shops.txt b/world/map/npc/009-2/shops.txt new file mode 100644 index 00000000..733fa54f --- /dev/null +++ b/world/map/npc/009-2/shops.txt @@ -0,0 +1,29 @@ +//################################################################################# +//# # +//# This script file contains all shops and other NPCs with important functions. # +//# # +//################################################################################# + +// Bartender +// sells beer, cake and steak +009-2.gat,65,49,0 shop Barkeeper 112,539:-1,513:-1,676:-1 + +// Receptionist +// Offers the player to rest at the inn for 100gp +009-2.gat,50,48,0 script Receptionist 108,{ + set @npcname$, "Receptionist"; + set @cost, 100; + callfunc "Inn"; +} + +// Archer Shop +// sells bow, short bow, arrows and iron arrows +009-2.gat,97,24,0 shop Apprentice 120,1199:-1,529:-1,1200:1000,530:3000 + +// Potion Shop +// sells cactus drink, cactus potion, iron potion, concentration potion, and slow poison potion +009-2.gat,123,22,0 shop Potions#_M 127,501:50,502:70,567:500,568:500,750:500 + +// General Store +// Sells various things, many not sold elsewhere +009-2.gat,32,99,0 shop General Store 112,527:-1,541:-1,1202:-1,586:-1,528:-1,656:-1,724:3000,741:-1 diff --git a/world/map/npc/009-2/waitress.txt b/world/map/npc/009-2/waitress.txt new file mode 100644 index 00000000..265cd234 --- /dev/null +++ b/world/map/npc/009-2/waitress.txt @@ -0,0 +1,83 @@ +// Waitress + +009-2.gat,60,52,0 script Melinda 140,{ + + mes "[Melinda]"; + mes "\"Hi, sweetie! Want a fresh beer for 170 GP?\""; + next; + + menu + "\"Sure! [don't tip]\"", L_NoTip, + "Sure! [tip 5 GP]", L_5Tip, + "Sure! [tip 10 GP]", L_10Tip, + "Nah, maybe later.", L_No; + close; + +L_NoTip: + if (zeny < 170) + goto L_NoMoney; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("Beer") == 0) + goto L_TooMany; + + set zeny, zeny - 170; + getitem "Beer", 1; + + mes "[Melinda]"; + mes "Pff... nickel nurser!"; + close; + +L_5Tip: + if (zeny < 175) + goto L_NoMoney; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("Beer") == 0) + goto L_TooMany; + + set zeny, zeny - 175; + getitem "Beer", 1; + + mes "[Melinda]"; + mes "\"Here you go, sweetheart!\""; + close; + +L_10Tip: + if (zeny < 180) + goto L_NoMoney; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("Beer") == 0) + goto L_TooMany; + + set zeny, zeny - 180; + getitem "Beer", 1; + + mes "[Melinda]"; + mes "\"Thank you, sweetie! Want to hear a secret?\""; + next; + + menu + "What is it, darling?", -, + "Nah, I don't feel like chatting.", L_No; + + mes "[Melinda]"; + mes "\"The master bowyer in this village used to construct exceptional bows. When you want one you should go and ask him.\""; + close; + +L_No: + mes "[Melinda]"; + mes "\"Just call me when you've changed your mind.\""; + close; + +L_NoMoney: + mes "[Melinda]"; + mes "\"You look broke. Don't think that you can dine and dash here!\""; + close; + +L_TooMany: + mes "[Melinda]"; + mes "\"You don't have room for a beer!\""; + close; +} diff --git a/world/map/npc/009-2/wyara.txt b/world/map/npc/009-2/wyara.txt new file mode 100644 index 00000000..145f09a5 --- /dev/null +++ b/world/map/npc/009-2/wyara.txt @@ -0,0 +1,595 @@ +// ---------------------------------------- +// Wyara the Hurnscald witch +// ---------------------------------------- +009-2.gat,121,26,0 script Wyara#_M 103,{ + set @Q_MASK, NIBBLE_2_MASK; + set @Q_SHIFT, NIBBLE_2_SHIFT; + set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT; + + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC_NATURE; + set @SUP_name$, "Nature Magic"; + + set @STATUS_INITIAL, 0; + set @STATUS_PURIFY_EXPLAINED, 1; + set @STATUS_PURIFY_ONCE, 2; + set @STATUS_PURIFY_TWICE, 3; + set @STATUS_PURIFY_OVER, 4; + set @STATUS_MAX, @STATUS_PURIFY_OVER; + + // This operation works around an earlier possible corruption of this state + if (@Q_status > @STATUS_MAX) + set @Q_status, @STATUS_INITIAL; + if ((@Q_status == @STATUS_PURIFY_OVER) && (getskilllv(SKILL_MAGIC_NATURE) < 2)) + set @Q_status, @STATUS_INITIAL; + callsub S_update_var; + + set @has_magic, getskilllv(SKILL_MAGIC); + + if (@Q_status == @STATUS_PURIFY_ONCE) + goto L_Magic_purify_once; + if (@Q_status == @STATUS_PURIFY_TWICE) + goto L_Magic_purify_done; + + mes "[Wyara the witch]"; + if (!Sex) + mes "\"Greetings, fair traveller! What can I do for you?\""; + if (Sex) + mes "\"Hello! What brings you here?\""; + next; + + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_WYARA; +L_Main: + if (!@has_magic && (MAGIC_FLAGS & MFLAG_TOUCHED_MANASEED)) + menu "What do you know about...", L_Question, + "Can you help me use the mana seed?", L_Q_manaseed_unabsorbed, + "Can you help me learn magic?", L_Magic, + "I would like to buy potions.", L_Shop, + "Bye!", -; + if (!(!@has_magic && (MAGIC_FLAGS & MFLAG_TOUCHED_MANASEED))) + menu "What do you know about...", L_Question, + "Can you help me learn magic?", L_Magic, + "I would like to buy potions.", L_Shop, + "Bye!", -; + close; + +L_Shop: + mes "[Wyara the Witch]"; + mes "\"Please have a look at the shelf behind me.\""; + close; + +L_Question: + callfunc "MagicTalkOptionsSetup"; + set @ignore, @QQ_WYARA; + callfunc "MagicTalkMenu"; + + if (@c == 0) goto L_Main; + if (@c == @QQ_ELANORE) goto L_Q_elanore; + if (@c == @QQ_MANASEED) goto L_Q_manaseed; + if (@c == @QQ_MANAPOTION) goto L_Q_manapotion; + if (@c == @QQ_SAGATHA) goto L_Q_sagatha; + if (@c == @QQ_AULDSBEL) goto L_Q_auldsbel; + if (@c == @QQ_IMP) goto L_Q_imp; + if (@c == @QQ_OLDWIZ) goto L_Q_old_wizard; + if (@c == @QQ_ASTRALSOUL)goto L_Q_astralsoul; + + mes "[Wyara the Witch]"; + mes "\"I fear that I can't help you with that.\""; + next; + goto L_Main; + + +L_Q_astralsoul: + mes "[Wyara the Witch]"; + mes "\"The astral soul skill? Yes, I have heard about that. It can be taught by old and wise mages usually.\""; + next; + mes "\"You need lots of practise until you can handle the ability, and even more practise until you have the powers to teach it to someone else.\""; + next; + goto L_Main; + + +L_Q_old_wizard: + mes "[Wyara the Witch]"; + mes "\"I don't know his name, but I do know that he has been living in the mountains since I first came here. He is a master of many schools of magic, I believe.\""; + next; + mes "[Wyara the Witch]"; + mes "She smiles."; + mes "\"He is also a nice and friendly person to talk to, and quite knowledgeable about the teas of this area.\""; + next; + goto L_Main; + + +L_Q_elanore: + mes "[Wyara the Witch]"; + mes "\"Elanore is the Tulimshar healer. She is a very kind person and an outstanding healer.\""; + next; + goto L_Main; + +L_Q_manaseed: + if (!@has_magic && (MAGIC_FLAGS & MFLAG_TOUCHED_MANASEED)) + goto L_Q_manaseed_unabsorbed; + mes "[Wyara the Witch]"; + mes "\"A mana seed? I'm afraid that I can't help you with that.\""; + next; + goto L_Main; + +L_Q_manaseed_unabsorbed: + mes "[Wyara the Witch]"; + mes "\"So you touched the mana seed but weren't able to absorb its powers? That means that you're lacking a natural magical ability. Still, there are ways around that.\""; + next; + mes "[Wyara the Witch]"; + mes "\"If you drink a mana potion, you should be able to retain this magical power and slowly build up a magical skill.\""; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_MANAPOTION; + next; + goto L_Main; + +L_Q_manapotion: + mes "[Wyara the Witch]"; + mes "\"I have a simple recipe for making mana potions, but I don't have one ready right now. Can you bring me 40 mauve leaves and a bottle of water? I can make one from those quite easily.\""; + next; + menu "Sure!", L_make_manapotion, + "No.", L_Main; + goto L_Main; + +L_manapotion_toomany: + mes "[Wyara the Witch]"; + mes "\"Hmm... looking at you, I don't think that you would be able to carry it.\""; + next; + goto L_Main; + +L_make_manapotion: + if(countitem("MauveHerb") < 40) goto L_make_manapotion_lack; + if(countitem("BottleOfWater") < 1) goto L_make_manapotion_lack; + getinventorylist; + if ((@inventorylist_count == 100) + && (countitem("MauveHerb") > 40) + && (countitem("BottleOfWater") > 100) + && (countitem("ManaPotion") < 1)) + goto L_manapotion_toomany; + + delitem "MauveHerb", 40; + delitem "BottleOfWater", 1; + getitem "ManaPotion", 1; + + mes "[Wyara the Witch]"; + mes "Wyara takes your mauve leaves, grinds them, and pours some of the resultant paste into her cauldron. She then takes your bottle and sticks it into her brew, head-first."; + next; + + mes "[Wyara the Witch]"; + mes "The water in the bottle takes on a strange golden hue, but doesn't flow out."; + mes "After a while, she retrieves the bottle, fills some of the liquid into a smaller, clay bottle, mixes in the rest of the paste, plugs the bottle and shakes it."; + next; + + mes "[Wyara the Witch]"; + mes "\"I shall keep the rest of your water and the bottle as a payment, if you don't mind. But here is the potion; let it rest for a minute before you use it for maximum effect.\""; + next; + + goto L_Main; + +L_make_manapotion_lack: + mes "[Wyara the Witch]"; + mes "\"No, we need forty mauve leaves and a bottle of water.\""; + next; + + goto L_Main; + +L_Q_imp: + mes "[Wyara the Witch]"; + mes "\"Sagatha told me that she imprisoned an evil earth spirit in a dried-up well. She wants it to stay there until it has mended its ways, or forever, if it doesn't.\""; + next; + goto L_Main; + +L_Q_sagatha: + mes "[Wyara the Witch]"; + mes "Wyara smiles."; + mes "\"You have met Sagatha? She's a wonderful person, isn't she? Well, she does hold back a little towards humans, but deep down she feels for them, too.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"She does hold all plants and animals very dear, though. Well, the peaceful ones more than the aggressive ones, I suppose, and scorpions not very much at all.\""; + next; + + goto L_Main; + +L_Q_auldsbel: + mes "[Wyara the Witch]"; + mes "\"Auldsbel... the guild wizard? I don't know him very well; as far as I know, he is only visiting.\""; + next; + + goto L_Main; + +L_Magic_no: + mes "[Wyara the Witch]"; + mes "\"I am sorry, but you don't seem to be able to control any magic. That means that I really can't help you with that.\""; + next; + goto L_Main; + +L_Magic: + if (!@has_magic) + goto L_Magic_no; + mes "[Wyara the Witch]"; + mes "\"Perhaps I can help you a little, but I am not a master of any school of magic.\""; + next; + +L_Magic_main: + menu + "Can you explain magic to me?", L_Magic_explain, + "Can you teach me a spell?", L_Magic_spell, + "Can you train me?", L_Magic_train, + "Never mind.", -; + + goto L_Main; + +L_Magic_explain: + mes "[Wyara the Witch]"; + mes "\"Magic is just a name for the force that lives in all plants and animals and emanates from there into all things, living or dead.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"Some things it finds easier to pass through-- natural things, living things-- but dead things, such as rock or metal, can slow it down.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"There are different kinds of magic, too; nature, astral, and so on, but if this interests you, you should talk to a scholar.\""; + next; + + goto L_Magic_main; + +L_Magic_spell: + if (getskilllv(SKILL_MAGIC_NATURE) > 1) + goto L_Magic_spell3; + if (getskilllv(SKILL_MAGIC) > 1) + goto L_Magic_spell2; + mes "[Wyara the Witch]"; + mes "\"No... I don't think that you are ready yet. But please ask me again when you have some more control over your magical powers.\""; + next; + + goto L_Magic_main; + +L_Magic_spell3: + mes "[Wyara the Witch]"; + mes "\"Now that you know the basics of nature magic, here is one of my favourites: '" + getspellinvocation("rain") + "' will summon rain, whereever you are standing. It will consume a bottle of water, though.\""; + if (getskilllv(SKILL_MAGIC) < 2) + mes "\"You are not powerful enough to use it yet, though; you will first have to absorb more magic from the mana seed.\""; + next; + +L_Magic_spell2: + mes "[Wyara the Witch]"; + mes "\"Here is another useful one: '" + getspellinvocation("detect-players") + "'. It will tell you the names of everyone nearby, but beware that there are ways to protect against it.\""; + if (getskilllv(SKILL_MAGIC) < 2) + mes "\"Hmm. You aren't powerful enough for this one either yet, I think.\""; + next; + + if (!(getpartnerid2(0))) + goto L_Magic_main; + + mes "[Wyara the Witch]"; + mes "\"Married partners can find each other even more easily. Use the '" + getspellinvocation("sense-spouse") + "' spell instead.\""; + next; + goto L_Magic_main; + +L_Magic_train: + if (getskilllv(SKILL_MAGIC_NATURE) > 1) + goto L_Magic_train_no; + mes "[Wyara the Witch]"; + + if (@Q_status >= @STATUS_PURIFY_EXPLAINED) + goto L_Magic_train_wb; + + mes "\"Train you? No... you should talk to Sagatha.\""; + mes "She hesitates."; + next; + + callfunc "SagathaStatus"; + + if (@evil) + goto L_Magic_train_evil; + + mes "[Wyara the Witch]"; + mes "\"It would be difficult to ask her to accept you unless you understand some of the basics already.\""; + next; + + goto L_Magic_train_dispatch; + +L_Magic_train_evil: + mes "Wyara looks at you sadly."; + mes "\"I have heard that you have done something unforgiveable. No witch in this land will teach you now.\""; + next; + goto L_Magic_main; + +L_Magic_train_wb: + callfunc "SagathaStatus"; + + if (@evil) + goto L_Magic_train_evil; + + mes "\"Ah, yes, your training...\""; + next; + + +L_Magic_train_dispatch: + if (@Q_status == @STATUS_PURIFY_TWICE) + goto L_Magic_purify_done; + if (@Q_status == @STATUS_PURIFY_ONCE) + goto L_Magic_purify_once; + if (@Q_status == @STATUS_PURIFY_EXPLAINED) + goto L_Magic_purify_explained; + + mes "[Wyara the Witch]"; + mes "\"Well, let me help you get started, then! But first, to make sure that you are serious, I have a small task for you.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"There is a pond west of Hurnscald, a very small one, almost square in shape, with a rock on its southern ledge leading to its center. This pond is close to dying.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"I want to save it; for that, someone will have to pour a purification potion into it.\""; + next; + + set @Q_status, @STATUS_PURIFY_EXPLAINED; + callsub S_update_var; +L_Magic_purify_explained: + if (countitem("PurificationPotion")) + goto L_Magic_purify_doit; + + mes "[Wyara the Witch]"; + mes "\"To make the purification potion, I will need twenty maggot slimes and twenty leaves of mauve.\""; + next; + + menu + "I shall get them later.", L_Magic_main, + "Booring.", L_Magic_main, + "Here they are.", -; + + getinventorylist; + if ((@inventorylist_count == 100) && (countitem("MauveHerb") > 20) && (countitem("MaggotSlime") > 20)) + goto L_Magic_purify_nospace; + + if (countitem("MauveHerb") < 20) + goto L_Magic_purify_lacking; + if (countitem("MaggotSlime") < 20) + goto L_Magic_purify_lacking; + + delitem "MauveHerb", 20; + delitem "MaggotSlime", 20; + getitem "PurificationPotion", 1; + mes "[Wyara the Witch]"; + mes "Wyara grinds the leaves and mixes them with the slime, boils them, then speaks a brief incantation over them and hands you the result."; + next; + +L_Magic_purify_doit: + mes "[Wyara the Witch]"; + mes "\"Take your purification potion to the pond, right next to its center, and pour the potion in.\""; + close; + +L_Magic_purify_nospace: + mes "[Wyara the Witch]"; + mes "\"You don't have enough space to carry the potion. Please come back later.\""; + next; + goto L_Magic_main; + +L_Magic_purify_lacking: + mes "[Wyara the Witch]"; + mes "\"You'll need twenty mauve leaves and twenty maggot slimes for the potion.\""; + next; + goto L_Magic_main; + +L_Magic_purify_once: + mes "[Wyara the Witch]"; + mes "Wyara nods."; + mes "\"You have purified the pond a little, but not enough, I think. We'll need another potion.\""; + next; + + if (countitem("PurificationPotion")) + goto L_Magic_purify_doit2; + + mes "[Wyara the Witch]"; + mes "\"I'll need twenty more maggot slimes and leaves of mauve.\""; + next; + + menu + "I'll do that later.", L_Main, + "No way.", L_Main, + "Here you are.", -; + getinventorylist; + if ((@inventorylist_count == 100) && (countitem("MauveHerb") > 20) && (countitem("MaggotSlime") > 20)) + goto L_Magic_purify_nospace; + + if (countitem("MauveHerb") < 20) + goto L_Magic_purify_lacking; + if (countitem("MaggotSlime") < 20) + goto L_Magic_purify_lacking; + + delitem "MauveHerb", 20; + delitem "MaggotSlime", 20; + getitem "PurificationPotion", 1; + mes "[Wyara the Witch]"; + mes "Wyara brews another purification potion."; + next; +L_Magic_purify_doit2: + mes "[Wyara the Witch]"; + mes "\"Please apply this one quickly, again.\""; + close; + +L_Magic_purify_done: + mes "[Wyara the Witch]"; + mes "Wyara smiles at you."; + mes "\"A friend told me... you have saved the pond for now. Perhaps it will need some more attention later, but I'll ask others for this.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"Please sit down and touch the ground.\""; + next; + + menu + "Very well.", -, + "No way!", L_Magic_purify_abort; + + mes "[Wyara the Witch]"; + mes "You sit down and touch the ground, and so does Wyara."; + next; + + mes "[Wyara the Witch]"; + mes "You sense the earth, through the floor boards, and begin to feel one with it, as if you were a plant or rock."; + next; + + mes "[Wyara the Witch]"; + mes "The gentle breeze coming in through the window begins to take on a very different quality, as if it were the gentle caress of a mother soothing her child."; + next; + + mes "[Wyara the Witch]"; + mes "You can sense the water within the ground, and from it you sense your sisters and brothers, plants, animals, people..."; + next; + + mes "[Wyara the Witch]"; + mes "Slowly, the sensation recedes, but you feel changed."; + + set @SUP_xp, 5000; + set @SUP_lvl, 2; + callfunc "SkillUp"; + + set @Q_status, @STATUS_PURIFY_OVER; + callsub S_update_var; + close; + +L_Magic_purify_abort: + mes "[Wyara the Witch]"; + mes "\"I can't help you if you don't subject yourself to the ritual.\""; + close; + +L_Magic_train_no: + mes "[Wyara the Witch]"; + mes "\"I can't teach you anything at this time. Perhaps Sagatha can help you, but I'm not sure if she will accept you as a student.\""; + next; + +L_Magic_train_sagatha: + menu + "OK.", L_Magic_main, + "How can I convince her to accept me?", -; + + callfunc "SagathaStatus"; + mes "[Wyara the Witch]"; + if (@evil) + goto L_Magic_train_sagatha_fail; + + if (getskilllv(SKILL_MAGIC) < 2) + goto L_Magic_train_sagatha_lvl1; + + if (@good > 1) + mes "\"Come to think of it, I have heard good things about you. Perhaps she will be willing to accept you as a student now?\""; + if (@good == 1) + mes "\"I have heard some good things about you, but I'm not sure if it will be enough to sway her-- she is hesitant to accept students.\""; + if (@good == 0) + mes "\"Sagatha cares greatly about all living creatures, but particularly about the creatures of the forest. If you are kind to them, she will be more likely to be kind to you.\""; + next; + + if (@druid == 3) + goto L_Magic_main; + + mes "[Wyara the Witch]"; + mes "She smiles."; + mes "\"Actually, I think I know of a good thing you could do. There is a very special tree in the desert south-east of Tulimshar, a tree that has been there for a very long time.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"The tree is slowly dying-- and has been for a long time-- but it is there because of a wonderful thing that happened long ago. Tend to it, and I am sure that she will learn about this.\""; + next; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_DRUIDTREE; + + menu + "What is that tree?", L_Magic_train_tree_backgd, + "How should I tend to it?", -, + "Nah.", L_Magic_main; + + mes "[Wyara the Witch]"; + mes "\"The tree has been there alone and unattended for a long time; what he needs most is water and affection. Give him both.\""; + next; + mes "[Wyara the Witch]"; + mes "She hesitates for a moment."; + mes "\"But stay away from the well in the area. There is no water in there anymore, and it's also dangerous.\""; + next; + goto L_Magic_main; + +L_Magic_train_tree_backgd: + mes "[Wyara the Witch]"; + mes "\"Many generations ago, there was a lush, green oasis in the desert south-east of Tulimshar. Plants of all kinds grew there, and many animals, including mouboos, made this place their home.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"Then there came war, and some people pleaded to the demon Grenxen. He founded Tulimshar, and to provide it with water he changed the underground waterflow. The oasis began to dry out quickly.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"But the oasis, like many such places back in the old days, had a druid watching over it. The druid refused to accept what Grenxen had done, but he was powerless to revert or change it.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"All he could do was to delay the inevitable, to give the animals and nomads some time to adapt.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"But to do so, he had to reach the water streams deep underground. Thus, he turned himself into a tree, a deep-rooted fyrad, so that his roots could reach underground.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"He had to exert himself tremendously; he had to grow deep, quickly; I believe that no druid or witch has summoned such magic before or since. But he succeeded, and for a while he saved the oasis.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"Many generations he remained the only one ever to have successfully defied Grenxen, but this came at a price: he had to remain a tree, and he never turned back.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"I believe that he has not forgotten his old magic, because even though a tree remembers many things for a very long time, trees are not keen to change things, not even themselves.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"Now he stands alone in the desert, dried-up and forgotten, with no-one remembering him.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"Please give him water, for he is always in need of it, and thank him for his sacrifice. It is all we can do for him now.\""; + next; + +L_Magic_tree_menu: + menu + "How should I give him water?", L_Magic_tree_water, + "How should I thank him?", L_Magic_tree_remind, + "I will.", -, + "No.", -; + goto L_Magic_main; + +L_Magic_tree_water: + mes "[Wyara the Witch]"; + mes "\"A bottle of water would probably not be enough. No, you would have to water the ground all around... that's too many bottles. You will have to get water from elsewhere.\""; + next; + goto L_Magic_tree_menu; + +L_Magic_tree_remind: + mes "[Wyara the Witch]"; + mes "\"Give him a sign of affection. Something that works with a tree, but also something that humans might do to each other, to remind him of his days as a human.\""; + next; + + mes "[Wyara the Witch]"; + mes "\"Yes... that would be important. Show your affection in the same way that you might towards a human.\""; + next; + goto L_Magic_tree_menu; + +L_Magic_train_sagatha_fail: + mes "She shakes her head."; + mes "\"No... from what I have heard, you have done something unforgivable. I very much doubt that you can be her student now, and I won't teach you any further either.\""; + next; + goto L_Magic_main; + +L_Magic_train_sagatha_lvl1: + mes "\"Well, you're still a bit of a beginner, so I don't think she will accept you yet. Maybe you can absorb some more power from the mana seed? If you can grow your magical powers a little, I might be able to help you.\""; + next; + goto L_Magic_main; + +S_update_var: + set QUEST_MAGIC2, + (QUEST_MAGIC2 & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/009-3/_import.txt b/world/map/npc/009-3/_import.txt new file mode 100644 index 00000000..12bf619c --- /dev/null +++ b/world/map/npc/009-3/_import.txt @@ -0,0 +1,7 @@ +// Map 009-3: Cave beneath Hurnscald +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 009-3.gat +npc: npc/009-3/_mobs.txt +npc: npc/009-3/_warps.txt +npc: npc/009-3/monsters.txt +npc: npc/009-3/sword.txt diff --git a/world/map/npc/009-3/_mobs.txt b/world/map/npc/009-3/_mobs.txt new file mode 100644 index 00000000..b1cc7bc4 --- /dev/null +++ b/world/map/npc/009-3/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave beneath Hurnscald mobs + + + +009-3.gat,0,0,0 script Mob009-3 -1,{ + end; +} diff --git a/world/map/npc/009-3/_warps.txt b/world/map/npc/009-3/_warps.txt new file mode 100644 index 00000000..57adbca9 --- /dev/null +++ b/world/map/npc/009-3/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave beneath Hurnscald warps + +009-3.gat,173,20 warp CaveExitToInn -1,-1,009-2.gat,147,88 +009-3.gat,20,56 warp ToLakeCave -1,-1,011-4.gat,129,88 +009-3.gat,157,30 warp toCave -1,-1,018-3.gat,179,178 +009-3.gat,117,19 warp toCave -1,-1,013-3.gat,160,101 diff --git a/world/map/npc/009-3/monsters.txt b/world/map/npc/009-3/monsters.txt new file mode 100644 index 00000000..b69bb3a1 --- /dev/null +++ b/world/map/npc/009-3/monsters.txt @@ -0,0 +1,26 @@ +// Map: 009-3 +// This is the cave beneath Hurnscald. +// + +009-3.gat,0,0,0,0 monster YellowSlime 1007,20,0,0,Mob35::OnYellowSlime +009-3.gat,0,0,0,0 monster RedSlime 1008,35,0,0,Mob35::OnRedSlime +009-3.gat,0,0,0,0 monster BlackScorpion 1009,25,0,0,Mob35::OnBlackScorpion + +009-3.gat,0,0,0 script Mob35 -1,{ +OnYellowSlime: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +OnRedSlime: + set @mobID, 1008; + callfunc "MobPoints"; + break; + +OnBlackScorpion: + set @mobID, 1009; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/009-3/sword.txt b/world/map/npc/009-3/sword.txt new file mode 100644 index 00000000..fbb47433 --- /dev/null +++ b/world/map/npc/009-3/sword.txt @@ -0,0 +1,185 @@ +009-3.gat,26,100,0 script #MysticSword#_M 127,{ + if (getskilllv(SKILL_MAGIC)) + goto L_message; + close; + +L_message: + set @Q_MASK, NIBBLE_6_MASK; + set @Q_SHIFT, NIBBLE_6_SHIFT; + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC_WAR; + set @SUP_name$, "War Magic"; + + set @STATUS_INITIAL, 0; + set @STATUS_LEARNED_FLAREDART, 1; + set @STATUS_LEARNED_MAGICBLADE, 2; + set @STATUS_LEVEL2, 3; + set @STATUS_W11, 4; + set @STATUS_W12, 5; + set @STATUS_W11_12, 6; + set @STATUS_L2_ALLSPELLS, 7; + + if (@Q_status == @STATUS_INITIAL) goto L_Initial; + if (@Q_status == @STATUS_LEARNED_FLAREDART) goto L_PostFlareDart; + if (@Q_status == @STATUS_LEARNED_MAGICBLADE) goto L_PostFlareDart_teach2; + if (@Q_status == @STATUS_LEVEL2) goto L_L2_W11; + if (@Q_status == @STATUS_W12) goto L_L2_W11; + if (@Q_status == @STATUS_W11) goto L_L2_almost_done; + if (@Q_status == @STATUS_W11_12) goto L_L2_almost_done; + + mes "[Magic Sword]"; + mes "\"Come back when thou art stronger.\""; + close; + +L_Initial: + mes "[Magic Sword]"; + mes "As you look at the sword, you suddenly hear a voice in your head!"; + mes "\"Welcome to my prison, mortal!\""; + next; + + mes "[Magic Sword]"; + mes "Well, either you are going mad, or that sword in the stone is talking to you."; + next; + + mes "[Magic Sword]"; + mes "Or, well, both."; + next; + + mes "[Magic Sword]"; + mes "The deep basso voice continues."; + mes "\"I know not what brought thee hither, but I kindly ask that thou leavest me alone in my sorrow.\""; + next; + + menu + "Leave", L_Close, + "Sorry.", -, + "Who or what are you?", -, + "What sorrow?", -, + "Can I help?", -, + "Can you teach me magic?", -; + + mes "[Magic Sword]"; + mes "There is no answer."; + close; + +L_PostFlareDart: + mes "[Magic Sword]"; + mes "As you look at the sword, you hear a deep voice resounding in your head."; + mes "\"Welcome, mortal!\""; + next; + + menu + "Hi! How are you?", L_PostFlareDart_hi, + "Can you teach me magic?", L_PostFlareDart_teach, + "Your sister sent me.", L_PostFlareDart_sister, + "Bye!", -; + close; + +L_PostFlareDart_hi: + mes "[Magic Sword]"; + mes "\"Mortal... I have seen pain and death beyond thine reckoning! Mock me not with thine idle questions!\""; + close; + +L_PostFlareDart_sister: + mes "[Magic Sword]"; + mes "\"My sister...? Alas! I remember now; abandoned she was, just as I; buried in stone, never to be wielded again.\""; + mes "\"Wherefore did she send thee?\""; + next; + + menu "She asked me to ask you to teach me a spell.", -; + +L_PostFlareDart_teach: + mes "[Magic Sword]"; + mes "\"Beware, mortal... the only spells I can teach thee are those of the school of war. Dark and dreary spells, that lot! Pain and misery is all they bring...\""; + next; + + mes "[Magic Sword]"; + mes "The sword's voice is growing apprehensive."; + mes "\"Once a spell has been learned, it cannot be taken back, no more than a death can be undone. So be careful, mortal... dost thou truly wish to know the secrets of thus destructive power?\""; + next; + + menu + "Yes.", -, + "No.", L_Close; + + mes "[Magic Sword]"; + mes "\"So thou art bound to the path of War, as am I, as is my sister...\""; + next; + + mes "[Magic Sword]"; + mes "\"So be it, fellow warrior. Hear the incantation for the blade spell: '" + getspellinvocation("magic-blade") + "'\""; + mes "\"Hold a knife, sharp or regular, when thou speakest it.\""; + set @Q_status, @STATUS_LEARNED_MAGICBLADE; + callsub S_update_var; + next; + + mes "[Magic Sword]"; + mes "\"But beware... the path of war that thou hast embarked upon is one from which few return. May luck be on thy side...\""; + close; + +L_PostFlareDart_teach2: + mes "[Magic Sword]"; + mes "\"Seek out my sister, and leave me alone in my sorrows.\""; + next; + +L_Close: + close; + +L_L2_W11: + mes "[Magic Sword]"; + mes "\"Thou hast returned. That must mean that thy wish to learn the magic of war is still alive?\""; + next; + menu + "No, I just wanted to say `hi'.", L_sayhi, + "Yes, teach me more!", -; + + mes "[Magic Sword]"; + mes "\"If that is thou wishest, I shall not stop thee. But do not expect to find merriment down this road.\""; + mes "\"I must ask that thou sacrificest five thousand monster points for this, however.\""; + menu + "No, I don't want that.", L_farewell, + "Very well.", -; + + if (Mobpt < 5000) goto L_lacking_mobpoints; + + mes "[Magic Sword]"; + mes "\"So be it, then.\""; + mes "[1000 experience points]"; + set Mobpt, Mobpt - 5000; + getexp 1000, 0; + set @Q_status, @Q_status + 1; + callsub S_update_var; + next; + + mes "[Magic Sword]"; + mes "\"The spell I shall teach thee is the hail of arrows spell. It will make arrows fall down from the heavens unto thy enemies.\""; + next; + + mes "[Magic Sword]"; + mes "\"Take twenty arrows, sprinkle sulphur powder over them, and then speak '" + getspellinvocation("arrow-hail") + "'. Throw them high up in the air, and watch the hail unfold before thy feet.\""; + close; + + +L_L2_almost_done: + mes "[Magic Sword]"; + mes "\"Return to my sister now. I expect that she shall teach thee one more spell.\""; + close; + +L_lacking_mobpoints: + mes "[Magic Sword]"; + mes "\"Thou lackest the monster points needed to prove thy worthiness. I shall not reveal more to thee until thou hast slain more monsters.\""; + close; + +L_sayhi: + mes "[Magic Sword]"; + mes "\"Please leave me in peace.\""; + close; + +S_update_var: + set QUEST_MAGIC, + (QUEST_MAGIC & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/009-4/_import.txt b/world/map/npc/009-4/_import.txt new file mode 100644 index 00000000..db91605c --- /dev/null +++ b/world/map/npc/009-4/_import.txt @@ -0,0 +1,10 @@ +// Map 009-4: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 009-4.gat +npc: npc/009-4/_mobs.txt +npc: npc/009-4/_warps.txt +npc: npc/009-4/barriers.txt +npc: npc/009-4/orum.txt +npc: npc/009-4/orum_warps.txt +npc: npc/009-4/torches.txt +npc: npc/009-4/waric.txt diff --git a/world/map/npc/009-4/_mobs.txt b/world/map/npc/009-4/_mobs.txt new file mode 100644 index 00000000..f4c9140e --- /dev/null +++ b/world/map/npc/009-4/_mobs.txt @@ -0,0 +1,30 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + +009-4.gat,117,97,24,15 monster Silkworm 1035,3,20000,14000,Mob009-4::On1035 +009-4.gat,115,98,24,15 monster Cave Snake 1021,5,20000,14000,Mob009-4::On1021 +009-4.gat,103,28,24,15 monster Cave Snake 1021,3,20000,14000,Mob009-4::On1021 +009-4.gat,106,27,24,15 monster Silkworm 1035,3,20000,14000,Mob009-4::On1035 +009-4.gat,119,44,12,10 monster Silkworm 1035,3,20000,14000,Mob009-4::On1035 +009-4.gat,72,130,24,15 monster Maggot 1002,3,20000,14000,Mob009-4::On1002 +009-4.gat,38,116,24,15 monster Maggot 1002,3,20000,14000,Mob009-4::On1002 + + +009-4.gat,0,0,0 script Mob009-4 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1021: + set @mobID, 1021; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/009-4/_warps.txt b/world/map/npc/009-4/_warps.txt new file mode 100644 index 00000000..e666d8ca --- /dev/null +++ b/world/map/npc/009-4/_warps.txt @@ -0,0 +1,9 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +009-4.gat,37,112 warp to 009-3 -1,-1,009-3.gat,162,114 +009-4.gat,72,136 warp to Cavern -1,-1,009-4.gat,36,27 +009-4.gat,37,123 warp to Cavern -1,-1,009-4.gat,36,27 +009-4.gat,72,125 warp to 009-3 -1,-1,009-3.gat,162,114 +009-4.gat,103,22 warp to Cavern -1,-1,009-4.gat,51,46 +009-4.gat,103,76 warp to torches -1,-1,009-4.gat,51,46 diff --git a/world/map/npc/009-4/barriers.txt b/world/map/npc/009-4/barriers.txt new file mode 100644 index 00000000..349ec44e --- /dev/null +++ b/world/map/npc/009-4/barriers.txt @@ -0,0 +1,229 @@ +//# see detailed description at orum.txt +function script GetBarrierColor { + if (@Barrier < 0 || @Barrier > 2) goto L_Error; + + set @Mask, 15; + set @Shift, 4 * @Barrier; + set @BarrierColor, (OrumQuestBarrier >> @Shift) & @Mask; + return; + +L_Error: + mes "Barrier number is out of range."; + close; +} + +function script SetBarrierColor { + if (@Barrier < 0 || @Barrier > 2) goto L_Error; + if (@Color < 0 || @Color > 12) goto L_Error2; + + set @Mask, (15 << (4 * @Barrier)); + set OrumQuestBarrier, (OrumQuestBarrier & (~(@Mask))) | @Color << (4 * @Barrier); + return; + +L_Error: + mes "Barrier number is out of range."; + close; + +L_Error2: + mes "Barrier color is out of range."; + close; +} + + +// Starting Barrier / Quest Entrance +009-4.gat,37,120,0 script #OrumCaveStartBarrier 0,1,0,{ + + if (OrumQuest >= 3) close; + if (OrumQuest == 2) goto L_Started; + + warp "009-4.gat", 37, 118; + mes "As you try to pass, two torches begin to flare and push you back. They seem to form some kind of barrier.."; + close; + +L_Started: + message strcharinfo(0), "The torches dim as you approach, granting you passage."; + set OrumQuest, 3; + close; +} + +// First Barrier +009-4.gat,57,29,0 script #OrumCaveFirstBarrier 0,1,0,{ + + if (OrumQuest >= 5) close; + + message strcharinfo(0), "Nothing seems to happen as you enter this room.. The barrier must need both of its torches to function properly.."; + set OrumQuest, 5; + close; +} + +// Second Barrier +009-4.gat,61,54,0 script #OrumCaveSecondBarrier 0,1,0,{ + + if (OrumQuest == 3) set OrumQuest, 4; + + set @Barrier, 0; + callfunc("GetBarrierColor"); + set @Torch, 0; + callfunc("GetTorchColor"); + if (OrumQuest > 7 && @TorchColor == @BarrierColor) goto L_Allow_Second_Passage; + + warp "009-4.gat", 61, 56; + mes "As you try to pass, the torches begin to flare and push you back. Perhaps there's a way to get past it.."; + mes ""; + setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; + mes "Looking closely between the two torches you can see the barrier has a " + @colors$[@BarrierColor] + " tint to it.."; + close; + +L_Allow_Second_Passage: + if (OrumQuest < 9) goto L_Advance_Quest; + close; + +L_Advance_Quest: + message strcharinfo(0), "The torches dim as you enter like the first. You must be on the right trail.."; + set OrumQuest, 9; + close; +} + +// Third Barrier +009-4.gat,24,66,0 script #OrumCaveThirdBarrier 0,1,0,{ + + if (OrumQuest == 3) set OrumQuest, 4; + + set @Barrier, 1; + callfunc("GetBarrierColor"); + + set @Torch, 0; + callfunc("GetTorchColor"); + set @Torch1Color, @TorchColor; + + set @Torch, 1; + callfunc("GetTorchColor"); + set @Torch2Color, @TorchColor; + + set @firstColor, @BarrierColor - 2; + set @secondColor, @BarrierColor + 2; + if (@firstColor < 1) set @firstColor, 12; + if (@secondColor > 12) set @secondColor, 1; + + if (OrumQuest > 8 && @Torch1Color == @firstColor && @Torch2Color == @secondColor) + goto L_Allow_Third_Passage; + if (OrumQuest > 8 && @Torch2Color == @firstColor && @Torch1Color == @secondColor) + goto L_Allow_Third_Passage; + + warp "009-4.gat", 24, 64; + mes "As you try to pass, the torches begin to flare and push you back. Perhaps there is a way to get past it.."; + mes ""; + setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; + mes "Looking closely between the two torches you can see the barrier has a " + @colors$[@BarrierColor] + " tint to it.."; + close; + +L_Allow_Third_Passage: +if (OrumQuest < 10) goto L_Advance_Quest; + close; + +L_Advance_Quest: + set OrumQuest, 10; + close; +} + +// Ending Barrier +009-4.gat,48,38,0 script #OrumCaveEndBarrier 0,1,0,{ + + if (OrumQuest >= 11) close; + if (OrumQuest == 3) set OrumQuest, 4; + + set @Barrier, 2; + callfunc("GetBarrierColor"); + + if (OrumQuest < 10) goto L_Deny_Final_Passage; + + set @Torch, 0; + callfunc("GetTorchColor"); + set @Torch1Color, @TorchColor; + + set @Torch, 1; + callfunc("GetTorchColor"); + set @Torch2Color, @TorchColor; + + set @Torch, 2; + callfunc("GetTorchColor"); + set @Torch3Color, @TorchColor; + + // Extract the secondary color + set @secondary, @BarrierColor - 1; + if (@secondary != 3 && @secondary != 7 && @secondary != 11) + set @secondary, @BarrierColor + 1; + + // Make sure it's in bounds + if (@secondary > 12) set @secondary, @secondary - 12; + if (@secondary < 1) set @secondary, @secondary + 12; + + // Extract first 2 required colors + set @firstColor, @secondary - 2; + set @secondColor, @secondary + 2; + if (@firstColor > 12) set @firstColor, @firstColor - 12; + if (@firstColor < 1) set @firstColor, @firstColor + 12; + if (@secondColor > 12) set @secondColor, @secondColor - 12; + if (@secondColor < 1) set @secondColor, @secondColor + 12; + + set @thirdColor, 12; + set @offsetOne, @BarrierColor + 1; + set @offsetTwo, @BarrierColor - 1; + + // Make sure they in bounds + if (@offsetOne > 12) set @offsetOne, @offsetOne - 12; + if (@offsetOne < 1) set @offsetOne, @offsetOne + 12; + if (@offsetTwo > 12) set @offsetTwo, @offsetTwo - 12; + if (@offsetTwo < 1) set @offsetTwo, @offsetTwo + 12; + + // Extract third needed color + if (@secondary == @offsetOne) + set @thirdColor, @firstColor; + if (@secondary == @offsetTwo) + set @thirdColor, @secondColor; + + set @firstDone, 0; + set @secondDone, 0; + set @thirdDone, 0; + + if (@firstDone == 0 && @secondDone != 1 && @thirdDone != 1 && @Torch1Color == @firstColor) + set @firstDone, 1; + if (@firstDone != 1 && @secondDone == 0 && @thirdDone != 1 && @Torch1Color == @secondColor) + set @secondDone, 1; + if (@firstDone != 1 && @secondDone != 1 && @thirdDone == 0 && @Torch1Color == @thirdColor) + set @thirdDone, 1; + + if (@firstDone == 0 && @secondDone != 2 && @thirdDone != 2 && @Torch2Color == @firstColor) + set @firstDone, 2; + if (@firstDone != 2 && @secondDone == 0 && @thirdDone != 2 && @Torch2Color == @secondColor) + set @secondDone, 2; + if (@firstDone != 2 && @secondDone != 2 && @thirdDone == 0 && @Torch2Color == @thirdColor) + set @thirdDone, 2; + + if (@firstDone == 0 && @secondDone != 3 && @thirdDone != 3 && @Torch3Color == @firstColor) + set @firstDone, 3; + if (@firstDone != 3 && @secondDone == 0 && @thirdDone != 3 && @Torch3Color == @secondColor) + set @secondDone, 3; + if (@firstDone != 3 && @secondDone != 3 && @thirdDone == 0 && @Torch3Color == @thirdColor) + set @thirdDone, 3; + + if (@firstDone != 0 && @secondDone != 0 && @thirdDone != 0) goto L_Allow_Final_Passage; + goto L_Deny_Final_Passage; + +L_Deny_Final_Passage: + warp "009-4.gat", 48, 36; + mes "As you try to pass, the torches begin to flare and push you back. Perhaps there is a way to get past it.."; + mes ""; + setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; + mes "Looking closely between the two torches you can see the barrier has a " + @colors$[@BarrierColor] + " tint to it.."; + close; + +L_Allow_Final_Passage: + if (OrumQuest < 11) goto L_Advance_Quest; + close; + +L_Advance_Quest: + message strcharinfo(0), "The torches dim as you enter. At last you finally have access!"; + set OrumQuest, 11; + close; +} diff --git a/world/map/npc/009-4/orum.txt b/world/map/npc/009-4/orum.txt new file mode 100644 index 00000000..fae4dad7 --- /dev/null +++ b/world/map/npc/009-4/orum.txt @@ -0,0 +1,655 @@ +//################################################################################# +//# Orum/Waric Quest Part 1 - By Liana, reviewed by Stefan Beller # +//# GPL v.2 # +//# # +//# The first quest is to find Waric in the Caves with lots of torches. # +//# These torches must be set in the right color to have access to the next # +//# room, guarded by a magical barrier of other torches. # +//# # +//# The second quest is an easy, but background-story telling quest. # +//# Just visit the cave again, find what is really in there. # +//# # +//# # +//# Used variables: # +//# # +//# OrumQuest stores the progress of the quest # +//# OrumQuestTorch In nibble (0,1,2) the color of the torches is stored # +//# In nibble (3,4,5) the intensity of the torches is stored # +//# OrumQuestBarrier nibble (0,1,2) stores the color of the barriers # +//################################################################################# + +009-4.gat,37,115,0 script Orum 158,{ + // needed to pass the very first barrier + set @B0_WISPPOWDER, 4; + set @B0_POLTERGEISTPOWDER, 2; + set @B0_SPECTREPOWDER, 1; + set @B0_HARDSPIKES, 1; + + // needed stuff to get colorful powders + set @BT_IRONPOWDER, 10; + set @BT_PILESOFASH, 10; + set @BT_HERBS, 15; + + // how many colorful powders each do you get as reward? + set @BT_REWARDCOUNT, 10; + + // no exp for breaking the barrier ? + set @EXP_BREAK_BARRIERS, 0; + + if (OrumQuest > 0) goto L_Started; + + mes "[Orum]"; + mes "\"It's not wise to venture around this place! Well hmm.. I guess since you're here, maybe you can lend a little help?\""; + next; + + menu + "What exactly is 'this place'?", L_Explain, + "Umm.. what kind of help?", L_Explain, + "You're right, I'll be on my way.", -; + + mes "[Orum]"; + mes "\"Very smart thinking!\""; + close; + +L_Explain: + mes "[Orum]"; + mes "\"Recently a woman claiming to be a witch came to my village seeking help from my mentor Waric, who is a very powerful wizard, but he refused and she left. But..\""; + next; + + mes "[Orum]"; + mes "\"The next day he went missing! I'm no wizard yet, but from what I overheard.. I think that witch is attempting some very foul magic and has kidnapped him for some reason!\""; + next; + + mes "[Orum]"; + mes "\"I traveled in the direction she left until I came accross this cave, but it appears to be protected by some type of magical barrier and I haven't been able to get further than this room.\""; + next; + + menu + "So where would I come in?", L_Explain_Barriers, + "I'd like to help but I have to go..", -; + + mes "[Orum]"; + mes "\"Thats too bad.. well, if you ever have some free time, I probably won't figure this out any time soon.\""; + close; + +L_Explain_Barriers: + mes "[Orum]"; + mes "\"I've examined this room and it appears that the barrier is made up of two torches on each side. The flame on them has a strange glow.. They must be imbued with magical properties.\""; + next; + + mes "[Orum]"; + mes "\"I've never come across anything like this barrier before.. It must be drawing it's power from the torches. I tried putting them out with conventional means but I had no luck..\""; + next; + + menu + "Have any other ideas on how we get past it?", L_Explain_Note, + "I think its meant to keep us out.. bye.", -; + + mes "[Orum]"; + mes "\"You may be right.. but she kidnapped Waric. I know it! So I must do something! If you ever change your mind I could sure use the help.\""; + close; + +L_Explain_Note: + mes "[Orum]"; + mes "\"Actually! After Woric went missing I looked around at his house a bit and came across a note the witch must have dropped. I skimmed over it and didn't pay much attention but I think it mentioned something about this barrier!\""; + next; + + mes "He pulls it out of his pocket and begins examining it.."; + next; + + mes "[Orum]"; + mes "\"Ah! Here it is! If I'm reading this right we may have found a way past it after all. I guess she would need a way to come and go unaffected while everyone else is kept from entering.\""; + next; + + menu + "What does it say??", L_Explain_Aura, + "Looks like you can do this without me.", -; + + mes "[Orum]"; + mes "\"Eh... well I guess I can't force you to stay..\""; + close; + +L_Explain_Aura: + mes "[Orum]"; + mes "\"Appears to be some kind of spell to place a magical aura around someone... Hmm, with these materials listed on here I'm going to guess this aura makes the wearer partly incorporeal..\""; + next; + + mes "[Orum]"; + mes "\"It looks like the barrier requires substances from 3 different incorporeal creatures.. I've heard of Wisps, Poltergeists, and Spectres before but I've never seen such a thing.\""; + next; + + mes "[Orum]"; + mes "\"Luckily I happen to be skilled in this field of magic! I'm pretty sure if I can get my hands on the materials listed on here I'll be able to cast this aura on us, and hopefully then we can get past this barrier!\""; + next; + + menu + "Let me guess.. that is my job?", L_Offer_Quest, + "I think someone is calling me.. Bye", -; + close; + +L_Offer_Quest: + mes "[Orum]"; + mes "\"Well you would probably do better than me since I don't know this area very well.. It's not too much stuff so I'm sure you won't have any trouble at all.\""; + next; + + menu + "Alright alright, just give me a list.", L_Start_Quest, + "I'm not your servant! Bye.", -; + + mes "[Orum]"; + mes "\"Everyone answers to someone.. that's just how the world is. If you ever change your mind I'll probably be here forever gathering these materials on my own..\""; + close; + +L_Start_Quest: + mes "He pulls a crumpled piece of paper from his pocket, smooths it out and writes a list on it before handing it to you.."; + next; + + mes "" + @B0_WISPPOWDER + " Wisp Powders,"; + mes "" + @B0_POLTERGEISTPOWDER + " Poltergeist Powders,"; + mes "" + @B0_SPECTREPOWDER + " Spectre Powders,"; + mes "" + @B0_HARDSPIKES + " Hard Spikes"; + next; + + menu + "Alright, I'll go get these.", L_Start_Gathering, + "You can forget it! I quit!", -; + + mes "[Orum]"; + mes "\"I know you'll be back... they always come back!\""; + close; + +L_Start_Gathering: + mes "[Orum]"; + mes "\"That's the spirit! But try not to take too long.\""; + set OrumQuest, 1; + close; + +L_Started: + if (OrumQuest == 1) goto L_Gathering; + if (OrumQuest == 2) goto L_Use_First_Barrier; + if (OrumQuest == 3) goto L_Explore; + if (OrumQuest == 4) goto L_Found_Barriers; + if (OrumQuest == 5) goto L_Found_Barriers; + if (OrumQuest == 6) goto L_Found_Torches; + if (OrumQuest == 7) goto L_Still_Gathering; + if (OrumQuest == 8) goto L_Finish_Up; + if (OrumQuest >= 9) goto L_Finished_Up; + close; + +L_Gathering: + mes "[Orum]"; + mes "\"Got all the things I asked for yet?\""; + next; + + menu + "Yep I have every last one of them!", L_Check_Materials, + "Can I get another list?", L_List_Materials, + "I still need a few things..", -; + + mes "Orum shakes his head in frustration.."; + next; + + mes "[Orum]"; + mes "\"You'd better get that stuff soon!\""; + close; + +L_List_Materials: + mes "He scavenges around in his pocket for another piece of paper then writes a new list.."; + next; + + mes @B0_WISPPOWDER + " Wisp Powders,"; + mes @B0_POLTERGEISTPOWDER + " Poltergeist Powders,"; + mes @B0_SPECTREPOWDER + " Spectre Powders,"; + mes @B0_HARDSPIKES + " Hard Spikes"; + next; + + mes "[Orum]"; + mes "\"And try not to lose this one.. I'm running out of stuff to write on!\""; + close; + +L_Check_Materials: + if (countitem("WispPowder") < @B0_WISPPOWDER || + countitem("PoltergeistPowder") < @B0_POLTERGEISTPOWDER || + countitem("SpectrePowder") < @B0_SPECTREPOWDER || + countitem("HardSpike") < @B0_HARDSPIKES) goto L_Missing_Materials; + + // check directly before deleting the objects. + delitem "WispPowder", @B0_WISPPOWDER; + delitem "PoltergeistPowder", @B0_POLTERGEISTPOWDER; + delitem "SpectrePowder", @B0_SPECTREPOWDER; + delitem "HardSpike", @B0_HARDSPIKES; + + mes "Orum carefully looks over all of the items then grins.."; + next; + + mes "[Orum]"; + mes "\"Well done! And you did not even take as long as I thought you would!\""; + next; + + mes "Orum takes the hard spikes in his hand and begins chanting some words.."; + next; + + mes "You watch as they begin to mold together, glowing brightly. He sprinkles in the powder you gathered and presses his hands together."; + + misceffect sfx_magic_transmute; + next; + + mes "Suddenly a feeling of dizzyness hits you and you begin to feel weightless.. It passes after a moment.."; + misceffect sfx_magic_nature; + misceffect 11, strcharinfo(0); + next; + + mes "[Orum]"; + mes "\"Well we are both still in one piece so that is a good sign! Now we'll have to see if I did it right.. mind going first?\""; + goto L_Setup_Lair; + close; + +L_Missing_Materials: + mes "Orum carefully looks over all of the items then squints his eyes at you.."; + next; + + mes "[Orum]"; + mes "\"I'm not going to attempt this spell until I have ALL the items on this note.. Go gather the missing materials!\""; + close; + +L_Setup_Lair: + set OrumQuest, 2; + + // Second Barrier + set @temp, rand(1,6); + set @Color, 1; + if (@temp == 1 || @temp == 4) set @Color, 1; + if (@temp == 2 || @temp == 5) set @Color, 5; + if (@temp == 3 || @temp == 6) set @Color, 9; + set @Barrier, 0; + callfunc("SetBarrierColor"); + + set @Torch, 0; + set @Color, rand(1, 12); + set @Intensity, 0; + callfunc("SetTorchColor"); + callfunc("SetTorchIntensity"); + + // Third Barrier + set @temp, rand(1,6); + set @Color, 3; + if (@temp == 1 || @temp == 4) set @Color, 3; + if (@temp == 2 || @temp == 5) set @Color, 7; + if (@temp == 3 || @temp == 6) set @Color, 11; + set @Barrier, 1; + callfunc("SetBarrierColor"); + + set @Torch, 1; + set @Color, rand(1, 12); + callfunc("SetTorchColor"); + callfunc("SetTorchIntensity"); + + // End Barrier + set @temp, rand(1,12); + set @Color, 2; + if (@temp == 1 || @temp == 7) set @Color, 2; + if (@temp == 2 || @temp == 8) set @Color, 4; + if (@temp == 3 || @temp == 9) set @Color, 6; + if (@temp == 4 || @temp == 10) set @Color, 8; + if (@temp == 5 || @temp == 11) set @Color, 10; + if (@temp == 6 || @temp == 12) set @Color, 12; + set @Barrier, 2; + callfunc("SetBarrierColor"); + + set @Torch, 2; + set @Color, rand(1, 12); + callfunc("SetTorchColor"); + callfunc("SetTorchIntensity"); + close; + +L_Use_First_Barrier: + mes "[Orum]"; + mes "\"Casting that aura took a lot out of me.. Why don't you go explore the cave a bit while I rest?\""; + close; + +L_Explore: + mes "Orum looks up as you approach.."; + next; + + mes "[Orum]"; + mes "\"Find anything interesting in this place?\""; + next; + + menu + "Yep.. a whole mess of torches!", L_Explain_Objective, + "I'm not sure what to look for..", L_Explain_Objective, + "Going to explore more, bye.", -; + + mes "[Orum]"; + mes "\"Be sure to let me know if you find anything. I've almost gained my energy back.\""; + close; + +L_Explain_Objective: + mes "[Orum]"; + mes "\"I'm positive this is where that witch took Waric, so this cave must lead to somewhere. Try looking around for another exit. I've almost gained my energy back and then I can help.\""; + close; + +L_Found_Barriers: + mes "Orum looks up as you approach.."; + next; + + mes "[Orum]"; + mes "\"Find anything interesting in this place?\""; + next; + + menu + "Yep.. a whole mess of torches!", L_Explain_Objective, + "I'm not sure what to look for..", L_Explain_Objective, + "I found more barriers.. but..", L_Explain_Barriers_More, + "Going to explore more, bye.", -; + + mes "[Orum]"; + mes "\"Be sure to let me know if you find anything. I'm still gaining my energy back.\""; + close; + +L_Explain_Barriers_More: + mes "[Orum]"; + mes "\"Hm let me guess.. the aura is ineffective on the rest of the barriers here?\""; + next; + + menu + "How did you know..?", L_Explain_Note_More, + "I'm not sure, I'll go try again.", -; + + mes "[Orum]"; + mes "\"Always a good idea to double check things!\""; + close; + +L_Explain_Note_More: + mes "[Orum]"; + mes "\"Well while I was resting I spent more time looking over the note that witch dropped.. And I think the aura is only to get past the entrance..\""; + next; + + mes "[Orum]"; + mes "\"It mentions some sort of security system to keep people from entering the actual lair but it doesn't explain in great detail. Try exploring more; maybe we will find some answers.\""; + next; + + mes "Orum continues examining the note.."; + close; + +L_Found_Torches: + mes "Orum looks up as you approach.."; + next; + + mes "[Orum]"; + mes "\"Find something interesting?\""; + next; + + menu + "Yep.. a whole mess of torches!", L_Explain_Objective, + "I'm not sure what to look for..", L_Explain_Objective, + "I found more barriers.. but..", L_Explain_Barriers_More, + "I found a strange torch by itself.", L_Explain_Torches, + "Going to explore more, bye.", -; + + mes "[Orum]"; + mes "\"Be sure to let me know if you find anything new.\""; + close; + +L_Explain_Torches: + mes "Orum has you direct him to the torch and he walks off to examine it before returning shortly after.."; + next; + + mes "[Orum]"; + mes "\"Ah yes! I was hoping we would find something like this!\""; + next; + + mes "[Orum]"; + mes "\"While examining the note I found another set of spells to create some type of powder and with them was a few notes on using it with some type of torch..\""; + next; + + mes "[Orum]"; + mes "\"I'll bet this torch has something to do with the rest of these barriers which are probably the security system this note mentions.\""; + next; + + mes "[Orum]"; + mes "\"We will probably need to transmute this powder before we can get any further past these barriers.. Would you mind gathering a few more materials?\""; + next; + + menu + "It better be the last time.", L_Gather_More, + "I'm done doing stuff for you!", -; + + mes "[Orum]"; + mes "\"I'm surprised you give up after we've gotten so far.. Shame.\""; + close; + +L_Gather_More: + mes "Orum begins writing down another list of materials.."; + next; + + mes @BT_IRONPOWDER + " Piles of Iron Powder,"; + mes @BT_PILESOFASH + " Piles of Sand or Ash,"; + mes @BT_HERBS + " Gamboge Herbs,"; + mes @BT_HERBS + " Alizarin Herbs,"; + mes @BT_HERBS + " Cobalt Herbs"; + next; + + menu + "Yikes! I'll try..", L_Gathering_More, + "No way! Too much stuff!", -; + + mes "[Orum]"; + mes "\"The note says to get these and I'm not going to attempt this spell until I have what the note says.\""; + close; + +L_Gathering_More: + set OrumQuest, 7; + mes "[Orum]"; + mes "\"Wonderful! Try to make it quick, we must save Waric!\""; + close; + +L_Still_Gathering: + mes "[Orum]"; + mes "\"Have you finished gathering those things yet?\""; + next; + + menu + "I believe I have!", L_Finished_Gathering_More, + "I lost my list.. again..", L_List_Materials_More, + "I've almost got them all..", -; + + mes "[Orum]"; + mes "\"Don't make me remind you again! Warics life is on the line here! Hurry up!\""; + close; + +L_List_Materials_More: + mes "He scavenges around in his pocket for another piece of paper then writes a new list.."; + next; + + mes @BT_IRONPOWDER + " Piles of Iron Powder,"; + mes @BT_PILESOFASH + " Piles of Sand or Ash,"; + mes @BT_HERBS + " Gamboge Herbs,"; + mes @BT_HERBS + " Alizarin Herbs,"; + mes @BT_HERBS + " Cobalt Herbs"; + next; + + mes "[Orum]"; + mes "\"And try not to lose this one.. I don't have much more to write on!\""; + close; + +L_Finished_Gathering_More: + if (countitem("IronPowder") < @BT_IRONPOWDER || + countitem("PileOfAsh") < @BT_PILESOFASH || + countitem("GambogeHerb") < @BT_HERBS || + countitem("AlizarinHerb") < @BT_HERBS || + countitem("CobaltHerb") < @BT_HERBS) goto L_Missing_Materials_More; + + delitem "IronPowder", @BT_IRONPOWDER; + delitem "PileOfAsh", @BT_PILESOFASH; + delitem "GambogeHerb", @BT_HERBS; + delitem "AlizarinHerb", @BT_HERBS; + delitem "CobaltHerb", @BT_HERBS; + + mes "[Orum]"; + mes "\"Excellent work! And once again you did not take as long as I was expecting. I guess I will get started..\""; + next; + + mes "You watch as Orum takes the iron powder and ash and begins chanting some words.. The two start to glow and mold together turning into a light, metallic looking powder.."; + next; + misceffect sfx_magic_transmute; + + mes "He then splits the powder into three piles and performs separate spells on each using the herbs. After he finishes you see 3 piles of colored metallic powder that appear to be red, yellow, and blue.."; + next; + misceffect sfx_magic_transmute; + + mes "[Orum]"; + mes "\"Well if I did it right.. These three powders are hopefully the key to getting past these barriers!\""; + next; + + mes "[Orum]"; + mes "\"I'm weary, I must take some time to rest. Why don't you go ahead and experiment with these powders on that torch and let me know if you figure what they have to do with it.\""; + + getitem "RedPowder", @BT_REWARDCOUNT; + getitem "YellowPowder", @BT_REWARDCOUNT; + getitem "BluePowder", @BT_REWARDCOUNT; + set OrumQuest, 8; + close; + +L_Missing_Materials_More: + mes "Orum carefully looks over all of the items then squints his eyes at you.."; + next; + + mes "[Orum]"; + mes "\"You really enjoy playing games with Warics life, don't you! Come back when you have ALL of the items I told you.\""; + close; + +L_Finish_Up: + mes "Orum seems to be sitting around doing nothing as you approach."; + next; + + mes "[Orum]"; + mes "\"Did you find a way past any of the barriers yet?\""; + next; + + menu + "No, I'm still not sure how..", L_Explain_Torches_More, + "I need more of that powder.", L_More_Powder, + "I'm still trying..", -; + + mes "[Orum]"; + mes "\"Excellent! Let me know when you've made any progress.\""; + close; + +L_Explain_Torches_More: + mes "[Orum]"; + mes "\"Most of the barriers here have a certain color radiating from them and so do the torches. The torches seem to react with this powder so maybe we have to make these torches turn a certain color in order to lower the barriers.\""; + next; + + mes "[Orum]"; + mes "\"It seems that the powders are only in these 3 colors, so you may have to experiment a bit to get the colors right.\""; + next; + + mes "[Orum]"; + mes "\"Also while looking around I saw that behind one of the barriers was a cave. Maybe Waric is in there.. we should try to get that barrier dropped.\""; + close; + +L_More_Powder: + mes "[Orum]"; + mes "\"You really used up that powder fast.. Luckily I can make more as long as you can bring me those materials again.\""; + next; + + menu + "I have them right here!", L_More_Powder_Make, + "Hmmm.. what are they again?", L_List_Materials_More, + "I'll go get those for you..", -; + + mes "[Orum]"; + mes "\"You better not waste any time gathering those materials!\""; + close; + +L_More_Powder_Make: + if (countitem("IronPowder") < @BT_IRONPOWDER || + countitem("PileOfAsh") < @BT_PILESOFASH || + countitem("GambogeHerb") < @BT_HERBS || + countitem("AlizarinHerb") < @BT_HERBS || + countitem("CobaltHerb") < @BT_HERBS) goto L_Missing_Materials_More; + + delitem "IronPowder", @BT_IRONPOWDER; + delitem "PileOfAsh", @BT_PILESOFASH; + delitem "GambogeHerb", @BT_HERBS; + delitem "AlizarinHerb", @BT_HERBS; + delitem "CobaltHerb", @BT_HERBS; + + mes "[Orum]"; + mes "\"Hmm all of the items appear to be here.. Give me a moment to make that powder for you.\""; + next; + + mes "Orum begins chanting the same words as he did when he made the powder before.. He seems to be quicker at it this time.."; + misceffect sfx_magic_transmute; + next; + + mes "[Orum]"; + mes "\"Here you are. And try to conserve this time! The more powder I have to make, the more time and resources we use up that we could be using to save Waric!\""; + + getitem "RedPowder", @BT_REWARDCOUNT; + getitem "YellowPowder", @BT_REWARDCOUNT; + getitem "BluePowder", @BT_REWARDCOUNT; + close; + +L_Finished_Up: + mes "As you approch you think you see Orum rolling his eyes.. maybe you're imagining it.."; + next; + + mes "[Orum]"; + mes "\"I hope you finally dropped that barrier we need to get past!\""; + next; + + menu + "Actually.. I have!", L_Enter_Cavern, + "I need more of that powder.", L_More_Powder, + "Cut me some slack! I'm working on it!", -; + + mes "[Orum]"; + mes "\"Just hurry it up! Warics life is on the line here!\""; + close; + +L_Enter_Cavern: + if (OrumQuest >= 10) goto L_Ready_Cavern; + + mes "Orum heads to the barrier then gives you a look as if he does not believe you before walking forward.."; + next; + + mes "He is suddenly thrown against the wall behind him! Angered, he gets up, brushes himself off, and heads back to the entrance without speaking."; + close; + +L_Ready_Cavern: + // you should not get that twice ;) + if (OrumQuest == 12) goto L_Got_Reward; + + mes "Orum heads to the barrier then gives you a look as if he does not believe you before walking forward.."; + next; + + mes "He makes it through without any problems and grins."; + next; + + mes "[Orum]"; + mes "\"Very good work you have done! Please take this for your efforts. It has helped me in a bind.\""; + next; + + getexp @EXP_BREAK_BARRIERS, 0; + getitem "CandleHelmet", 1; + mes "You receive the Candle Helmet"; + next; + + mes "\"You've done enough here to help. I will go the rest of the way alone so that your life is not endangered.. You must promise me not to go any further!\""; + next; + + menu + "Sure, I promise!", -, + "I thought this would never be over!", -; + + mes "[Orum]"; + mes "\"Well I guess this is farewell!\""; + set OrumQuest, 12; + close; + +L_Got_Reward: + mes "\"You've done enough here to help. I will go the rest of the way alone so that your life is not endangered..\""; + close; +} diff --git a/world/map/npc/009-4/orum_warps.txt b/world/map/npc/009-4/orum_warps.txt new file mode 100644 index 00000000..ebeaa857 --- /dev/null +++ b/world/map/npc/009-4/orum_warps.txt @@ -0,0 +1,33 @@ +009-3.gat,162,113,0 script #OrumQuestEnter 0,0,0,{ + if (OrumQuest >= 12) goto L_Second_Entrance; + warp "009-4.gat", 37, 113; + close; + +L_Second_Entrance: + warp "009-4.gat", 72, 126; + close; +} +009-4.gat,36,26,0 script #LairExit 0,0,0,{ + if (OrumQuest >= 12) goto L_Second_Entrance; + warp "009-4.gat", 37, 122; + close; + +L_Second_Entrance: + warp "009-4.gat", 72, 135; + close; +} + +009-4.gat,51,47,0 script #CavernEnter 0,0,0,{ + if (OrumQuest >= 14) goto L_Second_Cavern; + if (OrumQuest < 12) goto L_See_Orum; + warp "009-4.gat", 103, 23; + close; + +L_Second_Cavern: + warp "009-4.gat", 103, 77; + close; + +L_See_Orum: + mes "Right as you are entering you hear Orum call out for you.. Perhaps you should see what he wants first.."; + close; +} diff --git a/world/map/npc/009-4/torches.txt b/world/map/npc/009-4/torches.txt new file mode 100644 index 00000000..f4d2cede --- /dev/null +++ b/world/map/npc/009-4/torches.txt @@ -0,0 +1,365 @@ +//# see detailed description at orum.txt +function script GetTorchColor { + if (@Torch < 0 || @Torch > 2) goto L_Error; + + set @Mask, 15; + set @Shift, 4 * @Torch; + set @TorchColor, (OrumQuestTorch >> @Shift) & @Mask; + return; + +L_Error: + mes "Torch number is out of range."; + close; +} + +function script SetTorchColor { + if (@Torch < 0 || @Torch > 2) goto L_Error; + if (@Color < 1 || @Color > 12) goto L_Error2; + + set @Mask, (15 << (4 * @Torch)); + set OrumQuestTorch, (OrumQuestTorch & (~(@Mask))) | @Color << (4 * @Torch); + return; + +L_Error: + mes "Torch number is out of range."; + close; + +L_Error2: + mes "Torch color is out of range."; + close; +} + +function script GetTorchIntensity { + if (@Torch < 0 || @Torch > 2) goto L_Error; + + set @Mask, 15; + set @Shift, 4 * (@Torch + 3); + set @TorchIntensity, (OrumQuestTorch >> @Shift) & @Mask; + return; + +L_Error: + mes "Torch number is out of range."; + close; +} + +function script SetTorchIntensity { + if (@Torch < 0 || @Torch > 2) goto L_Error; + if (@Intensity < 0 || @Intensity > 2) goto L_Error2; + + set @Mask, (15 << (4 * (@Torch + 3))); + set OrumQuestTorch, (OrumQuestTorch & (~(@Mask))) | @Intensity << (4 * (@Torch + 3)); + return; + +L_Error: + mes "Torch number is out of range."; + close; + +L_Error2: + mes "Torch intensity is out of range."; + close; +} + +function script DoneWithTorches { + if (OrumQuest < 11 && OrumQuest >= 8) + return; + + if (OrumQuest < 7) goto L_Different; + + if (OrumQuest >= 11) + mes "The flame on the torch looks ordinary.. Lowering the final barrier seems to have drained them of their magic."; + + if (OrumQuest < 8) + mes "Without that powder the note mentions there isn't much you can do with this torch.."; + + close; + +L_Different: + mes "The flame on this torch looks different than the rest.. You better tell Orum about it before doing anything."; + set OrumQuest, 6; + close; +} + +// To make sure in range of torches +function script InRangeTorch1 { + if (isin("009-4.gat",67,20,69,25)) + return; + + mes "You're too far away to do anything with that torch."; + close; +} +function script InRangeTorch2 { + if (isin("009-4.gat",65,41,69,46)) + return; + + mes "You're too far away to do anything with that torch."; + close; +} +function script InRangeTorch3 { + if (isin("009-4.gat",33,84,37,88)) + return; + + mes "You're too far away to do anything with that torch."; + close; +} + +// First Torch +009-4.gat,68,21,0 script Torch 127,{ + callfunc "InRangeTorch1"; + callfunc "DoneWithTorches"; + + set @Torch, 0; + callfunc("GetTorchColor"); + callfunc("GetTorchIntensity"); + + set @lastColor, @TorchColor; + setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; + setarray @intensities$,"calm","bright","blinding"; + mes "Looking closely you notice that this torch is not like the others.. This one has a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + " tint to it."; + goto L_Color_Loop; + +L_Color_Loop: + callfunc("GetTorchColor"); + menu + "Add Red Powder", L_Use_Red, + "Add Yellow Powder", L_Use_Yellow, + "Add Blue Powder", L_Use_Blue, + "Leave it alone.", -; + + mes "The flame flickers as if it's laughing at you.."; + close; + +L_Use_Red: + if (countitem("RedPowder") < 1) goto L_No_Powder; + if (@TorchColor > 6 && @TorchColor < 12) set @Color, @TorchColor + 1; + if (@TorchColor < 6 && @TorchColor > 1) set @Color, @TorchColor - 1; + if (@TorchColor == 12) set @Color, 1; + if (@TorchColor == 0) set @Color, 1; + callfunc("SetTorchColor"); + delitem "RedPowder", 1; + goto L_Show_Color; + +L_Use_Yellow: + if (countitem("YellowPowder") < 1) goto L_No_Powder; + if (@TorchColor < 10 && @TorchColor > 5) set @Color, @TorchColor - 1; + if (@TorchColor >= 1 && @TorchColor < 5) set @Color, @TorchColor + 1; + if (@TorchColor == 0) set @Color, 5; + callfunc("SetTorchColor"); + delitem "YellowPowder", 1; + goto L_Show_Color; + +L_Use_Blue: + if (countitem("BluePowder") < 1) goto L_No_Powder; + if (@TorchColor > 4 && @TorchColor < 9) set @Color, @TorchColor + 1; + if (@TorchColor <= 12 && @TorchColor > 9) set @Color, @TorchColor - 1; + if (@TorchColor == 1) set @Color, 12; + if (@TorchColor == 0) set @Color, 9; + callfunc("SetTorchColor"); + delitem "BluePowder", 1; + goto L_Show_Color; + +L_No_Powder: + mes "You notice you're all out of that color of powder.. Perhaps Orum can make you some more."; + close; + +L_Show_Color: + callfunc("GetTorchColor"); + callfunc("GetTorchIntensity"); + if (@TorchColor == @lastColor) goto L_Wrong_Color; + misceffect 5; + set @lastColor, @TorchColor; + mes "As your pour the powder into the flame you can see its tint transform to a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + ".."; + goto L_Color_Loop; + +L_Wrong_Color: + set @Intensity, @TorchIntensity + 1; + if (@Intensity > 2) goto L_Failed; + callfunc("SetTorchIntensity"); + callfunc("GetTorchIntensity"); + misceffect 5; + mes "As you pour the powder into the flame it flares violently for a moment and then turns into a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + ".."; + goto L_Color_Loop; + +L_Failed: + mes "As you pour the powder into the flame it flares violently before bursting into your face!"; + misceffect 5; + misceffect 16; + set @Intensity, 0; + callfunc("SetTorchIntensity"); + heal -Hp, 0; + close; +} + +// Second Torch +009-4.gat,67,42,0 script Torch 127,{ + callfunc "InRangeTorch2"; + callfunc "DoneWithTorches"; + + set @Torch, 1; + callfunc("GetTorchColor"); + callfunc("GetTorchIntensity"); + + set @lastColor, @TorchColor; + setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; + mes "Looking closely you notice that this torch is not like the others.. This one has a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + " tint to it."; + goto L_Color_Loop; + +L_Color_Loop: + callfunc("GetTorchColor"); + menu + "Add Red Powder", L_Use_Red, + "Add Yellow Powder", L_Use_Yellow, + "Add Blue Powder", L_Use_Blue, + "Leave it alone.", -; + + mes "The flame flickers as if it's laughing at you.."; + close; + +L_Use_Red: + if (countitem("RedPowder") < 1) goto L_No_Powder; + if (@TorchColor > 6 && @TorchColor < 12) set @Color, @TorchColor + 1; + if (@TorchColor < 6 && @TorchColor > 1) set @Color, @TorchColor - 1; + if (@TorchColor == 12) set @Color, 1; + if (@TorchColor == 0) set @Color, 1; + callfunc("SetTorchColor"); + delitem "RedPowder", 1; + goto L_Show_Color; + +L_Use_Yellow: + if (countitem("YellowPowder") < 1) goto L_No_Powder; + if (@TorchColor < 10 && @TorchColor > 5) set @Color, @TorchColor - 1; + if (@TorchColor >= 1 && @TorchColor < 5) set @Color, @TorchColor + 1; + if (@TorchColor == 0) set @Color, 5; + callfunc("SetTorchColor"); + delitem "YellowPowder", 1; + goto L_Show_Color; + +L_Use_Blue: + if (countitem("BluePowder") < 1) goto L_No_Powder; + if (@TorchColor > 4 && @TorchColor < 9) set @Color, @TorchColor + 1; + if (@TorchColor <= 12 && @TorchColor > 9) set @Color, @TorchColor - 1; + if (@TorchColor == 1) set @Color, 12; + if (@TorchColor == 0) set @Color, 9; + callfunc("SetTorchColor"); + delitem "BluePowder", 1; + goto L_Show_Color; + +L_No_Powder: + mes "You notice you're all out of that color powder.. Perhaps Orum can make you some more."; + close; + +L_Show_Color: + callfunc("GetTorchColor"); + callfunc("GetTorchIntensity"); + if (@TorchColor == @lastColor) goto L_Wrong_Color; + misceffect 5; + set @lastColor, @TorchColor; + mes "As your pour the powder into the flame you can see its tint transform to a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + ".."; + goto L_Color_Loop; + +L_Wrong_Color: + set @Intensity, @TorchIntensity + 1; + if (@Intensity > 2) goto L_Failed; + callfunc("SetTorchIntensity"); + callfunc("GetTorchIntensity"); + misceffect 5; + mes "As you pour the powder into the flame it flares violently for a moment and then turns into a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + ".."; + goto L_Color_Loop; + +L_Failed: + mes "As you pour the powder into the flame it flares violently before bursting into your face!"; + misceffect 5; + misceffect 16; + set @Intensity, 0; + callfunc("SetTorchIntensity"); + heal -Hp, 0; + close; +} + + +// Third Torch +009-4.gat,33,86,0 script Torch 127,{ + callfunc "InRangeTorch3"; + callfunc "DoneWithTorches"; + + set @Torch, 2; + callfunc("GetTorchColor"); + callfunc("GetTorchIntensity"); + + set @lastColor, @TorchColor; + setarray @colors$,"transparent","red","dark orange","orange","light orange","yellow","light green","green","dark green","blue","dark purple","purple","light purple"; + setarray @intensities$,"calm","bright","blinding"; + mes "Looking closely you notice that this torch is not like the others.. This one has a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + " tint to it."; + goto L_Color_Loop; + +L_Too_Far: + mes "You're too far away to do anything with that torch."; + close; + +L_Color_Loop: + callfunc("GetTorchColor"); + menu + "Add Red Powder", L_Use_Red, + "Add Yellow Powder", L_Use_Yellow, + "Add Blue Powder", L_Use_Blue, + "Leave it alone.", -; + + mes "The flame flickers as if it's laughing at you.."; + close; + +L_Use_Red: + if (countitem("RedPowder") < 1) goto L_No_Powder; + if (@TorchColor > 6 && @TorchColor < 12) set @Color, @TorchColor + 1; + if (@TorchColor < 6 && @TorchColor > 1) set @Color, @TorchColor - 1; + if (@TorchColor == 12) set @Color, 1; + callfunc("SetTorchColor"); + delitem "RedPowder", 1; + goto L_Show_Color; + +L_Use_Yellow: + if (countitem("YellowPowder") < 1) goto L_No_Powder; + if (@TorchColor < 10 && @TorchColor > 5) set @Color, @TorchColor - 1; + if (@TorchColor >= 1 && @TorchColor < 5) set @Color, @TorchColor + 1; + callfunc("SetTorchColor"); + delitem "YellowPowder", 1; + goto L_Show_Color; + +L_Use_Blue: + if (countitem("BluePowder") < 1) goto L_No_Powder; + if (@TorchColor > 4 && @TorchColor < 9) set @Color, @TorchColor + 1; + if (@TorchColor <= 12 && @TorchColor > 9) set @Color, @TorchColor - 1; + if (@TorchColor == 1) set @Color, 12; + callfunc("SetTorchColor"); + delitem "BluePowder", 1; + goto L_Show_Color; + +L_No_Powder: + mes "You notice you're all out of that color powder.. Perhaps Orum can make you some more."; + close; + +L_Show_Color: + callfunc("GetTorchColor"); + callfunc("GetTorchIntensity"); + if (@TorchColor == @lastColor) goto L_Wrong_Color; + misceffect 5; + set @lastColor, @TorchColor; + mes "As your pour the powder into the flame you can see its tint transform to a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + ".."; + goto L_Color_Loop; + +L_Wrong_Color: + set @Intensity, @TorchIntensity + 1; + if (@Intensity > 2) goto L_Failed; + callfunc("SetTorchIntensity"); + callfunc("GetTorchIntensity"); + misceffect 5; + mes "As you pour the powder into the flame it flares violently for a moment and then turns into a " + @intensities$[@TorchIntensity] + " " + @colors$[@TorchColor] + ".."; + goto L_Color_Loop; + +L_Failed: + mes "As you pour the powder into the flame it flares violently before bursting into your face!"; + misceffect 5; + misceffect 16; + set @Intensity, 0; + callfunc("SetTorchIntensity"); + heal -Hp, 0; + close; +} diff --git a/world/map/npc/009-4/waric.txt b/world/map/npc/009-4/waric.txt new file mode 100644 index 00000000..9eb8e0b2 --- /dev/null +++ b/world/map/npc/009-4/waric.txt @@ -0,0 +1,95 @@ +//# see detailed description at orum.txt + +009-4.gat,99,33,0 script #WizardTrap 0,2,1,{ + set @gender$, "They're"; + if (Sex == 0) set @gender$, "She's"; + if (Sex == 1) set @gender$, "He's"; + + mes "As you explore further into the cave you see a figure looking at you who appears angry.. but as you begin to speak, he quickly chants some words and you start to lose conciousness!"; + next; + warp "009-4.gat", 117, 40; + mes "When you awake you find yourself unable to move.. You seem to be held in place by something.. As your eyes regain focus you see Orum talking with the figure you saw earlier.. Orum looks over at you and mumbles"; + mes ""; + mes "[Orum]"; + mes "\"Be quiet Waric.. " + @gender$ + " awake..\""; + close; +} + +009-4.gat,120,43,0 script Orum 158,{ + mes "[Orum]"; + mes "\"I told you to forget about this place but you did not heed my advice!\""; + next; + mes "[Orum]"; + mes "\"Your fate is up to Waric now.. don't expect me to do anything else for you.\""; + close; +} + +009-4.gat,118,42,0 script Waric 153,{ + set @EXP_LEARNED_ALOT, 10000; + if (OrumQuest >= 13) goto L_Behave; + mes "Waric looks toward you rubbing his chin.."; + next; + mes "[Waric]"; + mes "\"So... Orum tells me your the one that helped him break me out of this dreadful place, so I guess I must thank you for that.\""; + next; + menu + "My pleasure! Mind letting me out of here?", L_Explain, + "This doesn't look like a thank you!", L_Explain, + "Let me out of here at once!", -; + + mes "Waric turns toward Orum.."; + next; + mes "[Waric]"; + mes "\"We've got a feisty one here Orum!\""; + next; + mes "They begin discussing plans of some sort.."; + set OrumQuest, 13; + close; + +L_Behave: + mes "Waric looks toward you shaking his finger.."; + next; + mes "[Waric]"; + mes "\"So... are you ready to behave yourself now?\""; + next; + menu + "Yes mister..", L_Explain, + "No I'm not ready yet!", -; + + mes "[Waric]"; + mes "\"Having fun I take it?\""; + next; + mes "They continue discussing their plans.."; + close; + +L_Explain: + mes "[Waric]"; + mes "\"I'm not sure what Orum told you but I was not kidnapped and brought here.. I was in fact imprisoned here very long ago by a witch for practicing spells on the insignificant forest life.\""; + next; + mes "[Waric]"; + mes "\"She cared about the forest and all of that stuff you see. Now this cave is not bad.. I actually enjoyed it the first nights, but after a few years...\""; + next; + mes "Waric gets a bitter look and his face and pauses for a moment.."; + next; + mes "[Waric]"; + mes "\"So now you can see my motive to get out of here. The only air and water I get is what's given to me through that cave over there. And as for food.. theres only so many recipes for cave snakes and silk worms...\""; + next; + mes "Waric shivers in disgust.."; + next; + mes "[Woric]"; + mes "\"I'm sorry I had to constrain you like this but now that I'm free, I'm not about to let anyone stand in my way!\""; + next; + mes "[Waric]"; + mes "\"Now if you'll excuse us, Orum and I have some things to attend to.. And don't bother coming back to stop us because we'll be long gone.\""; + next; + mes "Waric raises his hands and begins chanting some words.. You watch as streams of energy begin swirling around you.."; + next; + mes "Once more you start to lose conciousness as your surroundings begin to fade.."; + next; + set OrumQuest, 14; + misceffect 10; + warp "008-1.gat", 65, 90; + mes "You awake on your back with a squrrel sitting on top of you arranging it's acorns.. It quickly gathers them up and runs off as it sees you looking at it them.."; + getexp @EXP_LEARNED_ALOT, 0; + close; +} diff --git a/world/map/npc/010-1/_import.txt b/world/map/npc/010-1/_import.txt new file mode 100644 index 00000000..c784dbe5 --- /dev/null +++ b/world/map/npc/010-1/_import.txt @@ -0,0 +1,5 @@ +// Map 010-1: Woodland +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 010-1.gat +npc: npc/010-1/_mobs.txt +npc: npc/010-1/_warps.txt diff --git a/world/map/npc/010-1/_mobs.txt b/world/map/npc/010-1/_mobs.txt new file mode 100644 index 00000000..785bafed --- /dev/null +++ b/world/map/npc/010-1/_mobs.txt @@ -0,0 +1,81 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mobs + +010-1.gat,82,63,19,19 monster Scorpion 1003,1,100000,30000,Mob010-1::On1003 +010-1.gat,49,71,31,19 monster Shroom 1019,1,100000,30000,Mob010-1::On1019 +010-1.gat,0,0,0,0 monster PinkFlower 1014,30,50,0,Mob010-1::On1014 +010-1.gat,0,0,0,0 monster Snail 1041,20,50,0,Mob010-1::On1041 +010-1.gat,0,0,0,0 monster SpikyMushroom 1019,45,50,0,Mob010-1::On1019 +010-1.gat,0,0,0,0 monster LogHead 1025,40,100,0,Mob010-1::On1025 +010-1.gat,0,0,0,0 monster Mouboo 1028,15,0,10,Mob010-1::On1028 +010-1.gat,0,0,0,0 monster Mauve 1029,3,270000,180000,Mob010-1::On1029 +010-1.gat,0,0,0,0 monster Cobalt 1030,1,2700000,1800000,Mob010-1::On1030 +010-1.gat,0,0,0,0 monster SilkWorm 1035,2,60000,30000,Mob010-1::On1035 +010-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob010-1::On1037 +010-1.gat,0,0,0,0 monster Squirrel 1038,25,30,20,Mob010-1::On1038 +010-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob010-1::On1055 + + +010-1.gat,0,0,0 script Mob010-1 -1,{ +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1025: + set @mobID, 1025; + callfunc "MobPoints"; + break; + +On1028: + set @mobID, 1028; + callfunc "MobPoints"; + break; + +On1029: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +On1030: + set @mobID, 1030; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1041: + set @mobID, 1041; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/010-1/_warps.txt b/world/map/npc/010-1/_warps.txt new file mode 100644 index 00000000..d0151be7 --- /dev/null +++ b/world/map/npc/010-1/_warps.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland warps + +010-1.gat,49,23 warp ToWoodland 0,-1,011-1.gat,48,103 +010-1.gat,14,55 warp ToWoodland -1,0,015-1.gat,92,54 +010-1.gat,36,94 warp ToDimondsCove -1,-1,010-2.gat,32,44 +010-1.gat,56,104 warp ToWoodland 1,-1,016-1.gat,56,21 +010-1.gat,131,54 warp ToWoodland -1,0,007-1.gat,25,53 diff --git a/world/map/npc/010-2/_import.txt b/world/map/npc/010-2/_import.txt new file mode 100644 index 00000000..567b7a12 --- /dev/null +++ b/world/map/npc/010-2/_import.txt @@ -0,0 +1,10 @@ +// Map 010-2: Dimond's Cove +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 010-2.gat +npc: npc/010-2/_mobs.txt +npc: npc/010-2/_warps.txt +npc: npc/010-2/chef.txt +npc: npc/010-2/dimonds.txt +npc: npc/010-2/doug.txt +npc: npc/010-2/loratay.txt +npc: npc/010-2/workers.txt diff --git a/world/map/npc/010-2/_mobs.txt b/world/map/npc/010-2/_mobs.txt new file mode 100644 index 00000000..efa9aa57 --- /dev/null +++ b/world/map/npc/010-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Dimond's Cove mobs + + + +010-2.gat,0,0,0 script Mob010-2 -1,{ + end; +} diff --git a/world/map/npc/010-2/_warps.txt b/world/map/npc/010-2/_warps.txt new file mode 100644 index 00000000..76e2be8b --- /dev/null +++ b/world/map/npc/010-2/_warps.txt @@ -0,0 +1,10 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Dimond's Cove warps + +010-2.gat,27,24 warp ToCellar -1,-1,010-2.gat,35,68 +010-2.gat,32,45 warp ToOutdoor -1,-1,010-1.gat,36,95 +010-2.gat,40,27 warp To2ndFloor 1,-1,010-2.gat,82,26 +010-2.gat,36,68 warp To1stFloor -1,-1,010-2.gat,28,24 +010-2.gat,67,27 warp To3rdFloor 1,-1,010-2.gat,67,71 +010-2.gat,83,29 warp To1stFloor 1,-1,010-2.gat,40,27 +010-2.gat,67,73 warp To2ndFloor 1,-1,010-2.gat,67,28 diff --git a/world/map/npc/010-2/chef.txt b/world/map/npc/010-2/chef.txt new file mode 100644 index 00000000..d687bf91 --- /dev/null +++ b/world/map/npc/010-2/chef.txt @@ -0,0 +1,201 @@ +010-2.gat,33,25,0 script Chef 148,{ + +// lines belong to easter 2011: +// set @month, 4; +// set @start_day, 15; +// set @end_day, 30; + +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 7) goto L_JellyBean; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 8) goto L_MakeJellyBean; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 9) goto L_SeeBunny; + +L_Begin: + mes "[Chef]"; + mes ""; + mes "\"I'm too busy right now to talk.\""; + + callfunc "KadiyaSubquestConsts"; + if ((@Q_kadiya_status == @Q_STATUS_WANTS_CHOCOCAKE) && (countitem ("MopoxCurePotion") > 0)) + goto L_lace_chococake; + + if ((@Q_kadiya_status == @Q_STATUS_WANTS_ORANGECUPCAKE) && (countitem ("MopoxCurePotion") > 0)) + goto L_lace_cupcake; + close; + +L_lace_chococake: + next; + menu + "Sorry.", L_end, + "I need your help with a sick young girl!", -; + + mes "[Chef]"; + mes ""; + mes "You explain Kadiya's situation to him."; + mes "\"Hmrmf. I can't help you; I'm a chef, not a baker!\""; + close; + +L_lace_cupcake: + next; + menu + "Sorry.", L_end, + "I need your help with a sick young girl!", -; + + mes "[Chef]"; + mes ""; + mes "You explain Kadiya's situation to him."; + mes "\"Hmrmf. I was about to make another batch of orange cupcakes. Do you have that potion with you?\""; + next; + + menu + "No, sorry.", L_bringit, + "Yes, here you are.", -; + + if (countitem ("MopoxCurePotion") < 1) + goto L_bringit; + + mes "[Chef]"; + mes ""; + mes "He shudders as he smells the bottle."; + mes "\"That is disgusting! How do you expect me to mask this?\""; + mes "He ponders his own question for a moment."; + next; + + mes "[Chef]"; + mes ""; + mes "\"Ah yes. We need to bind the smell in gingerbread. Bring me three pieces of gingerbread, one orange, and 500 GP for the other ingredients, and I will make you your cupcake.\""; + next; + + menu + "I'll go and get it.", L_end, + "Here you are!", -, + "Not now.", L_end; + + if (countitem ("GingerBreadMan") < 3) goto L_no_gingerbread; + if (countitem ("Orange") < 1) goto L_no_orange; + if (countitem ("MopoxCurePotion") < 1) goto L_no_potion; + if (zeny < 500) goto L_no_zeny; + + set zeny, zeny - 500; + delitem "GingerBreadMan", 3; + delitem "Orange", 1; + delitem "MopoxCurePotion", 1; + + getitem "LacedOrangeCupcake", 1; + + mes "[Chef]"; + mes ""; + mes "\"Good, good. This should work.\""; + mes "He crumbles the gingerbread, mixes it with the potion and some spices, and finally adds some cupcake batter and the orange pieces."; + next; + + mes "[Chef]"; + mes ""; + mes "\"Take a seat.\""; + mes "He fills the mixture into a cupcake form and puts it into the oven. You watch the cupcake grow for a while."; + mes "Finally, he removes the form and carefully extracts the cupcake."; + next; + + mes "[Chef]"; + mes ""; + mes "\"Here you are. It's a bit bigger than a regular cupcake and will taste a bit like ginger, I think, but otherwise it should be fine.\""; + close; + +L_no_gingerbread: + mes "[Chef]"; + mes ""; + mes "\"I will need three pieces of gingerbread.\""; + close; + +L_no_orange: + mes "[Chef]"; + mes ""; + mes "\"Please bring me an orange for these cupcakes.\""; + close; + +L_no_zeny: + mes "[Chef]"; + mes ""; + mes "\"No. I need extra ingredients worth 500 GP, and I expect you to pay for those.\""; + close; + +L_no_potion: + mes "[Chef]"; + mes ""; + mes "\"Where did your Mopox potion go?\""; + close; + +L_bringit: + mes "[Chef]"; + mes ""; + mes "\"Bring it here when you do.\""; + next; + +L_End: + close; + +L_JellyBean: + mes "[Chef]"; + mes ""; + mes "\"I can't talk right now... I'm too busy.\""; + next; + mes "\"Oh, wait. I see you are the adventurer who was speaking with the Easter Bunny. He has a really bad memory, you know? Every year he forgets who he needs to ask to get Jelly Beans, and every year an adventurer comes to my kitchen asking if I can help the Easter Bunny get some.\""; + next; + mes "\"Even though I am really busy this time of year, I will help you make some Jelly Beans to put in the basket if you wish. Just to keep the tradition alive...\""; + menu + "I would really appreciate that!", -, + "Nah, I decided not to do that stupid quest.", L_End; + set QUEST_Easter11, 8; + +L_MakeJellyBean: + mes "[Chef]"; + mes ""; + mes "\"I will need you to bring me some candies.\""; + mes "\"I think 15 should be enough.\""; + mes "\"Sea slimes seem to have those, so try them.\""; + mes "\"And because it's the holidays, I'll add in the other ingredient for free.\""; + menu + "I have some candies!", -, + "Ok, I will be back soon.", L_End, + "I changed my mind, forget about it.", L_End; + + if(countitem("Candy") < 15) goto L_EasterNotEnough; + if(countitem("Candy") >= 15) goto L_EasterEnough; + close; + +L_EasterNotEnough: + mes "[Chef]"; + mes ""; + mes "\"You do not have enough candies for me to work with yet.\""; + mes "\"Please go get more.\""; + close; + +L_EasterEnough: + getinventorylist; + if (@inventorylist_count == 100 && countitem("Candy") > 15) goto L_EasterTooMany; + if(countitem("Candy") < 15) goto L_EasterNotEnough; + delitem "Candy", 15; + getitem "JellyBeans", 1; + set QUEST_Easter11, 9; + mes "[Chef]"; + mes ""; + mes "\"You have gathered enough candies for me to make the Jelly Beans.\""; + mes "He puts the candies into a pot and starts melting them."; + mes "He adds in some gooey stuff, then lets the solution cool for a moment before forming the Jelly Beans."; + mes "\"Here are your Jelly Beans.\""; + close; + +L_TooMany: + mes "[Chef]"; + mes ""; + mes "\"You don't have enough room for the Jelly Beans. Come back later.\""; + close; + +L_SeeBunny: + mes "[Chef]"; + mes ""; + mes "\"Oh yeah, you need to return to the Easter Bunny now.\""; + next; + goto L_Begin; + close; + +} diff --git a/world/map/npc/010-2/dimonds.txt b/world/map/npc/010-2/dimonds.txt new file mode 100644 index 00000000..c1578d55 --- /dev/null +++ b/world/map/npc/010-2/dimonds.txt @@ -0,0 +1,548 @@ +// + +010-2.gat,34,38,0 script Dimond 165,{ + mes "[Dimond]"; + mes "\"Welcome to Dimond's Cove!\""; + mes ""; + mes "\"Talk to the waitress to get some Food.\""; + mes ""; + mes "\"We also have shops on the 2nd Floor,"; + mes "and an inn on the 3rd Floor.\""; + close; +} + +010-2.gat,40,35,0 script Phil 157,{ + mes "[Phil]"; + mes "\"We're having problems with our equipment!\""; + next; + mes "[Phil]"; + mes "\"I don't know if we can play any songs!\""; + close; +} + +010-2.gat,40,37,0 script Jerry 160,{ + mes "[Jerry]"; + mes "\"I don't know what's wrong.\""; + next; + mes "[Jerry]"; + mes "\"We should be able to play you music in the future!\""; + close; +} + +010-2.gat,42,36,0 script Robert 162,{ + mes "[Robert]"; + mes "\"I hope we can figure something out!\""; + next; + mes "[Robert]"; + mes "\"We are kinda useless if we can't play music.\""; + close; +} + +010-2.gat,35,35,0 script Shannon 193,{ + set @month, 1; + set @start_day, 24; + set @end_day, 26; + if (gettime(6) != @month) goto no_event; + if (gettime(5) < @start_day) goto no_event; + if (gettime(5) > @end_day) goto no_event; + if (gettimetick(2)-TUT_var < 2*7*86400 ) //player must be created at least 2 weeks ago + goto no_event; + if (FLAGS & FLAG_HAS_BOWLER_BURNSDAY ) goto event_done; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + + mes "[Shannon]"; + mes "\"Welcome to Dimond's Cove. We are celebrating Robert Burns with supper and poems. You provide the supper and I'll provide a poem by Robert Burns. He was otherwise known as 'The Bard' and wrote many poems. The music of language is what I love most. The language of poetry. While his accent is thick, his poems tell stories that stir the soul. I'll read a poem by him and you can tell me what you think.\""; + next; + mes "\"Before I start, it is traditional to eat, drink and be merry, so help from you will be great and keep me reading.\""; + next; + mes "\"O thou! whatever title suit thee,--\""; + mes "\"Auld Hornie, Satan, Nick, or Clootie!\""; + mes "\"Wha in yon cavern, grim an' sootie,\""; + mes "\"Clos'd under hatches,\""; + mes "\"Spairges about the brunstane cootie\""; + mes "\"To scaud poor wretches!\""; + callsub food_menu; + mes "\"Hear me, Auld Hangie, for a wee,\""; + mes "\"An' let poor damned bodies be;\""; + mes "\"I'm sure sma' pleasure it can gie,\""; + mes "\"E'en to a deil,\""; + mes "\"To skelp an' scaud poor dogs like me,\""; + mes "\"An' hear us squeel!\""; + callsub food_menu; + mes "\"Great is thy pow'r, an' great thy fame;\""; + mes "\"Far ken'd an' noted is thy name;\""; + mes "\"An' tho' yon lowin heugh's thy hame,\""; + mes "\"Thou travels far;\""; + mes "\"An' faith! thou's neither lag nor lame,\""; + mes "\"Nor blate nor scaur.\""; + callsub food_menu; + mes "\"Whyles, ranging like a roarin lion,\""; + mes "\"For prey a' holes an' corners tryin;\""; + mes "\"Whyles, on the strong-wing'd tempest flyin,\""; + mes "\"Tirlin' the kirks;\""; + mes "\"Whyles, in the human bosom pryin,\""; + mes "\"Unseen thou lurks.\""; + callsub food_menu; + mes "\"I've heard my rev'rend graunie say,\""; + mes "\"In lanely glens ye like to stray;\""; + mes "\"Or whare auld ruin'd castles gray\""; + mes "\"Nod to the moon,\""; + mes "\"Ye fright the nightly wand'rer's way\""; + mes "\"Wi' eldritch croon.\""; + callsub food_menu; + mes "\"When twilight did my graunie summon\""; + mes "\"To say her pray'rs, douce honest woman!\""; + mes "\"Aft yont the dike she's heard you bummin,\""; + mes "\"Wi' eerie drone;\""; + mes "\"Or, rustlin thro' the boortrees comin,\""; + mes "\"Wi' heavy groan.\""; + callsub food_menu; + mes "\"Ae dreary, windy, winter night,\""; + mes "\"The stars shot down wi' sklentin light,\""; + mes "\"Wi' you mysel I gat a fright,\""; + mes "\"Ayont the lough;\""; + mes "\"Ye like a rash-buss stood in sight,\""; + mes "\"Wi' waving sugh.\""; + callsub food_menu; + mes "\"The cudgel in my nieve did shake,\""; + mes "\"Each bristl'd hair stood like a stake,\""; + mes "\"When wi' an eldritch, stoor 'Quaick, quaick,'\""; + mes "\"Amang the springs,\""; + mes "\"Awa ye squatter'd like a drake,\""; + mes "\"On whistling wings.\""; + callsub food_menu; + mes "\"Let warlocks grim an' wither'd hags\""; + mes "\"Tell how wi' you on ragweed nags\""; + mes "\"They skim the muirs an' dizzy crags\""; + mes "\"Wi' wicked speed;\""; + mes "\"And in kirk-yards renew their leagues,\""; + mes "\"Owre howket dead.\""; + callsub food_menu; + mes "\"Thence, countra wives wi' toil an' pain\""; + mes "\"May plunge an' plunge the kirn in vain;\""; + mes "\"For oh! the yellow treasure's taen\""; + mes "\"By witchin skill;\""; + mes "\"An' dawtet, twal-pint hawkie's gaen\""; + mes "\"As yell's the bill.\""; + callsub food_menu; + mes "\"Thence, mystic knots mak great abuse,\""; + mes "\"On young guidmen, fond, keen, an' croose;\""; + mes "\"When the best wark-lume i' the house,\""; + mes "\"By cantraip wit,\""; + mes "\"Is instant made no worth a louse,\""; + mes "\"Just at the bit.\""; + callsub food_menu; + mes "\"When thowes dissolve the snawy hoord,\""; + mes "\"An' float the jinglin icy-boord,\""; + mes "\"Then water-kelpies haunt the foord\""; + mes "\"By your direction,\""; + mes "\"An' nighted trav'lers are allur'd\""; + mes "\"To their destruction.\""; + callsub food_menu; + mes "\"And aft your moss-traversing spunkies\""; + mes "\"Decoy the wight that late an drunk is:\""; + mes "\"The bleezin, curst, mischievous monkeys\""; + mes "\"Delude his eyes,\""; + mes "\"Till in some miry slough he sunk is,\""; + mes "\"Ne'er mair to rise.\""; + callsub food_menu; + mes "\"When Masons' mystic word an grip\""; + mes "\"In storms an' tempests raise you up,\""; + mes "\"Some cock or cat your rage maun stop,\""; + mes "\"Or, strange to tell!\""; + mes "\"The youngest brither ye wad whip\""; + mes "\"Aff straught to hell!\""; + callsub food_menu; + mes "\"Lang syne, in Eden'd bonie yard,\""; + mes "\"When youthfu' lovers first were pair'd,\""; + mes "\"An all the soul of love they shar'd,\""; + mes "\"The raptur'd hour,\""; + mes "\"Sweet on the fragrant flow'ry swaird,\""; + mes "\"In shady bow'r;\""; + callsub food_menu; + mes "\"Then you, ye auld snick-drawin dog!\""; + mes "\"Ye cam to Paradise incog,\""; + mes "\"And play'd on man a cursed brogue,\""; + mes "\"(Black be your fa'!)\""; + mes "\"An gied the infant warld a shog,\""; + mes "\"Maist ruin'd a'.\""; + callsub food_menu; + mes "\"D'ye mind that day, when in a bizz,\""; + mes "\"Wi' reeket duds an reestet gizz,\""; + mes "\"Ye did present your smoutie phiz\""; + mes "\"Mang better folk,\""; + mes "\"An' sklented on the man of Uz\""; + mes "\"Your spitefu' joke?\""; + callsub food_menu; + mes "\"An' how ye gat him i' your thrall,\""; + mes "\"An' brak him out o' house and hal',\""; + mes "\"While scabs and blotches did him gall,\""; + mes "\"Wi' bitter claw,\""; + mes "\"An' lows'd his ill-tongued, wicked scaul,\""; + mes "\"Was warst ava?\""; + callsub food_menu; + mes "\"But a' your doings to rehearse,\""; + mes "\"Your wily snares an' fechtin fierce,\""; + mes "\"Sin' that day Michael did you pierce,\""; + mes "\"Down to this time,\""; + mes "\"Wad ding a Lallan tongue, or Erse,\""; + mes "\"In prose or rhyme.\""; + callsub food_menu; + mes "\"An' now, Auld Cloots, I ken ye're thinkin,\""; + mes "\"A certain Bardie's rantin, drinkin,\""; + mes "\"Some luckless hour will send him linkin,\""; + mes "\"To your black pit;\""; + mes "\"But faith! he'll turn a corner jinkin,\""; + mes "\"An' cheat you yet.\""; + callsub food_menu; + mes "\"But fare you weel, Auld Nickie-ben!\""; + mes "\"O wad ye tak a thought an' men'!\""; + mes "\"Ye aiblins might--I dinna ken--\""; + mes "\"Still hae a stake:\""; + mes "\"I'm wae to think upo' yon den,\""; + mes "\"Ev'n for your sake!\""; + next; + mes "\"Well, that was the poem. What do you think of it?\""; + menu + "It was a bit long and kind of hard to understand, but thanks for reading.", -; + + mes "[Shannon]"; + mes "\"Well, thanks for coming to the supper. Also, thanks for helping me make it through the poem. Here, take this hat. When you wear it, wear it with the class you showed me today. Happy Burns' Supper!\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + getitem "bowlerhat", 1; + set FLAGS, FLAGS | FLAG_HAS_BOWLER_BURNSDAY; + close; + +no_event: + mes "[Shannon]"; + mes "\"I'm a traveling poet and admirer of Robert Burns.\""; + close; + +event_done: + mes "[Shannon]"; + mes "\"Ah, my dear friend. Good to see you again in this remarkable time of the year.\""; + next; + mes "\"Welcome to Dimond's Cove. We are celebrating Robert Burns with supper and poems. You provide the supper and I'll provide a poem by Robert Burns. He was otherwise known as 'The Bard' and wrote many poems. The music of language is I love most. The language of poetry. While his accent is thick, his poems tell stories that stir the soul. I'll read a poem by him and you can tell me what you think.\""; + next; + mes "\"O thou! whatever title suit thee,--\""; + mes "\"Auld Hornie, Satan, Nick, or Clootie!\""; + mes "\"Wha in yon cavern, grim an' sootie,\""; + mes "\"Clos'd under hatches,\""; + mes "\"Spairges about the brunstane cootie\""; + mes "\"To scaud poor wretches!\""; + next; + mes "\"Hear me, Auld Hangie, for a wee,\""; + mes "\"An' let poor damned bodies be;\""; + mes "\"I'm sure sma' pleasure it can gie,\""; + mes "\"E'en to a deil,\""; + mes "\"To skelp an' scaud poor dogs like me,\""; + mes "\"An' hear us squeel!\""; + next; + mes "\"Great is thy pow'r, an' great thy fame;\""; + mes "\"Far ken'd an' noted is thy name;\""; + mes "\"An' tho' yon lowin heugh's thy hame,\""; + mes "\"Thou travels far;\""; + mes "\"An' faith! thou's neither lag nor lame,\""; + mes "\"Nor blate nor scaur.\""; + next; + mes "\"Whyles, ranging like a roarin lion,\""; + mes "\"For prey a' holes an' corners tryin;\""; + mes "\"Whyles, on the strong-wing'd tempest flyin,\""; + mes "\"Tirlin' the kirks;\""; + mes "\"Whyles, in the human bosom pryin,\""; + mes "\"Unseen thou lurks.\""; + next; + mes "\"I've heard my rev'rend graunie say,\""; + mes "\"In lanely glens ye like to stray;\""; + mes "\"Or whare auld ruin'd castles gray\""; + mes "\"Nod to the moon,\""; + mes "\"Ye fright the nightly wand'rer's way\""; + mes "\"Wi' eldritch croon.\""; + next; + mes "\"When twilight did my graunie summon\""; + mes "\"To say her pray'rs, douce honest woman!\""; + mes "\"Aft yont the dike she's heard you bummin,\""; + mes "\"Wi' eerie drone;\""; + mes "\"Or, rustlin thro' the boortrees comin,\""; + mes "\"Wi' heavy groan.\""; + next; + mes "\"Ae dreary, windy, winter night,\""; + mes "\"The stars shot down wi' sklentin light,\""; + mes "\"Wi' you mysel I gat a fright,\""; + mes "\"Ayont the lough;\""; + mes "\"Ye like a rash-buss stood in sight,\""; + mes "\"Wi' waving sugh.\""; + next; + mes "\"The cudgel in my nieve did shake,\""; + mes "\"Each bristl'd hair stood like a stake,\""; + mes "\"When wi' an eldritch, stoor 'Quaick, quaick,'\""; + mes "\"Amang the springs,\""; + mes "\"Awa ye squatter'd like a drake,\""; + mes "\"On whistling wings.\""; + next; + mes "\"Let warlocks grim an' wither'd hags\""; + mes "\"Tell how wi' you on ragweed nags\""; + mes "\"They skim the muirs an' dizzy crags\""; + mes "\"Wi' wicked speed;\""; + mes "\"And in kirk-yards renew their leagues,\""; + mes "\"Owre howket dead.\""; + next; + mes "\"Thence, countra wives wi' toil an' pain\""; + mes "\"May plunge an' plunge the kirn in vain;\""; + mes "\"For oh! the yellow treasure's taen\""; + mes "\"By witchin skill;\""; + mes "\"An' dawtet, twal-pint hawkie's gaen\""; + mes "\"As yell's the bill.\""; + next; + mes "\"Thence, mystic knots mak great abuse,\""; + mes "\"On young guidmen, fond, keen, an' croose;\""; + mes "\"When the best wark-lume i' the house,\""; + mes "\"By cantraip wit,\""; + mes "\"Is instant made no worth a louse,\""; + mes "\"Just at the bit.\""; + next; + mes "\"When thowes dissolve the snawy hoord,\""; + mes "\"An' float the jinglin icy-boord,\""; + mes "\"Then water-kelpies haunt the foord\""; + mes "\"By your direction,\""; + mes "\"An' nighted trav'lers are allur'd\""; + mes "\"To their destruction.\""; + next; + mes "\"And aft your moss-traversing spunkies\""; + mes "\"Decoy the wight that late an drunk is:\""; + mes "\"The bleezin, curst, mischievous monkeys\""; + mes "\"Delude his eyes,\""; + mes "\"Till in some miry slough he sunk is,\""; + mes "\"Ne'er mair to rise.\""; + next; + mes "\"When Masons' mystic word an grip\""; + mes "\"In storms an' tempests raise you up,\""; + mes "\"Some cock or cat your rage maun stop,\""; + mes "\"Or, strange to tell!\""; + mes "\"The youngest brither ye wad whip\""; + mes "\"Aff straught to hell!\""; + next; + mes "\"Lang syne, in Eden'd bonie yard,\""; + mes "\"When youthfu' lovers first were pair'd,\""; + mes "\"An all the soul of love they shar'd,\""; + mes "\"The raptur'd hour,\""; + mes "\"Sweet on the fragrant flow'ry swaird,\""; + mes "\"In shady bow'r;\""; + next; + mes "\"Then you, ye auld snick-drawin dog!\""; + mes "\"Ye cam to Paradise incog,\""; + mes "\"And play'd on man a cursed brogue,\""; + mes "\"(Black be your fa'!)\""; + mes "\"An gied the infant warld a shog,\""; + mes "\"Maist ruin'd a'.\""; + next; + mes "\"D'ye mind that day, when in a bizz,\""; + mes "\"Wi' reeket duds an reestet gizz,\""; + mes "\"Ye did present your smoutie phiz\""; + mes "\"Mang better folk,\""; + mes "\"An' sklented on the man of Uz\""; + mes "\"Your spitefu' joke?\""; + next; + mes "\"An' how ye gat him i' your thrall,\""; + mes "\"An' brak him out o' house and hal',\""; + mes "\"While scabs and blotches did him gall,\""; + mes "\"Wi' bitter claw,\""; + mes "\"An' lows'd his ill-tongued, wicked scaul,\""; + mes "\"Was warst ava?\""; + next; + mes "\"But a' your doings to rehearse,\""; + mes "\"Your wily snares an' fechtin fierce,\""; + mes "\"Sin' that day Michael did you pierce,\""; + mes "\"Down to this time,\""; + mes "\"Wad ding a Lallan tongue, or Erse,\""; + mes "\"In prose or rhyme.\""; + next; + mes "\"An' now, Auld Cloots, I ken ye're thinkin,\""; + mes "\"A certain Bardie's rantin, drinkin,\""; + mes "\"Some luckless hour will send him linkin,\""; + mes "\"To your black pit;\""; + mes "\"But faith! he'll turn a corner jinkin,\""; + mes "\"An' cheat you yet.\""; + next; + mes "\"But fare you weel, Auld Nickie-ben!\""; + mes "\"O wad ye tak a thought an' men'!\""; + mes "\"Ye aiblins might--I dinna ken--\""; + mes "\"Still hae a stake:\""; + mes "\"I'm wae to think upo' yon den,\""; + mes "\"Ev'n for your sake!\""; + next; + mes "\"Well, that was the poem. What do you think of it?\""; + menu + "It was a bit long and kind of hard to understand, but thanks for reading.", -; + close; + +L_Full_Inv: + mes "[Shannon]"; + mes "\"Your possessions seems to be a burden to you.\""; + next; + mes "\"Maybe you should turn away from the mundane world and get rid of this burden to change your view to the beauty of poetry.\""; + close; + +food_menu: + setarray @choice_idx, 0,0,0,0,0,0; + setarray @choice$, "","","","","",""; + + set @C_steak, 676; + set @C_chickenleg, 562; + set @C_redapple, 535; + set @C_greenapple, 719; + set @C_beer, 539; + + // counter of available answers + set @choices_nr, 0; + + if (countitem("Steak") == 0) goto L_nosteaks; + set @choice_idx[@choices_nr], @C_steak; + set @choice$[@choices_nr], "Offer him a steak."; + set @choices_nr, @choices_nr + 1; +L_nosteaks: + if (countitem("ChickenLeg") == 0) goto L_nochickenleg; + set @choice_idx[@choices_nr], @C_chickenleg; + set @choice$[@choices_nr], "Offer him a chicken leg."; + set @choices_nr, @choices_nr + 1; +L_nochickenleg: + if (countitem("RedApple") == 0) goto L_noredapple; + set @choice_idx[@choices_nr], @C_redapple; + set @choice$[@choices_nr], "Offer him a red apple."; + set @choices_nr, @choices_nr + 1; +L_noredapple: + if (countitem("GreenApple") == 0) goto L_nogreenapple; + set @choice_idx[@choices_nr], @C_greenapple; + set @choice$[@choices_nr], "Offer him a green apple."; + set @choices_nr, @choices_nr + 1; +L_nogreenapple: + if (countitem("Beer") == 0) goto L_nobeer; + set @choice_idx[@choices_nr], @C_beer; + set @choice$[@choices_nr], "Offer him a beer."; + set @choices_nr, @choices_nr + 1; +L_nobeer: + set @choice_idx[@choices_nr], @C_nevermind; + set @choice$[@choices_nr], "Leave"; + + menu + @choice$[0],-, + @choice$[1],-, + @choice$[2],-, + @choice$[3],-, + @choice$[4],-, + @choice$[5],-, + @choice$[6],-, + @choice$[7],-, + @choice$[8],-, + @choice$[9],-, + @choice$[10],-; + + set @choose, @menu - 1; + if (@choice_idx[@choose] == 0) + goto leave; + if ((countitem("Steak") != 0) && (@choice_idx[@choose] == @C_steak)) goto rem_item; + if ((countitem("ChickenLeg") != 0) && (@choice_idx[@choose] == @C_chickenleg)) goto rem_item; + if ((countitem("RedApple") != 0) && (@choice_idx[@choose] == @C_redapple)) goto rem_item; + if ((countitem("GreenApple") != 0) && (@choice_idx[@choose] == @C_greenapple)) goto rem_item; + if ((countitem("Beer") != 0) && (@choice_idx[@choose] == @C_beer)) goto rem_item; + + // fallthrough only when player remove the items while in menu, trying to cheat + // the quest will need to be started again + mes "\"What you are offering, you do not have. Do not try to betray me. Come back when you have better morals.\""; + close; + +rem_item: + delitem @choice_idx[@choose], 1; + return; + +leave: + close; +} + +010-2.gat,27,30,0 script Bar Rules 127,{ + mes "Dimonds Cove Bar Rules"; + next; + mes "No excessive drinking!"; + mes "If your sprite starts to stagger we will ask you to leave."; + next; + mes "No offensive chat."; + mes "This is a nice establishment."; + mes "Crude and offensive behavior will be reported to TMW GM's."; + next; + mes "Please be respectful of others."; + mes "Not everyone has the same experience and should all be treated"; + mes "with equal respect."; + next; + mes "Thank You,"; + mes "Dimonds Cove Management"; + close; +} + +010-2.gat,71,38,0 script Store Policy 127,{ + mes "All sales are final."; + mes "Returns are subject to a 50% re-stocking fee."; + close; +} + +010-2.gat,77,38,0 script Store Policy 127,{ + mes "All sales are final."; + mes "Returns are subject to a 50% re-stocking fee."; + close; +} + +010-2.gat,36,30,0 script Directions 127,{ + mes "This way to the Dimonds Cove Inn."; + mes "Five star accommodation for the weary traveler!"; + close; +} + +010-2.gat,80,32,0 script Dimonds Cove 1 127,{ + mes "The Story of Dimonds Cove"; + next; + mes "One day Dimond D. Stone dreamed of her own restaurant."; + mes "Dimond sold her food alone in this spot for some time,"; + mes "longing for the day she would have a building."; + mes "She met an adventurer named Merlin outside of the"; + mes "desert mines one day."; + next; + mes "They became friends and Dimond told Merlin about her idea."; + mes "Merlin was a accomplished carpenter and wanted to make a new"; + mes "place in the world. He told Dimond that he would make her"; + mes "restaurant for her. He gathered the tools and after much"; + mes "hard work, Dimonds Cove was built."; + next; + mes "(See Dimonds Cove 2)"; + close; +} + +010-2.gat,85,32,0 script Dimonds Cove 2 127,{ + mes "List of Events at Dimonds Cove"; + mes "January 2008 - Construction of Dimonds Cove."; + close; +} + + +010-2.gat,71,30,0 script Inn 127,{ + mes "Welcome to the Dimonds Cove Inn"; + mes "Rooms are 200 gp a night."; + mes "Plese check in with Basil."; + close; +} + + +010-2.gat,24,27,0 shop Bartender 112,539:175,567:500,568:500 + +010-2.gat,32,34,0 shop Waitress 139,519:100,533:150,534:90,562:500,676:200 + +010-2.gat,85,41,0 shop Blacksmith 146,545:20000,529:-1,603:-1 + +010-2.gat,65,41,0 shop General Store 137,586:1000,524:1600,544:10000,632:10000,528:1000,735:-1 + +010-2.gat,75,68,0 script Basil 107,{ + set @npcname$, "Basil the Inn Keeper"; + set @cost, 200; + callfunc "Inn"; +} + diff --git a/world/map/npc/010-2/doug.txt b/world/map/npc/010-2/doug.txt new file mode 100644 index 00000000..d072073d --- /dev/null +++ b/world/map/npc/010-2/doug.txt @@ -0,0 +1,110 @@ +// + +010-2.gat,68,87,0 script Doug 113,{ + if(CaveSnakeLamp == 1) goto L_State2; + if(CaveSnakeLamp == 2) goto L_Done; + set @TEMP, rand(4); + if(@TEMP == 0) goto L_0; + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + +L_0: + mes "[Doug]"; + mes "\"I need 20 more Cave Snake Lamps to make my light!\""; + next; + goto L_Question; + +L_1: + mes "[Doug]"; + mes "\"This lamp should light up this whole place! I just need 20 Cave Snake Lamps.\""; + next; + goto L_Question; + +L_2: + mes "[Doug]"; + mes "\"This is gonna be bright! A must have for anyone! All I need is a few parts...\""; + next; + goto L_Question; + +L_3: + mes "[Doug]"; + mes "\"Can you get me 20 Cave Snake Lamps? I need them to get this light finished.\""; + next; + goto L_Question; + +L_Question: + mes "[Doug]"; + mes "\"Will you help me find 20 Cave Snake Lamps?\""; + next; + menu + "Yes", L_Sure, + "No", -; + close; + +L_Sure: + set CaveSnakeLamp, 1; + set @TEMP, rand(4); + if(@TEMP == 0) goto J_0; + if(@TEMP == 1) goto J_1; + if(@TEMP == 2) goto J_2; + if(@TEMP == 3) goto J_3; + +J_0: + mes "[Doug]"; + mes "\"Thank you!\""; + next; + goto L_Go; + +J_1: + mes "[Doug]"; + mes "\"I don't know how to thank you enough!\""; + next; + goto L_Go; + +J_2: + mes "[Doug]"; + mes "\"I will pay you when you get them!\""; + next; + goto L_Go; + +J_3: + mes "[Doug]"; + mes "\"I'm sure I will give a small reward. :D\""; + next; + goto L_Go; + +L_Go: + mes "[Doug]"; + mes "\"Now please go get me 20 Cave Snake Lamps.\""; + close; + +L_State2: + if(countitem("CaveSnakeLamp") >= 20) goto L_Have; + mes "[Doug]"; + mes "\"Please help me collect 20 Cave Snake Lamps!\""; + close; + +L_Have: + mes "[Doug]"; + mes "\"Cool! Now I can make this light!\""; + next; + + if(countitem("CaveSnakeLamp") < 20) goto L_State2; + delitem "CaveSnakeLamp", 20; + set zeny, zeny + 5000; + getexp 5000, 0; + set CaveSnakeLamp, 2; + + mes "[Doug]"; + mes "\"Here's what I got to give you!\""; + mes ""; + mes "[5000 experience points]"; + mes "[5000 gold]"; + close; + +L_Done: + mes "[Doug]"; + mes "\"Thanks for your help! Those snakes sure have bright lamps!\""; + close; +} diff --git a/world/map/npc/010-2/loratay.txt b/world/map/npc/010-2/loratay.txt new file mode 100644 index 00000000..2472ba86 --- /dev/null +++ b/world/map/npc/010-2/loratay.txt @@ -0,0 +1,704 @@ +010-2.gat,85,85,0 script Lora Tay 151,{ + + set @ROBE_COCOONS_NR, 150; // must be multiple of ten + set @ROBE_ZENY, 10000; + + if (QUEST_WG_state == 10) + goto L_agostine_menu; + if (QUEST_WG_state >= 11) + goto L_regular_intro; + + set @t, rand(3); + if (@t == 0) goto L_intro_0; + if (@t == 1) goto L_intro_1; + + mes "You see a middle-aged woman furiously sewing away at what appears to be a very expensive dress. Her fingers are moving so nimbly that you find it near-impossible to follow the needle."; + + goto L_intro_over; +L_intro_0: + mes "You notice a middle-aged woman carefully drawing lines on a large sheet of cotton."; + + goto L_intro_over; +L_intro_1: + mes "You see a middle-aged woman cautiously but surprisingly swiftly cutting out shapes from a huge cotton sheet. The scissors glide along the cloth as if it were butter, never leaving the premarked lines."; + +L_intro_over: + next; + + mes "She suddenly stops and looks up."; + next; + + mes "\"Now who are you, and what are you doing here?\""; + mes "She squints, pushes her thick spectacles up the bridge of her nose and eyes you suspiciously."; + next; + + set @agostine_msg0$, ""; + set @agostine_msg1$, ""; + + if (QUEST_WG_state >= 1) + set @agostine_msg0$, "Do you know Agostine?"; + if ((QUEST_WG_state >= 9) && (countitem(655))) + set @agostine_msg1$, "Can you make fur boots, like Agostine?"; + + menu "Hello! My name is " + strcharinfo(0) + ".", L_hello_0, + "Hello; are you a tailor?", L_hello_1, + "Can you make something for me?", L_hello_2, + @agostine_msg0$, L_agostine_0, + @agostine_msg1$, L_agostine_1; + +L_hello_0: + mes "She raises an eyebrow."; + mes "\"That,\", she notes dryly, \"is hardly my fault. And now I would greatly appreciate it if you were to get out of here and leave me to my work!\""; + close; + +L_hello_1: + mes "She frowns."; + mes "\"No, I am an accupuncturist, I just happen to practice on cloth! Get out of here with your silly questions!\""; + close; + +L_hello_2: + mes "She glares at you indignantly."; + mes "\"Do you even know whom you are talking to? I am Lora Tay, greatest of the seven seamstresses of the South!\""; + next; + mes "[Lora Tay the Seamstress]"; + mes "\"I do not work for petty peasants or arrogant adventurers. Get out of my sight!\""; + mes "She waves you away and returns to her work."; + close; + + +L_agostine_0: + if (QUEST_WG_state < 1) close; + mes "She shoots an incensed glare at you."; + mes "\"Ah, Agostine! The 'legendary tailor'! Now who has not heard of him, been inspired by him! Such charisma! Such popularity! Such unprecedented lack of talent!\""; + mes "You notice that she prononuces the 't's as if she were trying to slap someone."; + next; + mes "\"Please spare me your tales of this fool. He couldn't mend a sock without getting himself trapped inside!\""; + mes "She frowns and turns back to her work, clearly not interested in discussing the matter further."; + close; + +L_agostine_1: + if ((QUEST_WG_state < 9) || (countitem (655) == 0)) close; + mes "[Lora Tay the Seamstress]"; + mes "She glares at your boots, her lips forming barely more than a thin line. Deep furrows form above her brows."; + mes "\"I can't believe it! He copied Illana's design but used fluffy fur in place of ice wolf fur-- Fluffy fur! Of all things! Who would wear such an atrocity of fashion! Everyone knows that you need ice-white, not pale-white, to go with such leather!\""; + next; + mes "[Lora Tay the Seamstress]"; + mes "She looks at them more closely."; + mes "\"This insolent upstart! Even worse, he copied my very own double-backward cross-stitch pattern... I can't believe it!\""; + next; + mes "[Lora Tay the Seamstress]"; + mes "Angry red spots begin to form on her cheeks."; + mes "\"Get those... things out of my sight before I forget myself!\""; + + if (QUEST_WG_state == 9) + set QUEST_WG_state, 10; + + close; + +L_agostine_menu: + mes "[Lora Tay the Seamstress]"; + mes "The seamstress looks up at you from her work."; + mes "\"I do hope that you have not had any more dealings with this... this lumberjack of a tailor?\""; + next; + + if (countitem(563) > 0) + menu "You mean Agostine?", L_agostine_3, + "Actually, he also made me gloves...", L_agostine_2, + "Why don't you like him?", L_agostine_4, + "No, none, really.", L_agostine_5; + + menu "You mean Agostine?", L_agostine_3, + "Why don't you like him?", L_agostine_4, + "No, none, really.", L_agostine_5; + +L_agostine_2: + if ((QUEST_WG_state < 9) || (countitem(563) == 0)) close; + mes "[Lora Tay the Seamstress]"; + mes "Lora inspects your gloves, shock apparent on her face."; + mes "\"Winter gloves? And he managed the join stitches without adding a single crease... no, that can't be the Agostine we were talking about...\""; + mes "Without asking, she takes your gloves and inspects them further."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "\"Triple inverted crossbar... he stole another of my stitching patterns! Except... no, that couldn't hold... what kind of yarn...\""; + mes "Torn between excitement, worry, and latent disgust, she frantically turns the gloves from side to side, looking for obvious flaws, her face reddening."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "\"No, it's perfect... Inconceivable! How could that little upstart... I don't believe it!\""; + mes "Breathing heavily with something that might be anger or confusion, she turns them inside out."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "She slides her fingers over the now-exposed inside whilst the color of her face approaches that of an over-ripe tomato."; + mes "\"Almost perfectly smooth...\", she whispers."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "She jumps up in a fit of sudden rage."; + mes "\"That's impossible! Where did he learn to sew like that! How did he cut the shapes so perfectly! When did he..."; + mes "Suddenly, she breaks into a cough."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "\"*cough* ... can't possibly... *cough*...\""; + mes "Lora sinks back on her chair, trying to control her cough."; + next; + + if (countitem(541)) + menu "(sneak out of the room)", L_end, + "Are you alright?", -, + "Here, have a bottle of water...", L_give_water, + "Can I help you?", -; + + if (countitem(541) == 0) + menu "(sneak out of the room)", L_end, + "Are you alright?", -, + "Can I help you?", -; + + mes "[Lora Tay the Seamstress]"; + mes "She holds out your gloves for you to pick up, then waves you out of the room. Fortunately, her cough seems to be slowly subsiding."; + close; + +L_agostine_3: + mes "[Lora Tay the Seamstress]"; + mes "She frowns at you."; + mes "\"What other self-absorbed tailor-pretends with the sewing skill of a mouboo are there around? Stop wasting my time.\""; + close; + +L_agostine_4: + mes "[Lora Tay the Seamstress]"; + mes "\"Is it not obvious? We are talking about someone so self-absorbed that he chose to ignore the advice of myself, greatest of the seven southern seamstresses! I cannot stand such arrogance.\""; + close; + +L_agostine_5: + mes "[Lora Tay the Seamstress]"; + mes "\"Good for you. That arrogant good-for-nothing couldn't tell a piece of cotton from chain mail if he wiped his nose with it!\""; + close; + +L_no_water: + mes "Checking more closely, you realize that you are out of water."; + mes "You apologise to Lora, though it fortunately seems that her cough is subsiding."; + mes "She waves you out of the room."; + close; + +L_regular_intro: + mes "[Lora Tay the Seamstress]"; + mes "\"Ah, you again. Is there anything in particular you need?\""; + next; + goto L_main_menu; + +L_give_water: + if (countitem(541) == 0) goto L_no_water; + delitem 541, 1; + set QUEST_WG_state, 11; + + set @xpval, 50000; + + getexp @xpval, 0; + mes "[Lora Tay the Seamstress]"; + + mes "Lora grabs your water bottle and take a deep sip. Slowly, her head regains a more natural color. As she puts the bottle down, her cough seems to have subsided."; + mes "\"Thank you, dear; that was just the right thing at the right time.\""; + mes "[You gain " + @xpval + " experience points]"; + next; + + mes "[Lora Tay the Seamstress]"; + mes "She hands you the winter gloves again."; + mes "\"Now what happened I don't know, but this wasn't made by the Agostine I remember. But I shan't be made a fool out of by one such as him.\""; + next; + + mes "[Lora Tay the Seamstress]"; + mes "\"If HE can sew petty every-day items for ordinary peasants, then so can I. Very well, is there anything in particular that you need made? I shall show you how a proper seamstress operates!\""; + next; + +L_main_menu: + menu "Can you trim something for me?", L_trim, + "Can you lengthen something for me?", L_lengthen, + "Can you make me a shirt?", L_shirt, + "Can you make me a tank top?", L_tanktop, + "Can you make me a cape?", L_cape, + "Can you make fur boots for me?", -, + "Can you make winter gloves me?", -, + "Can you sew a robe for me?", L_robe, + "Can you make a desert hat for me?", L_desert_hat, + "Goodbye for now!", L_end; + + mes "[Lora Tay the Seamstress]"; + mes "\"From what? Fluffy fur? I won't work with such lowly materials.\""; + next; + goto L_main_menu; + +L_desert_hat: + mes "[Lora Tay the Seamstress]"; + mes "The seamstress sighs."; + mes "\"One of these days it would be nice to have an actual challenge... yes, of course I can make a desert hat. A Cotton Headband, three pieces of cotton cloth. Hmm. And let's add 300 GP to that.\""; + next; + + set @default_choice$, "Never mind."; + setarray @items, 724, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147, 2148, 2149; + setarray @item_names$, "Here is a white headband", "Here is a red headband", "Here is a green headband", "Here is a dark blue headband", "Here is a yellow headband", "Here is a light blue headband", "Here is a pink headband", "Here is a black headband", "Here is a orange headband", "Here is a puple headband", "Here is a dark green headband"; + set @items_nr, 11; + + callsub SUB_pick_one_of_many_items; + if (@item == 0) goto L_main_menu; + + if (@item == 724) + set @genitem, 723; + if (@item != 724) + set @genitem, @item - 10; + + if (countitem(@item) < 1) + goto L_desert_hat_noheadband; + if (countitem("CottonCloth") < 3) + goto L_desert_hat_nocotton; + if (zeny < 300) + goto L_desert_hat_nogp; + + delitem @item, 1; + delitem "CottonCloth", 3; + set zeny, zeny - 300; + getitem @genitem, 1; + mes "[Lora Tay the Seamstress]"; + mes "\"Now then, this should only take a minute.\""; + mes "The seamstress folds your cotton cloth in a complicated fashion, wraps the resulting bundle into and out of the headband, and finally sews together several loose ends."; + next; + mes "[Lora Tay the Seamstress]"; + mes "The result resembles a huge knot."; + mes "Lora picks two ends and pulls, hard-- to your amazement, the knot unfolds, yielding a desert hat."; + mes "\"Here you are.\""; + next; + goto L_main_menu; + +L_desert_hat_nocotton: + mes "[Lora Tay the Seamstress]"; + mes "\"You're asking me to make a desert hat without enough cloth? Here, have your headband back-- see, that's how much I can do without cloth! And since I'm generous today, you can even keep your GP...\""; + next; + goto L_main_menu; + +L_desert_hat_nogp: + mes "[Lora Tay the Seamstress]"; + mes "\"No, no, no. 300 GP. That's not that much, I've been told. I can't just work for free, now can I?\""; + next; + goto L_main_menu; + +L_desert_hat_noheadband: + mes "[Lora Tay the Seamstress]"; + mes "\"Now that is odd. Where did your headband vanish to? Well, I'm not going to make you something as silly as a headband, so get one from elsewhere.\""; + next; + goto L_main_menu; + +L_trim: + mes "[Lora Tay the Seamstress]"; + mes "\"Trimming... you mean that you can't do that yourself? Well, alright... I suppose I should charge 100 GP and do it.\""; + mes "\"Alright. What is it that you want trimmed?\""; + next; + + set @default_choice$, "Never mind."; + setarray @items, 1202, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, + 688, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, + 632, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109; + setarray @item_names$, "cotton shirt", "red cotton shirt", "green cotton shirt", "dark blue cotton shirt", "yellow cotton shirt", "light blue cotton shirt", "pink cotton shirt", "black cotton shirt", "orange cotton shirt", "puple cotton shirt", "dark green cotton shirt", + "tank top", "red tank top", "green tank top", "dark blue tank top", "yellow tank top", "light blue tank top", "pink tank top", "black tank top", "orange tank top", "purple tank top", "dark green tank top", + "cotton skirt", "red cotton skirt", "green cotton skirt", "dark blue cotton skirt", "yellow cotton skirt", "light blue cotton skirt", "pink cotton skirt", "black cotton skirt", "orange cotton skirt", "purple cotton skirt", "dark green cotton skirt"; + set @items_nr, 33; + callsub SUB_pick_one_of_many_items; + if (@item == 0) goto L_main_menu; + + set @delitem, @item; + set @genitem, 0; + if (@item == 1202) set @genitem, 688; + if (@item == 688) set @genitem, 689; + if (@item == 632) set @genitem, 771; + if (@item >= 2090 && @item <= 2099) set @genitem, @item + 30; + if (@item >= 2050 && @item <= 2059) set @genitem, @item + 40; + if (@item >= 2100 && @item <= 2109) set @genitem, @item + 70; + if (@genitem == 0) goto L_trim_impossible; + if (zeny < 100) goto L_trim_nozeny; + + if (countitem(@delitem) < 1) + goto L_main_menu; + + delitem @delitem, 1; + getitem @genitem, 1; + set zeny, zeny - 100; + mes "[Lora Tay the Seamstress]"; + mes ""; + mes "\"There you are, dear.\""; + next; + goto L_main_menu; + +L_trim_impossible: + mes "[Lora Tay the Seamstress]"; // INTERNAL ERROR + mes "\"I don't really want to shorten this any more.\""; + next; + + goto L_main_menu; + +L_trim_nozeny: + mes "[Lora Tay the Seamstress]"; + mes "\"Not enough GP? Well, just do it yourself-- trimming really is trivial.\""; + next; + + goto L_main_menu; + +L_lengthen: + mes "[Lora Tay the Seamstress]"; + mes "\"Naturally, I will need a piece of Cotton Cloth to sew onto it; I must also charge you some... hmm... does 500 GP sound reasonable? Yes, I think I shall charge that.\""; + mes "\"Now, let me see. What is it that you want lengthened?\""; + next; + + set @default_choice$, "Never mind."; + setarray @items, 688, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, + 689, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 2128, 2129, + 771, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2177, 2178, 2179; + setarray @item_names$, "tank top", "red tank top", "green tank top", "dark blue tank top", "yellow tank top", "light blue tank top", "pink tank top", "black tank top", "orange tank top", "purple tank top", "dark green tank top", + "short tank top", "red short tank top", "green short tank top", "dark blue short tank top", "yellow short tank top", "light blue short tank top", "pink short tank top", "black short tank top", "orange short tank top", "purple short tank top", "dark green short tank top", + "miniskirt", "red miniskirt", "green miniskirt", "dark blue miniskirt", "yellow miniskirt", "light blue miniskirt", "pink miniskirt", "black miniskirt", "orange miniskirt", "purple miniskirt", "dark green miniskirt"; + + set @items_nr, 33; + callsub SUB_pick_one_of_many_items; + if (@item == 0) goto L_main_menu; + + set @delitem, @item; + set @genitem, 0; + if (@item == 688) set @genitem, 1202; + if (@item == 689) set @genitem, 688; + if (@item == 771) set @genitem, 632; + if (@item >= 2120 && @item <= 2129) set @genitem, @item - 30; + if (@item >= 2090 && @item <= 2099) set @genitem, @item - 40; + if (@item >= 2170 && @item <= 2179) set @genitem, @item - 70; + if (@genitem == 0) goto L_lengthen_impossible; + if (zeny < 500) goto L_lengthen_nozeny; + if (countitem ("CottonCloth") < 1) goto L_lengthen_nocotton; + + if (countitem(@delitem) < 1) + goto L_main_menu; + + delitem @delitem, 1; + delitem "CottonCloth", 1; + getitem @genitem, 1; + set zeny, zeny - 500; + mes "[Lora Tay the Seamstress]"; + mes "The seamstress cuts your piece of cotton cloth into stripes and sews them on. Using some odd liquid, she flattens the seams and borders."; + if (@delitem > 2000) // dyed + mes "She then applies another liquid-- smelling strangely of fermented apples-- to the result, wraps it up, and wrings it tightly. As she unwraps it, you observe to your amazement that the dye has spread to the newly attached area."; + mes "\"There you are, dear.\""; + next; + goto L_main_menu; + +L_lengthen_nocotton: + mes "[Lora Tay the Seamstress]"; + mes "\"Who do you think I am? The cotton fairy? Get yourself some cloth before you ask me to sew it on.\""; + next; + + goto L_main_menu; + +L_lengthen_nozeny: + mes "[Lora Tay the Seamstress]"; + mes "\"No gold, no sewing.\""; + next; + + goto L_main_menu; + +L_lengthen_impossible: + mes "[Lora Tay the Seamstress]"; // INTERNAL ERROR + mes "\"I really can't lengthen that any more.\""; + next; + + goto L_main_menu; + +L_shirt: + mes "[Lora Tay the Seamstress]"; + mes "\"Oh, how silly. You can by those everywhere. Please don't bore me with such trifles, dear.\""; + next; + + goto L_main_menu; + +L_tanktop: + mes "[Lora Tay the Seamstress]"; + mes "\"A tank top? Well, hardly a challenge, but I suppose I could do that. Please get me some cloth-- plain cotton will do-- and, let's see, how does 100,000 GP for my efforts sound?\""; + mes "\"Wait, I keep forgetting, you are just an adventurer... let's make that 1000 GP, then.\""; + next; + +L_tanktop_menu: + menu "I think I would like something else.", L_main_menu, + "A tank top, please (6 Cotton Cloth)", L_tanktop_long, + "A short tank top, please (5 Cotton Cloth)", L_tanktop_short, + "Goodbye for now.", L_end; + +L_tanktop_short: + if (countitem ("CottonCloth") < 5) goto L_tanktop_insufficient_cloth; + if (zeny < 1000) goto L_tanktop_insufficient_zeny; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CottonCloth") > 5) goto L_TooMany; + set zeny, zeny - 1000; + delitem "CottonCloth", 5; + getitem "ShortTankTop", 1; + mes "[Lora Tay the Seamstress]"; + mes "You watch as Lora sews the pieces of cloth together, then flattens the seams and ends with some odd liquid."; + mes "Amazingly, the result looks like a single piece of cloth."; + mes "After little more than a few elegant cuts and folds, your tank top is ready."; + mes "\"Oh dear, it seems that I am done already. Do you need anything else?\""; + next; + goto L_tanktop_menu; + +L_tanktop_long: + if (countitem ("CottonCloth") < 6) goto L_tanktop_insufficient_cloth; + if (zeny < 1000) goto L_tanktop_insufficient_zeny; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CottonCloth") > 6) goto L_TooMany; + set zeny, zeny - 1000; + delitem "CottonCloth", 6; + getitem "TankTop", 1; + mes "[Lora Tay the Seamstress]"; + mes "After combining your pieces of cloth into one-- miraculously making the seams and stitches vanish-- the seamstress cuts out all that doesn't belong into a tank top, then folds and stabilises the edges with additional seam lines."; + mes "\"There you are. Don't worry, I have trimmed it to match your size perfectly.\""; + next; + goto L_tanktop_menu; + +L_tanktop_insufficient_cloth: + mes "[Lora Tay the Seamstress]"; + mes "\"No, no, no, count again-- how much Cotton Cloth did I say I needed? That's not enough.\""; + next; + goto L_tanktop_menu; + +L_tanktop_insufficient_zeny: + mes "[Lora Tay the Seamstress]"; + mes "As you note that you don't have enough GP on you, Lora rolls her eyes."; + mes "\"I don't work for free, you know. I already gave you a discounted peasant price.\""; + next; + goto L_main_menu; + +L_cape: + mes "[Lora Tay the Seamstress]"; + mes "She shakes her head."; + mes "\"No capes. You're an adventurer, right? Do you want to get caught by a closing portcullis? Or strangled when your cape gets tangled in a tree? Or brought down by a mushroom stomping on your cape while you're trying to run away? No capes.\""; + next; + + goto L_main_menu; + +L_robe: + mes "[Lora Tay the Seamstress]"; + mes "\"A robe? Well, as long as you're not asking me to make it out of cotton...\""; + next; + + if (countitem("SilkCocoon") == 0) + goto L_robe_nosilk; + +L_robe_menu: + menu "Here, I have some silk cocoons!", -, + "Here, I have some silk sheets!", L_robe_nosilk, + "Where can I find silk?", L_where_silk, + "How much silk do you need?", L_how_much_silk, + "Oh, never mind.", L_main_menu; + + mes "[Lora Tay the Seamstress]"; + mes "The seamstress stares at you as if you had gone out of your mind."; + mes "\"And what precisely do you expect me to do with Silk Cocoons? String them together in some baubly chain? Somehow remove the thread and spin and weave it so that some random person can have their robe?\""; + next; + + menu "Will you trade cocoons for sheets?", -, + "Never mind.", L_main_menu; + + mes "[Lora Tay the Seamstress]"; + mes "Lora frowns."; + mes "\"It's not all that easy to get properly processed silk around here. Easier for me than for you, I admit...\""; + next; + + mes "[Lora Tay the Seamstress]"; + mes "She sighs."; + mes "\"All right, very well then. I have enough spare silk sheets right now, but you pay the silk processing for your cocoons.\""; + next; + + mes "[Lora Tay the Seamstress]"; + mes "\"Let's see... " + @ROBE_COCOONS_NR + " silk cocoons and " + @ROBE_ZENY + " GP should just about cover that.\""; + next; + + menu "I'm not interested.", L_main_menu, + "Very well then, here you are.", -; + + if (countitem("SilkCocoon") < @ROBE_COCOONS_NR) + goto L_robe_missing_cocoons; + + if (zeny < @ROBE_ZENY) + goto L_robe_missing_zeny; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("SilkCocoon") > @ROBE_COCOONS_NR) goto L_TooMany; + + set zeny, zeny - @ROBE_ZENY; + delitem "SilkCocoon", @ROBE_COCOONS_NR; + getitem "SilkRobe", 1; + mes "[Lora Tay the Seamstress]"; + mes "The seamstress puts your cocoons and GP away, takes your measurements and pulls out several silk sheets. She asks you to stretch out your arms, then pins the silk sheets in place all over your body."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "She proceeds to make a number of mysterious marks on the sheets with a charcoal pen. Meanwhile, your arms are getting tired, but you're afraid to lower them-- she used a lot of pins to put everything into place, and you lost track of where they went..."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "\"Splendid.\""; + mes "After removing the sheets (and pins!), she picks up a pair of scissors and plows through the cloth at her usual amazing pace, only stopping briefly to sew together parts here and there."; + next; + + mes "[Lora Tay the Seamstress]"; + mes "She then treats the seams with some odorless liquid, making them vanish completely. Finally she hands you the finished robe."; + mes "\"Here you are now, this will fit. And don't you dare tell anyone that I did this! I'm not about to start a silk cocoon collection!\""; + next; + + goto L_main_menu; + +L_robe_missing_cocoons: + mes "[Lora Tay the Seamstress]"; + mes "\"" + @ROBE_COCOONS_NR + " cocoons is what I said, not " + countitem("SilkCocoon") + "."; + mes @ROBE_COCOONS_NR + " is " + (@ROBE_COCOONS_NR / 10) + " as many times as you have fingers, in case that helps.\""; + next; + goto L_main_menu; + +L_robe_missing_zeny: + mes "[Lora Tay the Seamstress]"; + mes "\"No, no no. The way this works is that you give me the GP first and I give you the robe afterwards. You're " + (@ROBE_ZENY - zeny) + " GP short, so come back when you can afford the robe!\""; + next; + goto L_main_menu; + +L_where_silk: + mes "[Lora Tay the Seamstress]"; + mes "\"Oh, Hetchel on the Tulimshar Marketplace can weave them for you.\""; + next; + mes "[Lora Tay the Seamstress]"; + mes "She hesitates."; + mes "\"I didn't see her there the last time I visited, though. She may be visiting family. Tough luck.\""; + next; + goto L_robe_menu; + +L_how_much_silk: + mes "[Lora Tay the Seamstress]"; + mes "\"Six sheets should do fine, if they're the usual double-elbow squares.\""; + next; + goto L_robe_menu; + +L_robe_nosilk: + mes "[Lora Tay the Seamstress]"; + mes "\"What is that? You don't have any silk? Well, you're out of luck, I would say. I shan't make one out of those cotton rags; you might as well be wearing an apple sack.\""; + next; + goto L_main_menu; + +L_end: + close; + + + +// Input: @items (array of items you want to choose from) +// @item_names (names of the items in @items) +// @items_nr (number of entries in @items) +// @default_choice$ (default option) +// Return: @item (The selected item, or 0 if the default/something invalid was chosen) +SUB_pick_one_of_many_items: + set @c, 0; + set @i, 0; + + setarray @choice_n$, "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", ""; + +L_SUB_pick_choice_loop: + if (@i >= @items_nr) goto L_SUB_choice_init_done; + set @current, @items[@i]; + set @current_name$, @item_names$[@i]; + set @i, @i + 1; + + if (countitem(@current) == 0) goto L_SUB_pick_choice_loop; + set @choice_v[@c], @current; + set @choice_n$[@c], @current_name$; + set @c, @c + 1; + goto L_SUB_pick_choice_loop; + +L_SUB_choice_init_done: + set @choice_v[@c], 0; + set @choice_n$[@c], @default_choice$; + set @c, @c + 1; + + if (@c < 10) + menu @choice_n$[0], -, + @choice_n$[1], -, + @choice_n$[2], -, + @choice_n$[3], -, + @choice_n$[4], -, + @choice_n$[5], -, + @choice_n$[6], -, + @choice_n$[7], -, + @choice_n$[8], -, + @choice_n$[9], -; + if (@c < 10) goto L_SUB_choice_join; + + if (@c < 20) + menu @choice_n$[0], -, + @choice_n$[1], -, + @choice_n$[2], -, + @choice_n$[3], -, + @choice_n$[4], -, + @choice_n$[5], -, + @choice_n$[6], -, + @choice_n$[7], -, + @choice_n$[8], -, + @choice_n$[9], -, + @choice_n$[10], -, + @choice_n$[11], -, + @choice_n$[12], -, + @choice_n$[13], -, + @choice_n$[14], -, + @choice_n$[15], -, + @choice_n$[16], -, + @choice_n$[17], -, + @choice_n$[18], -, + @choice_n$[19], -; + if (@c < 20) goto L_SUB_choice_join; + + menu @choice_n$[0], -, + @choice_n$[1], -, + @choice_n$[2], -, + @choice_n$[3], -, + @choice_n$[4], -, + @choice_n$[5], -, + @choice_n$[6], -, + @choice_n$[7], -, + @choice_n$[8], -, + @choice_n$[9], -, + @choice_n$[10], -, + @choice_n$[11], -, + @choice_n$[12], -, + @choice_n$[13], -, + @choice_n$[14], -, + @choice_n$[15], -, + @choice_n$[16], -, + @choice_n$[17], -, + @choice_n$[18], -, + @choice_n$[19], -, + @choice_n$[20], -, + @choice_n$[21], -, + @choice_n$[22], -, + @choice_n$[23], -, + @choice_n$[24], -, + @choice_n$[25], -, + @choice_n$[26], -, + @choice_n$[27], -, + @choice_n$[28], -, + @choice_n$[29], -, + @choice_n$[30], -, + @choice_n$[31], -; + +L_SUB_choice_join: + set @menu, @menu - 1; + set @item, @choice_v[@menu]; + if (@menu >= @c) set @item, 0; + + return; + +L_TooMany: + mes "[Lora Tay the Seamstress]"; + mes "\"You don't have anywhere to put this. Come back when you have more room.\""; + close; +} diff --git a/world/map/npc/010-2/workers.txt b/world/map/npc/010-2/workers.txt new file mode 100644 index 00000000..0d80f700 --- /dev/null +++ b/world/map/npc/010-2/workers.txt @@ -0,0 +1,13 @@ +// + +010-2.gat,23,70,0 script Josh 155,{ + mes "[Josh]"; + mes "\"We're working on getting the cellar pass open.\""; + close; +} + +010-2.gat,39,75,0 script Zack 155,{ + mes "[Zack]"; + mes "\"My brother and I are fixing the cellar pass.\""; + close; +} diff --git a/world/map/npc/011-1/_import.txt b/world/map/npc/011-1/_import.txt new file mode 100644 index 00000000..53f564ce --- /dev/null +++ b/world/map/npc/011-1/_import.txt @@ -0,0 +1,9 @@ +// Map 011-1: Woodland +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 011-1.gat +npc: npc/011-1/_mobs.txt +npc: npc/011-1/_warps.txt +npc: npc/011-1/alchemist.txt +npc: npc/011-1/auldsbel.txt +npc: npc/011-1/oscar.txt +npc: npc/011-1/shops.txt diff --git a/world/map/npc/011-1/_mobs.txt b/world/map/npc/011-1/_mobs.txt new file mode 100644 index 00000000..180f3822 --- /dev/null +++ b/world/map/npc/011-1/_mobs.txt @@ -0,0 +1,75 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mobs + +011-1.gat,0,0,0,0 monster EvilMushroom 1013,30,0,0,Mob011-1::On1013 +011-1.gat,0,0,0,0 monster PinkFlower 1014,20,0,0,Mob011-1::On1014 +011-1.gat,0,0,0,0 monster Spiky Mushroom 1019,5,0,0,Mob011-1::On1019 +011-1.gat,0,0,0,0 monster Snail 1041,1,0,0,Mob011-1::On1041 +011-1.gat,0,0,0,0 monster Mouboo 1028,5,0,10,Mob011-1::On1028 +011-1.gat,0,0,0,0 monster Mauve 1029,3,270000,180000,Mob011-1::On1029 +011-1.gat,0,0,0,0 monster Alizarin 1032,1,2700000,1800000,Mob011-1::On1032 +011-1.gat,0,0,0,0 monster SilkWorm 1035,2,60000,30000,Mob011-1::On1035 +011-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob011-1::On1037 +011-1.gat,0,0,0,0 monster Squirrel 1038,25,30,20,Mob011-1::On1038 +011-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob011-1::On1055 +011-1.gat,0,0,0,0 monster Mouboo 1028,5,0,10,Mob011-1::On1028 + + +011-1.gat,0,0,0 script Mob011-1 -1,{ +On1013: + set @mobID, 1013; + callfunc "MobPoints"; + break; + +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1028: + set @mobID, 1028; + callfunc "MobPoints"; + break; + +On1029: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +On1032: + set @mobID, 1032; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1041: + set @mobID, 1041; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/011-1/_warps.txt b/world/map/npc/011-1/_warps.txt new file mode 100644 index 00000000..ad638d00 --- /dev/null +++ b/world/map/npc/011-1/_warps.txt @@ -0,0 +1,9 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland warps + +011-1.gat,58,92 warp ToCave -1,-1,011-3.gat,15,15 +011-1.gat,30,61 warp ToWoodland -1,1,014-1.gat,106,91 +011-1.gat,49,104 warp ToWoodland 0,-1,010-1.gat,48,24 +011-1.gat,125,62 warp ToWoodland -1,2,008-1.gat,27,61 +011-1.gat,73,11 warp ToWoodlandHills 0,-1,012-1.gat,131,162 +011-1.gat,38,36 warp affenpeter -1,-1,011-6.gat,49,99 diff --git a/world/map/npc/011-1/alchemist.txt b/world/map/npc/011-1/alchemist.txt new file mode 100644 index 00000000..e38f76ba --- /dev/null +++ b/world/map/npc/011-1/alchemist.txt @@ -0,0 +1,938 @@ +// This NPC makes potions and dyes +011-1.gat,117,77,0 script Rauk 103,{ + + // Setzer quest/monster oil quest participation + set @SETZER_INITIAL, 0; + set @SETZER_KNOWS_OIL, 1; + set @SETZER_KNOWS_STINGER, 2; + + set @Q_MASK, NIBBLE_3_MASK; + set @Q_SHIFT, NIBBLE_3_SHIFT; + + set @wants_sulphur, (QUEST_MAGIC & (NIBBLE_6_MASK | NIBBLE_7_MASK)); + set @wants_ironpowder, (((QUEST_MAGIC & (NIBBLE_6_MASK | NIBBLE_7_MASK)) >> NIBBLE_6_SHIFT) >= 7); + set @Q_status, (QUEST_Forestbow_state & @Q_MASK) >> @Q_SHIFT; + // End of Setzer quest/monster oil quest participation + + set @QUEST_CAN_GET_DYE_HERE, 2; + set @QUEST_HAS_SOLVED_DYE_PUZZLE, 3; + set @QUEST_GUESS_BASE, 4; + + set @CHOICE_IRON, 0; + set @CHOICE_CONCENTRATION, 1; + set @CHOICE_DYEING_INTRO, 2; + set @CHOICE_DYE, 3; + set @CHOICE_MONSTER_OIL, 4; + set @CHOICE_MANA_POTION, 5; + set @CHOICE_SULPHUR_POWDER, 6; + set @CHOICE_IRON_POWDER, 7; + set @CHOICE_ABORT, 8; + + setarray @menuitems$, "", "", "", "", "", "", "", ""; + set @c, 0; + + set @menuitems$[@c], "Iron potion."; + set @menuID[@c], @CHOICE_IRON; + set @c, @c + 1; + + set @menuitems$[@c], "Concentration potion."; + set @menuID[@c], @CHOICE_CONCENTRATION; + set @c, @c + 1; + + if (!(MAGIC_FLAGS & MFLAG_KNOWS_MANAPOTION)) + goto L_post_mana_potion_c; + set @menuitems$[@c], "Mana potion."; + set @menuID[@c], @CHOICE_MANA_POTION; + set @c, @c + 1; +L_post_mana_potion_c: + + if (QUEST_clothdyer_knowsdye >= @QUEST_CAN_GET_DYE_HERE) + goto L_skip_introducing; + + mes "[Rauk the Alchemist]"; + mes "\"I'm learning the ancient science of the alchemy."; + mes "I already know how to create a couple of potions!!\""; + mes "\"Do you want me to create one for you?\""; + next; + + if (QUEST_clothdyer_knowsdye == 1) + goto L_pre_dyeing; + + goto L_certain_condition; + +L_skip_introducing: + mes "[Rauk the Alchemist]"; + mes "\"Hello, welcome back! Are you interested in dyes again, or in one of my potions?\""; + next; + + set @menuitems$[@c], "Dye, please."; + set @menuID[@c], @CHOICE_DYE; + set @c, @c + 1; + + goto L_certain_condition; +L_pre_dyeing: + + set @menuitems$[@c], "Actually, can you make dye?"; + set @menuID[@c], @CHOICE_DYEING_INTRO; + set @c, @c + 1; +L_certain_condition: + + if (!@wants_sulphur) + goto L_post_sulphur_option; + set @menuitems$[@c], "Can you make sulphur powder?"; + set @menuID[@c], @CHOICE_SULPHUR_POWDER; + set @c, @c + 1; +L_post_sulphur_option: + + if (!@wants_ironpowder) + goto L_post_ironpowder_option; + set @menuitems$[@c], "Can you make iron powder?"; + set @menuID[@c], @CHOICE_IRON_POWDER; + set @c, @c + 1; +L_post_ironpowder_option: + + if (@Q_status == @SETZER_INITIAL) + goto L_post_monster_oil; + set @menuitems$[@c], "Can you make monster oil?"; + set @menuID[@c], @CHOICE_MONSTER_OIL; + set @c, @c + 1; + +L_post_monster_oil: + set @menuitems$[@c], "No thanks."; + set @menuID[@c], @CHOICE_ABORT; + set @c, @c + 1; + +L_main_menu: + + menu + @menuitems$[0], -, + @menuitems$[1], -, + @menuitems$[2], -, + @menuitems$[3], -, + @menuitems$[4], -, + @menuitems$[5], -, + @menuitems$[6], -, + @menuitems$[7], -; + + set @menu, @menu - 1; + + if (@menu >= @c) goto L_abort; + if (@menuID[@menu] == @CHOICE_IRON) goto L_iron; + if (@menuID[@menu] == @CHOICE_CONCENTRATION) goto L_concentration; + if (@menuID[@menu] == @CHOICE_DYEING_INTRO) goto L_dyeing_intro; + if (@menuID[@menu] == @CHOICE_DYE) goto L_pick_colour; + if (@menuID[@menu] == @CHOICE_MONSTER_OIL) goto L_monster_oil; + if (@menuID[@menu] == @CHOICE_MANA_POTION) goto L_mana_potion; + if (@menuID[@menu] == @CHOICE_SULPHUR_POWDER) goto L_sulphur; + if (@menuID[@menu] == @CHOICE_IRON_POWDER) goto L_iron_powder; + if (@menuID[@menu] == @CHOICE_ABORT) goto L_abort; + goto L_abort; + +L_iron_powder: + mes "[Rauk the Alchemist]"; + mes "\"Iron powder? Hmm, I can extract some iron powder out of a chunk of iron ore, but that will require me to dissolve it. If you give me a chunk of iron ore and 100 GP for the acid, I can do it.\""; + next; + menu + "Never mind.", L_abort, + "Here you are!", -; + + if (countitem("IronOre") < 1) + goto L_iron_powder_noore; + if (zeny < 100) + goto L_iron_powder_nozeny; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("IronOre") > 1 + && countitem("IronPowder") < 1) + goto L_iron_powder_full; + delitem "IronOre", 1; + set zeny, zeny - 100; + getitem "IronPowder", 4; + mes "[Rauk the Alchemist]"; + mes "Rauk places your chunk of ore in a strange glass container, then pours a steaming yellow liquid over it. Before your eyes, the ore dissolves."; + next; + + mes "[Rauk the Alchemist]"; + mes "Rauk pours another liquid over the resultant mixture, then pours the result through a piece of cloth placed in a funnel, followed by a cup of water. He removes the residual metal powder from the cloth and hands it to you."; + mes "\"This is about as fine as I can make it without mechanical help.\""; + close; + +L_iron_powder_noore: + mes "[Rauk the Alchemist]"; + mes "\"I do need a chunk of iron ore. Please return when you have one.\""; + close; + +L_iron_powder_nozeny: + mes "[Rauk the Alchemist]"; + mes "\"I'm sorry, but I must ask that you pay 100 GP-- the acid I use is not cheap.\""; + close; + +L_iron_powder_full: + mes "[Rauk the Alchemist]"; + mes "\"I don't think that you have room to carry this. Please come back later.\""; + close; + +L_sulphur: + mes "[Rauk the Alchemist]"; + mes "\"Oh, that is easy. Bring me three piles of volcanic ash and three mauve leaves, and I will extract twelve piles of sulphur ash for you.\""; + next; + menu + "I will be back.", L_abort, + "No, I won't!", L_abort, + "Here you are!", -; + + if (countitem("PileOfAsh") < 3) goto L_sulphur_noash; + if (countitem("MauveHerb") < 3) goto L_sulphur_nomauve; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("SulphurPowder") == 0 + && countitem("PileOfAsh") > 3 + && countitem("MauveHerb") > 3) + goto L_sulphur_nospace; + + delitem "PileOfAsh", 3; + delitem "MauveHerb", 3; + getitem "SulphurPowder", 12; + mes "[Rauk the Alchemist]"; + mes "You watch Rauk burn the mauve leaves in the midst of the ashes. He then dissolves the result and pours it through a filter, finally heating up the residual liquid."; + next; + mes "[Rauk the Alchemist]"; + mes "The water having evaporated, only some yellow powder is left over. Rauk carefully pours it into your hand."; + mes "\"This should be precisely twelve half-ounces of sulphur powder.\""; + close; + +L_sulphur_noash: + mes "[Rauk the Alchemist]"; + mes "\"You don't seem to have all three piles of volcanic ash.\""; + close; + +L_sulphur_nomauve: + mes "[Rauk the Alchemist]"; + mes "\"You don't seem to have the three mauve leaves I asked for.\""; + close; + +L_sulphur_nospace: + mes "[Rauk the Alchemist]"; + mes "\"Oh dear. You don't seem to be able to carry the sulphur powder.\""; + close; + +L_mana_potion: + mes "[Rauk the Alchemist]"; + mes "\"Humh... I do believe that I have a recipe somewhere. One moment...\""; + mes "Rauk pulls a small book out of his sleeve and leafs through it."; + mes "\"Aha, here we are. Hmm, I'm not convinced that this is the best possible recipe...\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"I shall need one pearl, one bottle of water, thirty mauve leaves, twenty gamboge leaves, and five piles of volcanic ash.\""; + next; + + menu "Here you are!", L_get_mana_potion, + "Never mind.", L_main_menu; + + goto L_main_menu; + +L_get_mana_potion: + if(countitem("MauveHerb") < 30) goto L_mana_potion_lacking; + if(countitem("GambogeHerb") < 20) goto L_mana_potion_lacking; + if(countitem("PileOfAsh") < 5) goto L_mana_potion_lacking; + if(countitem("Pearl") < 1) goto L_mana_potion_lacking; + if(countitem("BottleOfWater") < 1) goto L_mana_potion_lacking; + getinventorylist; + if ((@inventorylist_count == 100) + && (countitem("MauveHerb") > 30) + && (countitem("PileOfAsh") > 5) + && (countitem("Pearl") > 1) + && (countitem("BottleOfWater") > 1) + && (countitem("ManaPotion") < 1)) + goto L_mana_potion_toomuch; + + delitem "MauveHerb", 30; + delitem "GambogeHerb", 20; + delitem "PileOfAsh", 5; + delitem "Pearl", 1; + delitem "BottleOfWater", 1; + getitem "ManaPotion", 1; + + mes "[Rauk the Alchemist]"; + mes "Rauk grinds the leaves, then crushes the pearl. Taking out a small charcoal oven, he heats up your water bottle and dissolves first the pearl powder, then the ashes."; + mes "The brew begins to bubble violently."; + next; + + mes "[Rauk the Alchemist]"; + mes "Taking the bottle with a pair of tongs, he pours the liquid through a fine sieve, discarding the liquid."; + mes "He then mixes the residual paste with the leaves, stirs in a little water from the pond and fills the result into a separate bottle."; + next; + + mes "[Rauk the Alchemist]"; + mes "\"Here you are. I hope that this is what you wanted.\""; + next; + + goto L_main_menu; + +L_mana_potion_toomuch: + mes "[Rauk the Alchemist]"; + mes "\"You look quite burdened already. Why don't you drop off a few things first, and come back later?\""; + next; + goto L_main_menu; + +L_mana_potion_lacking: + mes "[Rauk the Alchemist]"; + mes "\"Sorry, but I need one Pearl, one Bottle of Water, 30 Mauve Leaves, 20 Gamboge Leaves, and five Piles of Ash.\""; + next; + goto L_main_menu; + +L_iron: + set @COST_PER_IRON_POTION, 2; + + mes "\" To make them, I'm going to need " + @COST_PER_IRON_POTION + " Small Mushrooms per Iron Potion. How many Iron Potions would you like?\""; + input @count; + + if (@count == 0) close; + set @empty, countitem("SmallMushroom"); + + if (@empty < @count * @COST_PER_IRON_POTION) goto L_no_iron; + getinventorylist; + if (@inventorylist_count == 100 && countitem("SmallMushroom") == 0 && @empty > @count) goto L_TooMany; + + delitem "SmallMushroom", @COST_PER_IRON_POTION * @count; + getitem "IronPotion", @count; + close; + +L_concentration: + set @COST_PER_CONCENTRATION_POTION, 2; + + mes "\" To make them, I'm going to need " + @COST_PER_CONCENTRATION_POTION + " Pink Petals per Concentration Potion. How many Concentration Potions would you like?\""; + input @count; + + if (@count == 0) close; + set @empty, countitem("PinkPetal"); + + if (@empty < @count * @COST_PER_CONCENTRATION_POTION) goto L_no_concentration; + getinventorylist; + if (@inventorylist_count == 100 && countitem("PinkPetal") == 0 && @empty > @count) goto L_TooMany; + + delitem "PinkPetal", @COST_PER_CONCENTRATION_POTION * @count; + getitem "ConcentrationPotion", @count; + close; + +L_no_iron: + mes "\"You have to bring me 2 Small Mushrooms for each Iron Potion.\""; + close; + +L_no_concentration: + mes "\"You have to bring me 2 Pink Petals for each Concentration Potion.\""; + close; + +L_dyeing_intro: + mes "[Rauk the Alchemist]"; + mes "Rauk pauses for a moment."; + mes "\"Hmm, I'm not very good at that... I can only make simple dyes, the ones that you can use for cotton and wool.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"For the truly powerful ones that you can use to dye a person or an entire lake with, I would need a powerful catalyst, like an Obsidian Spork or a Wumpus Egg...\""; + mes "Rauk seems to be lost in his thoughts."; + next; + menu "I only want to dye clothes, though...", -, + "What's a 'Wumpus egg'?", L_wumpus_egg_intro, + "What's an 'Obsidian Spork'?", L_obsidian_spork_intro, + "Er, never mind...", L_abort; + mes "[Rauk the Alchemist]"; + mes "\"Oh, just for clothes? Well, that is easy. I can make red, yellow, light blue, orange, pink, green, dark blue, black and purple dye, if you can get me the ingredients for it.\""; + next; + set QUEST_clothdyer_knowsdye, 2; + goto L_pick_colour; + +L_wumpus_egg_intro: + mes "[Rauk the Alchemist]"; + mes "Rauk's eyes brighten up."; + mes "\"Ah, a wumpus egg is one of the most powerful catalysts out there, useful for transmutation and transchromation! Unfortunately the Common Wumpus is almost completely extinct these days, so they are hard to find."; + mes "Should you find one, please let me know-- I will pay well for one!\""; + close; + +L_obsidian_spork_intro: + mes "[Rauk the Alchemist]"; + mes "Rauk scratches his head."; + mes "\"Hm, obsidian is a dark, glass-like material that you can normally find near volcanos. Shaping it isn't too hard, but shaping it without it losing its magical properties is almost impossible.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Obsidian sporks are therefore hard to make, but they are said to be very useful in certain kinds of alchemy."; + mes "Should you find one, please let me know!\""; + close; + +L_pick_colour: + menu "What are the ingredients you need?", L_description, + "Red", L_red, + "Yellow", L_yellow, + "Light blue", L_light_blue, + "Green", L_green, + "Orange", L_orange, + "Pink", L_pink, + "Dark blue", L_dark_blue, + "Black", L_black, + "Purple", L_purple, + "Dark Green", L_dark_green, + "Nothing, really.", L_abort; + close; + +L_description: + mes "[Rauk the Alchemist]"; + mes "\"The kinds of dyes I know are made from herbs-- alizarin for red, gamboge for yellow, cobalt for blue, and mauve as binding agent for dark colors.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Some of the colors need more ingredients, including some that you can't find here, so I have to charge money for them."; + mes "Oh, and for a proper dark blue and purple I also need a pearl; without pearl dust they would not shimmer properly.\""; + next; + +L_description_quick: + menu "What do you need for red dye?", L_d_red, + "What do you need for yellow dye?", L_d_yellow, + "What do you need for light blue dye?", L_d_light_blue, + "What do you need for green dye?", L_d_green, + "What do you need for orange dye?", L_d_orange, + "What do you need for pink dye?", L_d_pink, + "What do you need for dark blue dye?", L_d_dark_blue, + "What do you need for black dye?", L_d_black, + "What do you need for purple dye?", L_d_purple, + "What do you need for dark green dye?", L_d_dark_green, + "Actually...", -; + + menu "Can you make some dye for me, please?", L_pick_colour, + "Where can I get the herbs?", L_d_herbs, + "Where can I find pink petals?", L_d_pink_petals, + "Where can I find iron ore?", L_d_ore, + "Where can I find a pearl?", L_d_pearl, + "Where can I find maggot slime?", L_d_maggot_slime, + "I see. Thank you, and a good day to you!", L_abort; + close; + +L_d_herbs: + mes "[Rauk the Alchemist]"; + mes "\"Alizarin, mauve, cobalt and gamboge bushes grow in this general area. I haven't seen them nearby, but take a look around; I am sure you will find some.\""; + next; + goto L_description_quick; + +L_d_pink_petals: + mes "[Rauk the Alchemist]"; + mes "\"Just take some from the pink flowers around here. But be careful, they seem to be a bit fond of them.\""; + next; + goto L_description_quick; + +L_d_ore: + mes "[Rauk the Alchemist]"; + mes "\"Iron ore you should be able to find in some mine, I think. That's where people usually get it from, I have been told.\""; + next; + goto L_description_quick; + +L_d_pearl: + mes "[Rauk the Alchemist]"; + mes "\"A pearl... hm, that might be tricky. You normally find them in clams, but I haven't seen many of those here in the woodlands.\""; + next; + goto L_description_quick; + +L_d_maggot_slime: + mes "[Rauk the Alchemist]"; + mes "\"As the name might have given away already, maggot slime is most easily obtained from maggots. Still, there are some other creatures-- such as bats-- that secrete a similar kind of slime that for alchemistic purposes is equivalent.\""; + next; + goto L_description_quick; + +L_intermediate: + menu "Can you make some dye for me?", L_pick_colour, + "Can you describe the ingredients?", L_description_quick, + "Never mind.", L_abort; + close; + +L_ok: + mes "[Rauk the Alchemist]"; + mes "\"Here is your dye. Remember to use all of it at once or the color may bleach out.\""; + next; + goto L_pick_colour; + +L_red: + if (countitem("AlizarinHerb") < 10) goto L_red_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("AlizarinHerb") > 10) goto L_TooMany; + delitem "AlizarinHerb", 10; + getitem "RedDye", 1; + goto L_ok; + +L_red_fail: + mes "[Rauk the Alchemist]"; + mes "\"Hmm, sorry, but I do need ten alizarin leaves to make red dye.\""; + next; + goto L_intermediate; + +L_d_red: + mes "[Rauk the Alchemist]"; + mes "\"Red dye is fairly simple to make. Bring me ten leaves of alizarin, and I can brew it for you right away.\""; + next; + goto L_intermediate; + +L_yellow: + if (countitem("GambogeHerb") < 10) goto L_yellow_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("GambogeHerb") > 10) goto L_TooMany; + delitem "GambogeHerb", 10; + getitem "YellowDye", 1; + goto L_ok; + +L_yellow_fail: + mes "[Rauk the Alchemist]"; + mes "\"Without enough gamboge leaves-- I would need at least ten--, I can't make yellow dye for you.\""; + next; + goto L_intermediate; + +L_d_yellow: + mes "[Rauk the Alchemist]"; + mes "\"Yellow dye is no more than gamboge extract. If you get me ten gamboge leaves, I can make it easily.\""; + next; + goto L_intermediate; + +L_light_blue: + if (countitem("CobaltHerb") < 10) goto L_light_blue_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CobaltHerb") > 10) goto L_TooMany; + delitem "CobaltHerb", 10; + getitem "LightBlueDye", 1; + goto L_ok; + +L_light_blue_fail: + mes "[Rauk the Alchemist]"; + mes "\"Sorry, but I won't give it to you for less than ten cobalt leaves.\""; + next; + goto L_intermediate; + +L_d_light_blue: + mes "[Rauk the Alchemist]"; + mes "\"Light blue dye is what you get if you let cobalt leaves sit in alcohol over night. I have some here and will trade it for ten fresh cobalt leaves.\""; + next; + goto L_intermediate; + +L_green: + if (countitem("CobaltHerb") < 20) goto L_green_fail; + if (countitem("GambogeHerb") < 20) goto L_green_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CobaltHerb") > 20 && countitem("GambogeHerb") > 20) goto L_TooMany; + if (zeny < 1000) goto L_green_fail; + delitem "CobaltHerb", 20; + delitem "GambogeHerb", 20; + set zeny, zeny - 1000; + getitem "GreenDye", 1; + goto L_ok; + +L_green_fail: + mes "[Rauk the Alchemist]"; + mes "\"No... I need enough gamboge and cobalt to make your dye.\""; + mes "\"Twenty gamboge leaves, twenty cobalt leaves, and 1000 GP should be sufficient.\""; + next; + goto L_intermediate; + +L_d_green: + mes "[Rauk the Alchemist]"; + mes "\"Green dye is a little tricky to make, since you have to boil gamboge leaves at just the right temperature while stirring in a cobalt ester."; + mes "Making the cobalt ester is not easy, and every time I try I end up melting a crystal flask beyond repair...\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Thus, I will need twenty gamboge leaves, twenty cobalt leaves, and 1000 GP for materials."; + next; + goto L_intermediate; + +L_d_no_green: + mes "[Rauk the Alchemist]"; + mes "\"Come back when you are a little more experienced. I might be able to tell you how to make green dye then.\""; + close; + +L_orange: + if (countitem("AlizarinHerb") < 10) goto L_orange_fail; + if (countitem("GambogeHerb") < 10) goto L_orange_fail; + if (countitem("IronOre") < 2) goto L_orange_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("AlizarinHerb") > 10 && countitem("GambogeHerb") > 10 && countitem("IronOre") > 2) goto L_TooMany; + if (zeny < 1000) goto L_orange_fail; + delitem "AlizarinHerb", 10; + delitem "GambogeHerb", 10; + delitem "IronOre", 2; + set zeny, zeny - 1000; + getitem "OrangeDye", 1; + goto L_ok; + +L_orange_fail: + mes "[Rauk the Alchemist]"; + mes "\"I'm sorry, but I need 1000 GP, two chunks of iron ore, and ten each of gamboge and alizarin leaves.\""; + next; + goto L_intermediate; + +L_d_orange: + mes "[Rauk the Alchemist]"; + mes "\"Orange dye is fun to make, but it requires some burnt iron, and also consummate sulphur powder, which you cannot get here easily."; + mes "\"Still, for 1000 GP, two pieces of iron ore, ten alizarin leaves and ten gamboge leaves, I can make you a vial of orange dye.\""; + next; + goto L_intermediate; + +L_pink: + if (countitem("AlizarinHerb") < 10) goto L_pink_fail; + if (countitem("PinkPetal") < 6) goto L_pink_fail; + if (zeny < 1000) goto L_pink_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("AlizarinHerb") > 10 && countitem("PinkPetal") > 6) goto L_TooMany; + delitem "AlizarinHerb", 10; + delitem "PinkPetal", 6; + set zeny, zeny - 1000; + getitem "PinkDye", 1; + goto L_ok; + +L_pink_fail: + mes "[Rauk the Alchemist]"; + mes "\"No, you don't have all I need, and that would be ten alizarin leaves, six pink flower petals, and 1000 GP.\""; + next; + goto L_intermediate; + +L_d_pink: + mes "[Rauk the Alchemist]"; + mes "\"Pink dye... that's a funny one: you can't get proper pink out of the usual herbs. You do need ten leaves of alizarin, but you also need six pink flower petals."; + mes "To properly extract the pink from the petals, you have to boil it in concentrated utenum; I will have to charge 1000 GP for that.\""; + next; + goto L_intermediate; + +L_dark_blue: + if (countitem("CobaltHerb") < 100) goto L_dark_blue_fail; + if (countitem("MauveHerb") < 50) goto L_dark_blue_fail; + if (countitem("Pearl") < 1) goto L_dark_blue_fail; + if (zeny < 10000) goto L_dark_blue_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CobaltHerb") > 100 && countitem("MauveHerb") > 50 && countitem("Pearl") > 1) goto L_TooMany; + delitem "CobaltHerb", 100; + delitem "MauveHerb", 50; + delitem "Pearl", 1; + set zeny, zeny - 10000; + getitem "DarkBlueDye", 1; + goto L_ok; + +L_dark_blue_fail: + mes "[Rauk the Alchemist]"; + mes "\"I will need all of the ingredients to make dark blue dye for you.\""; + mes "\"I need 100 cobalt leaves, 50 mauve leaves, one pearl, and 10,000 GP.\""; + next; + goto L_intermediate; + +L_d_dark_blue: + mes "[Rauk the Alchemist]"; + mes "\"Dark blue dye is one of the trickiest ones. You need concentrated extract from 100 leaves of cobalt and 50 mauve leaves for proper binding."; + mes "For the right shimmer, a pearl is indispensible, and the most expensive part is a rare kind of ayanamian sapphire dust that I have to charge 10,000 GP for.\""; + next; + goto L_intermediate; + +L_purple: + if (countitem("CobaltHerb") < 100) goto L_purple_fail; + if (countitem("AlizarinHerb") < 100) goto L_purple_fail; + if (countitem("MauveHerb") < 20) goto L_purple_fail; + if (countitem("Pearl") < 1) goto L_purple_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CobaltHerb") > 100 && countitem("AlizarinHerb") > 100 && countitem("MauveHerb") > 20 && countitem("Pearl") > 1) goto L_TooMany; + if (zeny < 40000) goto L_purple_fail; + delitem "CobaltHerb", 100; + delitem "AlizarinHerb", 100; + delitem "MauveHerb", 20; + delitem "Pearl", 1; + set zeny, zeny - 40000; + getitem "PurpleDye", 1; + goto L_ok; + +L_purple_fail: + mes "[Rauk the Alchemist]"; + mes "\"No... I don't think that you have enough ingredients for this. Let me check my notes.\""; + mes "\"What I need are 100 cobalt leaves, 100 alizarin leaves, 20 mauve leaves, one pearl, and 40,000 GP.\""; + next; + goto L_intermediate; + +L_d_purple: + mes "[Rauk the Alchemist]"; + mes "\"Hm, Purple dye... proper Tritan Purple is hard to make. Fortunately, the correct recipe has survived... but some ingredients are quite costly."; + mes "I can't even tell you why, unfortunately, since this is a bit of an alchemistic secret, and I really don't want to argue this out with people who can turn my nose into a rhubarb.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Still, I can make it for you, out of 100 cobalt leaves, 100 alizarin leaves, 20 mauve leaves, one pearl, and 40,000 GP. Some other ingredients are covered by the GP.\""; + next; + goto L_intermediate; + +L_black: + if (countitem("CobaltHerb") < 40) goto L_black_fail; + if (countitem("AlizarinHerb") < 40) goto L_black_fail; + if (countitem("GambogeHerb") < 40) goto L_black_fail; + if (countitem("MauveHerb") < 40) goto L_black_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CobaltHerb") > 40 && countitem("AlizarinHerb") > 40 && countitem("GambogeHerb") > 40 && countitem("MauveHerb") > 40) goto L_TooMany; + if (zeny < 20000) goto L_black_fail; + delitem "CobaltHerb", 40; + delitem "AlizarinHerb", 40; + delitem "GambogeHerb", 40; + delitem "MauveHerb", 40; + set zeny, zeny - 20000; + getitem "BlackDye", 1; + goto L_ok; + +L_black_fail: + mes "[Rauk the Alchemist]"; + mes "\"I am sorry, but you don't have all the items I need to make black dye. I need fourty leaves of alizarin, cobalt, gamboge and mauve each, and 20,000 GP.\""; + next; + goto L_intermediate; + +L_d_black: + mes "[Rauk the Alchemist]"; + mes "\"Black? Ah! such a wonderful choice of color. It's my favorite! Well, if you too want something black, I would be delighted to make you some black dye."; + mes "Just bring me 40 leaves each of cobalt, alizarin, gamboge and mauve.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Oh, and 20,000 GP for the charcoal and diamond dust mixture you need to keep the mauve smell out.\""; + next; + goto L_intermediate; + +L_dark_green: + if (baselevel < 30) goto L_d_no_green; + if (QUEST_clothdyer_knowsdye != @QUEST_HAS_SOLVED_DYE_PUZZLE) + goto L_d_dark_green; + if (countitem("CobaltHerb") < 10) goto L_dark_green_fail; + if (countitem("GambogeHerb") < 10) goto L_dark_green_fail; + if (countitem("MauveHerb") < 10) goto L_dark_green_fail; + if (countitem("MaggotSlime") < 1) goto L_dark_green_fail; + if (zeny < 1000) goto L_dark_green_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem("CobaltHerb") > 10 && countitem("GambogeHerb") > 10 && countitem("MauveHerb") > 10 && countitem("MaggotSlime") > 1) goto L_TooMany; + delitem "CobaltHerb", 10; + delitem "MauveHerb", 10; + delitem "GambogeHerb", 10; + delitem "MaggotSlime", 1; + set zeny, zeny - 1000; + getitem "DarkGreenDye", 1; + goto L_ok; + +L_dark_green_fail: + mes "[Rauk the Alchemist]"; + mes "Rauk frowns as he examines the items you hand him."; + mes "\"No, this will not do. I need ten gamboge leaves, ten cobalt leaves, ten mauve leaves, slime from one maggot, and 1000 GP.\""; + next; + goto L_intermediate; + +L_d_dark_green: + mes "[Rauk the Alchemist]"; + if (QUEST_clothdyer_knowsdye != @QUEST_HAS_SOLVED_DYE_PUZZLE) + goto L_d_dark_green_quest; + mes "\"Since we have figured out how much maggot slime we need for you, all you have to bring me are 1000 GP, one maggot slime, and ten leaves each of mauve, cobalt, and gamboge.\""; + next; + goto L_intermediate; + +L_d_dark_green_quest: + mes "\"Ah, dark green... dark green dye is actually simple to make, except for one tiny little problem: dark green clothes fade very quickly when they touch human skin. By far the best way to fixate the color is argentum powder, mixed with dark green dye essence extracted from maggot slime.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"But just how much maggot slime goes into the fixative and how much into the rest of the mixture varies completely for every individual. We will have to figure out just how many thousandth ounces it is for you before I can make dark green dye for you.\""; + next; + if (QUEST_clothdyer_knowsdye == @QUEST_CAN_GET_DYE_HERE) + set QUEST_clothdyer_knowsdye, (rand(1000) + @QUEST_GUESS_BASE); + +L_d_dark_green_q_main: + menu "Uh... no thanks.", L_intermediate, + "So nobody else can wear clothes I dye?", L_dark_green_q_wear, + "OK, what should I do?", L_dark_green_q_explain, + "Let's figure it out!", L_dark_green_q_guess_0; + close; + +L_dark_green_q_wear: + mes "[Rauk the Alchemist]"; + mes "\"The color stabilises after a week or so."; + mes "Others can wear the clothes you have dyed-- just make sure that you wear those clothes for a week before passing them on.\""; + next; + goto L_d_dark_green_q_main; + +L_dark_green_q_explain2: + mes "[Rauk the Alchemist]"; + mes "Rauk blinks."; + mes "\"Very well. It works like this: you give me a maggot slime and tell me how many thousandth parts go into one part of the dye potion.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Then we try whether that was the right ratio. I will tell you if you guessed right, but if you were wrong, I will tell you whether you guessed too high or too low.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"With enough slimes and enough tries we should be able to figure out just how much you need.\""; + next; + menu "Er... can you explain that again?", L_dark_green_q_explain2, + "Let's do it!", L_dark_green_q_guess_0, + "I don't have time for this.", L_intermediate; + close; + +L_dark_green_q_explain: + mes "[Rauk the Alchemist]"; + mes "\"We have to measure the balance between your light and your dark bile-- two of your humors-- and use that as the maggot slime concentration.\""; + mes "\"This will probably take several tries; for each try we need maggot slime from one maggot.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Each time you tell me how many thousandth parts of one ounce of the concentrate you want to use in the fixative. I will stir the mixture appropriately and put the rest of the slime into the base mixture. We then put the two together, and you dip your finger in.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"If the mixture is too dark, then that means that we put too much maggot slime into the fixative. If it discolours, we put in too little. But if it retains its color, we are done.\""; + next; + mes "[Rauk the Alchemist]"; + mes "Rauk smiles."; + mes "\"But don't worry, I will happily do all this for free-- I rather enjoy these little games.\""; + next; + + menu "Er... can you explain that again?", L_dark_green_q_explain, + "Errr... what?", L_dark_green_q_explain2, + "Let's do it!", -, + "I don't have time for this.", L_intermediate; + +L_dark_green_q_guess_0: + if (countitem("MaggotSlime") < 1) + goto L_dark_green_q_noslime; + delitem "MaggotSlime", 1; + + mes "[Rauk the Alchemist]"; + mes "Rauk fills your maggot slime into a small bottle and picks a glass bottle from within his robe."; + mes "\"Now we need to figure out just how many thousandths you need. First, tell me how many tenths of an ounce you want to put in.\""; + next; + + menu "none", -, + "1 tenth", -, + "2 tenths", -, + "3 tenths", -, + "4 tenths", -, + "5 tenths", -, + "6 tenths", -, + "7 tenths", -, + "8 tenths", -, + "9 tenths", -; + + set @menu, @menu - 1; + set @guess_accumulator, @menu * 100; + + mes "[Rauk the Alchemist]"; + if (@menu) + mes "Rauk pours a good-sized portion of maggot slime from the small bottle into the glass bottle."; + mes "\"We now have " + @guess_accumulator + " thousandths of an ounce. How many hundredths of an ounce should I add?\""; + next; + + menu "none", -, + "1 hundredth", -, + "2 hundredths", -, + "3 hundredths", -, + "4 hundredths", -, + "5 hundredths", -, + "6 hundredths", -, + "7 hundredths", -, + "8 hundredths", -, + "9 hundredths", -; + + set @menu, @menu - 1; + set @guess_accumulator, @guess_accumulator + (@menu * 10); + + mes "[Rauk the Alchemist]"; + if (@menu) + mes "Rauk pours a portion of maggot slime from the small bottle into the glass bottle."; + mes "\"These are now " + @guess_accumulator + " thousandths of an ounce. How many thousands more?\""; + next; + + menu "none", -, + "1 thousandth", -, + "2 thousandths", -, + "3 thousandths", -, + "4 thousandths", -, + "5 thousandths", -, + "6 thousandths", -, + "7 thousandths", -, + "8 thousandths", -, + "9 thousandths", -; + + set @menu, @menu - 1; + set @guess_accumulator, @guess_accumulator + @menu; + + mes "[Rauk the Alchemist]"; + if (@menu) + mes "Rauk pours a tiny amount of maggot slime from the small bottle into the glass bottle."; + mes "Rauk mixes some more ingredients into the bottles, stirs them, heats one of them and mixes the results together."; + next; + + mes "[Rauk the Alchemist]"; + mes "\"Please put your finger in.\""; + mes "Hesitantly. you stick your finger into the resulting brew. The mixture feels warm and smooth to the touch."; + next; + mes "[Rauk the Alchemist]"; + mes "You pull your finger out again."; + + if (@guess_accumulator + @QUEST_GUESS_BASE > QUEST_clothdyer_knowsdye) + goto L_dark_green_q_toomuch; + + if (@guess_accumulator + @QUEST_GUESS_BASE < QUEST_clothdyer_knowsdye) + goto L_dark_green_q_toolittle; + + // otherwise correct guess + + mes "Nothing seems to be happening with the mixture. Rauk's eyes lighten up."; + mes "\"This is it! You need precisely " + @guess_accumulator + " thousandts. Let me write this down...\""; + next; + mes "[Rauk the Alchemist]"; + mes "Rauk is beaming."; + mes "\"I can now make dark green dye for you. All I need will be slime from one maggot, ten gamboge leaves, ten cobalt leaves, ten mauve leaves, and 1000 GP for other ingredients.\""; + mes "[You gain 20,000 experience points]"; + getexp 20000, 0; + set QUEST_clothdyer_knowsdye, @QUEST_HAS_SOLVED_DYE_PUZZLE; + next; + goto L_intermediate; + +L_dark_green_q_toomuch: + mes "After only a second, the mixture begins to blacken. Rauk frowns."; + mes "\"That was too much... you need fewer than " + @guess_accumulator + " thousandths, I think."; + goto L_dark_green_q_again; + +L_dark_green_q_toolittle: + mes "Almost instantaneously, the mixture loses its colour and turns transparent. Rauk sighs."; + mes "\"That was too little. Next time, try more than " + @guess_accumulator + " thousandths."; + goto L_dark_green_q_again; + +L_dark_green_q_again: + mes "\"Should we try again?\""; + next; + menu "Yes!", L_dark_green_q_guess_0, + "No, I've had enough.", -; + close; + +L_dark_green_q_noslime: + mes "[Rauk the Alchemist]"; + mes "\"Oh, you don't have any maggot slime? That's unfortunate; I am out of it myself. Still it should be easy enough to find, just bring me one and we can continue testing.\""; + next; + goto L_intermediate; + +L_monster_oil: + mes "[Rauk the Alchemist]"; + mes "Rauk locks his eyes with you and continues in more serious tone."; + mes "\"I know how to create it, but you won't get it from me. It's far too dangerous; even the best alchemist may need multiple attempts and will risk blowing up! I can give you a recipe though, if you still are wanton.\""; + next; + menu + "Yes, tell me!", -, + "No, that sounds too dangerous.", L_abort; + mes "[Rauk the Alchemist]"; + mes "You will need a pearl, a pair of snake skins, two piles of volcanic ash, three black scorpion stingers-- and a golden scorpion stinger. In addition you must have plenty of herbs to stabilise the concoction; mauve, alizarin, cobalt and gamboge will do just fine."; + next; + mes "[Rauk the Alchemist]"; + mes "\"Take the pearl, skins, black stingers, ash, and cook briefly in a cauldron. Next add the mauve/alizarin/cobalt/gamboge as needed to stabilise into a black brew. Lastly, add the golden scorpion stinger and let boil briefly. And it's done.\""; + next; + mes "[Rauk the Alchemist]"; + mes "\"Good luck not blowing up!\""; + + set @Q_status, @Q_status | @SETZER_KNOWS_STINGER; + callsub L_Update_Var; + close; + +L_abort: + close; + + +L_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; + +L_TooMany: + mes "[Rauk the Alchemist]"; + mes "You don't have room for this."; + close; +} diff --git a/world/map/npc/011-1/auldsbel.txt b/world/map/npc/011-1/auldsbel.txt new file mode 100644 index 00000000..8982f699 --- /dev/null +++ b/world/map/npc/011-1/auldsbel.txt @@ -0,0 +1,1345 @@ +// Auldsbel the Wizard +// Transmutation Magic expert + +011-1.gat,50,68,0 script Auldsbel#_M 168,{ + + set @mexp, MAGIC_EXPERIENCE & 65535; + + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC_TRANSMUTE; + set @SUP_name$, "Transmutation Magic"; + + set @Q_STATUS_INITIAL, 0; + set @Q_STATUS_POSTINTRO, 1; + set @Q_STATUS_INITIATION, 2; // quest for being able to cast `create mouboo figurine' + set @Q_STATUS_STUDENT, 3; // accepted as student + set @Q_STATUS_STUDENT0, 4; // accepted as student + set @Q_STATUS_STUDENT1, 5; + set @Q_STATUS_STUDENT2, 6; + set @Q_STATUS_STUDENT3, 7; + set @Q_STATUS_STUDENT4, 8; + set @Q_STATUS_STUDENT5, 9; + set @Q_STATUS_STUDENT6, 10; + + + set @wants_sulphur, (QUEST_MAGIC & (NIBBLE_6_MASK | NIBBLE_7_MASK)) // war quest + || (((QUEST_MAGIC2 & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT) >= 4); // Elanore's heal-Kadiya quest + set @wants_ironpowder, (((QUEST_MAGIC & (NIBBLE_6_MASK | NIBBLE_7_MASK)) >> NIBBLE_6_SHIFT) >= 7); + + set @Q_MASK, NIBBLE_0_MASK | NIBBLE_1_MASK; + set @Q_SHIFT, NIBBLE_0_SHIFT; + + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + + set @Q_main_status, @Q_status & 31; + set @Q_component_quest, @Q_status >> 5; + + set @has_magic, getskilllv(SKILL_MAGIC); + + set @address$, "chap"; + if (Sex == 0) + set @address$, "girl"; + + if (@Q_main_status >= @Q_STATUS_POSTINTRO) + goto L_short_intro; + + mes "[Robed Man]"; + mes "You notice a middle-aged man in expensive-looking robes."; + mes "\"Ah, splendid, you finally came!\""; + mes "He motions you to come closer."; + next; + + mes "[Robed Man]"; + mes "The man is visibly excited."; + mes "\"Here, I found a silk cocoon. Now if you can just give me the obsidian salt, we can see whether it works!\""; + next; + + menu "Whether what works?", L_intro_explain, + "What are you talking about?", L_intro_explain, + "I don't have any obsidian salt.", L_intro_nopowder, + "Do I know you?", L_intro_identity, + "Goodbye.", -; + close; + + set @name_complaint, 0; + +L_intro_explain: + mes "[Robed Man]"; + mes "He frowns."; + mes "\"The transmutation experiment, of course! You can't have forgotten already...?\""; + next; + goto L_intro_identity; + +L_intro_nopowder: + mes "[Robed Man]"; + mes "\"What!? You traveled all this way without any obsidian...\""; + next; + goto L_intro_identity; + +L_intro_identity: + mes "[Robed Man]"; + mes "He eyes you more carefully."; + if (Sex == 0) + mes "\"How odd. I could have sworn that you were a man the last time we met. Not that I mind...\""; + + mes "\"Wait. You're not Padric.\""; + next; + + set @xmsg$, "Right... my name is " + strcharinfo(0) + "."; + if (strcharinfo(0) == "Padric") + set @xmsg$, "Actually, I am, but I don't know you...?"; + + menu @xmsg$, L_intro_wrongperson, + "You're not very good with faces, are you?", L_intro_nogood, + "Who are you?", L_intro_who_are_you, + "Goodbye.", -; + close; + +L_intro_wrongperson: + mes "[Robed Man]"; + mes "He laughs."; + mes "\"Ah, I knew it... you're not the first one today, either. I should apologize, I am horrible with faces. Well, if you don't mind, please hurry along, I should go back to my experiments.\""; + next; + +L_intro_primary_menu: + menu "Who are you?", L_intro_who_are_you, + "Goodbye.", -; + close; + +L_intro_nogood: + mes "[Robed Man]"; + mes "He laughs."; + mes "\"Yes, you could say that. Well, I shall get back to my experiments, then; I think I shall manage something that requires no obsidian salt instead.\""; + next; + + menu "Who are you?", L_intro_who_are_you, + "What is obsidian salt, anyway?", L_intro_obsidian_salt, + "Goodbye.", -; + close; + +L_intro_obsidian_salt: + mes "[Robed Man]"; + mes "\"Oh, obsidian salt is a catalyst... or rather a theoretical catalyst. We know that it has to have an application somewhere, and I do have the strong suspicion that it may be linked to natural transmogrification...\""; + next; + goto L_intro_primary_menu; + +L_intro_who_are_you: + mes "[Robed Man]"; + mes "\"Oh, oh my... of course you wouldn't know me, being from the countryside and all.\""; + mes "He laughs."; + mes "\"Well, my young friend, I am none other than Auldsbel the Graying, of the Council of Transmuters!\""; + next; + + set @Q_main_status, @Q_STATUS_POSTINTRO; + callsub S_update_var; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_AULDSBEL; + + mes "[Auldsbel the Wizard]"; + mes "\"That means that I'm a wizard, in case you were wondering.\""; + next; + goto L_main_menu; + +L_short_intro: + mes "[Auldsbel the Wizard]"; + mes "\"Welcome back, Padric!\""; + next; + goto L_main_menu; + +L_main_menu: + if (@has_magic) + goto L_main_menu_magic; + + menu "How does this 'magic' work?", L_about_magic, + "I want to become a wizard!", L_learn_magic, + "Where are you from?", L_about_auldsbel, + "Do you need help with your experiments?", L_quest, + "What do you know about...", L_question, + "Goodbye.", -; + close; + +L_main_menu_magic: + if (@wants_sulphur && @wants_ironpowder) + menu "How does magic work?", L_about_magic, + "Can you teach me a spell?", L_learn_spell, + "Where are you from?", L_about_auldsbel, + "Do you need help with your experiments?", L_quest, + "What do you know about...", L_question, + "Can you make sulphur powder?", L_sulphur, + "Can you make iron powder?", L_ironpowder, + "Goodbye.", -; + if (@wants_sulphur && !@wants_ironpowder) + menu "How does magic work?", L_about_magic, + "Can you teach me a spell?", L_learn_spell, + "Where are you from?", L_about_auldsbel, + "Do you need help with your experiments?", L_quest, + "What do you know about...", L_question, + "Can you make sulphur powder?", L_sulphur, + "Goodbye.", -; + if (!@wants_sulphur) + menu "How does magic work?", L_about_magic, + "Can you teach me a spell?", L_learn_spell, + "Where are you from?", L_about_auldsbel, + "Do you need help with your experiments?", L_quest, + "What do you know about...", L_question, + "Goodbye.", -; + close; + +L_ironpowder: + mes "[Auldsbel the Wizard]"; + mes "\"No, I do not know the spell for this. I expect that it shouldn't be too hard an invocation, but I'm too busy to work it out.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"I know that they used to make iron ore around here, though, many years ago. Perhaps the secret is still hidden somewhere?\""; + next; + goto L_main_menu; + +L_sulphur: + mes "[Auldsbel the Wizard]"; + set @cost, 400 - (@Q_component_quest * 30); + mes "\"Sulphur powder? Ah, so we have picked up a little offensive magic, haven't we? Good thinking, good thinking. And yes, of course I can transmute volcanic ashes into sulphur powder at a ratio of 1:5, for " + @cost + " GP.\""; + next; + if (@Q_main_status >= @Q_STATUS_STUDENT) + menu + "No, thank you.", -, + "I will see what I can find.", -, + "Can you teach me how to make it myself?", L_sulphur_teach_spell, + "Here you are.", L_sulphur_buy; + if (@Q_main_status < @Q_STATUS_STUDENT) + menu + "No, thank you.", -, + "I will see what I can find.", -, + "Here you are.", L_sulphur_buy; + close; + +L_sulphur_buy: + if (zeny < @cost) + goto L_sulphur_nozeny; + if (countitem("PileOfAsh") < 1) + goto L_sulphur_noash; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("SulphurPowder") > 1 + && countitem("PileOfAsh") == 0) + goto L_sulphur_noroom; + + set zeny, zeny - @cost; + delitem "PileOfAsh", 1; + getitem "SulphurPowder", 5; + mes "[Auldsbel the Wizard]"; + mes "\"I shall transmute it later. Here, have five half-ounces from my own stock.\""; + next; + goto L_main_menu; + +L_sulphur_nozeny: + mes "[Auldsbel the Wizard]"; + mes "\"No GP, no service.\""; + next; + goto L_main_menu; + +L_sulphur_noash: + mes "[Auldsbel the Wizard]"; + mes "\"Without volcanic ash, I can't give you any sulphur powder. Try hunting some fire goblins, or somesuch.\""; + next; + goto L_main_menu; + +L_sulphur_noroom: + mes "[Auldsbel the Wizard]"; + mes "\"Hmm, you really managed to squeeze something into every little place you had that we could have stored the powder in... you might want to return once you have resolved this matter.\""; + next; + goto L_main_menu; + +L_sulphur_teach_spell: + if (@Q_component_quest <= 4) + goto L_sulphur_teach_spell_no; + mes "[Auldsbel the Wizard]"; + mes "\"Very well, then. You have been quite helpful with my experiments, after all. As you may have noticed, the spell takes a pile of volcanic ashes. Close your hands around it, then whisper the invocation.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"That invocation is '" + getspellinvocation("make-sulphur") + "'.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"You may find that you can transmute the powder more effectively after a while; that is perfectly natural.\""; + next; + goto L_main_menu; + +L_sulphur_teach_spell_no: + mes "[Auldsbel the Wizard]"; + mes "\"Hmm... how about this: you help me with a few of my experiments, and I tell you?\""; + next; + menu + "Very well, I will help you.", L_quest, + "No.", -; + + mes "[Auldsbel the Wizard]"; + mes "\"Then I fear that I shall not reveal the spell to you either.\""; + next; + goto L_main_menu; + +L_about_magic: + mes "[Auldsbel the Wizard]"; + mes "\"Magic is a universal force that comes from within; only few individuals have the power to channel and manipulate it. Most magic users resort to spells-- prefabricated invocations-- to access and control their magical power.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Most spells are claimed by one of the five schools of magic. To properly use them, a magic user need not only have sufficient prowess in magic overall, but also in the specifics of that particular school.\""; + next; + +L_about_magic_minimenu: + menu + "What are the five schools?", L_about_magic_schools, + "How can I advance in magic?", L_about_magic_advance, + "How do spells work?", L_about_magic_spells, + "Where can I learn spells?", L_about_magic_learn, + "Never mind.", -; + goto L_main_menu; + +L_about_magic_schools: + mes "[Auldsbel the Wizard]"; + mes "\"With few exceptions, all spells belong to one of the five schools of magic: Transmutation, War, Astral, Life, and Nature.\""; + next; + +L_about_schools_minimenu: + menu + "What's Transmutation magic?", L_about_transmutation, + "What's War magic?", L_about_war, + "What's Astral magic?", L_about_astral, + "What's Life magic?", L_about_life, + "What's Nature magic?", L_about_nature, + "Are there other spells?", L_about_other_spells, + "Thank you.", -; + goto L_about_magic_minimenu; + +L_about_transmutation: + mes "[Auldsbel the Wizard]"; + mes "\"Transmutation magic deals with forming matter into a new shape. Some advanced transmutation magic can also expose special properties of the material in question.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "He smiles."; + mes "\"Transmutation magic is the engine of human civilization. By allowing us to shape buildings, tools, and other items according to the power of our imagination, it gives us mastery over nature.\""; + next; + goto L_about_schools_minimenu; + +L_about_astral: + mes "[Auldsbel the Wizard]"; + mes "\"Astral magic comprises a family of spells that connect the caster to the Astral World. This connection can be used to pull the caster 'through'-- effectively teleporting them-- or to 'pull others through'-- summoning creatures.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"There are also some more direct uses of powers of the Astral World; mainly spells that affect other spells.\""; + next; + goto L_about_schools_minimenu; + +L_about_war: + mes "[Auldsbel the Wizard]"; + mes "\"War magic deals with the inevitable necessity of struggle against other creatures, and sometimes even against other humans. War magic exclusively focuses on dealing damage and destruction.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"If you use War magic, you better have a Transmuter around for the aftermath, to clear up your collateral damage.\""; + next; + goto L_about_schools_minimenu; + +L_about_life: + mes "[Auldsbel the Wizard]"; + mes "\"Life magic deals with healing. Not much of a surprise there.\""; + next; + goto L_about_schools_minimenu; + +L_about_nature: + mes "[Auldsbel the Wizard]"; + mes "\"Nature magic is a rather subtle (and, in my eyes, rather weak) kind of magic that deals with manipulating nature as it is. Think of it as Transmutation magic without being able to actually shape things the way you want.\""; + next; + goto L_about_schools_minimenu; + +L_about_other_spells: + mes "[Auldsbel the Wizard]"; + mes "\"A few spells are not claimed by any particular school of magic. In practice, this means that anyone can cast them if they just have sufficient magical power. The most prominent example is the 'detect magic' spell, '" + getspellinvocation("detect-magic") + "'.\""; + next; + goto L_about_schools_minimenu; + + + +L_about_magic_advance: + mes "[Auldsbel the Wizard]"; + mes "\"Advancing in your magical powers must come from two sources: from within and from a person who can guide you in whichever school of magic you wish to advance.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"For advancing in your general magic power, you must practice magical spells. Make sure to vary them; you will learn little if you cast the same spell over and over. Also, spells that consume no components seem not to be very instructive in practice.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Once you have gathered enough spellcasting experience, you should be able to advance to the next level of magic. If you received your magic from a sponsor, you may have to seek out the sponsor again to advance.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Similarly, to advance in a particular school of magic, you should seek out someone sufficiently competent in that school. Each school has a different rite for advancing its students, so make sure to talk to the right person.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"I myself am a Transmutation Wizard. Of course I know some spells from the other schools, but my focus is on Transmutation. Theoretically speaking, I can advance you in this school.\""; + next; + goto L_about_magic_minimenu; + +L_about_magic_learn: + mes "[Auldsbel the Wizard]"; + mes "\"Finding and learning new spells is of course important in a magic user's quest towards becoming a full-fledged wizard.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Some wizards will be willing to share their knowledge, usually for a price. But they are not the only sources of magical spells: many magical books contain spells, and you can occasionally find them written down in the most unusual of places.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Some are even hiding as part of folklore or gossip. Of course, for those it can sometimes be hard to determine just what their prerequisites are...\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"If you decide to hunt for spells, make sure to keep a journal with you. Some spell invocations may only cross your path once in your lifetime; you must not allow them to get away!\""; + next; + goto L_about_magic_minimenu; + +L_about_magic_spells: + mes "[Auldsbel the Wizard]"; + mes "\"Magical spells are shortcuts, true magic bound to a word. No-one today remembers how they were created at the beginning of time, though many have tried to find it out, and failed...\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"These magical words are the spells' invocations. Spoken by someone who can't use magic, or by someone who doesn't satisfy the prerequisites, the word stands just for itself.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"But when spoken by a competent magic user, the word may unleash its effect-- consuming any components it may require, draining the caster's mana, changing the world around it.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Some spells require catalysts on top of components, others vary in power depending on whom they are cast on or under what conditions. However, all spells are affected by the caster's astral power.\""; + next; + +L_about_spells_minimenu: + menu + "What is this 'astral power'?", L_about_astral_power, + "What is a catalyst?", L_about_catalysts, + "What is a component?", L_about_components, + "What other prerequisites are there?", L_about_other_prerequisites, + "Where can I learn spells?", L_about_magic_learn, + "How often can I cast spells?", L_about_speed, + "Never mind.", L_about_magic_minimenu; + close; + +L_about_astral_power: + mes "[Auldsbel the Wizard]"; + mes "\"A person's astral power is determined by several factors: overall experience, intelligence, and any and all equipment the person may be wearing at a given time.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Greater astral power means more powerful spells. Since equipment can greatly decrease astral power, most magic users tend to be careful about what they wear-- it takes a while to recover astral power even after armour is unequipped.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"The worst offenders are metal items, particularly shields and body armour. Helmets and gloves get in the way, too. Still, a few special or enchanted items may even increase magical power.\""; + next; + goto L_about_spells_minimenu; + +L_about_catalysts: + mes "[Auldsbel the Wizard]"; + mes "\"A catalyst is a material prerequisite to a spell that is not consumed as part of the spell. For example, the Transmuter's Tablet is required to properly perform many of the more powerful transmutation spells, but it is never consumed.\""; + next; + goto L_about_spells_minimenu; + +L_about_components: + mes "[Auldsbel the Wizard]"; + mes "\"A material component is an item that is consumed as part of the spells magic. For example, when transmuting wood into arrows, you must consume a raw log to shape the arrows out of it.\""; + next; + goto L_about_spells_minimenu; + +L_about_other_prerequisites: + mes "[Auldsbel the Wizard]"; + mes "\"Some spells have additional requirements-- they can only be cast underground, or when you are standing very close to the person you are casting them on, or only when you are wearing a particular enchanted item. Spells are quirky, so read their descriptions carefully-- if you do find a description.\""; + next; + goto L_about_spells_minimenu; + +L_about_speed: + mes "[Auldsbel the Wizard]"; + mes "\"Most spells are effective immediately, unless they require some complex astral connectoin-- summoning or teleporting can take a while to take effect, for example. Still, after casting a spell you usually need a moment to recover before casting the next.\""; + next; + goto L_about_spells_minimenu; + + +L_about_auldsbel: + mes "[Auldsbel the Wizard]"; + mes "\"Well, there is no harm in giving you the general picture, I suppose.\""; + mes "He sighs, as if he had been forced to repeat something one time too many."; + mes "\"I am from the Council of Transmuters, the head organ of organized Transmutation magic in the known world.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"The council oversees recruitment, education, accreditation, and, if necessary, disciplining of Transmuters."; + mes "It ensures that Transmuter conduct is according to its statutes and acts as representative and point of contact towards other entities.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Of all the schools of magic, the School of Transmutation is the most organised by far, and held in high esteem by rulers all across the world. Of course this is not only due to the outstanding and rigid structure of the school, but also because of the exceptional services that its members provide.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"The Council, presently overseen by Lord Transmogrifier Pontorias the Plaid (May His Shape Reflect His Soul Forever), consists of fourty-nine members and is situated in the citadel of Dorngard, in the northern mountains near the Crimson Cascade.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"The Council is sovereign over three hundred acres of land and nearby farming communities and has been ever since Yorick the Younger shaped Dorngard out of a mountain by sheer power of will, to build a home for the school his father had founded.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"The Council has held peaceful relations with nearby realms for almost two centruries now and is widely regarded as a reliable partner in shaping civilization to allow it to evolve towards its next stage.\""; + next; + + menu + "All right, but what about you?.", L_about_auldsbel_2, + "Never mind.", -; + goto L_main_menu; + +L_about_auldsbel_2: + mes "[Auldsbel the Wizard]"; + mes "\"Oh, myself? I am just vacationing in the area. Very relaxed and peaceful place, the Hurnscald area. And plenty of splendid specimens for experimentation.\""; + next; + goto L_main_menu; + +L_learn_magic: + mes "[Auldsbel the Wizard]"; + mes "Auldsbel laughs heartily."; + mes "\"Hah, if only it were so easy! No, my young friend, I fear that 'learning magic' here is not an option. Either you are born with it, or without.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Sure, there are a few entities that may grant you magic-- Ether Spirits or Mana Seeds or Great Dragons-- but those are the stuff of legends, so I suggest that you don't waste your life trying to find one of them.\""; + next; + goto L_main_menu; + +L_question: + callfunc "MagicTalkOptionsSetup"; + set @ignore, @QQ_AULDSBEL; + callfunc "MagicTalkMenu"; + + if (@c == 0) goto L_main_menu; + if (@c == @QQ_ELANORE) goto L_Q_elanore; + if (@c == @QQ_MANASEED) goto L_Q_manaseed; + if (@c == @QQ_MANAPOTION) goto L_make_mana_potion; + if (@c == @QQ_WYARA) goto L_Q_wyara; + if (@c == @QQ_SAGATHA) goto L_Q_sagatha; + if (@c == @QQ_IMP) goto L_Q_imp; + if (@c == @QQ_OLDWIZ) goto L_Q_old_wizard; + if (@c == @QQ_ASTRALSOUL)goto L_Q_astralsoul; + + mes "[Auldsbel the Wizard]"; + mes "\"Let us talk about something else.\""; + next; + goto L_main_menu; + +L_Q_astralsoul: + if (!(getskilllv(SKILL_ASTRAL_SOUL))) + goto L_Q_astralsoul_L; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Oh that is a really useful focus. It will help you doing magic of all kinds.\""; + next; + mes "\"...uhm...\""; + next; + mes "\"Didn't I teach you the ability to focus on magic, did I?\""; + goto L_main_menu; + +L_Q_astralsoul_L: + mes "[Auldsbel the Wizard]"; + mes "\"Oh that is a really useful focus. It will help you doing magic of all kinds.\""; + next; + mes "\"I can try to teach you this ability.\""; + next; + mes "\"But I will need some very expensive magical substances to focus your brain onto magic.\""; + next; + mes "\"It is about... erm, 11300 GP. Do you have so much money?\""; + menu "Here you are", L_Q_astralsoul_L1, + "I will get it.", -; + goto L_main_menu; + +L_Q_astralsoul_L1: + if (zeny < 11300) + goto L_Q_astralsoul_nz; + set zeny, zeny - 11300; + mes "[Auldsbel the Wizard]"; + mes "\"Okay, listen:\""; + next; + mes "\"Some parts of your brain is still unused. These parts will now get the ability to get focused to magic.\""; + next; + mes "\"To do so, think of a magic spell!\""; + next; + mes "Auldsbel mumbles some invocations"; + next; + set @SUP_lvl, 1; + set @SUP_id, SKILL_ASTRAL_SOUL; + set @SUP_name$, "Astral Soul"; + set @SUP_xp, 2500; + callfunc "SkillUp"; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Now go and try to find someone who can actually activate that focus.\""; + next; + mes "\"You have the powers to focus on magic, but you need to get magic focused now.\""; + goto L_main_menu; + +L_Q_astralsoul_nz: + mes "[Auldsbel the Wizard]"; + mes "\"When learning powerful stuff, you should try not to make so many jokes.\""; + next; + mes "\"Come back when you have the money.\""; + goto L_main_menu; + +L_Q_old_wizard: + mes "[Auldsbel the Wizard]"; + mes "\"I'm still not sure what exactly to make of him. At first appearance, he seems like a senile old man, but there can be no doubt that he has-- or at least had, at some point-- a very deep understanding of magic.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"I have not had the opportunity to talk to him too much, though.\""; + next; + goto L_main_menu; + +L_Q_imp: + mes "[Auldsbel the Wizard]"; + mes "\"There are many different kinds of spirits in the world. Some are good-natured, others evil; some are weak, others very powerful. I don't know the particular one you have encountered, though I urge caution.\""; + next; + goto L_main_menu; + +L_Q_elanore: + mes "[Auldsbel the Wizard]"; + mes "\"Ah, Elanore. A kind little woman. Also a very proficient healer, from what I have been told, though we have interacted little. If you are interested in Life magic, you might want to talk to her.\""; + next; + goto L_main_menu; + +L_Q_wyara: + mes "[Auldsbel the Wizard]"; + mes "\"The village witch? Not exactly the brightest person, but she has managed to figure out how to brew potions. I doubt that she can do any real magic, though.\""; + next; + goto L_main_menu; + +L_Q_sagatha: + mes "[Auldsbel the Wizard]"; + mes "Auldsbel frowns."; + mes "\"That witch, hmm? She's a well-known trouble-maker, and quite a clever one at that; she once prevented us from cutting down a forest near Dorngaard that the villages wanted to use for farming, using some ingenious magic.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"That woman has spent too much time alone in the forests... I have the strong suspicion that she is more loyal towards her animals than towards us humans! I recommend that you stay away from her, if you value your well-being.\""; + next; + goto L_main_menu; + +L_Q_manaseed_rumour: + mes "\"A mana seed? Around here? Nah, they've been pulling your leg. Those things are extremely rare, after all.\""; + next; + goto L_main_menu; + +L_Q_manaseed: + mes "[Auldsbel the Wizard]"; + if (@has_magic) + goto L_Q_manaseed_withmagic; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_MANASEED)) // rumour only? + goto L_Q_manaseed_rumour; + if (MAGIC_FLAGS & MFLAG_DRANK_POTION) + goto L_Q_manaseed_prepared; + if (MAGIC_FLAGS & MFLAG_TOUCHED_MANASEED) + goto L_Q_manaseed_touched; + mes "\"You have found an actual Mana Seed? That's impossible! Well, very unlikely... Then again, some others have told me similar rumours. I find it hard to believe that...\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Well, if it's true, then try touching it. That should do you no harm, but if you are very, very lucky, it just might grant you some minuscule amount of magical power.\""; + next; + goto L_main_menu; + +L_Q_manaseed_touched: + if (MAGIC_FLAGS & MFLAG_DRANK_POTION) + goto L_Q_manaseed_prepared; + mes "\"So you touched the Mana Seed, and its power flowed right through you? You are lucky-- it is willing to share-- but you are also unlucky, in that you lack the discipline and control needed to contain this power.\""; + next; + + if (MAGIC_FLAGS & MFLAG_KNOWS_MANAPOTION) + goto L_Q_manaseed_touched_short; + + mes "[Auldsbel the Wizard]"; + mes "\"Legend has it that you can substitute for such control by imbibing a Mana Potion. I am not sure whether that legend is true, but for you it might be worth trying it out.\""; + next; + + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_MANAPOTION; +L_Q_manaseed_touched_short: + menu + "Where can I get a Mana Potion?", L_where_mana_potion, + "Can you make a Mana Potion?", L_make_mana_potion, + "Thank you.", -; + goto L_main_menu; + +L_where_mana_potion: + mes "[Auldsbel the Wizard]"; + mes "\"Well, quite a few alchemists should be able to brew one for you. Or maybe the village witch, even, though I personally would recommend seeing an alchemist.\""; + next; + goto L_Q_manaseed_touched_short; + +L_make_mana_potion: + mes "[Auldsbel the Wizard]"; + mes "\"Well, I can transmute some components into a Mana Potion for you. Let's see... I will need one pearl, 10,000 GP, about twenty Mauve leaves, and some Gamboge ones... ten should do, I think. Oh, and a bottle of water, of course.\""; + next; + menu + "Here you are.", -, + "I will look for those items.", L_main_menu, + "I'm not interested.", L_Q_manaseed_touched_short; + + if (zeny < 10000) + goto L_make_mana_potion_missing; + if (countitem("GambogeHerb") < 10) + goto L_make_mana_potion_missing; + if (countitem("MauveHerb") < 20) + goto L_make_mana_potion_missing; + if (countitem("Pearl") < 1) + goto L_make_mana_potion_missing; + if (countitem("BottleOfWater") < 1) + goto L_make_mana_potion_missing; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("GambogeHerb") > 10 + && countitem("MauveHerb") > 20 + && countitem("Pearl") > 1 + && countitem("BottleOfWater") > 1 + && countitem("ManaPotion") < 1) + goto L_mana_potion_toomuch; + + set zeny, zeny - 10000; + delitem "GambogeHerb", 10; + delitem "MauveHerb", 20; + delitem "Pearl", 1; + delitem "BottleOfWater", 1; + getitem "ManaPotion", 1; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel pockets your GP and the pearl, then stuffs the leaves into the bottle. Holding the bottle between his hands, he focuses briefly. The water and leaves flash bright red, then the leaves dissolve."; + next; + + mes "[Auldsbel the Wizard]"; + mes "The wizard pours the resultant mixture into a different bottle. \"It will lose its power quickly if left in a glass bottle\", he explains."; + mes "He hands you the final result, which feels surprisingly heavy."; + next; + + menu + "Thank you!", L_main_menu, + "What about the pearl and GP?", -; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel raises his eyebrows in surprise."; + mes "\"Those were payment. You don't expect me to work for free, now do you?\""; + next; + + goto L_main_menu; + +L_mana_potion_toomuch: + mes "[Auldsbel the Wizard]"; + mes "\"Burdened as you are, I doubt you could carry it. Get rid of some of your old things first, will you?\""; + next; + goto L_main_menu; + +L_make_mana_potion_missing: + mes "[Auldsbel the Wizard]"; + mes "\"No, I need one pearl, 10,000 GP, 20 Mauve leaves, 10 Gamboge leaves, and one bottle of water.\""; + next; + goto L_main_menu; + +L_Q_manaseed_prepared: + mes "\"So you found a Mana Seed and prepared yourself by drinking a mana potion? I recommend that you visit the seed again and see if that actually works...\""; + next; + goto L_main_menu; + +L_Q_manaseed_withmagic: + if (MAGIC_FLAGS & MFLAG_MANASEED_MAXEDOUT) + goto L_Q_manaseed_maxedout; + mes "\"I still find it hard to believe that you have found an actual Mana Seed here, in the middle of nowhere... Well, I suggest that you keep visiting it. As your control over magic grows, it may grant you additional power.\""; + next; + goto L_main_menu; + +L_Q_manaseed_maxedout: + mes "\"So the mana seed isn't giving you any more power? You might want to try again later; normally those seeds grow in power, over time.\""; + next; + goto L_main_menu; + +L_quest: + if (@Q_component_quest == 0) + goto L_component_quest_0; + if (@Q_component_quest == 1) + goto L_component_quest_1; + if (@Q_component_quest == 2) + goto L_component_quest_2; + if (@Q_component_quest == 3) + goto L_component_quest_3; + if (@Q_component_quest == 4) + goto L_component_quest_4; + if (@Q_component_quest == 5) + goto L_component_quest_5; + mes "[Auldsbel the Wizard]"; + mes "\"You have been very helpful, but at this point I have everything I need. Except perhaps for a Wumpus Egg, though I have no idea where you could find one... If you ever come across one, I will give you a special reward for it, though.\""; + next; + goto L_main_menu; + +L_component_quest_0: + mes "[Auldsbel the Wizard]"; + mes "Auldsbel is visibly delighted."; + mes "\"Ah, indeed, indeed! I can often use help with my experiments, and you just happen to be arriving at a particularly opportune time. See, I found this...\""; + mes "He pulls something from his pocket and shows it to you."; + next; + mes "[Auldsbel the Wizard]"; + mes "\"It's a silk cocoon. This area has been virtually infested with silkworms, from what I have seen. This is splendid! I will try to... do something very special with this one. But for that I will need twenty Mauve leaves.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"There are plenty of Mauve plants around, so I'm sure that you won't have a hard time finding the leaves.\""; + next; + menu + "I have them here.", -, + "Sure, I will look for them.", L_main_menu; + + if (countitem ("MauveHerb") < 20) + goto L_component_quest_missing; + + delitem "MauveHerb", 20; + set zeny, zeny + 2500; + mes "[Auldsbel the Wizard]"; + mes "\"Well done, my young friend! Here are 2,500 GP to compensate you for your efforts.\""; + mes "[You gain 250 experience points]"; + getexp 250, 0; + set @Q_component_quest, 1; + callsub S_update_var; + next; + + goto L_main_menu; + +L_component_quest_1: + mes "[Auldsbel the Wizard]"; + mes "\"Good, good... I am trying to come up with a way to best use the Mauve leaves you brought me, but it seems that I will need further components. I am not sure about the exact composition yet, but I will need a few potions.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Please be a good " + @address$ + " and get me an iron potion, a concentration potion, and three small and three medium healing potions.\""; + next; + menu + "Here you are.", -, + "I'm not your 'good " + @address$ + "'!", L_main_menu, + "I'll see what I can do.", L_main_menu; + + if (countitem ("SmallHealingPotion") < 3) + goto L_component_quest_missing; + if (countitem ("MediumHealingPotion") < 3) + goto L_component_quest_missing; + if (countitem ("IronPotion") < 1) + goto L_component_quest_missing; + if (countitem ("ConcentrationPotion") < 1) + goto L_component_quest_missing; + + delitem "SmallHealingPotion", 3; + delitem "MediumHealingPotion", 3; + delitem "IronPotion", 1; + delitem "ConcentrationPotion", 1; + set zeny, zeny + 2500; + mes "[Auldsbel the Wizard]"; + mes "\"Ah, excellent, excellent! These are precisely what I needed. Here are another 2,500 GP to compensate you for your efforts.\""; + mes "[You gain 500 experience points]"; + getexp 500, 0; + set @Q_component_quest, 2; + callsub S_update_var; + next; + + goto L_main_menu; + + +L_component_quest_2: + mes "[Auldsbel the Wizard]"; + mes "\"Ah! Excellent! Yes, yes, indeed I need help. I have managed to transmute the components you brought me into a liquid that I believe to be a demetamorphosis stock, but it seems that the details still need some fine-tuning, and I am out of silk cocoons...\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"I would like to run the next batch of experiments on a larger scale, though. Would you be so kind as to fetch me some one hundred silk cocoons, please?\""; + next; + + menu + "One hundred cocoons, here you are.", -, + "That's a lot; I'll see what I can do.", L_main_menu; + + if (countitem ("SilkCocoon") < 100) + goto L_component_quest_missing; + + delitem "SilkCocoon", 100; + set zeny, zeny + 5000; + mes "[Auldsbel the Wizard]"; + mes "\"Splendid, splendid! Here are 5,000 GP for you.\""; + mes "Auldsbel attempts to cram the cocoons into his pockets, with little success. Finally he gives up and takes them into his hut."; + mes "[You gain 2,000 experience points]"; + getexp 2000, 0; + set @Q_component_quest, 3; + callsub S_update_var; + next; + + goto L_main_menu; + +L_component_quest_3: + mes "[Auldsbel the Wizard]"; + mes "\"Yes... I'm actually not certain that my demetamorphosis stock will not drain the life out of these little creatures. Perhaps an alchemical revitalization tincture would be called for. Fortunately this one is easy, I can make it myself.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"I'm still not sure how to integrate it into the spell... but leave that to me. Can you get me twenty-five red scorpion stingers and twenty-five lumps of maggot slime? Those should be just what I need.\""; + next; + menu + "Here are your stingers and slimes.", -, + "I will get back to you once I have them.", L_main_menu; + + if (countitem ("RedScorpionStinger") < 25) + goto L_component_quest_missing; + if (countitem ("MaggotSlime") < 25) + goto L_component_quest_missing; + + delitem "RedScorpionStinger", 25; + delitem "MaggotSlime", 25; + set zeny, zeny + 5000; + mes "[Auldsbel the Wizard]"; + mes "\"Good " + @address$ + "! Another 5,000 GP for you.\""; + mes "\"I believe that I have figured out one possible way to integrate the tincture into the spell... I will let you know how that goes.\""; + mes "[You gain 10,000 experience points]"; + getexp 10000, 0; + set @Q_component_quest, 4; + callsub S_update_var; + next; + + goto L_main_menu; + +L_component_quest_4: + mes "[Auldsbel the Wizard]"; + mes "\"Hmm, yes... See, the thing is that transmuting living beings is not normally something that transmutation magic can do. It seems that the beings' life force must be overcome to transmute them, but that in turn kills them.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"But I was wondering whether creatures that already can auto-transmute-- or metamorphose, as some people call it-- might not allow themselves to be subjected to magical transmutation more easily... Still, all of my demetamorphosis attempts so far have failed.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"I am thinking of injecting the life force of another creature, perhaps using some astral channelling. Snakes sound most promising, as they have a similar physical shape but a strong life force.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Could you get me twenty regular, cave, and mountain snake tongues, please? So a total of sixty tongues. This is where most of their life force is concentrated, incidentally.\""; + next; + menu + "Here are your tongues.", -, + "I will hunt some snakes for you.", L_main_menu; + + if (countitem ("SnakeTongue") < 20) + goto L_component_quest_missing; + if (countitem ("CaveSnakeTongue") < 20) + goto L_component_quest_missing; + if (countitem ("MountainSnakeTongue") < 20) + goto L_component_quest_missing; + + delitem "SnakeTongue", 20; + delitem "CaveSnakeTongue", 20; + delitem "MountainSnakeTongue", 20; + set zeny, zeny + 8000; + mes "[Auldsbel the Wizard]"; + mes "\"8,000 GP should cover your efforts, I think.\""; + mes "\"Now let's see if this works...\""; + mes "[You gain 40,000 experience points]"; + getexp 40000, 0; + set @Q_component_quest, 5; + callsub S_update_var; + next; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel focuses on the bundle of snake tongues, which begin to assume a bright red colour, then start to glow. Yellow sparks drop to the ground, as Auldsbel rolls the tongues into a ball."; + next; + mes "[Auldsbel the Wizard]"; + mes "He tosses in a cocoon, then squeezes everything together. A bright red flash blinds you momentarily."; + next; + mes "[Auldsbel the Wizard]"; + mes "As Auldsbel opens his hands, there is nothing there."; + next; + mes "[Auldsbel the Wizard]"; + mes "He frowns. \"Their life force was still not strong enough. Hmm.\""; + next; + + goto L_main_menu; + +L_component_quest_5: + mes "[Auldsbel the Wizard]"; + mes "\"I do have another assignment for you, but this one will be tricky. I will need fifty grass snake tongues. I believe that this may be just enough life force to return the silkworm back to its original shape.\""; + next; + menu + "Here they are.", -, + "That's quite a challenge.", L_main_menu; + + if (countitem ("GrassSnakeTongue") < 50) + goto L_component_quest_missing; + + delitem "GrassSnakeTongue", 50; + set zeny, zeny + 10000; + mes "[Auldsbel the Wizard]"; + mes "\"Excellent! Here are 10,000 GP for you, and now let's see how this goes.\""; + mes "[You gain 100,000 experience points]"; + getexp 100000, 0; + set @Q_component_quest, 6; + callsub S_update_var; + next; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel rolls the snake tongues into a ball again, whilst chanting some words that you fail to discern. As the ball begins to glow, he tosses in a silkworm cocoon."; + mes "He then presses his hands together; you are blinded by a blue flash."; + next; + + mes "[Auldsbel the Wizard]"; + mes "The wizard steps back in horror."; + mes "\"Oh my... I should have known. I have stepped into Astral spell territory here. This is bad...\""; + mes "He mumbles a brief spell invocation."; + mes "\"I suggest that you run.\""; + next; + + misceffect sfx_magic_transmute; + monster "this", 50, 68, "Grass Snake", 1034, 4; + close; + +L_component_quest_missing: + mes "[Auldsbel the Wizard]"; + mes "\"No, you are missing some items. Come back later when you have everything!\""; + next; + goto L_main_menu; + +L_learn_spell: + if (@Q_main_status == @Q_STATUS_INITIATION) goto LL_initiation; + if (@Q_main_status == @Q_STATUS_STUDENT) goto LL_student_start; + if (@Q_main_status == @Q_STATUS_STUDENT0) goto LL_student_0; + if (@Q_main_status == @Q_STATUS_STUDENT1) goto LL_student_1; + if (@Q_main_status == @Q_STATUS_STUDENT2) goto LL_student_2; + if (@Q_main_status == @Q_STATUS_STUDENT3) goto LL_student_3; + if (@Q_main_status == @Q_STATUS_STUDENT4) goto LL_student_4; + if (@Q_main_status == @Q_STATUS_STUDENT5) goto LL_student_5; + if (@Q_main_status == @Q_STATUS_STUDENT6) goto LL_student_6; + + mes "[Auldsbel the Wizard]"; + mes "\"Wellll.... you do seem to have some magical abilities. But do you possess the talent and diligence needed for a true wizard?\""; + mes "He raises an eyebrow at you, then grins."; + mes "\"Only one way to find out! Let me teach you a first spell.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"This spell is a simple transmutation invocation. All it takes is a clean wooden log. Hold it in your hand, focus your powers, and say the magic invocation.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"You can turn the log into a wooden figurine by imagining the creature whose shape you want in your head and saying `" + getspellinvocation("transmute-wood-to-figurine") + ",' followed by the last syllable of the name of the creature you want to shape it into.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"So `" + getspellinvocation("transmute-wood-to-figurine") + " lurk' for a Skrytlurk figurine, for example. If you know what a Skrytlurk is, I mean, otherwise you will have a hard time imagining it. You may want to try some others instead, though.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Oh... and it has to be the old Tritan name. Most creatures nowadays have very different names, but some old Tritan names have survived. Just try some, until you find one that fits.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Oh, actually, make sure to write that down. You should keep track of all spells and spell fragments, really. I always keep a notebook handy, in fact.\""; + next; + set @Q_main_status, @Q_STATUS_INITIATION; + callsub S_update_var; + goto L_main_menu; + +LL_repeat_spell: + mes "[Auldsbel the Wizard]"; + mes "\"The invocation is `" + getspellinvocation("transmute-wood-to-figurine") + ",' followed by the last syllable of the name of the creature you want to shape the log into. So `" + getspellinvocation("transmute-wood-to-figurine") + " lurk' for a Skrytlurk figurine.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"But keep two things in mind: First, you must KNOW what the creature looks like-- so a Skrytlurk probably won't work-- and second, you must use the old Tritan name of it. `Fluffy' and `Scorpion' are modern names, so those won't work, you should try some others.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"And make sure to keep notes of your spells! In the future, I will only tell you once.\""; + next; + + goto L_main_menu; + +LL_initiation: + mes "[Auldsbel the Wizard]"; + mes "\"So, have you managed to transmute something?\""; + next; + + if (countitem("MoubooFigurine")) + menu + "Not yet.", -, + "How about this mouboo figurine?", LL_initiation_check; + + if (!(countitem("MoubooFigurine"))) + menu + "Not yet.", -, + "What was the spell again?", LL_repeat_spell; + + goto L_main_menu; + +LL_initiation_fail: + mes "[Auldsbel the Wizard]"; + mes "\"No, no, no. This is no good-- too many imperfections.\""; + mes "He throws it away."; + mes "\"Keep practicing-- and make sure to vary the spells you cast a little; that will make it easier to learn.\""; + next; + goto L_main_menu; + +LL_initiation_check: + if (!(countitem("MoubooFigurine"))) + goto L_main_menu; + delitem "MoubooFigurine", 1; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel inspects your figurine."; + next; + + if (@mexp < 40) + goto LL_initiation_fail; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel nods."; + mes "\"This looks good.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "He pockets the figurine."; + mes "\"Very well, then. I shall accept you as my student.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel presses his index and middle finger against your forehead."; + mes "\"Accept my blessing!\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "You feel new powers flowing into your body!"; + + set @Q_main_status, @Q_STATUS_STUDENT; + callsub S_update_var; + + set @SUP_xp, 5000; + set @SUP_lvl, 2; + callfunc "SkillUp"; + next; + goto L_main_menu; + +LL_student_start: + if (@mexp < 200) goto LL_notready; + mes "[Auldsbel the Wizard]"; + mes "\"Next, I shall teach you a higher-level transmutation spell.\""; + if (getskilllv(SKILL_MAGIC) < 2) + mes "\"Beware, for you will not be able to use it yet; you will first have to gain a greater understanding of magic overall.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"Bring me ten bug legs, and I will reveal its invocation to you.\""; + next; + + menu + "Here you are.", -, + "I'll be back with them.", L_main_menu; + + if (countitem("BugLeg") < 10) + goto L_component_quest_missing; + + delitem "BugLeg", 10; + getexp 1000, 0; + set @Q_main_status, @Q_STATUS_STUDENT0; + callsub S_update_var; + + mes "[Auldsbel the Wizard]"; + mes "He picks up the bug legs."; + mes "\"Good. These will come in handy later...\""; + mes "He grins."; + mes "[1000 experience points]"; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"Now, listen carefully: to make a short tank top out of three pieces of cloth, you must use the invocation '" + getspellinvocation("make-short-tanktop") + "'.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"But be careful; transmutations can go wrong, and that can injure you. When you have some more overall spellcasting practice, come back to me.\""; + next; + goto L_main_menu; + +LL_notready: + mes "[Auldsbel the Wizard]"; + mes "\"You still need more practice with spellcasting; I won't give you another spell until you are ready.\""; + next; + goto L_main_menu; + +LL_student_0: + if (@mexp < 350) goto LL_notready; + + mes "[Auldsbel the Wizard]"; + mes "\"The next transmutation spell is a little harder than the last one I taught you, but you should be able to manage.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"Bring me twenty mauve leaves, and I will reveal its invocation.\""; + next; + + menu + "Here you are.", -, + "I'll be back with them.", L_main_menu; + + if (countitem("MauveHerb") < 20) + goto L_component_quest_missing; + + delitem "MauveHerb", 20; + getexp 1000, 0; + set @Q_main_status, @Q_STATUS_STUDENT1; + callsub S_update_var; + + mes "[Auldsbel the Wizard]"; + mes "He pockets your mauve leaves."; + mes "\"Those should go very well with the salmon.\""; + mes "[1000 experience points]"; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"The next spell I have will make a normal tank top out of four pieces of cloth. The invocation is '" + getspellinvocation("make-tanktop") + "', make sure to write this down.\""; + next; + + goto L_main_menu; + +LL_student_1: + if (@mexp < 425) goto LL_notready; + + mes "[Auldsbel the Wizard]"; + mes "\"Up next is the transmutation spell for regular shirts.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"For this, I would like ten scorpion stingers.\""; + next; + + menu + "Here you are.", -, + "I'll be back with them.", L_main_menu; + + if (countitem("ScorpionStinger") < 10) + goto L_component_quest_missing; + + delitem "ScorpionStinger", 10; + getexp 1000, 0; + set @Q_main_status, @Q_STATUS_STUDENT2; + callsub S_update_var; + + mes "[Auldsbel the Wizard]"; + mes "He carefully takes the stingers."; + mes "\"You are being quite helpful. If my experiments go well, I will make sure to acknowledge you in a footnote somewhere.\""; + mes "[1000 experience points]"; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"To make a shirt, use the invocation '" + getspellinvocation("make-shirt") + "'. This will require five pieces of cloth.\""; + next; + + goto L_main_menu; + +LL_student_2: + if (@mexp < 500) goto LL_notready; + + mes "[Auldsbel the Wizard]"; + mes "\"You may find the next spell particularly useful.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"Bring me twenty wooden logs, and I will teach you.\""; + next; + + menu + "Here you are.", -, + "I'll be back with them.", L_main_menu; + + if (countitem("RawLog") < 20) + goto L_component_quest_missing; + + delitem "RawLog", 20; + getexp 1000, 0; + set @Q_main_status, @Q_STATUS_STUDENT3; + callsub S_update_var; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel places the logs next to his hut."; + mes "\"I'm hoping to animate them into the shape of one of those odd log heads.\""; + mes "[1000 experience points]"; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"This spell makes arrows out of a single wooden log. Its invocation is '" + getspellinvocation("make-arrows") + "'.\""; + next; + + goto L_main_menu; + +LL_student_3: + if (getskilllv(SKILL_MAGIC) < 3) + goto LL_magic_skill_insufficient; + mes "[Auldsbel the Wizard]"; + mes "\"I believe that you may be ready for the next level of transmutation magic! Let me teach you one last spell that you can handle before your promotion, and if you can cast this one, I will advance you.\""; + next; + +LL_student_3_repeat: + mes "[Auldsbel the Wizard]"; + mes "\"This one has the invocation `" + getspellinvocation("make-concentration-potion") + "'. Put two cobalt leaves and two pink flower petals into a bottle of water, hold it up, and speak that phrase.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"It is a tricky spell, but if it works out, you will transform the bottle into a concentration potion.\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "\"Hmm. That reminds me-- there was a similar spell, but I forgot what it was... anyway, try using this, and bring me the potion when you are done.\""; + next; + + set @Q_main_status, @Q_STATUS_STUDENT4; + callsub S_update_var; + goto L_main_menu; + +LL_student_4: + mes "[Auldsbel the Wizard]"; + mes "\"Did you manage to transmute a concentration potion?\""; + next; + + menu + "What was the invocation again?", LL_student_3_repeat, + "No, still working on it...", L_main_menu, + "Yes.", -; + + if (countitem("ConcentrationPotion") < 1) + goto LL_student_4_no_potion; + + if (!(MAGIC_FLAGS & MFLAG_MADE_CONC_POTION)) + goto LL_student_4_wrong_potion; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel examines your potion and nods."; + mes "\"Good work! You are ready for a promotion!\""; + next; + + mes "[Auldsbel the Wizard]"; + mes "Auldsbel presses his index and middle finger against your forehead."; + mes "\"Accept my blessing!\""; + next; + + set @Q_main_status, @Q_STATUS_STUDENT5; + callsub S_update_var; + + mes "[Auldsbel the Wizard]"; + mes "You feel new powers flowing into your body!"; + + set @SUP_xp, 30000; + set @SUP_lvl, 3; + callfunc "SkillUp"; + next; + + goto L_main_menu; + +LL_student_4_wrong_potion: + mes "[Auldsbel the Wizard]"; + mes "Auldsbell examines your potion, then shakes his head."; + mes "\"This doesn't look quite right, though I can't quite point at what the problem is. You will have to continue trying.\""; + next; + + goto L_main_menu; + +LL_student_4_no_potion: + mes "[Auldsbel the Wizard]"; + mes "\"You seem to be rather lacking the concentration potion you need to justify your claim, my dear fellow.\""; + next; + + goto L_main_menu; + +LL_student_5: + mes "[Auldsbel the Wizard]"; + mes "\"Hmm. Come back some other time, please; I still haven't figured out what to teach you next.\""; + close; + +LL_magic_skill_insufficient: + mes "[Auldsbel the Wizard]"; + mes "\"No, not at this time. You will have to advance in your overall magic skill before I can teach you more.\""; + next; + + goto L_main_menu; + + +S_update_var: + set @Q_status, @Q_main_status | (@Q_component_quest << 5); + set QUEST_MAGIC, + (QUEST_MAGIC & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/011-1/oscar.txt b/world/map/npc/011-1/oscar.txt new file mode 100644 index 00000000..d2b40f0e --- /dev/null +++ b/world/map/npc/011-1/oscar.txt @@ -0,0 +1 @@ +011-1.gat,87,34,0 shop Oscar 142,719:20,535:25,657:40 diff --git a/world/map/npc/011-1/shops.txt b/world/map/npc/011-1/shops.txt new file mode 100644 index 00000000..e9616d8c --- /dev/null +++ b/world/map/npc/011-1/shops.txt @@ -0,0 +1,9 @@ +//################################################################################# +//# # +//# This script file contains all shops and other NPCs with important functions. # +//# # +//################################################################################# + +// Exotic Trader +// Toy Sabre - 10mil, Cap - 20mil, High Priest Crown - 30mil, Monster Skull Helmet - 30mil +011-1.gat,109,38,0 shop Exotic Trader 179,1215:10000000,654:20000000,721:30000000,722:30000000 diff --git a/world/map/npc/011-3/_import.txt b/world/map/npc/011-3/_import.txt new file mode 100644 index 00000000..799e5dd0 --- /dev/null +++ b/world/map/npc/011-3/_import.txt @@ -0,0 +1,7 @@ +// Map 011-3: Hermit's cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 011-3.gat +npc: npc/011-3/_mobs.txt +npc: npc/011-3/_warps.txt +npc: npc/011-3/hermit.txt +npc: npc/011-3/monsters.txt diff --git a/world/map/npc/011-3/_mobs.txt b/world/map/npc/011-3/_mobs.txt new file mode 100644 index 00000000..2fc7d85b --- /dev/null +++ b/world/map/npc/011-3/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hermit's cave mobs + + + +011-3.gat,0,0,0 script Mob011-3 -1,{ + end; +} diff --git a/world/map/npc/011-3/_warps.txt b/world/map/npc/011-3/_warps.txt new file mode 100644 index 00000000..0c7ae9de --- /dev/null +++ b/world/map/npc/011-3/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Hermit's cave warps + +011-3.gat,31,21 warp ToLakeCave -1,-1,011-4.gat,72,11 diff --git a/world/map/npc/011-3/hermit.txt b/world/map/npc/011-3/hermit.txt new file mode 100644 index 00000000..4b582cc4 --- /dev/null +++ b/world/map/npc/011-3/hermit.txt @@ -0,0 +1,62 @@ +// + +011-3.gat,30,30,0 script Arkim 116,{ + mes "[Arkim the Hermit]"; + mes "\"Do you want to go back outside?\""; + menu + "Yes, please!", L_Sure, + "Not yet.", -, + "Actually... Why do you live here?", L_Interested; + close; + +L_Sure: + warp "011-1.gat", 60, 95; + close; + +L_Interested: + mes "[Arkim the Hermit]"; + mes "\"Oh my, never really thought about it!\""; + next; + mes "[Arkim the Hermit]"; + mes "\"I guess mostly I enjoy experimenting with the bats here.\""; + + menu + "I see...", -, + "What type of experimenting?", L_Experiment; + close; + +L_Experiment: + mes "[Arkim the Hermit]"; + mes "\"Never really thought about it either...\""; + + next; + + mes "You watch as the hermit's old, lazy eyes open wide, and the old man comes alive with energy."; + + next; + + mes "[Arkim the Hermit]"; + mes "\"I GUESS I REALLY LIKE CUTTING THEM UP TO SEE HOW THEY WORK!! HAHAHA!\""; + + menu + "YOU'RE CRAZY!", -, + "Right... me too! Can I help?", L_Quest; + close; + +L_Quest: + set @dq_level, 20; + set @dq_cost, 4; + set @dq_count, 3; + set @dq_name$, "BatWing"; + set @dq_friendly_name$, "bat wings"; + set @dq_money, 600; + set @dq_exp, 100; + + callfunc "DailyQuest"; + + next; + + mes "[Arkim the Hermit]"; + mes "\"And remember: never lend your toothbrush to a slime!\""; + close; +} diff --git a/world/map/npc/011-3/monsters.txt b/world/map/npc/011-3/monsters.txt new file mode 100644 index 00000000..37da9f40 --- /dev/null +++ b/world/map/npc/011-3/monsters.txt @@ -0,0 +1,21 @@ +// Map: 011-3 +// This is the Hermit's Cave -- level 1. +// + +011-3.gat,0,0,0,0 monster Bat 1017,10,0,0,Mob4::OnBat + +011-3.gat,0,0,0,0 monster SilkWorm 1035,3,60000,30000,Mob4::OnSilkWorm + +011-3.gat,0,0,0 script Mob4 -1,{ +OnBat: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +OnSilkWorm: + set @mobID, 1035; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/011-4/_import.txt b/world/map/npc/011-4/_import.txt new file mode 100644 index 00000000..f2e5264f --- /dev/null +++ b/world/map/npc/011-4/_import.txt @@ -0,0 +1,7 @@ +// Map 011-4: Lake cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 011-4.gat +npc: npc/011-4/_mobs.txt +npc: npc/011-4/_warps.txt +npc: npc/011-4/bl_barrier.txt +npc: npc/011-4/monsters.txt diff --git a/world/map/npc/011-4/_mobs.txt b/world/map/npc/011-4/_mobs.txt new file mode 100644 index 00000000..2e4f3576 --- /dev/null +++ b/world/map/npc/011-4/_mobs.txt @@ -0,0 +1,20 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Lake cave mobs + +011-4.gat,51,29,39,39 monster Shroom 1019,1,100000,30000,Mob011-4::On1019 +011-4.gat,93,114,39,39 monster Lamp Snake 1021,1,100000,30000,Mob011-4::On1021 + + +011-4.gat,0,0,0 script Mob011-4 -1,{ +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1021: + set @mobID, 1021; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/011-4/_warps.txt b/world/map/npc/011-4/_warps.txt new file mode 100644 index 00000000..40058613 --- /dev/null +++ b/world/map/npc/011-4/_warps.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Lake cave warps + +011-4.gat,73,8 warp ToHermitsCave 0,-1,011-3.gat,31,24 +011-4.gat,129,86 warp ToCaveBeneathHurnscald -1,-1,009-3.gat,21,55 +011-4.gat,39,35 warp warp -1,-1,011-6.gat,47,183 +011-4.gat,16,57 warp warp -1,-1,011-6.gat,24,204 +011-4.gat,89,20 warp warp -1,-1,011-6.gat,97,168 +011-4.gat,105,32 warp warp -1,-1,011-6.gat,113,184 +011-4.gat,114,61 warp warp -1,-1,011-6.gat,122,213 +011-4.gat,86,75 warp warp -1,-1,011-6.gat,94,227 +011-4.gat,62,86 warp warp -1,-1,011-6.gat,68,233 +011-4.gat,32,5 warp warp 0,-1,011-6.gat,186,180 +011-4.gat,45,118 warp warp -1,-1,011-6.gat,266,180 diff --git a/world/map/npc/011-4/bl_barrier.txt b/world/map/npc/011-4/bl_barrier.txt new file mode 100644 index 00000000..07b44999 --- /dev/null +++ b/world/map/npc/011-4/bl_barrier.txt @@ -0,0 +1,16 @@ +//bandit lord barrier + +011-4.gat,111,121,0 script #BL_Barrier 127,0,0,{ + + if (TMW_Quest >= 44) goto L_Bandit_Lord_Barrier_Open; + + message strcharinfo(0), "This entrance appears to be locked."; + end; + + +L_Bandit_Lord_Barrier_Open: + message strcharinfo(0), "You insert the silver arrow key and unlock the entrance."; + warp "011-6.gat",251,275; + end; + +} diff --git a/world/map/npc/011-4/monsters.txt b/world/map/npc/011-4/monsters.txt new file mode 100644 index 00000000..d3b78249 --- /dev/null +++ b/world/map/npc/011-4/monsters.txt @@ -0,0 +1,20 @@ +// Map: 011-4 +// This is the Lake Cave, second level of the Hermit's Cave. +// + +011-4.gat,0,0,0,0 monster CaveSnake 1021,40,0,0,Mob17::OnCaveSnake +011-4.gat,0,0,0,0 monster SpikyMushroom 1019,15,0,0,Mob17::OnSpikyMushroom + +011-4.gat,0,0,0 script Mob17 -1,{ +OnCaveSnake: + set @mobID, 1021; + callfunc "MobPoints"; + break; + +OnSpikyMushroom: + set @mobID, 1019; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/011-5/_import.txt b/world/map/npc/011-5/_import.txt new file mode 100644 index 00000000..0901afa2 --- /dev/null +++ b/world/map/npc/011-5/_import.txt @@ -0,0 +1,5 @@ +// Map 011-5: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 011-5.gat +npc: npc/011-5/_mobs.txt +npc: npc/011-5/_warps.txt diff --git a/world/map/npc/011-5/_mobs.txt b/world/map/npc/011-5/_mobs.txt new file mode 100644 index 00000000..22d89a4e --- /dev/null +++ b/world/map/npc/011-5/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + + + +011-5.gat,0,0,0 script Mob011-5 -1,{ + end; +} diff --git a/world/map/npc/011-5/_warps.txt b/world/map/npc/011-5/_warps.txt new file mode 100644 index 00000000..605abadf --- /dev/null +++ b/world/map/npc/011-5/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + diff --git a/world/map/npc/011-6/_import.txt b/world/map/npc/011-6/_import.txt new file mode 100644 index 00000000..0afbffa4 --- /dev/null +++ b/world/map/npc/011-6/_import.txt @@ -0,0 +1,6 @@ +// Map 011-6: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 011-6.gat +npc: npc/011-6/_mobs.txt +npc: npc/011-6/_warps.txt +npc: npc/011-6/bryant.txt diff --git a/world/map/npc/011-6/_mobs.txt b/world/map/npc/011-6/_mobs.txt new file mode 100644 index 00000000..007e7e86 --- /dev/null +++ b/world/map/npc/011-6/_mobs.txt @@ -0,0 +1,95 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + +011-6.gat,152,72,283,127 monster Silk Worm 1035,9,30000,100000,Mob011-6::On1035 +011-6.gat,263,38,30,34 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,262,114,38,38 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,132,119,17,21 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,170,66,17,21 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,67,70,17,21 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,196,107,17,21 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,196,29,17,21 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,36,37,17,21 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,112,40,45,48 monster Bandit 1064,2,30000,60000,Mob011-6::On1064 +011-6.gat,31,99,17,21 monster Bandit 1064,1,30000,30000,Mob011-6::On1064 +011-6.gat,223,250,123,65 monster Bat 1017,5,30000,100000,Mob011-6::On1017 +011-6.gat,224,175,118,25 monster Bat 1017,3,30000,100000,Mob011-6::On1017 +011-6.gat,257,77,4,126 monster Bat 1017,6,30000,100000,Mob011-6::On1017 +011-6.gat,192,77,4,126 monster Bat 1017,9,30000,100000,Mob011-6::On1017 +011-6.gat,167,110,87,13 monster Bat 1017,9,30000,100000,Mob011-6::On1017 +011-6.gat,75,70,104,96 monster Bat 1017,23,30000,100000,Mob011-6::On1017 +011-6.gat,78,195,129,97 monster Bat 1017,9,30000,100000,Mob011-6::On1017 +011-6.gat,168,109,36,37 monster Spiky Mushroom 1019,5,30000,100000,Mob011-6::On1019 +011-6.gat,199,76,36,37 monster Spiky Mushroom 1019,5,30000,100000,Mob011-6::On1019 +011-6.gat,88,163,29,27 monster Spiky Mushroom 1019,5,30000,100000,Mob011-6::On1019 +011-6.gat,48,113,35,19 monster Spiky Mushroom 1019,5,30000,100000,Mob011-6::On1019 +011-6.gat,177,94,20,28 monster Evil Mushroom 1013,4,30000,100000,Mob011-6::On1013 +011-6.gat,194,49,20,28 monster Evil Mushroom 1013,2,30000,100000,Mob011-6::On1013 +011-6.gat,51,115,47,24 monster Evil Mushroom 1013,2,30000,100000,Mob011-6::On1013 +011-6.gat,63,169,13,17 monster Evil Mushroom 1013,2,30000,100000,Mob011-6::On1013 +011-6.gat,100,226,29,14 monster Spiky Mushroom 1019,3,30000,100000,Mob011-6::On1019 +011-6.gat,260,44,53,16 monster Spiky Mushroom 1019,3,30000,100000,Mob011-6::On1019 +011-6.gat,272,48,21,28 monster Evil Mushroom 1013,2,30000,100000,Mob011-6::On1013 +011-6.gat,95,78,31,25 monster Yellow Slime 1007,5,30000,100000,Mob011-6::On1007 +011-6.gat,59,36,19,25 monster Yellow Slime 1007,5,30000,100000,Mob011-6::On1007 +011-6.gat,26,69,19,25 monster Yellow Slime 1007,5,30000,100000,Mob011-6::On1007 +011-6.gat,61,101,14,10 monster Yellow Slime 1007,3,30000,100000,Mob011-6::On1007 +011-6.gat,50,61,9,12 monster Yellow Slime 1007,3,30000,100000,Mob011-6::On1007 +011-6.gat,128,39,9,12 monster Yellow Slime 1007,3,30000,100000,Mob011-6::On1007 +011-6.gat,41,178,9,12 monster Yellow Slime 1007,1,30000,100000,Mob011-6::On1007 +011-6.gat,70,229,9,12 monster Yellow Slime 1007,1,30000,100000,Mob011-6::On1007 +011-6.gat,20,204,9,12 monster Yellow Slime 1007,1,30000,100000,Mob011-6::On1007 +011-6.gat,114,190,9,12 monster Yellow Slime 1007,4,30000,100000,Mob011-6::On1007 +011-6.gat,137,205,9,12 monster Yellow Slime 1007,2,30000,100000,Mob011-6::On1007 +011-6.gat,79,220,29,14 monster Cave Snake 1021,3,30000,100000,Mob011-6::On1021 +011-6.gat,115,210,29,14 monster Cave Snake 1021,3,30000,100000,Mob011-6::On1021 +011-6.gat,41,193,31,31 monster Cave Snake 1021,3,30000,100000,Mob011-6::On1021 +011-6.gat,70,143,31,31 monster Cave Snake 1021,3,30000,100000,Mob011-6::On1021 +011-6.gat,97,183,29,14 monster Cave Snake 1021,3,30000,100000,Mob011-6::On1021 +011-6.gat,172,252,9,12 monster Cave Maggot 1056,4,30000,100000,Mob011-6::On1056 +011-6.gat,263,236,16,5 monster Cave Maggot 1056,3,30000,100000,Mob011-6::On1056 + + +011-6.gat,0,0,0 script Mob011-6 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1013: + set @mobID, 1013; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1021: + set @mobID, 1021; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1056: + set @mobID, 1056; + callfunc "MobPoints"; + break; + +On1064: + set @mobID, 1064; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/011-6/_warps.txt b/world/map/npc/011-6/_warps.txt new file mode 100644 index 00000000..458bc283 --- /dev/null +++ b/world/map/npc/011-6/_warps.txt @@ -0,0 +1,26 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +011-6.gat,51,75 warp toMiddleCave1 -1,-1,011-6.gat,260,125 +011-6.gat,61,71 warp toMiddleCave2 -1,-1,011-6.gat,270,122 +011-6.gat,270,125 warp toMainCave -1,-1,011-6.gat,61,73 +011-6.gat,260,128 warp toMiddleCave2 -1,-1,011-6.gat,51,77 +011-6.gat,145,118 warp ToMainCave3 -1,-1,011-6.gat,47,119 +011-6.gat,196,26 warp toSmallCave1 -1,-1,011-6.gat,261,44 +011-6.gat,261,47 warp toPassage1 -1,-1,011-6.gat,196,28 +011-6.gat,271,52 warp toMainCave4 -1,-1,011-6.gat,98,32 +011-6.gat,98,30 warp toSmallCave -1,-1,011-6.gat,271,50 +011-6.gat,47,120 warp toPassage -1,-1,011-6.gat,145,115 +011-6.gat,49,101 warp toOutside -1,-1,011-1.gat,38,37 +011-6.gat,24,206 warp warp -1,-1,011-4.gat,17,59 +011-6.gat,47,185 warp warp -1,-1,011-4.gat,39,38 +011-6.gat,97,170 warp warp -1,-1,011-4.gat,89,21 +011-6.gat,113,182 warp warp -1,-1,011-4.gat,105,34 +011-6.gat,122,211 warp warp -1,-1,011-4.gat,114,63 +011-6.gat,94,225 warp warp -1,-1,011-4.gat,86,77 +011-6.gat,68,235 warp warp -1,-1,011-4.gat,62,87 +011-6.gat,251,278 warp warp -1,-1,011-4.gat,111,123 +011-6.gat,186,182 warp warp -1,-1,011-4.gat,31,7 +011-6.gat,266,182 warp warp -1,-1,011-4.gat,45,120 +011-6.gat,174,256 warp warp -1,-1,011-6.gat,264,238 +011-6.gat,264,236 warp warp -1,-1,011-6.gat,174,252 diff --git a/world/map/npc/011-6/bryant.txt b/world/map/npc/011-6/bryant.txt new file mode 100644 index 00000000..486a6ae0 --- /dev/null +++ b/world/map/npc/011-6/bryant.txt @@ -0,0 +1,56 @@ +//NPC to set the state for killing the bandit lord. + +011-6.gat,27,200,0 script Bryant 126,{ + + if (TMW_Quest >= 45) goto L_Bryant_Quiet; + if (TMW_Quest == 44) goto L_Bryant_Waits; + if (TMW_Quest == 43) goto L_Bryant_Summon; + + mes "[Bryant]"; + mes "\"I'm looking everywhere for the bandit leader. I can't seem to find him.\""; + close; + +L_Bryant_Summon: + mes "[Bryant]"; + mes "\"I ran into that bandit lord and he got me good. I'm going to stay here for a while and heal. He dropped this key. Take it. You might be able to handle him better than I could.\""; + next; + mes "Bryant gives you a key, shaped to look like a small silver arrow."; + next; + mes "\"I believe I saw him run into a cave south and east of here. There is a red carpet in front of the cave entrance. Be careful and good luck.\""; + set TMW_Quest, 44; + monster "011-6.gat",260,250,"BanditLord",1065,1, "Bryant::onBanditLordDead"; + close; + +onBanditLordDead: + if (TMW_Quest<45) + set TMW_Quest, 45; + message strcharinfo(0), "You killed the bandit lord."; + end; + +L_Bryant_Waits: + mes "[Bryant]"; + mes "\"I think the bandit lord is still around. I fear this could be dangerous for the people of Hurnscald. When you went to the cave with the red carpet in front of it, did you find him and kill him?\""; + menu + "No.", L_Bryant_No, + "Yes.", L_Bryant_Yes; + close; + +L_Bryant_No: + mes "[Bryant]"; + mes "\"Well, maybe he ran off. I'm pretty sure he should be there now.\""; + killmonster "011-6.gat", "Bryant::onBanditLordDead"; + monster "011-6.gat",260,250,"BanditLord",1065,1, "Bryant::onBanditLordDead"; + close; + +L_Bryant_Yes: + mes "[Bryant]"; + mes "\"I don't think you killed him. Please try to find and kill him. He should be in the cave south and east of here with the red carpet in front of it.\""; + killmonster "011-6.gat", "Bryant::onBanditLordDead"; + monster "011-6.gat",260,250,"BanditLord",1065,1, "Bryant::onBanditLordDead"; + close; + +L_Bryant_Quiet: + mes "[Bryant]"; + mes "\"Glad that bandit leader got what was coming to him.\""; + close; +} diff --git a/world/map/npc/012-1/_import.txt b/world/map/npc/012-1/_import.txt new file mode 100644 index 00000000..095de153 --- /dev/null +++ b/world/map/npc/012-1/_import.txt @@ -0,0 +1,8 @@ +// Map 012-1: Woodland Hills +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 012-1.gat +npc: npc/012-1/_mobs.txt +npc: npc/012-1/_warps.txt +npc: npc/012-1/amrak.txt +npc: npc/012-1/injured-mouboo.txt +npc: npc/012-1/shops.txt diff --git a/world/map/npc/012-1/_mobs.txt b/world/map/npc/012-1/_mobs.txt new file mode 100644 index 00000000..0cfb2c14 --- /dev/null +++ b/world/map/npc/012-1/_mobs.txt @@ -0,0 +1,74 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland Hills mobs + +012-1.gat,0,0,0,0 monster PinkFlower 1014,13,0,100,Mob012-1::On1014 +012-1.gat,0,0,0,0 monster SpikyMushroom 1019,25,0,10,Mob012-1::On1019 +012-1.gat,0,0,0,0 monster Mouboo 1028,20,0,10,Mob012-1::On1028 +012-1.gat,0,0,0,0 monster Mauve 1029,5,2700000,1800000,Mob012-1::On1029 +012-1.gat,0,0,0,0 monster Cobalt 1030,2,2700000,1800000,Mob012-1::On1030 +012-1.gat,0,0,0,0 monster Gamboge 1031,2,2700000,1800000,Mob012-1::On1031 +012-1.gat,0,0,0,0 monster Alizarin 1032,2,2700000,1800000,Mob012-1::On1032 +012-1.gat,0,0,0,0 monster SilkWorm 1035,5,60000,30000,Mob012-1::On1035 +012-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob012-1::On1037 +012-1.gat,0,0,0,0 monster Squirrel 1038,25,30,20,Mob012-1::On1038 +012-1.gat,0,0,0,0 monster Butterfly 1055,20,30,20,Mob012-1::On1055 + + +012-1.gat,0,0,0 script Mob012-1 -1,{ +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1028: + set @mobID, 1028; + callfunc "MobPoints"; + break; + +On1029: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +On1030: + set @mobID, 1030; + callfunc "MobPoints"; + break; + +On1031: + set @mobID, 1031; + callfunc "MobPoints"; + break; + +On1032: + set @mobID, 1032; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/012-1/_warps.txt b/world/map/npc/012-1/_warps.txt new file mode 100644 index 00000000..de7ffc77 --- /dev/null +++ b/world/map/npc/012-1/_warps.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland Hills warps + +012-1.gat,51,39 warp ToCaves -1,-1,012-3.gat,370,45 +012-1.gat,147,67 warp ToCaves -1,-1,012-3.gat,474,103 +012-1.gat,41,48 warp ToCaves -1,-1,012-3.gat,353,78 +012-1.gat,44,88 warp ToCaves -1,-1,012-3.gat,354,187 +012-1.gat,92,104 warp ToCaves -1,-1,012-3.gat,270,111 +012-1.gat,98,99 warp ToCaves -1,-1,012-3.gat,36,81 +012-1.gat,109,92 warp ToCaves -1,-1,012-3.gat,79,73 +012-1.gat,123,90 warp ToCaves -1,-1,012-3.gat,38,156 +012-1.gat,150,61 warp ToWoodlandHills -1,2,013-1.gat,21,75 +012-1.gat,132,163 warp ToWoodland 0,-1,011-1.gat,72,16 +012-1.gat,65,126 warp ToCaves -1,-1,012-3.gat,176,139 diff --git a/world/map/npc/012-1/amrak.txt b/world/map/npc/012-1/amrak.txt new file mode 100644 index 00000000..5a2a547a --- /dev/null +++ b/world/map/npc/012-1/amrak.txt @@ -0,0 +1,10 @@ +// + +012-1.gat,137,104,0 script Amrak 103, { + mes "[Amrak]"; + mes "\"I'm studying this waterfall. The water seems to flow from it like magic.\""; + next; + mes "[Amrak]"; + mes "\"Unfortunately, I've had trouble getting up there. The monsters in these caves scare me.\""; + close; +} diff --git a/world/map/npc/012-1/injured-mouboo.txt b/world/map/npc/012-1/injured-mouboo.txt new file mode 100644 index 00000000..1aa780f5 --- /dev/null +++ b/world/map/npc/012-1/injured-mouboo.txt @@ -0,0 +1,231 @@ +// The following auxiliary function is used both by appropriate magic and within the regular script: + +function script QuestMoubooHeal { + set @Q_MASK, NIBBLE_2_MASK; + set @Q_SHIFT, NIBBLE_2_SHIFT; + + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + set @Q_status_upper, @Q_status & 12; + set @Q_status, @Q_status & 3; + + set @STATE_INITIAL, 0; + set @STATE_HEALED_MOUBOO, 3; + + if (@Q_status != @STATE_INITIAL) + goto L_nothing; + + set @Q_status, @STATE_HEALED_MOUBOO; + callsub S_update_var; + mes "[Injured Mouboo]"; + mes "A soft white glow surrounds the mouboo's leg, which slowly shifts back into place."; + mes "As the glow subsides, the mouboo gets up, carefully, and takes a few steps. It seems to be fully healed!"; + mes "[5000 experience points]"; + getexp 5000, 0; + next; + + mes "[Injured Mouboo]"; + mes "Visibly happy, the mouboo lies down on the ground and snuggles with a black piece of cloth it had been lying on."; + mes "The healing process must have been exhausting, for it is asleep in an instant."; + next; + set @value, 15; + callfunc "QuestSagathaHappy"; + close; + +L_nothing: + mes "Your spell has no effect."; + close; + +S_update_var: + set @Q_wr_status, @Q_status | @Q_status_upper; + set QUEST_MAGIC, + (QUEST_MAGIC & ~(@Q_MASK) + | (@Q_wr_status << @Q_SHIFT)); + return; +} + + + +012-1.gat,57,153,0 script Mouboo 171,{ + set @Q_MASK, NIBBLE_2_MASK; + set @Q_SHIFT, NIBBLE_2_SHIFT; + + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + set @Q_status_upper, @Q_status & 12; + set @Q_status, @Q_status & 3; + + set @STATE_INITIAL, 0; + set @STATE_KILLED_MOUBOO, 1; + set @STATE_TOOK_KILL_REWARD, 2; + set @STATE_HEALED_MOUBOO, 3; + + if (@Q_status == @STATE_KILLED_MOUBOO) + goto L_dead; + if (@Q_status == @STATE_TOOK_KILL_REWARD) + goto L_took_reward; + if (@Q_status == @STATE_HEALED_MOUBOO) + goto L_healed; + + mes "[Injured Mouboo]"; + mes "You notice a mouboo lying on the ground, groaning, as if in pain."; + next; + +L_menu: + menu + "Examine the mouboo", L_examine, + "Give the mouboo something", L_give, + "Kill the mouboo", L_kill, + "Leave", -; + close; + +L_examine: + mes "[Injured Mouboo]"; + mes "Looking closer, you notice that the mouboo's left hind leg is bent at a very unnatural angle-- that seems to be the cause for its pain."; + next; + mes "[Injured Mouboo]"; + mes "You also notice that the mouboo is lying on top of what appears to be a black turtleneck sweater."; + mes "Do you want to pick up the sweater?"; + next; + menu + "Yes.", L_pickup_alive, + "No.", L_menu; + goto L_menu; + +L_pickup_alive: + mes "[Injured Mouboo]"; + mes "The Mouboo groans and pushes your hand away. It seems to be rather fond of the sweater."; + next; + goto L_menu; + +L_give: + set @items_nr, 12; + setarray @items$, "CactusDrink", "CactusPotion", "ChocolateBar", "Milk", "OrangeCupcake", "RedApple", "Beer", "BottleOfWater", "TinyHealingPotion", "SmallHealingPotion", "MediumHealingPotion", "LargeHealingPotion"; + setarray @itemeat, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0; + + setarray @menuItems$, "", "", "", "", "", "", "", "", "", "", "", "", ""; + set @choices_nr, 0; + setarray @menuNames$, "", "", "", "", "", "", "", "", "", "", "", "", ""; + setarray @choice_eat, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0; + + set @n, 0; + set @ct, 0; +L_nloop: + set @k$, @items$[@n]; + if (countitem(@k$) == 0) + goto L_nloop_skip; + + set @name$, getitemname(@k$); + set @menuItems$[@ct], @name$; + set @menuNames$[@ct], @k$; + set @choice_eat[@ct], @itemeat[@n]; + set @ct, @ct + 1; + +L_nloop_skip: + + set @n, @n+1; + if (@n < @items_nr) + goto L_nloop; + + set @menuItems$[@ct], "Nevermind"; + + menu @menuItems$[0], -, + @menuItems$[1], -, + @menuItems$[2], -, + @menuItems$[3], -, + @menuItems$[4], -, + @menuItems$[5], -, + @menuItems$[6], -, + @menuItems$[7], -, + @menuItems$[8], -, + @menuItems$[9], -, + @menuItems$[10], -, + @menuItems$[11], -, + @menuItems$[12], -; + + set @menu, @menu - 1; + + if (@menu == @ct) goto L_menu; + + set @choice$, @menuNames$[@menu]; + set @verb$, "drinks"; + if (@choice_eat[@menu]) + set @verb$, "eats"; + + if (@choice$ != "" && countitem(@choice$)) + goto L_consume; + + goto L_menu; + +L_consume: + mes "[Injured Mouboo]"; + mes "The mouboo " + @verb$ + " your " + getitemname(@choice$) + "."; + delitem @choice$, 1; + next; + + if (@choice$ == "LargeHealingPotion") + goto L_do_heal; + + + mes "[Injured Mouboo]"; + mes "Unfortunately, it seems to have had no effect."; + next; + goto L_menu; + +L_do_heal: + callfunc "QuestMoubooHeal"; + +L_kill: + mes "[Injured Mouboo]"; + if (BaseLevel > 44) + goto L_kill_success; + mes "The mouboo deflects your attack and counterattacks!"; + mes "It misses you only barely."; + mes "Injured though it may be, this mouboo is still more than a match for you!"; + next; + goto L_menu; + +L_kill_success: + mes "After some wrestling, the mouboo succumbs to your attacks."; + mes "[100 experience points]"; + getexp 100, 0; + + set @Q_status, @STATE_KILLED_MOUBOO; + callsub S_update_var; + + next; + +L_dead: + mes "[Dead Mouboo]"; + mes "The dead mouboo is lying on top of a black T-neck sweater."; + + getinventorylist; + if (@inventorylist_count == 100) + goto L_nopickup; + + getitem "BlackTurtleneckSweater", 1; + mes "You pull out the sweater and stuff it into your backpack."; + + set @Q_status, @STATE_TOOK_KILL_REWARD; + callsub S_update_var; + close; + +L_took_reward: + mes "[Dead Mouboo]"; + mes "You see a dead mouboo."; + close; + +L_nopickup: + mes "Unfortunately, you can't carry any more."; + close; + +L_healed: + mes "[Mouboo]"; + mes "The mouboo is sleeping soundly, smiling in its dreams."; + close; + +S_update_var: + set @Q_wr_status, @Q_status | @Q_status_upper; + set QUEST_MAGIC, + (QUEST_MAGIC & ~(@Q_MASK) + | (@Q_wr_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/012-1/shops.txt b/world/map/npc/012-1/shops.txt new file mode 100644 index 00000000..b29e5542 --- /dev/null +++ b/world/map/npc/012-1/shops.txt @@ -0,0 +1,3 @@ +// + +012-1.gat,36,99,0 shop Blossom 163,661:100,664:100,665:50,662:100,667:50,663:100,671:75,673:25,669:75,672:25,674:25 diff --git a/world/map/npc/012-3/_import.txt b/world/map/npc/012-3/_import.txt new file mode 100644 index 00000000..6e5ac13a --- /dev/null +++ b/world/map/npc/012-3/_import.txt @@ -0,0 +1,8 @@ +// Map 012-3: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 012-3.gat +npc: npc/012-3/_mobs.txt +npc: npc/012-3/_warps.txt +npc: npc/012-3/mana-seed.txt +npc: npc/012-3/monsters.txt +npc: npc/012-3/warningsigns.txt diff --git a/world/map/npc/012-3/_mobs.txt b/world/map/npc/012-3/_mobs.txt new file mode 100644 index 00000000..ce7a365f --- /dev/null +++ b/world/map/npc/012-3/_mobs.txt @@ -0,0 +1,27 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + +012-3.gat,447,65,17,7 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,441,45,17,7 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,411,30,17,7 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,345,39,7,16 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,362,101,16,18 monster Moggun 1061,10,100000,30000,Mob012-3::On1061 +012-3.gat,444,81,17,7 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,387,137,17,7 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,408,78,7,16 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,382,151,17,7 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,428,116,7,16 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,329,100,7,16 monster Moggun 1061,5,100000,30000,Mob012-3::On1061 +012-3.gat,268,138,16,18 monster Moggun 1061,10,100000,30000,Mob012-3::On1061 +012-3.gat,188,51,16,18 monster Moggun 1061,10,100000,30000,Mob012-3::On1061 +012-3.gat,164,105,16,18 monster Moggun 1061,10,100000,30000,Mob012-3::On1061 + + +012-3.gat,0,0,0 script Mob012-3 -1,{ +On1061: + set @mobID, 1061; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/012-3/_warps.txt b/world/map/npc/012-3/_warps.txt new file mode 100644 index 00000000..41ef598f --- /dev/null +++ b/world/map/npc/012-3/_warps.txt @@ -0,0 +1,13 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +012-3.gat,37,82 warp CaveExit 0,-1,012-1.gat,98,100 +012-3.gat,80,74 warp CaveExit 0,-1,012-1.gat,109,93 +012-3.gat,39,157 warp CaveExit 0,-1,012-1.gat,123,91 +012-3.gat,270,112 warp CaveExit -1,-1,012-1.gat,92,105 +012-3.gat,176,138 warp CaveExit -1,-1,012-1.gat,65,127 +012-3.gat,355,188 warp CaveExit 0,-1,012-1.gat,44,89 +012-3.gat,371,46 warp CaveExit 0,-1,012-1.gat,51,40 +012-3.gat,354,79 warp CaveExit 0,-1,012-1.gat,41,48 +012-3.gat,473,104 warp CaveExit -1,1,012-1.gat,146,67 +012-3.gat,448,61 warp CaveExit -1,-1,012-4.gat,194,57 diff --git a/world/map/npc/012-3/mana-seed.txt b/world/map/npc/012-3/mana-seed.txt new file mode 100644 index 00000000..6877ee2c --- /dev/null +++ b/world/map/npc/012-3/mana-seed.txt @@ -0,0 +1,266 @@ +012-3.gat,62,130,0 script Mana Seed#MAGIC 166,{ + + setarray @magic_exp_needed, + 0, // level 0 + 0, + 100, + 1200, + 8000, + 40000; // level 5 + + setarray @exp_bonus, + 0, + 1000, // level 1 + 10000, + 100000, + 400000, + 2000000; // level 5 + + setarray @min_level, + 0, + 10, + 30, + 50, + 65, + 80; // level 5 + + set @visions_nr, 12; + setarray @visions$, + "You see a dark underground temple; you are kneeling, praying for the safety of the planet. You smile as a friend joins you in the dark-- but suddenly a shadow falls over you from above, and a stabbing pain...", + "It is midnight; you are in an underground cavern deep inside the desert ruins. Slowly, as if half-asleep, you wander up the spiral pathway, towards the ancient vase at its center. As you reach out to touch it...", + "The old castle smells of mildew and swamp gas. It has not been used in centuries, but you were here before, when the world was young. You turn to face your companions-- but something is wrong with all three; an ancient force has possessed them...", + "As you put the horn to your lips, you feel winds flowing, gathering, condensing in your chest. Soon, you can no longer contain it; the storm unleashes through your mouth, into a deafening fanfare. The black dome around you begins to crack...", + "You are alone inside your head, confined by the laughing man's circlet. Powerless, you witness how your hands shoot out flame after flame, incinerating innocents for that man's experiments...", + "The village may be in ruins, but it must have been where you grew up. The engravings on the walls-- images of powerful beasts-- look strangely familiar, and you can make out writing, words about you, wishes and prayers for you... You are at home...", + "Deep underneath the city, the rocky cavern maze turns into an opulent palace. This must be where the beast of the many eyes resides. Nervously you grip the wand; will the power to repel it be sufficient to defeat it and its magic?", + "At the bottom of the abyss, infinity opens before you. You have proven yourself worthy, and the ancient finally reveals its wisdom...", + "You may only be children, but you recognize that it is this man only who can save the world. As the walls rush towards you to crush your small group, you exchange a glance with your twin sister-- there is no doubt what you must do...", + "The sacred place is surrounded by nothingness; were it not for your magic, you would have no hope of returning. The old and young man stands nearby; he has been waiting for you, for centuries. He has all the time in the world, after all...", + "Nothing remains behind. The underground castle is empty now, its chambers plundered, its throne destroyed. Shivering, you climb down the stairs, towards the wailing of the underworld that is waiting beneath...", + "You feel soft, fluffy fur brushing against your skin and are filled with happiness. Somehow, the word `" + getspellinvocation("happy-curse") + "' comes to mind..."; + + set @max_magic, 2; + + set @has_magic, getskilllv(SKILL_MAGIC); + set @drank_potion, MAGIC_FLAGS & MFLAG_DRANK_POTION; + set @knows_seed, MAGIC_FLAGS & MFLAG_KNOWS_MANASEED; + + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC; + set @SUP_name$, "Magic"; + + if (@has_magic) + goto L_magic_start; + + if (@knows_seed) + goto L_quick_nomagic; + + // first time here + + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_MANASEED; + + mes "[Mana Seed]"; + mes "You see a glowing orb, swimming in the water like a sea rose."; + mes "An unearthly glow is emanating from within, lighting up the water and filling the cave with an eerie light."; + next; + + mes "[Mana Seed]"; + if (@drank_potion) + mes "Slowly, the tingling sensation you felt before begins to spread through your body again."; + mes "What would you like to do?"; + next; + goto L_nomagic_mainmenu; + +L_quick_nomagic: + mes "[Mana Seed]"; + mes "Again you stand before the orb."; + if (@drank_potion) + mes "Slowly, the tingling sensation you felt before begins to spread through your body again."; + mes "What would you like to do?"; + next; + + goto L_nomagic_mainmenu; + +// Non-Magic main menu ------------------------------------------------------------ +L_nomagic_mainmenu: + menu "Examine it more closely", L_nomagic_examine, + "Take it with you", L_nomagic_touch, + "Touch it", L_nomagic_touch, + "Throw a rock at it", L_nomagic_throwrock, + "Destroy it", L_nomagic_destroy, + "Leave it alone", L_end; + close; + +L_nomagic_examine: + mes "[Mana Seed]"; + mes "The orb seems to be perfectly round and emitting a steady glow. It appears to be floating in the water."; + next; + goto L_nomagic_mainmenu; + +L_nomagic_throwrock: + mes "[Mana Seed]"; + mes "Your rock makes hardly a sound as it strikes the orb and glances off into the water, leaving neither scratch nor impression."; + mes "The orb budges slightly, but then floats back into its old position, as if it were tethered into place."; + next; + goto L_nomagic_mainmenu; + +L_nomagic_touch: + mes "[Mana Seed]"; + if (@drank_potion) + goto L_magic_level_1; + mes "As you touch the orb, you feel a terrible force within, separated from you by only the thinnest of membranes-- like a tempest, all packed up in one tiny waterskin."; + next; + mes "[Mana Seed]"; + mes "For one instant you feel that force rushing past your hands, through your body, as if you had unleashed this tempest upon yourself. Unable to contain the power, you stumble backwards, away from the orb."; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_TOUCHED_MANASEED; + next; + goto L_nomagic_mainmenu; + +L_magic_level_1: + if (getskilllv(SKILL_MAGIC)) + goto L_end; // shouldn't be happening + + mes "Again you feel the tempest rushing through the Mana Seed's membrane, into your body. You only manage to hold on to it for an instant and find yourself forced to pull your hands away again quickly."; + next; + + mes "[Mana Seed]"; + mes "But this time something is different-- that tingling sensation is back, and stronger than before. It is spreading through your body, head to toes, and you feel yourself brimming with energy."; + next; + + mes "[Mana Seed]"; + mes "It is a light-headed feeling, and you find yourself forced to sit down for a few seconds to recover."; + mes "Something is different. A new power has grown within you and is waiting to be understood."; + set @SUP_xp, 1000; + set @SUP_lvl, 1; + callfunc "SkillUp"; + next; + + goto L_end; + +L_nomagic_destroy: + mes "[Mana Seed]"; + mes "Try as you might, the orb seems impervious to all forms of attack you can fathom. You are forced to abandon your efforts."; + next; + goto L_nomagic_mainmenu; + +// Magic main menu ------------------------------------------------------------ +L_magic_start: + mes "[Mana Seed]"; + mes "The Mana Seed is still in the same place as during your last visit, spreading its light throughout the cavern."; + mes "What would you like to do?"; + next; + +L_magic_mainmenu: + menu "Touch it", L_magic_touch, + "Destroy it", L_magic_destroy, + "Leave it alone", L_end; + close; + +L_magic_touch: + mes "[Mana Seed]"; + mes "You touch the Mana Seed again."; + + if (getskilllv(SKILL_MAGIC) >= @max_magic) + goto L_magic_maxed_out; + + set @exp_needed, @magic_exp_needed[getskilllv(SKILL_MAGIC) + 1]; + set @magic_exp, MAGIC_EXPERIENCE & 65535; + if (@magic_exp >= @exp_needed) + goto L_magic_levelup; + + set @prev_exp_needed, @magic_exp_needed[getskilllv(SKILL_MAGIC)]; + set @exp_diff, @exp_needed - @prev_exp_needed; + set @index, ((@magic_exp - @prev_exp_needed) * 5) / @exp_diff; + setarray @messages$, + "The orb's energy effortlessly rushes through you, ignoring your feeble attempts at containing it. You will need considerably more practice with your magical skills before you can hope to contain it.", + "You only barely manage to hang on to some strands of the orb's energy, but not enough to contain it. You still need noticeably more practice with your magical skills.", + "The orb's powers are still no match for you; you will need more practice to contain more of its powers.", + "You feel close to being able to contain the orb's powers. Still, some more practice is needed.", + "The orb's energy only barely evades your attempts at containing it. Soon you will be able to extract more power from it."; + + mes @messages$[@index]; + next; + goto L_magic_mainmenu; + +L_magic_levelup: + set @baselevel_needed, @min_level[getskilllv(SKILL_MAGIC) + 1]; + if (BaseLevel < @baselevel_needed) + goto L_insufficient_baselevel; + mes "Its energy permeates you, surrounds you. You are suddenly uncertain if it is you who is containing the orb's powers or if it is the orb who is seeking out yours."; + next; + + mes "[Mana Seed]"; + mes "The Seed's tempest is calming beneath your hands, and its energies resonate with yours."; + next; + + mes "[Mana Seed]"; + mes "A feeling of harmony is spreading through your body, and the tingling sensation is back, within and without."; + next; + + mes "[Mana Seed]"; + mes "As the tingling increases, you feel light-headed, weightless."; + mes "Everything fades..."; + next; + + mes "Both the tingling and the sense of harmony have vanished, making room for darkness. You can't feel the Mana Seed anymore..."; + next; + + mes "... you can't feel anything."; + next; + + mes "You are floating..."; + next; + + mes "The darkness is no longer complete. You begin to make out stars in the distance, circling each other, dancing a cosmic dance."; + next; + + mes "Images rush past you, shadows of thoughts and dreams. Some touch you, filling you with powerful emotions-- despair, ecstasy; sometimes loss, sometimes hope; hate, love."; + next; + + mes "Someone else's thoughts pass through your mind..."; + next; + + set @nr, rand(@visions_nr); + mes @visions$[@nr]; + next; + + mes "The image fades."; + next; + + mes "[Mana Seed]"; + mes "You awaken, lying on the ground."; + next; + + mes "[Mana Seed]"; + mes "Something has changed... you feel more confident in your magical abilities."; + + set @SUP_xp, @exp_bonus[1 + getskilllv(SKILL_MAGIC)]; + set @SUP_lvl, 1 + getskilllv(SKILL_MAGIC); + callfunc "SkillUp"; + itemheal 0, 10000; + next; + + goto L_end; + +L_magic_maxed_out: + mes "Strangely, you feel nothing, as if its membrane had closed towards you."; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_MANASEED_MAXEDOUT; + next; + + goto L_magic_mainmenu; + +L_insufficient_baselevel: + mes "Its energies rush through you. You fight to keep them under control, to contain them in your body. Alas, your body is too frail-- you have to let go."; + mes "Frustrated, you give up. You have the skill needed to control this power, but you will have to grow up some more before your body can handle it."; + next; + goto L_magic_mainmenu; + +L_magic_destroy: + mes "[Mana Seed]"; + mes "Try as you might, you cannot find a way, magical or physical, to destroy the seed. Frustrated, you give up."; + next; + goto L_magic_mainmenu; + +L_end: + close; +} diff --git a/world/map/npc/012-3/monsters.txt b/world/map/npc/012-3/monsters.txt new file mode 100644 index 00000000..e6f4cf79 --- /dev/null +++ b/world/map/npc/012-3/monsters.txt @@ -0,0 +1,20 @@ +// Map: 012-3 +// This is the Caves beneath the North Woodland. +// + +012-3.gat,0,0,0,0 monster Bat 1017,100,0,0,Mob27::OnBat +012-3.gat,0,0,0,0 monster CaveSnake 1021,75,0,0,Mob27::OnCaveSnake + +012-3.gat,0,0,0 script Mob27 -1,{ +OnBat: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +OnCaveSnake: + set @mobID, 1021; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/012-3/warningsigns.txt b/world/map/npc/012-3/warningsigns.txt new file mode 100644 index 00000000..2bd31346 --- /dev/null +++ b/world/map/npc/012-3/warningsigns.txt @@ -0,0 +1,18 @@ +//warning signs at pvp entrance! + + +012-3.gat,445,61,0 script sign 187, { + mes "You are about to enter a dangerous area!"; + next; + mes "This area has a great distance to town. So the protection spell of the town is not active in that cave!"; + mes "That is why other players are able to attack you."; + close; +} + +012-3.gat,451,61,0 script sign 186, { + mes "You are about to enter a dangerous area!"; + next; + mes "This area has a great distance to town. So the protection spell of the town is not active in that cave!"; + mes "That is why other players are able to attack you."; + close; +} diff --git a/world/map/npc/012-4/_import.txt b/world/map/npc/012-4/_import.txt new file mode 100644 index 00000000..7136ece3 --- /dev/null +++ b/world/map/npc/012-4/_import.txt @@ -0,0 +1,6 @@ +// Map 012-4: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 012-4.gat +npc: npc/012-4/_mobs.txt +npc: npc/012-4/_warps.txt +npc: npc/012-4/pvpflag.txt diff --git a/world/map/npc/012-4/_mobs.txt b/world/map/npc/012-4/_mobs.txt new file mode 100644 index 00000000..db88e63b --- /dev/null +++ b/world/map/npc/012-4/_mobs.txt @@ -0,0 +1,112 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + +012-4.gat,215,44,11,3 monster Moggun 1061,3,100000,30000,Mob012-4::On1061 +012-4.gat,221,29,11,3 monster Moggun 1061,3,100000,30000,Mob012-4::On1061 +012-4.gat,237,48,11,3 monster Moggun 1061,3,100000,30000,Mob012-4::On1061 +012-4.gat,196,38,7,8 monster Moggun 1061,3,100000,30000,Mob012-4::On1061 +012-4.gat,210,35,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,241,38,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,236,58,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,226,72,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,209,94,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,263,28,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,274,47,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,266,69,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,259,78,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,273,79,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,267,91,23,14 monster Moggun 1061,10,100000,30000,Mob012-4::On1061 +012-4.gat,209,144,69,53 monster Spider 1012,50,100000,30000,Mob012-4::On1012 +012-4.gat,254,162,18,46 monster Yellow Slime 1007,10,100000,30000,Mob012-4::On1007 +012-4.gat,166,174,17,21 monster Yellow Slime 1007,10,100000,30000,Mob012-4::On1007 +012-4.gat,147,175,17,21 monster Red Slime 1008,20,100000,30000,Mob012-4::On1008 +012-4.gat,131,86,17,21 monster Red Slime 1008,15,100000,30000,Mob012-4::On1008 +012-4.gat,140,130,17,21 monster Yellow Slime 1007,10,100000,30000,Mob012-4::On1007 +012-4.gat,42,128,16,9 monster Yellow Slime 1007,10,100000,30000,Mob012-4::On1007 +012-4.gat,64,61,25,29 monster Spider 1012,20,100000,30000,Mob012-4::On1012 +012-4.gat,69,89,17,21 monster Yellow Slime 1007,10,100000,30000,Mob012-4::On1007 +012-4.gat,33,44,17,33 monster Terranite 1062,3,100000,30000,Mob012-4::On1062 +012-4.gat,64,36,24,17 monster Skeleton 1043,3,100000,30000,Mob012-4::On1043 +012-4.gat,100,115,24,17 monster Skeleton 1043,3,100000,30000,Mob012-4::On1043 +012-4.gat,89,135,17,21 monster Yellow Slime 1007,10,100000,30000,Mob012-4::On1007 +012-4.gat,59,113,14,16 monster Lady Skeleton 1044,3,100000,30000,Mob012-4::On1044 +012-4.gat,41,175,15,13 monster Terranite 1062,3,100000,30000,Mob012-4::On1062 +012-4.gat,119,176,24,17 monster Lady Skeleton 1044,3,100000,30000,Mob012-4::On1044 +012-4.gat,286,180,24,17 monster Lady Skeleton 1044,3,100000,30000,Mob012-4::On1044 +012-4.gat,339,175,24,17 monster Skeleton 1043,3,100000,30000,Mob012-4::On1043 +012-4.gat,390,154,69,53 monster Spider 1012,40,100000,30000,Mob012-4::On1012 +012-4.gat,357,33,19,25 monster Terranite 1062,3,100000,30000,Mob012-4::On1062 +012-4.gat,481,109,19,23 monster Terranite 1062,3,100000,30000,Mob012-4::On1062 +012-4.gat,433,114,24,17 monster Skeleton 1043,3,100000,30000,Mob012-4::On1043 +012-4.gat,477,82,24,17 monster Lady Skeleton 1044,3,100000,30000,Mob012-4::On1044 +012-4.gat,353,105,18,46 monster Yellow Slime 1007,10,100000,30000,Mob012-4::On1007 +012-4.gat,341,137,17,21 monster Red Slime 1008,15,100000,30000,Mob012-4::On1008 +012-4.gat,389,81,32,14 monster Red Slime 1008,20,100000,30000,Mob012-4::On1008 +012-4.gat,409,34,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,412,72,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,395,62,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,313,182,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,408,121,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,456,99,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,132,152,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,152,97,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,126,64,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,81,180,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,61,159,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,270,157,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,269,182,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,321,140,17,21 monster Red Slime 1008,20,100000,30000,Mob012-4::On1008 +012-4.gat,450,110,7,8 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,421,48,10,31 monster Spider 1012,10,100000,30000,Mob012-4::On1012 +012-4.gat,379,40,13,22 monster Spider 1012,10,100000,30000,Mob012-4::On1012 +012-4.gat,124,49,9,24 monster Terranite 1062,1,100000,30000,Mob012-4::On1062 +012-4.gat,80,109,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,42,141,20,10 monster Skeleton 1043,3,100000,30000,Mob012-4::On1043 +012-4.gat,41,157,9,19 monster Spider 1012,20,100000,30000,Mob012-4::On1012 +012-4.gat,95,180,9,4 monster Bat 1017,5,100000,30000,Mob012-4::On1017 +012-4.gat,90,179,22,10 monster Spider 1012,20,100000,30000,Mob012-4::On1012 + + +012-4.gat,0,0,0 script Mob012-4 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1008: + set @mobID, 1008; + callfunc "MobPoints"; + break; + +On1012: + set @mobID, 1012; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1043: + set @mobID, 1043; + callfunc "MobPoints"; + break; + +On1044: + set @mobID, 1044; + callfunc "MobPoints"; + break; + +On1061: + set @mobID, 1061; + callfunc "MobPoints"; + break; + +On1062: + set @mobID, 1062; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/012-4/_warps.txt b/world/map/npc/012-4/_warps.txt new file mode 100644 index 00000000..8202452f --- /dev/null +++ b/world/map/npc/012-4/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +012-4.gat,194,58 warp CaveEntrance 0,-1,012-3.gat,448,62 +012-4.gat,363,26 warp CaveEntrance -1,-1,012-4.gat,474,186 +012-4.gat,474,187 warp CaveEntrance -1,-1,012-4.gat,363,26 diff --git a/world/map/npc/012-4/pvpflag.txt b/world/map/npc/012-4/pvpflag.txt new file mode 100644 index 00000000..b796cefa --- /dev/null +++ b/world/map/npc/012-4/pvpflag.txt @@ -0,0 +1 @@ +012-4.gat mapflag pvp diff --git a/world/map/npc/013-1/_import.txt b/world/map/npc/013-1/_import.txt new file mode 100644 index 00000000..62a26f85 --- /dev/null +++ b/world/map/npc/013-1/_import.txt @@ -0,0 +1,6 @@ +// Map 013-1: Woodland hills +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 013-1.gat +npc: npc/013-1/_mobs.txt +npc: npc/013-1/_warps.txt +npc: npc/013-1/sagatha.txt diff --git a/world/map/npc/013-1/_mobs.txt b/world/map/npc/013-1/_mobs.txt new file mode 100644 index 00000000..018cbda6 --- /dev/null +++ b/world/map/npc/013-1/_mobs.txt @@ -0,0 +1,78 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland hills mobs + +013-1.gat,0,0,0,0 monster PinkFlower 1014,13,0,100,Mob013-1::On1014 +013-1.gat,0,0,0,0 monster SpikyMushroom 1019,12,0,100,Mob013-1::On1019 +013-1.gat,0,0,0,0 monster Mouboo 1028,5,0,100,Mob013-1::On1028 +013-1.gat,0,0,0,0 monster Mauve 1029,1,270,180,Mob013-1::On1029 +013-1.gat,0,0,0,0 monster Mauve 1029,4,2700000,1800000,Mob013-1::On1029 +013-1.gat,0,0,0,0 monster Cobalt 1030,1,270,180,Mob013-1::On1030 +013-1.gat,0,0,0,0 monster Cobalt 1030,2,2700000,1800000,Mob013-1::On1030 +013-1.gat,0,0,0,0 monster Gamboge 1031,1,270,180,Mob013-1::On1031 +013-1.gat,0,0,0,0 monster Gamboge 1031,2,2700000,1800000,Mob013-1::On1031 +013-1.gat,0,0,0,0 monster Alizarin 1032,1,270,180,Mob013-1::On1032 +013-1.gat,0,0,0,0 monster Alizarin 1032,2,2700000,1800000,Mob013-1::On1032 +013-1.gat,0,0,0,0 monster SilkWorm 1035,4,60000,30000,Mob013-1::On1035 +013-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob013-1::On1037 +013-1.gat,0,0,0,0 monster Squirrel 1038,25,30,20,Mob013-1::On1038 +013-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob013-1::On1055 + + +013-1.gat,0,0,0 script Mob013-1 -1,{ +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1028: + set @mobID, 1028; + callfunc "MobPoints"; + break; + +On1029: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +On1030: + set @mobID, 1030; + callfunc "MobPoints"; + break; + +On1031: + set @mobID, 1031; + callfunc "MobPoints"; + break; + +On1032: + set @mobID, 1032; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/013-1/_warps.txt b/world/map/npc/013-1/_warps.txt new file mode 100644 index 00000000..f82b948f --- /dev/null +++ b/world/map/npc/013-1/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland hills warps + +013-1.gat,125,103 warp toCave -1,-1,013-3.gat,34,64 +013-1.gat,20,76 warp ToWoodlandHills -1,2,012-1.gat,148,60 +013-1.gat,45,21 warp ToWoodland 1,-1,017-1.gat,46,104 +013-1.gat,42,90 warp toHouse -1,-1,013-2.gat,63,41 diff --git a/world/map/npc/013-1/sagatha.txt b/world/map/npc/013-1/sagatha.txt new file mode 100644 index 00000000..84df4fe6 --- /dev/null +++ b/world/map/npc/013-1/sagatha.txt @@ -0,0 +1,448 @@ +// Sagatha the witch, expert for nature and astral magic +//---------------------------------------- + +function script QuestSagathaHappy { + set @unhappiness, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; + if (@unhappiness < @value) + goto L_zero; + + set @unhappiness, @unhappiness - @value; + goto L_write; + +L_zero: + set @unhappiness, 0; + +L_write: + set QUEST_MAGIC, (QUEST_MAGIC & ~NIBBLE_3_MASK) | (@unhappiness << NIBBLE_3_SHIFT); + return; +} + +//---------------------------------------- +function script QuestSagathaAnnoy { + set @unhappiness, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; + if ((@unhappiness + @value) > 15) + goto L_max; + + set @unhappiness, @unhappiness + @value; + goto L_write; + +L_max: + set @unhappiness, 15; + +L_write: + set QUEST_MAGIC, (QUEST_MAGIC & ~NIBBLE_3_MASK) | (@unhappiness << NIBBLE_3_SHIFT); + return; +} + +//---------------------------------------- +function script SagathaStatus { + if (getequipid(equip_head) != 1216 && getequipid(equip_head) != 752) + goto L_next; + set @value, 15; + callfunc "QuestSagathaAnnoy"; + +L_next: + set @mexp, MAGIC_EXPERIENCE & 65535; + set @has_magic, getskilllv(SKILL_MAGIC); + set @evil, 0; + set @good, 0; + set @unhappy, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; + set @mouboo, ((QUEST_MAGIC & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT) & 3; + + if (@mouboo == 3) + set @good, @good + 1; + if (@mouboo == 2) + set @evil, 1; + if (@mouboo == 1) + set @evil, 1; + + if (MAGIC_FLAGS & MFLAG_DID_CUTTREE) + set @evil, 1; + + set @druid, (((QUEST_MAGIC & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT) & 12) >> 2; + if (@druid == 3) + set @good, @good + 1; + return; +} + +//---------------------------------------- +013-1.gat,131,24,0 script Sagatha#_M 167,{ + callfunc "SagathaStatus"; + + set @Q_MASK, NIBBLE_4_MASK | NIBBLE_5_MASK; + set @Q_SHIFT, NIBBLE_4_SHIFT; + + set @STATUS_INITIAL, 0; + set @STATUS_STUDENT, 1; // N14 + set @STATUS_STUDENT_N10, 2; + set @STATUS_STUDENT_A10, 3; + set @STATUS_STUDENT_A11, 4; + set @STATUS_STUDENT_A12, 5; + set @STATUS_STUDENT_N11, 6; + set @STATUS_STUDENT_LEVEL_3, 7; + + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + + if (MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA) + mes "[Sagatha the Witch]"; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA)) + mes "[Witch]"; + + // if fluffyhat + if (getequipid(equip_head) == 752) + goto L_hat_attack; + + if (@evil) + goto L_evil; + + if (@unhappy > 10) + goto L_unhappy; + + if (MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA) + goto L_wb; + + mes "Before you stands a beautiful woman, dressed in dark purple robes and wearing a witch's hat."; + + if (Sex) + mes "She looks at you suspiciously."; + if (!Sex) + mes "She looks at you impassively."; + next; + + menu + "Who are you?", -, + "What's your name?", L_intro_name, + "Hello! My name is " + strcharinfo(0) + ".", L_intro_givename, + "Goodbye.", L_close; + + mes "[Witch]"; + mes "\"I am what you humans call a witch. I am a human who has chosen all living creatures as what you call family.\""; + next; + + menu + "No, I mean... what's your name?", L_intro_name, + "Hello! My name is " + strcharinfo(0) + ".", L_intro_givename, + "Uh.... goodbye.", L_close; + + close; + +L_hat_attack: + mes "The witch seems to be trembling with disgust as she stares at your headgear."; + mes "\"Do you think that is funny?\" she snarls."; + next; + if (MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA) + mes "[Sagatha the Witch]"; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA)) + mes "[Witch]"; + + mes "\"You have no idea what that poor creature felt!\""; + mes "She snaps her fingers."; + mes "\"Let me show you...\""; + misceffect sfx_magic_war, strcharinfo(0); + misceffect sfx_magic_war; + heal -300, 0; + close; + +L_intro_name: + mes "[Sagatha the Witch]"; + mes "\"They call me Sagatha.\""; + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_SAGATHA; + next; + goto L_main; + +L_intro_givename: + mes "[Witch]"; + mes "\"Ah.\""; + next; + + menu + "What's yours?", L_intro_name, + "Uhm... bye.", -; + close; + +L_evil: + mes "The witch's eyes flare up in anger as she notices you, and she turns away from you."; + mes "Whatever the reason, she doesn't seem to like you."; + close; + +L_unhappy: + mes "The witch glares at you in anger."; + mes "\"I wonder if you can still sleep after killing those innocent forest creatures!"; + mes "I am sure that they will come back to haunt you in your dreams!\""; + close; + +L_wb: + if (@good > 1) + mes "Sagatha nods as she notices you."; + if (@good == 1) + mes "Sagatha raises an eyebrow as you address her."; + if (@good == 0) + mes "Sagatha glances at you, suspicion evident in her eyes."; + next; + +L_main: + if (@Q_status) + menu + "Can you explain magic to me?", L_explain_magic, + "Can you teach me more magic?", L_teach, + "What do you know about...", L_Question, + "Goodbye.", L_close; + if (!@Q_status) + menu + "Can you explain magic to me?", L_explain_magic, + "Can you teach me magic?", L_teach_initial, + "What do you know about...", L_Question, + "Goodbye.", L_close; + close; + +L_teach_initial: + if (@good < 2) + goto L_teach_initial_nogood; + if (getskilllv(SKILL_MAGIC_NATURE) < 2) + goto L_teach_initial_nonature; + + mes "[Sagatha the Witch]"; + mes "She nods."; + mes "\"For now, yes. But you will have to prove that you really care about more than yourself.\""; + next; + + mes "[Sagatha the Witch]"; + mes "She snaps her fingers, and without warning you begin to acutely sense the magical energies around you, for a brief instant!"; + + set @Q_status, @STATUS_STUDENT; + callsub S_update_var; + set @SUP_xp, 5000; + set @SUP_lvl, 2; + callsub S_up_astral; + next; + + mes "[Sagatha the Witch]"; + mes "\"In the future, I will teach you nature and astral magic. For the other schools there are better teachers around.\""; + if (getskilllv(SKILL_MAGIC) < 2) + mes "\"Your skill in magic won't be great enough to use some of the spells yet, so keep practicing and visiting the mana seed until it is.\""; + next; + + goto L_main; + + +L_teach_initial_nogood: + mes "[Sagatha the Witch]"; + mes "\"I don't take strangers as students.\""; + next; + goto L_main; + +L_teach_initial_nonature: + mes "[Sagatha the Witch]"; + mes "\"I might, but you don't even understand the basics of nature magic.\""; + next; + goto L_main; + +L_explain_magic: + mes "[Sagatha the Witch]"; + mes "\"No.\""; + next; + goto L_main; + +L_teach: + if (@Q_status == @STATUS_STUDENT) + goto L_teach_N14; + if (@Q_status == @STATUS_STUDENT_N10) + goto L_teach_N10; + if (@Q_status == @STATUS_STUDENT_A10) + goto L_teach_A10; + if (@Q_status == @STATUS_STUDENT_A11) + goto L_teach_A11; + if (@Q_status == @STATUS_STUDENT_A12) + goto L_teach_A12; + if (@Q_status == @STATUS_STUDENT_N11) + goto L_teach_N11; + + mes "[Sagatha the Witch]"; + mes "\"Not yet. You have to ask the mana seed to give you more power.\""; + next; + goto L_main; + +L_practice: + mes "[1000 experience points]"; + set @Q_status, @Q_status + 1; + callsub S_update_var; + getexp 1000,0; + next; + mes "[Sagatha the Witch]"; + mes "\"Now go and practice.\""; + next; + goto L_main; + +L_teach_N14: + if (@mexp < 125) goto L_teach_noexp; + mes "[Sagatha the Witch]"; + mes "\"Some forest creatures sometimes overgrow their fur or hide. That makes them uncomfortable.\""; + next; + mes "[Sagatha the Witch]"; + mes "\"You can help them with shearing magic. Press your hands together and say '" + getspellinvocation("shear") + "'. Then touch them with your hands, and brush off any excess.\""; + next; + mes "[Sagatha the Witch]"; + mes "\"The spell is strong, so you only need to do this once. Be careful not to cut them. Some things they shed are useful. Often they will leave them to you as a thank-you.\""; + goto L_practice; + +L_teach_N10: + if (@mexp < 150) goto L_teach_noexp; + mes "[Sagatha the Witch]"; + mes "\"Next, a nature spell. Take a cocoon shell. Hold it in your hand. Feel its lightness.\""; + next; + mes "[Sagatha the Witch]"; + mes "\"Now whisper '" + getspellinvocation("flying-backpack") + "', and if your backpack was pressing on you you should no longer feel it now.\""; + goto L_practice; + +L_teach_A10: + if (@mexp < 180) goto L_teach_noexp; + mes "[Sagatha the Witch]"; + mes "\"To protect against others' magic, take a small mushroom from a shady place. Mushrooms draw things out of the earth. Rub your mushroom into pieces between your hands.\""; + next; + mes "[Sagatha the Witch]"; + mes "\"Then say '" + getspellinvocation("barrier") + "' and let the mushroom's power take over.\""; + goto L_practice; + +L_teach_A11: + if (@mexp < 200) goto L_teach_noexp; + mes "[Sagatha the Witch]"; + mes "\"If you must fight, call allies. You can call spiky mushrooms out of the ground with a mushroom spike and a root. Hold up the spike and call out to them: '" + getspellinvocation("summon-spiky-mushrooms") + "'. Then press the root to the ground.\""; + next; + mes "[Sagatha the Witch]"; + mes "\"Spiky mushrooms often grow too many spikes, so you can shear the spikes off of some.\""; + next; + goto L_practice; + +L_teach_A12: + if (@mexp < 220) goto L_teach_noexp; + mes "[Sagatha the Witch]"; + mes "\"You can call fluffies, too. But for them you must call out '" + getspellinvocation("summon-fluffies") + "' instead, with white fluffy fur instead of a spike. And don't forget the root.\""; + goto L_practice; + +L_teach_N11: + if (@mexp < 250) goto L_teach_noexp; + mes "[Sagatha the Witch]"; + mes "\"You can harden your skin with a hard spike. Hold it in your hands and speak '" + getspellinvocation("protect") + "', then draw its hardness into your skin.\""; + next; + mes "[Sagatha the Witch]"; + mes "\"Or call it into someone else's skin, by saying that someone's name right after the '" + getspellinvocation("protect") + "'.\""; + goto L_practice; + +L_teach_noexp: + mes "[Sagatha the Witch]"; + mes "\"You must practice more first.\""; + next; + goto L_main; + +L_Question: + callfunc "MagicTalkOptionsSetup"; + set @ignore, @QQ_SAGATHA; + callfunc "MagicTalkMenu"; + + if (@c == 0) goto L_main; + if (@c == @QQ_ELANORE) goto L_Q_elanore; + if (@c == @QQ_MANASEED) goto L_Q_manaseed; + if (@c == @QQ_MANAPOTION) goto L_Q_manapotion; + if (@c == @QQ_WYARA) goto L_Q_wyara; + if (@c == @QQ_AULDSBEL) goto L_Q_auldsbel; + if (@c == @QQ_IMP) goto L_Q_imp; + if (@c == @QQ_OLDWIZ) goto L_Q_old_wizard; + if (@c == @QQ_ASTRALSOUL)goto L_Q_astralsoul; + + mes "[Sagatha the Witch]"; + mes "\"That doesn't concern you.\""; + next; + goto L_main; + +L_Q_astralsoul: + mes "[Sagatha the Witch]"; + mes "\"Yes, there is a way to improve your magic.\""; + next; + mes "\"Did you ever hear about focusing?\""; + next; + mes "\"It is a mental ability, which improves you at a certain focused skill.\""; + next; + mes "\"Yes, I am focused on nature magic, but I cannot teach focusing. That is another realm of magic. Just a few people can really focus your brain to a specific art of magic.\""; + next; + mes "\"Maybe you should ask some other people experienced in magic.\""; + next; + goto L_main; + +L_Q_old_wizard: + mes "[Sagatha the Witch]"; + mes "\"A kind and wise wizard.\""; + next; + goto L_main; + +L_Q_imp: + mes "[Sagatha the Witch]"; + mes "\"He is an evil and cruel one. He lies and cheats and will try to take advantage of you. Stay away from him.\""; + next; + goto L_main; + +L_Q_elanore: + mes "[Sagatha the Witch]"; + mes "\"Elanore is the Tulimshar town healer.\""; + next; + goto L_main; + +L_Q_manaseed: + mes "[Sagatha the Witch]"; + if (!@has_magic && (MAGIC_FLAGS & MFLAG_TOUCHED_MANASEED)) + goto L_Q_manaseed_unabsorbed; + if (@has_magic) + goto L_Q_manaseed_m; + mes "\"There is a mana seed around here, but I don't see how this concerns you.\""; + next; + goto L_main; + +L_Q_manaseed_unabsorbed: + mes "\"If the mana seed didn't pass its magic to you, you clearly aren't attuned to magic.\""; + next; + goto L_main; + +L_Q_manaseed_m: + mes "\"You were lucky that the mana seed gave you its magic. I hope that you will use this power for something good now.\""; + next; + goto L_main; + +L_Q_manapotion: + mes "[Sagatha the Witch]"; + mes "\"I won't make one without a cauldron, that would be wasteful. And I'm not going to start carrying a cauldron around.\""; + next; + goto L_main; + +L_Q_wyara: + mes "[Sagatha the Witch]"; + mes "\"Wyara decided to live with humans, in Hurnscald. She tries to make the world a better place in her own way. Please be kind to her, she is a very good person.\""; + next; + goto L_main; + +L_Q_auldsbel: + mes "[Sagatha the Witch]"; + mes "She frowns."; + mes "\"He's a transmutation wizard, member of the northern council. Reasonably competent wizard, too.\""; + next; + goto L_main; + +L_close: + close; + +S_up_astral: + set @SUP_id, SKILL_MAGIC_ASTRAL; + set @SUP_name$, "Astral Magic"; + callfunc "SkillUp"; + return; + +S_up_nature: + set @SUP_id, SKILL_MAGIC_NATURE; + set @SUP_name$, "Nature Magic"; + callfunc "SkillUp"; + return; + +S_update_var: + set QUEST_MAGIC, + (QUEST_MAGIC & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/013-2/_import.txt b/world/map/npc/013-2/_import.txt new file mode 100644 index 00000000..1ed37515 --- /dev/null +++ b/world/map/npc/013-2/_import.txt @@ -0,0 +1,8 @@ +// Map 013-2: Magic house +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 013-2.gat +npc: npc/013-2/_mobs.txt +npc: npc/013-2/_warps.txt +npc: npc/013-2/apprentice.txt +npc: npc/013-2/notes.txt +npc: npc/013-2/wizard.txt diff --git a/world/map/npc/013-2/_mobs.txt b/world/map/npc/013-2/_mobs.txt new file mode 100644 index 00000000..8bc43cdb --- /dev/null +++ b/world/map/npc/013-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Magic house mobs + + + +013-2.gat,0,0,0 script Mob013-2 -1,{ + end; +} diff --git a/world/map/npc/013-2/_warps.txt b/world/map/npc/013-2/_warps.txt new file mode 100644 index 00000000..b713ac0d --- /dev/null +++ b/world/map/npc/013-2/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Magic house warps + +013-2.gat,63,43 warp toOutside -1,-1,013-1.gat,42,91 +013-2.gat,67,36 warp toRoom -1,-1,013-2.gat,21,41 +013-2.gat,21,42 warp toRoom -1,-1,013-2.gat,67,37 diff --git a/world/map/npc/013-2/apprentice.txt b/world/map/npc/013-2/apprentice.txt new file mode 100644 index 00000000..830b5171 --- /dev/null +++ b/world/map/npc/013-2/apprentice.txt @@ -0,0 +1,93 @@ +013-2.gat,25,37,0 script Fabius 115,{ + mes "[Fabius]"; + mes "\"Hey! Wanna have a drink or something? High quality, low cost. A poor fella like me needs a bit of extra cash, ye know.\""; + next; + menu + "Yes please!", L_Yes, + "No thanks.", L_No, + "No way, I thought it was for free!", L_Not_Free; + +L_Yes: + mes "[Fabius]"; + mes "\"So what would ya like, then?\""; + next; + menu + "A beer", L_Beer, + "A milk", L_Milk, + "Nevermind", -; + +L_No: + mes "[Fabius]"; + mes "\"Suit yourself.\""; + next; + goto L_Finish; + +L_Not_Free: + mes "[Fabius]"; + mes "\"Oh, you stupid git! ... But hey, let me tell ya something...\""; + next; + mes "[Fabius]"; + mes "\"There's notes flying around in the room up there. Did ya try reading some?\""; + close; + +L_Beer: + mes "[Fabius]"; + mes "\"That'll be 175 GP.\""; + next; + menu + "Here you are", L_Beer_yes, + "No thanks", L_Beer_no; + +L_Beer_yes: + if (zeny < 175) goto L_Low_money; + getinventorylist; + if (@inventorylist_count == 100 && countitem("Beer") == 0) goto L_TooMany; + + getitem "Beer", 1; + set zeny, zeny - 175; + goto L_Finish; + +L_Beer_no: + mes "[Fabius]"; + mes "\"No beer, no civilization!\""; + next; + goto L_Finish; + +L_Milk: + mes "[Fabius]"; + mes "\"That'll be 300 GP.\""; + next; + menu + "Here you are", L_Milk_yes, + "No thanks", L_Milk_no; + +L_Milk_yes: + if (zeny < 300) goto L_Low_money; + getinventorylist; + if (@inventorylist_count == 100 && countitem("Milk") == 0) goto L_TooMany; + getitem "Milk", 1; + set zeny, zeny - 300; + goto L_Finish; + +L_Milk_no: + mes "[Fabius]"; + mes "\"Oh alright. Milk is a deadly poison anyway...\""; + next; + goto L_Finish; + +L_Low_money: + mes "[Fabius]"; + mes "\"Aw, you don't have enough gold on you!\""; + next; + goto L_Finish; + +L_Finish: + mes "[Fabius]"; + mes "\"By the way, have you seen those flying notes and the mirror in the room next door? They're WAY COOL! Try reading some of the notes!\""; + close; + +L_TooMany: + mes "[Fabius]"; + mes "\"You don't have room for it.\""; + close; +} diff --git a/world/map/npc/013-2/notes.txt b/world/map/npc/013-2/notes.txt new file mode 100644 index 00000000..f45b2554 --- /dev/null +++ b/world/map/npc/013-2/notes.txt @@ -0,0 +1,113 @@ +// + +013-2.gat,23,32,0 script Motto 127,{ + mes "Mid pleasures and palaces though we may roam,"; + mes "Be it ever so humble, there's no place like home."; + close; +} + +013-2.gat,30,32,0 script Note 127,{ + mes "Please do not open."; + close; +} + +013-2.gat,38,20,0 script Saying 127,{ + mes "The early bird catcheth the worm."; + close; +} + +013-2.gat,27,21,0 script Mirror 127,{ + mes "You say: \"Mirror mirror on the wall, who has the nicest haircut of them all?\""; + next; + mes "\"Oh fair adventurer, your hair indeed looks nice. But wouldn't it look much better, after I have rolled my dice?\""; + next; + mes "Your looks suddenly change..."; + next; + set @style,rand(6); + set @color,rand(9); + setlook 1,@style+1; + setlook 6,@color; + close; +} + +// Warp to north-eastern woods +013-2.gat,25,23,0 script Spell 127,{ + mes "You read: \"I see trees of green, red roses too. I see them bloom for me and you. And I think to myself: \'What a wonderful world\'\""; + next; + mes "You think: \"Huh?\""; + next; + mes "The spell fulfills its inevitable purpose..."; + next; + warp "013-1.gat",128,28; + close; +} + +// Warp to Indian in south-eastern desert +013-2.gat,27,24,0 script Spell 127,{ + mes "You read: \"A red-coloured fellow smoking his pipe - down in the desert - that's what I like!\""; + next; + mes "You feel the floor disappear below your feet..."; + next; + warp "006-1.gat",33,93; + if (QUEST_MIRIAM_start != 0) goto L_cheat; + close; + +// If you try to use the notes to warp to pachua the quest will fail. + +L_cheat: + set QUEST_MIRIAM_cheat, 1; + set QUEST_MIRIAM_run, gettimetick(1) - QUEST_MIRIAM_start; + set QUEST_MIRIAM_start, 0; + message strcharinfo(0), "You were supposed to actually run to this place. You are not sure if this is going to work for Miriam..."; + close; +} + +// Warp to snake pit +013-2.gat,25,27,0 script Spell 127,{ + mes "You read: \"Slithering and scales make a poisonous bite - Where you go fills me with fright!\""; + next; + mes "You feel yourself getting lighter..."; + next; + warp "005-3.gat",86,33; + close; +} + +// Warp to Dimond +013-2.gat,27,27,0 script Spell 127,{ + mes "You read: \"People and cosiness, lively and fun - that's where I've gone!\""; + next; + mes "The world around you slowly dissolves..."; + next; + warp "010-2.gat",34,42; + close; +} + +// Warp to mines level 2 +013-2.gat,26,28,0 script Spell 127,{ + mes "You read: \"Darkness and legs, eight of them each - I'd rather not go there, but now it's too late...\""; + next; + mes "For a moment everything turns black..."; + next; + warp "013-3.gat",127,70; + close; +} + +// Death +013-2.gat,21,29,0 script Spell 127,{ + mes "You read: \"Heart stops pumping, breath begone - life is stopping, death has come!\""; + next; + mes "You're losing control of your body... everything turns black... while slipping to the floor, you hear a faraway scream... suddenly, you see THE LIGHT!"; + next; + heal -Hp, 0; + close; +} + +// Naked +013-2.gat,28,29,0 script Spell 127,{ + mes "You read: \"Cotton, steel, leather and wool - have I ever seen a greater fool?\""; + next; + mes "You suddenly feel naked; you ARE naked!"; + next; + nude; + close; +} diff --git a/world/map/npc/013-2/wizard.txt b/world/map/npc/013-2/wizard.txt new file mode 100644 index 00000000..927ddfc4 --- /dev/null +++ b/world/map/npc/013-2/wizard.txt @@ -0,0 +1,130 @@ +013-2.gat,66,39,0 script Old Wizard#_W 116,{ + set @has_magic, getskilllv(SKILL_MAGIC); + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_OLD_WIZARD; + + mes "[Old Wizard]"; + mes "\"Welcome, dear wanderer! Come into my humble home. Take a rest, eat and drink.\""; + next; + + menu + "Thanks, that's very kind of you!",thanks, + "Can you teach me magic?", L_teach_rude, + "Oh, shut up!",shutup; + close; + +L_teach_rude: + mes "[Old Wizard]"; + mes "\"I certainly could, but I already have an apprentice.\""; + close; + +shutup: + mes "[Old Wizard]"; + mes "\"That attitude isn't going to get you very far, my dear.\""; + close; +thanks: + mes "[Old Wizard]"; + mes "\"Behind this door, my apprentice will serve you.\""; + next; + if (@has_magic) + menu + "Alright.",ok, + "I am studying magic, can you help?", L_new_student, + "Your apprentice? ... No thanks.",nothx; + if (!@has_magic) + menu + "Alright.",ok, + "Your apprentice? ... No thanks.",nothx; +nothx: + mes "[Old Wizard]"; + mes "\"Goodbye, then!\""; + close; + +L_new_student: + mes "[Old Wizard]"; + mes "\"Studying is always an excellent use of one's mind! I fear that I can't offer too much assistance to you, however. But if you are interested, I could perhaps teach you a simple spell?\""; + next; + + // check if the player has the knowledge of any skill + if (!(getskilllv(SKILL_POOL))) + menu + "That would be very kind of you!", L_teachspell, + "No, but thank you!", nothx; + + if (getskilllv(SKILL_POOL)) + menu + "That would be very kind of you!", L_teachspell, + "Actually I am looking for someone teaching me some more magic skills.", L_astralsoul, + "No, but thank you!", nothx; + +L_teachspell: + mes "[Old Wizard]"; + mes "\"This one may not seem too powerful, but it can be quite handy; it's the 'hide' spell. It will shield you from some forms of detection magic.\""; + next; + + mes "[Old Wizard]"; + mes "\"Put a piece of cotton cloth on your head, and speak out '" + getspellinvocation("hide") + "', loudly and clearly. The protection lasts quite long, but you may have to renew it on occasion.\""; + next; + + mes "[Old Wizard]"; + mes "\"You can also cast it on others, of course. Just speak their name after you prononuce the invocation.\""; + next; + + mes "[Old Wizard]"; + mes "\"You may find it useful for getting a little peace and quiet at times, but it can also get in the way of friends trying to find you, so use it with care.\""; + next; + + if (getskilllv(SKILL_MAGIC_ASTRAL) >= 2) + close; + + mes "[Old Wizard]"; + mes "\"I'm not sure if you are experienced enough to cast it yet, though. You may need to first learn astral magic.\""; + close; + +L_astralsoul: + mes "[Old Wizard]"; + mes "\"Oh yes, there are lots of ways to improve your magic. Skills -some people say mental focus for that- are another way to improve your magic. Of course learning more and more spells is also a need for good mages.\""; + next; + mes "\"I can teach you the ability to focus on magical stuff.\""; + next; + mes "\"To do so, I am in need of a pearl and about 100 acorns.\""; + + menu "Here we go.", -, + "Ok be right back. I'll get them", nothx; + + if (countitem("Pearl") < 1 || countitem("Acorn") < 100) goto L_NotEnough; + delitem "Pearl", 1; + delitem "Acorn", 100; + + mes "[Old Wizard]"; + mes "\"Okay, listen:\""; + next; + mes "\"Some parts of your brain is still unused. These parts will now get the ability to get focused to magic.\""; + next; + mes "\"To do so, think of a magic spell!\""; + next; + mes "The old wizard mumbles some invocations"; + next; + set @SUP_lvl, 1; + set @SUP_id, SKILL_ASTRAL_SOUL; + set @SUP_name$, "Astral Soul"; + set @SUP_xp, 2500; + callfunc "SkillUp"; + mes "\"Now go and try to find someone who can actually activate that focus.\""; + next; + mes "\"You have the powers to focus on magic, but you need to get magic focused now.\""; + close; + +L_NotEnough: + mes "[Old Wizard]"; + mes "\"Please learn to count.\""; + next; + mes "\"When you are done with that, come back again.\""; + close; +ok: + mes "[Old Wizard]"; + mes "\"Beware the flying notes though, some of them are really dangerous. I haven't been able to persuade them to get back into their book. And avoid the mirror, it's been acting strange lately.\""; + next; + mes "\"Oh, and please don't take my apprentice too seriously. He still has a lot to learn.\""; + close; +} + diff --git a/world/map/npc/013-3/_import.txt b/world/map/npc/013-3/_import.txt new file mode 100644 index 00000000..8be025b3 --- /dev/null +++ b/world/map/npc/013-3/_import.txt @@ -0,0 +1,9 @@ +// Map 013-3: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 013-3.gat +npc: npc/013-3/_mobs.txt +npc: npc/013-3/_warps.txt +npc: npc/013-3/barrier.txt +npc: npc/013-3/mask_chest.txt +npc: npc/013-3/misc.txt +npc: npc/013-3/sword_chest.txt diff --git a/world/map/npc/013-3/_mobs.txt b/world/map/npc/013-3/_mobs.txt new file mode 100644 index 00000000..bb36f0c7 --- /dev/null +++ b/world/map/npc/013-3/_mobs.txt @@ -0,0 +1,102 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + +013-3.gat,28,89,16,52 monster Cave Snake 1021,10,120000,60000,Mob013-3::On1021 +013-3.gat,61,22,2,2 monster Fire Skull 1023,1,120000,60000,Mob013-3::On1023 +013-3.gat,81,22,2,2 monster Poison Skull 1024,1,120000,60000,Mob013-3::On1024 +013-3.gat,109,31,6,22 monster Black Scorpion 1009,20,50000,25000,Mob013-3::On1009 +013-3.gat,119,84,27,38 monster Spider 1012,20,120000,40000,Mob013-3::On1012 +013-3.gat,176,23,5,6 monster Spider 1012,10,100000,40000,Mob013-3::On1012 +013-3.gat,82,75,2,2 monster Fire skull 1023,1,180000,60000,Mob013-3::On1023 +013-3.gat,142,37,2,2 monster Poison skull 1024,1,180000,60000,Mob013-3::On1024 +013-3.gat,79,134,21,16 monster Black Scorpion 1009,5,80000,40000,Mob013-3::On1009 +013-3.gat,71,169,38,17 monster Black Scorpion 1009,5,80000,40000,Mob013-3::On1009 +013-3.gat,64,85,9,21 monster Black scorpion 1009,10,80000,40000,Mob013-3::On1009 +013-3.gat,81,92,3,20 monster Black scorpion 1009,10,80000,40000,Mob013-3::On1009 +013-3.gat,162,84,33,37 monster Snake 1010,30,120000,50000,Mob013-3::On1010 +013-3.gat,162,85,33,37 monster Spider 1012,30,120000,50000,Mob013-3::On1012 +013-3.gat,172,77,18,25 monster Black scorpion 1009,15,120000,50000,Mob013-3::On1009 +013-3.gat,145,36,20,15 monster Red slime 1008,25,80000,40000,Mob013-3::On1008 +013-3.gat,167,37,23,11 monster Snake 1010,20,120000,40000,Mob013-3::On1010 +013-3.gat,165,25,16,11 monster Black scorpion 1009,15,120000,40000,Mob013-3::On1009 +013-3.gat,71,39,2,3 monster Snake 1010,2,40000,20000,Mob013-3::On1010 +013-3.gat,159,102,3,5 monster Yellow slime 1007,2,80000,40000,Mob013-3::On1007 +013-3.gat,67,22,2,2 monster Maggot 1002,2,40000,20000,Mob013-3::On1002 +013-3.gat,75,22,2,2 monster Maggot 1002,2,40000,20000,Mob013-3::On1002 +013-3.gat,76,39,7,4 monster Black scorpion 1009,8,40000,20000,Mob013-3::On1009 +013-3.gat,65,39,7,4 monster Red slime 1008,8,40000,20000,Mob013-3::On1008 +013-3.gat,62,33,2,1 monster Poison Skull 1024,1,120000,60000,Mob013-3::On1024 +013-3.gat,80,33,2,1 monster Fire Skull 1023,1,120000,60000,Mob013-3::On1023 +013-3.gat,75,46,2,1 monster Poison Skull 1024,1,120000,60000,Mob013-3::On1024 +013-3.gat,67,46,2,1 monster Fire Skull 1023,1,120000,60000,Mob013-3::On1023 +013-3.gat,149,145,7,26 monster Silkworm 2037,10,20000,5000,Mob013-3::On2037 +013-3.gat,117,157,6,14 monster CaveSnake 2023,3,30000,10000,Mob013-3::On2023 +013-3.gat,150,129,17,4 monster CaveSnake 2023,3,30000,10000,Mob013-3::On2023 +013-3.gat,162,138,5,5 monster CaveSnake 2023,3,30000,10000,Mob013-3::On2023 +013-3.gat,138,174,15,8 monster CaveSnake 2023,3,30000,10000,Mob013-3::On2023 +013-3.gat,146,151,62,54 monster Bat 2019,20,15000,5000,Mob013-3::On2019 + + +013-3.gat,0,0,0 script Mob013-3 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1008: + set @mobID, 1008; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1010: + set @mobID, 1010; + callfunc "MobPoints"; + break; + +On1012: + set @mobID, 1012; + callfunc "MobPoints"; + break; + +On1021: + set @mobID, 1021; + callfunc "MobPoints"; + break; + +On1023: + set @mobID, 1023; + callfunc "MobPoints"; + break; + +On1024: + set @mobID, 1024; + callfunc "MobPoints"; + break; + +On2019: + set @mobID, 2019; + callfunc "MobPoints"; + break; + +On2023: + set @mobID, 2023; + callfunc "MobPoints"; + break; + +On2037: + set @mobID, 2037; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/013-3/_warps.txt b/world/map/npc/013-3/_warps.txt new file mode 100644 index 00000000..373be260 --- /dev/null +++ b/world/map/npc/013-3/_warps.txt @@ -0,0 +1,39 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +013-3.gat,28,20 warp hiddenExit -1,-1,013-1.gat,0,0 +013-3.gat,34,63 warp toOutside -1,-1,013-1.gat,125,102 +013-3.gat,36,96 warp toCave -1,-1,013-3.gat,79,126 +013-3.gat,79,125 warp toCave -1,-1,013-3.gat,35,96 +013-3.gat,22,115 warp toOutside -1,-1,018-1.gat,115,41 +013-3.gat,139,45 warp toOutside -1,-1,018-1.gat,127,37 +013-3.gat,61,179 warp toOutside -1,-1,018-1.gat,134,46 +013-3.gat,69,143 warp toCave -1,-1,018-3.gat,50,89 +013-3.gat,81,103 warp toOutside -1,-1,018-1.gat,147,41 +013-3.gat,177,91 warp toOutside -1,-1,018-1.gat,177,21 +013-3.gat,178,44 warp toCave -1,-1,018-3.gat,97,70 +013-3.gat,169,45 warp toCave -1,-1,018-3.gat,27,55 +013-3.gat,152,28 warp toCave -1,-1,018-3.gat,134,60 +013-3.gat,123,104 warp toCave -1,-1,018-3.gat,172,22 +013-3.gat,147,104 warp toCave -1,-1,018-3.gat,177,22 +013-3.gat,158,66 warp toCave -1,-1,018-3.gat,27,90 +013-3.gat,75,51 warp toCave -1,-1,013-3.gat,109,65 +013-3.gat,109,64 warp toCave -1,-1,013-3.gat,75,50 +013-3.gat,67,51 warp toCave -1,-1,018-3.gat,90,51 +013-3.gat,71,20 warp toCave -1,-1,013-3.gat,28,39 +013-3.gat,28,39 warp toCave -1,-1,013-3.gat,71,21 +013-3.gat,71,42 warp toCave -1,-1,013-3.gat,109,21 +013-3.gat,109,20 warp toCave -1,-1,013-3.gat,71,41 +013-3.gat,111,42 warp toCave -1,-1,018-3.gat,71,123 +013-3.gat,62,100 warp toCave -1,-1,018-3.gat,174,86 +013-3.gat,68,97 warp toCave -1,-1,018-3.gat,102,70 +013-3.gat,160,102 warp toCave -1,-1,009-3.gat,117,20 +013-3.gat,141,146 warp toLowerEntrance -1,-1,017-1.gat,76,32 +013-3.gat,173,127 warp toOutsideUpper -1,-1,017-1.gat,98,21 +013-3.gat,162,170 warp toOutsideClovers -1,-1,017-1.gat,97,30 +013-3.gat,153,126 warp toCave02 -1,-1,013-3.gat,119,147 +013-3.gat,119,149 warp toCave01 -1,-1,013-3.gat,153,127 +013-3.gat,159,152 warp toCave03 -1,-1,013-3.gat,148,161 +013-3.gat,148,160 warp toCave04 -1,-1,013-3.gat,159,151 +013-3.gat,122,170 warp toCave_05 0,-1,013-3.gat,171,175 +013-3.gat,172,177 warp toCave_06 1,-1,013-3.gat,121,168 diff --git a/world/map/npc/013-3/barrier.txt b/world/map/npc/013-3/barrier.txt new file mode 100644 index 00000000..0ec3f86a --- /dev/null +++ b/world/map/npc/013-3/barrier.txt @@ -0,0 +1,19 @@ +// + +//013-3.gat,71,21,0 script #DemonMineBarrier1#_M 0,1,1,{ +013-3.gat,71,21,0 script #DemonMineBarrier1#_M 127,1,1,{ + if (QUEST_demon_mines >= 2) close; + + if (QUEST_demon_mines == 1 && countitem(1198) >= 1) goto L_Has_Jack_O_Soul; + + mes "A barrier around the opening pushes you back as you approach."; + + warp "013-3.gat", 71, 25; + close; + +L_Has_Jack_O_Soul: + mes "The barrier around the opening allows you passage."; + set QUEST_demon_mines, 2; + delitem "JackOSoul", 1; + close; +} diff --git a/world/map/npc/013-3/mask_chest.txt b/world/map/npc/013-3/mask_chest.txt new file mode 100644 index 00000000..fb72f54c --- /dev/null +++ b/world/map/npc/013-3/mask_chest.txt @@ -0,0 +1,176 @@ +// + +013-3.gat,28,27,0 script Chest#DemonMask 111,{ + if (QUEST_demon_mines < 2) goto L_This_shouldn_t_happen; + if (QUEST_demon_mines == 3) goto L_Finished; + + if (countitem("MaggotSlime") == 0) goto L_No_maggot_slime; + if (countitem("SmallMushroom") == 0) goto L_No_mushroom; + if (countitem("PinkPetal") == 0) goto L_No_pink_petal; + + if (countitem("Pearl") == 0) goto L_No_pearl; + if (countitem("HardSpike") == 0) goto L_No_hard_spike; + if (countitem("RawLog") == 0) goto L_No_raw_log; + + if (countitem("PinkAntenna") == 0) goto L_No_pink_antenna; + if (countitem("SnakeTongue") == 0 || countitem("MountainSnakeTongue") == 0 || countitem("GrassSnakeTongue") == 0 || countitem("CaveSnakeTongue") == 0) goto L_No_tongues; + if (countitem("TreasureKey") == 0) goto L_No_treasure_key; + + if (countitem("PileOfAsh") == 0) goto L_No_ash; + if (countitem("MauveHerb") == 0 || countitem("CobaltHerb") == 0 || countitem("GambogeHerb") == 0 || countitem("AlizarinHerb") == 0) goto L_No_herbs; + if (countitem("BugLeg") == 0) goto L_No_bug_leg; + + if (countitem("CaveSnakeLamp") == 0) goto L_No_lamp; + if (countitem("IronOre") == 0) goto L_No_iron_ore; + if (countitem("ScorpionStinger") == 0 || countitem("RedScorpionStinger") == 0 || countitem("BlackScorpionStinger") == 0) goto L_No_stingers; + + if (countitem("SilkCocoon") == 0) goto L_No_silk; + if (countitem("WhiteFur") == 0) goto L_No_fur; + if (countitem("DarkCrystal") == 0) goto L_No_dark_crystal; + + if (countitem("BottleOfWater") == 0) goto L_No_water; + + getinventorylist; + if (@inventorylist_count == 100 && countitem("MaggotSlime") > 1 && countitem("BugLeg") > 1 && countitem("SilkCocoon") > 1 + && countitem("SmallMushroom") > 1 && countitem("PinkPetal") > 1 && countitem("Pearl") > 1 + && countitem("HardSpike") > 1 && countitem("RawLog") > 1 && countitem("PinkAntenna") > 1 + && countitem("DarkCrystal") > 1 && countitem("IronOre") > 1 && countitem("ScorpionStinger") > 1 + && countitem("RedScorpionStinger") > 1 && countitem("BlackScorpionStinger") > 1 && countitem("SnakeTongue") > 1 + && countitem("MountainSnakeTongue") > 1 && countitem("GrassSnakeTongue") > 1 && countitem("CaveSnakeTongue") > 1 + && countitem("MauveHerb") > 1 && countitem("CobaltHerb") > 1 && countitem("GambogeHerb") > 1 + && countitem("AlizarinHerb") > 1 && countitem("TreasureKey") > 1 && countitem("CaveSnakeLamp") > 1 + && countitem("PileOfAsh") > 1 && countitem("WhiteFur") > 1 && countitem("BottleOfWater") > 1) goto L_TooMany; + + delitem "MaggotSlime", 1; + delitem "BugLeg", 1; + delitem "SilkCocoon", 1; + + delitem "SmallMushroom", 1; + delitem "PinkPetal", 1; + delitem "Pearl", 1; + + delitem "HardSpike", 1; + delitem "RawLog", 1; + delitem "PinkAntenna", 1; + + delitem "DarkCrystal", 1; + delitem "IronOre", 1; + delitem "ScorpionStinger", 1; + + delitem "RedScorpionStinger", 1; + delitem "BlackScorpionStinger", 1; + delitem "SnakeTongue", 1; + + delitem "MountainSnakeTongue", 1; + delitem "GrassSnakeTongue", 1; + delitem "CaveSnakeTongue", 1; + + delitem "MauveHerb", 1; + delitem "CobaltHerb", 1; + delitem "GambogeHerb", 1; + + delitem "AlizarinHerb", 1; + delitem "TreasureKey", 1; + delitem "CaveSnakeLamp", 1; + + delitem "WhiteFur", 1; + delitem "PileOfAsh", 1; + delitem "BottleOfWater", 1; + + mes "You managed to perform the ritual and open the chest."; + getitem "DemonMask", 1; + mes "You found a demon mask inside."; + set QUEST_demon_mines, 3; + close; + +L_No_maggot_slime: + mes "You do not have any maggot slime."; + close; + +L_No_mushroom: + mes "You do not have a mushroom, neither big, nor small."; + close; + +L_No_pink_petal: + mes "You can't seem to find that pink petal you had."; + close; + +L_No_pearl: + mes "You do not have a pearl, let alone one from the sea."; + close; + +L_No_hard_spike: + mes "You weren't able to find a hard spike in the stuff you brought."; + close; + +L_No_raw_log: + mes "You don't have any wood."; + close; + +L_No_pink_antenna: + mes "You aren't carrying any antenna."; + close; + +L_No_tongues: + mes "You don't have four different snake tongues."; + close; + +L_No_treasure_key: + mes "No treasure chest key, no opening ritual."; + close; + +L_No_ash: + mes "You still need a pile of ash."; + close; + +L_No_herbs: + mes "Four different herbs are needed to get this thing open."; + close; + +L_No_bug_leg: + mes "You do not have part of a bug on you. That is rather odd considering what you went through to get here."; + close; + +L_No_lamp: + mes "You do not have a lamp. Yet, somehow, you were able to get this far into this dark cave."; + close; + +L_No_iron_ore: + mes "\"Rock and metal, as one.\" You don't seem to have anything that fits the bill."; + close; + +L_No_stingers: + mes "Three scorpion deaths are still missing."; + close; + +L_No_silk: + mes "You could not find the womb for a butterfly among your stuff."; + close; + +L_No_fur: + mes "You wonder how you can carry the \"gentle caress of a creature without blemish.\" But you need it to get this thing open."; + close; + +L_No_dark_crystal: + mes "A piece of darkness is missing."; + close; + +L_No_water: + mes "Just one bottle of water and you can start the ritual."; + close; + +L_This_shouldn_t_happen: + warp "013-3.gat", 71, 25; + // You need to go through the barrier to get to the chest, so this shouldn't happen. So just warp them like the barrier does. + close; + +L_Finished: + mes "[Chest]"; + mes "You already opened this chest."; + close; + +L_TooMany: + mes "[Chest]"; + mes "You don't have room for what ever is inside. Maybe you should try again later."; + close; +} diff --git a/world/map/npc/013-3/misc.txt b/world/map/npc/013-3/misc.txt new file mode 100644 index 00000000..8f7da034 --- /dev/null +++ b/world/map/npc/013-3/misc.txt @@ -0,0 +1,6 @@ +// + +013-3.gat,127,68,0 script Chest 111,{ + mes "You can't see any way to open this chest."; + close; +} diff --git a/world/map/npc/013-3/sword_chest.txt b/world/map/npc/013-3/sword_chest.txt new file mode 100644 index 00000000..5d2c97b7 --- /dev/null +++ b/world/map/npc/013-3/sword_chest.txt @@ -0,0 +1,38 @@ +// + +013-3.gat,177,22,0 script Chest 111,{ + if( ChestQuest & 2) goto L_Finished; + + mes "[Chest]"; + mes "Would you try to open it?"; + next; + menu + "Yes", L_Yes, + "No", -; + close; + +L_Yes: + if(countitem("TreasureKey") < 10) goto L_Not_Enough; + getinventorylist; + if (@inventorylist_count == 100 && countitem("TreasureKey") > 10) goto L_TooMany; + delitem "TreasureKey", 10; + getitem "ShortSword", 1; + mes "[Chest]"; + mes "You opened it and found a short sword!"; + set ChestQuest, ChestQuest | 2; + close; + +L_Not_Enough: + mes "It seems that this is not the right key..."; + close; + +L_Finished: + mes "[Chest]"; + mes "You already opened this chest."; + close; + +L_TooMany: + mes "[Chest]"; + mes "You don't have room for what ever is inside. Maybe you should try again later."; + close; +} diff --git a/world/map/npc/014-1/_import.txt b/world/map/npc/014-1/_import.txt new file mode 100644 index 00000000..0483171c --- /dev/null +++ b/world/map/npc/014-1/_import.txt @@ -0,0 +1,6 @@ +// Map 014-1: Woodland +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 014-1.gat +npc: npc/014-1/_mobs.txt +npc: npc/014-1/_warps.txt +npc: npc/014-1/wedding-officiator.txt diff --git a/world/map/npc/014-1/_mobs.txt b/world/map/npc/014-1/_mobs.txt new file mode 100644 index 00000000..1c039ba1 --- /dev/null +++ b/world/map/npc/014-1/_mobs.txt @@ -0,0 +1,84 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mobs + +014-1.gat,0,0,0,0 monster EvilMushroom 1013,20,0,0,Mob014-1::On1013 +014-1.gat,0,0,0,0 monster PinkFlower 1014,25,0,0,Mob014-1::On1014 +014-1.gat,0,0,0,0 monster Spiky Mushroom 1019,15,0,0,Mob014-1::On1019 +014-1.gat,0,0,0,0 monster Mouboo 1028,5,0,10,Mob014-1::On1028 +014-1.gat,0,0,0,0 monster Mauve 1029,1,270,180,Mob014-1::On1029 +014-1.gat,0,0,0,0 monster Mauve 1029,5,2700000,1800000,Mob014-1::On1029 +014-1.gat,0,0,0,0 monster Cobalt 1030,1,270,180,Mob014-1::On1030 +014-1.gat,0,0,0,0 monster Cobalt 1030,2,2700000,1800000,Mob014-1::On1030 +014-1.gat,0,0,0,0 monster Gamboge 1031,1,270,180,Mob014-1::On1031 +014-1.gat,0,0,0,0 monster Gamboge 1031,2,2700000,1800000,Mob014-1::On1031 +014-1.gat,0,0,0,0 monster Alizarin 1032,1,270,180,Mob014-1::On1032 +014-1.gat,0,0,0,0 monster Alizarin 1032,2,2700000,1800000,Mob014-1::On1032 +014-1.gat,0,0,0,0 monster SilkWorm 1035,4,6000,3000,Mob014-1::On1035 +014-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob014-1::On1037 +014-1.gat,0,0,0,0 monster Squirrel 1038,25,30,20,Mob014-1::On1038 +014-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob014-1::On1055 + + +014-1.gat,0,0,0 script Mob014-1 -1,{ +On1013: + set @mobID, 1013; + callfunc "MobPoints"; + break; + +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1028: + set @mobID, 1028; + callfunc "MobPoints"; + break; + +On1029: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +On1030: + set @mobID, 1030; + callfunc "MobPoints"; + break; + +On1031: + set @mobID, 1031; + callfunc "MobPoints"; + break; + +On1032: + set @mobID, 1032; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/014-1/_warps.txt b/world/map/npc/014-1/_warps.txt new file mode 100644 index 00000000..a3b9924b --- /dev/null +++ b/world/map/npc/014-1/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland warps + +014-1.gat,109,91 warp ToWoodland -1,1,011-1.gat,31,62 +014-1.gat,93,58 warp ToCave -1,-1,014-3.gat,56,172 +014-1.gat,76,38 warp ToCave -1,-1,014-3.gat,35,33 diff --git a/world/map/npc/014-1/wedding-officiator.txt b/world/map/npc/014-1/wedding-officiator.txt new file mode 100644 index 00000000..f6bf7c9d --- /dev/null +++ b/world/map/npc/014-1/wedding-officiator.txt @@ -0,0 +1,255 @@ +// Wedding officiator: Marriages and divorces + +014-1.gat,31,31,0 script Wedding Officiator 164,{ + mes "[Wedding Officiator]"; + mes "A young lady in a long, green dress is overseeing the park. As she notices you looking at her, she gives you a broad and happy smile."; + mes "\"Hi there! I'm Wendy, here for all your marriage needs!\""; + next; + +L_main: + if (getpartnerid2(0)) + goto L_main_married; + + menu "What exactly do you do?", L_explain_self, + "How do I get married?", L_explain_marriage, + "I would like to get married.", L_get_married, + "Goodbye.", L_end; + close; + +L_explain_self: + mes "[Wedding Officiator]"; + mes "\"I'm responsible for marriage and divorce proceedings. Every married couple must be registered, so I keep a looong list of couples and send that to the magistrates every now and then.\""; + next; + mes "[Wedding Officiator]"; + mes "\"So if you have a sweetheart and the two of you are getting along particularly well, and you think that you are ready to make that big final step-- well, then come here and talk to me!\""; + next; + goto L_main; + +L_explain_marriage: + mes "[Wedding Officiator]"; + mes "\"If you are sure that you are ready to get married, then first you come and talk to me here-- I need to register you, after all. You will first have to pay me a small fee of " + WEDDING_FEE + " GP.\""; + next; + mes "[Wedding Officiator]"; + mes "\"Both you and your partner must be at least " + WEDDING_MIN_LEVEL + " levels of age, though; the law is very firm on that. But if all of that works out, I will give you two wedding rings for the ceremony.\""; + next; + mes "[Wedding Officiator]"; + mes "\"To complete the marriage, each of you has to put on one of these rings, and you have to stand next to each other in the southern part of this park. Then one of you says `marry' and then the other person's name.\""; + next; + mes "[Wedding Officiator]"; + mes "\"So if you would want to marry me, for example, you would say `marry Wendy'. Just like that. Your partner then has to decide whether he or she wants that. And if you both agree, then you're married!\""; + mes "She again smiles that broad smile of hers."; + next; + goto L_main; + +L_get_married: + if (zeny < WEDDING_FEE) + goto L_too_poor; + if (BaseLevel < WEDDING_MIN_LEVEL) + goto L_too_young; + + mes "[Wedding Officiator]"; + mes "Wendy's eyes are sparkling."; + mes "\"Wow. So you and your sweetheart are ready to take the big step, then?\""; + next; + + menu "Yes, we are ready.", -, + "On second thought, perhaps not.", L_end; + + mes "[Wedding Officiator]"; + mes "She bounces."; + mes "\"That's so sweet! You must really love each other, then...?\""; + next; + + menu "We certainly do.", -, + "Yes, of course.", -, + "Please get on with it.", -, + "Hmm. Let me think about this some more.", L_end; + + mes "[Wedding Officiator]"; + mes "Wendy blushes."; + mes "\"Sorry if I am asking so many questions, but I have to make sure, you see... rules and all. Where were we...\""; + next; + + mes "[Wedding Officiator]"; + mes "She composes herself again."; + mes "\"OK. Now, what vows you exchange precisely is your choice. But a marriage is really something that is meant to last. So please take a moment to think.\""; + next; + + mes "[Wedding Officiator]"; + mes "\"Is your partner really someone you are serious about, someone you want to be with even when things get nasty, someone whom you will stick your head out for no matter how bad things get?"; + mes "And do both of you feel that you could spend the rest of your time in this mana world together?\""; + next; + + menu "Yes.", -, + "YES.", -, + "Absolutely.", -, + "Yes. We love each other.", -, + "This is taking too long.", L_end, + "No.", L_end; + + if (zeny < WEDDING_FEE) + goto L_too_poor; + if (BaseLevel < WEDDING_MIN_LEVEL) + goto L_too_young; + getinventorylist; + if (@inventorylist_count > 98) goto L_No_Room_For_Rings; + + set zeny, zeny - WEDDING_FEE; + getitem "WeddingRing", 1; + getitem "WeddingRing", 1; + + mes "[Wedding Officiator]"; + mes "Wendy collects the fee."; + mes "\"Okay... here are your wedding rings. Each of you has to have one. Put them on, stand next to each other in the southern part of this park and say `marry ...' and the name of your partner."; + mes "So your partner might just say `marry " + strcharinfo(0) + "' to marry you.\""; + next; + + mes "[Wedding Officiator]"; + mes "Wendy hesitates, then gives you a quick hug. There are tears are in her eyes."; + mes "\"Sorry, I always get a bit... emotional, I think... but I'm so happy for you!\""; + mes "She smiles and wipes the tears from her eyes."; + next; + + mes "[Wedding Officiator]"; + mes "\"So... I wish you the very, very best, a wonderful and happy and successful marriage!\""; + mes "She smiles at you again."; + close; + +L_end: + close; + +L_too_young: + mes "[Wedding Officiator]"; + mes "Wendy looks at her notes, shaking her head; pain is evident in her eyes."; + mes "\"I'm really, really sorry-- I wish I could allow that, but you are still too young. You have to be at least " + WEDDING_MIN_LEVEL + " levels of age.\""; + close; + +L_too_poor: + mes "[Wedding Officiator]"; + mes "\"Oh, this is so sad... you want to get married but don't have the money!\""; + mes "Wendy is visibly unhappy."; + mes "\"I wish I could help you, but the rules... you see... Well, I'm afraid that you will just have to come back when you have " + WEDDING_FEE + " GP.\""; + close; + +L_main_married: + + mes "[Wedding Officiator]"; + mes "\"I hope that you and your partner are doing well?\""; + next; + + menu "We are very happy, thanks for asking!", L_farewell, + "Actually, things aren't so good...", L_talk_divorce; + close; + +L_farewell: + mes "[Wedding Officiator]"; + mes "Wendy is beaming."; + mes "\"That's wonderful! Please do say `hi' to your spouse from me!\""; + close; + +L_talk_divorce: + mes "[Wedding Officiator]"; + mes "\"Oh... I am sorry to hear that. What's the problem, then?\""; + next; + + menu "We don't love each other anymore.", L_nolove, + "My partner loves someone else.", L_partner_otherlove, + "I think I love someone else.", L_self_otherlove, + "We can't agree on who carries the loot.", L_loot; + close; + +L_nolove: + mes "[Wedding Officiator]"; + mes "Wendy sighs."; + mes "\"I am really sorry to hear that. Have you tried talking to your partner? Tried some new dungeons? Solved some quests together?\""; + next; + + mes "[Wedding Officiator]"; + mes "\"I mean... I am sure that you have many things in common that you are not aware of. If you just do something new, perhaps you will learn something about each other that you will like?\""; + next; + + menu "We tried that, it didn't work.", L_makesure_divorce, + "Perhaps we should give it another try.", -; + close; + +L_partner_otherlove: + mes "[Wedding Officiator]"; + mes "Wendy frowns."; + mes "\"Are you really sure? Perhaps that other person is just a friend, or even if it isn't, perhaps it was just a small mistake on your partner's side... nobody is perfect, after all!\""; + next; + + menu "I'm sure. I want a divorce.", L_makesure_divorce, + "Perhaps we should discuss this some more first.", -; + close; + +L_self_otherlove: + mes "[Wedding Officiator]"; + mes "Wendy sighs."; + mes "\"Oh dear... well, I suppose that happens. You don't have any children, I think, but still, you made a promise to your partner.\""; + next; + mes "[Wedding Officiator]"; + mes "\"Are you really sure that you love the new person so much that you want to leave your partner? Perhaps it would be good to take some time off first to make sure that you are not making a mistake here.\""; + next; + + menu "I'm sure. I want a divorce.", L_makesure_divorce, + "Let me think about this more.", -; + close; + +L_loot: + mes "[Wedding Officiator]"; + mes "Wendy blinks."; + mes "\"Err... have you thought about just splitting it up?\""; + next; + + menu "No way. I want a divorce.", L_makesure_divorce, + "Oh... oh! But of course!", -; + close; + +L_makesure_divorce: + set @divorce_cost, DIVORCE_FEE_PER_LEVEL * BaseLevel; + + mes "[Wedding Officiator]"; + mes "Resigned, Wendy looks down at her notes."; + mes "\"Okay. I suppose that if you are sure, I will get your divorce underway. But that will cost you " + @divorce_cost + " in administrative fees.\""; + next; + + menu "Let me think about this again.", L_end, + "HOW much? Never mind, then.", L_end, + "That's OK. I want the divorce.", L_do_divorce; + close; + +L_divorce_nomoney: + mes "[Wedding Officiator]"; + mes "\"I am sorry, but you can't seem to afford the " + @divorce_cost + " GP for a divorce at this time. Please come back later.\""; + close; + +L_do_divorce: + if (zeny < @divorce_cost) + goto L_divorce_nomoney; + + + if divorce(0) goto L_DidDivorce; + + mes "[Wedding Officiator]"; + mes "The officiator searches through her records for your partner."; + mes "\"I can't find your partner's record, you'll have to come back later.\""; + next; + + mes "[Server]"; + mes "Try again when your partner is online too."; + close; + +L_DidDivorce: + set zeny, zeny - @divorce_cost; + + mes "[Wedding Officiator]"; + mes "After collecting her fee, Wendy licks her quill and writes down some notes."; + mes "Then she sighs heavily."; + mes "\"You are divorced now. Thank you for your business.\""; + close; + +L_No_Room_For_Rings: + mes "[Wedding Officiator]"; + mes "\"You don't have room to carry the rings.\""; + close; +} diff --git a/world/map/npc/014-3/_import.txt b/world/map/npc/014-3/_import.txt new file mode 100644 index 00000000..d2d03e67 --- /dev/null +++ b/world/map/npc/014-3/_import.txt @@ -0,0 +1,6 @@ +// Map 014-3: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 014-3.gat +npc: npc/014-3/_mobs.txt +npc: npc/014-3/_warps.txt +npc: npc/014-3/monsters.txt diff --git a/world/map/npc/014-3/_mobs.txt b/world/map/npc/014-3/_mobs.txt new file mode 100644 index 00000000..996181e3 --- /dev/null +++ b/world/map/npc/014-3/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + + + +014-3.gat,0,0,0 script Mob014-3 -1,{ + end; +} diff --git a/world/map/npc/014-3/_warps.txt b/world/map/npc/014-3/_warps.txt new file mode 100644 index 00000000..2ff59a5f --- /dev/null +++ b/world/map/npc/014-3/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +014-3.gat,35,32 warp ToOutside -1,-1,014-1.gat,76,39 +014-3.gat,57,173 warp ToOutside 0,-1,014-1.gat,93,59 +014-3.gat,91,108 warp ToCave -1,-1,014-3.gat,103,53 +014-3.gat,103,54 warp ToCave -1,-1,014-3.gat,91,109 diff --git a/world/map/npc/014-3/monsters.txt b/world/map/npc/014-3/monsters.txt new file mode 100644 index 00000000..2237ea42 --- /dev/null +++ b/world/map/npc/014-3/monsters.txt @@ -0,0 +1,14 @@ +// Map: 014-3 +// This is the caves beneath West Woodland. +// + +014-3.gat,0,0,0,0 monster Bat 1017,50,0,0,Mob30::OnBat + +014-3.gat,0,0,0 script Mob30 -1,{ +OnBat: + set @mobID, 1017; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/015-1/_import.txt b/world/map/npc/015-1/_import.txt new file mode 100644 index 00000000..94963d0b --- /dev/null +++ b/world/map/npc/015-1/_import.txt @@ -0,0 +1,9 @@ +// Map 015-1: Woodland +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 015-1.gat +npc: npc/015-1/_mobs.txt +npc: npc/015-1/_warps.txt +npc: npc/015-1/alice.txt +npc: npc/015-1/barrier.txt +npc: npc/015-1/monsters.txt +npc: npc/015-1/sword.txt diff --git a/world/map/npc/015-1/_mobs.txt b/world/map/npc/015-1/_mobs.txt new file mode 100644 index 00000000..cc1c71e9 --- /dev/null +++ b/world/map/npc/015-1/_mobs.txt @@ -0,0 +1,20 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mobs + +015-1.gat,0,0,0,0 monster Clover 1037,2,100000,1000,Mob015-1::On1037 +015-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob015-1::On1055 + + +015-1.gat,0,0,0 script Mob015-1 -1,{ +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/015-1/_warps.txt b/world/map/npc/015-1/_warps.txt new file mode 100644 index 00000000..a8152425 --- /dev/null +++ b/world/map/npc/015-1/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland warps + +015-1.gat,93,55 warp ToWoodland -1,0,010-1.gat,15,55 +015-1.gat,59,31 warp to 015_3 -1,-1,015-3.gat,31,42 +015-1.gat,59,101 warp toSwamp 2,-1,025-1.gat,89,20 diff --git a/world/map/npc/015-1/alice.txt b/world/map/npc/015-1/alice.txt new file mode 100644 index 00000000..125cc104 --- /dev/null +++ b/world/map/npc/015-1/alice.txt @@ -0,0 +1,82 @@ +// A herb collector giving the players some hints about finding and brewing +// herbs. + +015-1.gat,52,53,0 script Alice 106, { + mes "[Alice]"; + mes "\"Greeting, fellow wanderer."; + mes "Are you collecting herbs, too?\""; + next; + if (LastHiss == 2 && Katze < 4) + menu + "Yes, sure.", L_findmany, + "Herbs?", L_herbs, + "Nope, just enjoying the scenery.", L_close, + "I saw the cat, but it doesn't like me.", L_cat; + if (LastHiss == 1) + menu + "Yes, sure.", L_findmany, + "Herbs?", L_herbs, + "Nope, just enjoying the scenery.", L_close, + "There is a monster in that cave!", L_cave; + menu + "Yes, sure.", L_findmany, + "Herbs?", L_herbs, + "Nope, just enjoying the scenery.", L_close; + +L_close: + close; + +L_findmany: + mes "[Alice]"; + mes "\"And? Did you already find a lot?\""; + next; + menu + "Yes, I already got plenty of them.", L_plenty, + "No, I am out of luck.", -; + mes "[Alice]"; + mes "\"Oooh, how sad. Let me give you a little tip:"; + mes "Herbs are often growing in places where they can't be spotted that easily. Don't forget to look behind the trees, too.\""; + close; + +L_plenty: + mes "[Alice]"; + mes "\"That's great."; + mes "When you are not that good at brewing you should consider letting someone else brew them for you."; + mes "Good brewers get much better healing potions from them."; + mes "The most important characteristic of a good brewer is intelligence.\""; + close; + +L_herbs: + mes "[Alice]"; + mes "\"Yes, some powerful magic herbs started to grow around here and a mile to the southeast."; + mes "Caul in Hurnscald found a way to brew magical healing potions from them, and I have heard a rumor that they may also be good for making colors."; + mes "Now everyone is running around in the woods to harvest the herbs.\""; + close; + +L_cave: + mes "[Alice]"; + mes "\"Haha, that is no monster! It's just a sweet little cat.\""; + next; + menu + "But it wanted to kill me!", -, + "A cat!? I'll go and kill it!", -; + mes "[Alice]"; + mes "\"No no, I'm sure it was only frightened. It gets upset when you've got clothes or weapons on you.\""; + next; + menu + "Ok, let's try it without clothes then", -, + "What a stupid cat!", -; + mes "[Alice]"; + mes "\"Please don't do her any harm. See you later!\""; + close; + +L_cat: + mes "[Alice]"; + mes "\"You would have to tame her first. Maybe she's thirsty or hungry. Cats also tend to get bored without something to play with. Good luck!\""; + next; + menu "Thank you so much!", L_close, + "Are you crazy? Taming a cat?", -; + mes "[Alice]"; + mes "\"Well, it's up to you.\""; + close; +} diff --git a/world/map/npc/015-1/barrier.txt b/world/map/npc/015-1/barrier.txt new file mode 100644 index 00000000..0ba82ec9 --- /dev/null +++ b/world/map/npc/015-1/barrier.txt @@ -0,0 +1,7 @@ +// This barrier is for checking whether the player went outside after +// progressing with the cat quest. + +015-1.gat,59,32,0 script #CatOutsideBarrier 0,1,1,{ + set KatzeBeenOutside, 1; + // No close here, as this doesn't open any client windows +} diff --git a/world/map/npc/015-1/monsters.txt b/world/map/npc/015-1/monsters.txt new file mode 100644 index 00000000..b6ff0fd9 --- /dev/null +++ b/world/map/npc/015-1/monsters.txt @@ -0,0 +1,59 @@ +// Map: 015-1 +// This is South-West Woodland. +// + +015-1.gat,0,0,0,0 monster LogHead 1025,40,0,0,Mob31::OnLogHead +015-1.gat,0,0,0,0 monster SpikyMushroom 1019,20,0,0,Mob31::OnSpikyMushroom +015-1.gat,0,0,0,0 monster PinkFlower 1014,20,0,0,Mob31::OnPinkFlower + +015-1.gat,0,0,0,0 monster Gamboge 1031,5,0,0,Mob31::OnGamboge +015-1.gat,0,0,0,0 monster Alizarin 1032,5,0,0,Mob31::OnAlizarin +015-1.gat,0,0,0,0 monster Mauve 1029,4,270000,180000,Mob31::OnMauve + +015-1.gat,0,0,0,0 monster SilkWorm 1035,7,15000,7000,Mob31::onSilkWorm + +015-1.gat,0,0,0,0 monster Squirrel 1038,30,20,10,Mob31::OnSquirrel + +015-1.gat,0,0,0 script Mob31 -1,{ +OnLogHead: + set @mobID, 1025; + callfunc "MobPoints"; + break; + +OnSpikyMushroom: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +OnPinkFlower: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +OnMauve: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +OnGamboge: + set @mobID, 1031; + callfunc "MobPoints"; + break; + +OnAlizarin: + set @mobID, 1032; + callfunc "MobPoints"; + break; + +OnSilkWorm: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +OnSquirrel: + set @mobID, 1038; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/015-1/sword.txt b/world/map/npc/015-1/sword.txt new file mode 100644 index 00000000..f5f0cd17 --- /dev/null +++ b/world/map/npc/015-1/sword.txt @@ -0,0 +1,351 @@ +015-1.gat,97,97,0 script #MagicSword#_M 127,{ + if (getskilllv(SKILL_MAGIC)) + goto L_message; + mes "It appears to be an ordinary sword."; + close; + +L_message: + set @Q_MASK, (NIBBLE_6_MASK | NIBBLE_7_MASK); + set @Q_SHIFT, NIBBLE_6_SHIFT; + set @Q_status, (QUEST_MAGIC & @Q_MASK) >> @Q_SHIFT; + + // Set up SkillUp function + set @SUP_id, SKILL_MAGIC_WAR; + set @SUP_name$, "War Magic"; + + set @STATUS_INITIAL, 0; + set @STATUS_LEARNED_FLAREDART, 1; + set @STATUS_LEARNED_MAGICBLADE, 2; + set @STATUS_LEVEL2, 3; + set @STATUS_W11, 4; + set @STATUS_W12, 5; + set @STATUS_W11_12, 6; + set @STATUS_L2_ALLSPELLS, 7; + + if (@Q_status == @STATUS_INITIAL) goto L_Initial; + if (@Q_status == @STATUS_LEARNED_FLAREDART) goto L_FlareStage; + if (@Q_status == @STATUS_LEARNED_MAGICBLADE) goto L_MagicBladeStage; + if (@Q_status == @STATUS_LEVEL2) goto L_L2_W12; + if (@Q_status == @STATUS_W11) goto L_L2_W12; + if (@Q_status == @STATUS_W12) goto L_L2_almost_done; + if (@Q_status == @STATUS_W11_12) goto L_L2_W10; + + mes "[Mystic Sword]"; + mes "\"I have taught thee all I can teach for now.\""; + close; + +L_Initial: + mes "[Mystic Sword]"; + mes "At this point, the river deepens, slowing down to a leisurely pace. In its center you notice an unusual stone, waves breaking around it."; + mes "Sticking out of the rock is a sword hilt."; + next; + + mes "[Mystic Sword]"; + mes "Suddenly, you hear a strange, metallic voice in your head, the voice of a woman."; + mes "\"A blissful day to thee, mortal!\""; + next; + + mes "[Mystic Sword]"; + mes "\"What is it is that brings thee to this place?\""; + next; + + menu + "Who are you?", L_noq, + "Nothing in particular.", L_Initial_nothing, + "I was just exploring...", L_Initial_nothing, + "I am trying to learn magic!", L_Initial_learn; + close; + +L_noq: + mes "[Mystic Sword]"; + mes "The voice sounds slightly amused."; + mes "\"How sad to hear how manners have degenerated in recent centuries. Farewell for now, dear mortal.\""; + close; + +L_Initial_nothing: + mes "[Mystic Sword]"; + mes "\"Then I wish thee well in thy travels, wanderer!\""; + close; + +L_Initial_learn: + mes "[Mystic Sword]"; + mes "\"Magic? Unless I am very mistaken thou already possessest some magic. Yet perhaps I can grant thee some slight aid by providing a magical invocation?\""; + next; + + mes "[Mystic Sword]"; + mes "\"Alas, my nature is not quite conductive for spells of healing or protection, though I can bestow upon thee the powers for a rather more martial kind of power.\""; + next; + + menu + "I am not interested in that.", L_Farewell, + "It might be good for me to learn that.", -, + "I am quite interested.", -; + + mes "[Mystic Sword]"; + mes "\"Why is it that thou seekest this power?\""; + next; + + menu + "Never mind.", L_Farewell, + "To become stronger!", L_Initial_selfish, + "To kill!", L_Initial_selfish, + "I don't know yet...", L_Initial_dontknow, + "To protect the ones I love!", L_Initial_protect; + close; + +L_Initial_selfish: + mes "[Mystic Sword]"; + mes "\"Please return when thou art taking thy quest for magic a little more seriously.\""; + close; + +L_Initial_dontknow: + mes "[Mystic Sword]"; + mes "\"A fair and honest thought at so early a point in thine quest.\""; + goto L_Initial_ok; + +L_Initial_protect: + mes "[Mystic Sword]"; + mes "\"Quite a high and laundable goal thou hast chosen for thyself! I do hope that thou canst live up to it.\""; + +L_Initial_ok: + mes "\"Hark, then, mortal! For I shall bestow upon thee the secret of the flare dart spell!\""; + next; + + mes "[Mystic Sword]"; + mes "\"Oh, my apologies-- that was a little overly dramatic. But I do not get to talk to thy kin anymore all that often.\""; + next; + + mes "[Mystic Sword]"; + mes "\"For the flare dart spell throw a handful of sulphur powder up into the air, and say, '" + getspellinvocation("flare-dart") + "'.\""; + set @Q_status, @STATUS_LEARNED_FLAREDART; + callsub S_update_var; + next; + + mes "[Mystic Sword]"; + mes "\"From then on, thou canst shoot fiery missiles from thy fingers, for a limited time.\""; + next; + + mes "[Mystic Sword]"; + mes "\"Use it wisely, mortal!.\""; + next; + + goto L_Farewell; + +L_FlareStage: + menu + "Uhm... Hello, Sword?", L_FlareStage_hello, + "Can you teach me more magic?", L_FlareStage_impolite, + "Where can I get sulphur powder?", L_FlareStage_impolite; + close; + +L_FlareStage_impolite: + mes "[Mystic Sword]"; + mes "You hear a metallic chime in your head. After a second, you come to the conclusion that it was probably the sword sighing."; + mes "\"Greetings to thee, too, mortal, and farewell until thou hast learned some proper manners.\""; + close; + +L_FlareStage_hello: + mes "[Mystic Sword]"; + mes "\"Well met once more, mortal! What brings thee here?\""; + next; + + menu + "Can you teach me more magic?", L_FlareStage_moremagic, + "Where can I find sulphur powder?", L_FlareStage_sulphur, + "Farewell!", L_Farewell; + close; + +L_FlareStage_moremagic: + mes "[Mystic Sword]"; + mes "\"I can indeed! But first I must see if thou art worthy. Find my brother, and talk to him! If thou canst find him, he shall teach thee another spell.\""; + next; + goto L_Farewell; + +L_FlareStage_sulphur: + mes "[Mystic Sword]"; + mes "\"I do not know, though I suggest to seek out a local alchemist, if there is any.\""; + next; + goto L_Farewell; + +L_MagicBladeStage: + mes "[Mystic Sword]"; + mes "\"Welcome back! Thou hast now learned two basic spells of War magic.\""; + next; + + mes "[Mystic Sword]"; + mes "\"Dost thou wish to continue thy pursuits of this school of magic?\""; + next; + + menu + "No.", -, + "Yes.", L_Levelup2_yes; + + goto L_Farewell; + +L_Levelup2_yes: + mes "[Mystic Sword]"; + mes "\"Beware of what thou wishest for, mortal...\""; + next; + + if (!MPQUEST) goto L_Levelup2_must_reg; + if (MPQUEST && (Mobpt < 1000)) goto L_Levelup2_must_practice; + + mes "[Mystic Sword]"; + mes "\"Thou hast collected " + Mobpt + " Monster Points. For one thousand of them, I shall admit thee to the school of war magic.\""; + next; + + menu + "OK!", -, + "No... never mind.", L_Farewell; + + set Mobpt, Mobpt - 1000; + + mes "[Mystic Sword]"; + mes "The sword begins to chant in your head!"; + mes "\"Lords of Thunder, Fire, Rage!\""; + mes "\"Grant thy powers to this mage,\""; + mes "\"Rising with thy dreadful roar,\""; + if (Sex) + mes "\"Answer to his call to War!\""; + if (!Sex) + mes "\"Answer to her call to War!\""; + next; + + mes "[Mystic Sword]"; + mes "Your heart starts pounding, and suddenly you can hear the sound of drums in your head."; + mes "You smell something metallic..."; + next; + + mes "[Mystic Sword]"; + mes "The sensation and the noises vanish as quickly as they came."; + + set @Q_status, @STATUS_LEVEL2; + callsub S_update_var; + + set @SUP_xp, 5000; + set @SUP_lvl, 2; + callfunc "SkillUp"; + next; + + mes "[Mystic Sword]"; + mes "\"Thou hast now taken thy first true step down the path of war magic.\""; + if (getskilllv(SKILL_MAGIC) < 2) + mes "\"When thou returnest, I shall teach thee another spell, but beware: thou must increase thy overall grasp of magic before thou canst wield it!\""; + next; + goto L_Farewell; + + +L_Levelup2_must_reg: + mes "[Mystic Sword]"; + mes "\"To learn further magic, thou must advance in the school of war magic. I shall grant thee this advance if thou provest thy worthiness as a warrior.\""; + next; + mes "[Mystic Sword]"; + mes "\"Travel to the city of Tulimshar, and talk to Aidan. Then, collect one thousand Monster Points and return to me.\""; + next; + goto L_Farewell; + +L_Levelup2_must_practice: + mes "[Mystic Sword]"; + mes "\"To advance thy magical powers, I must admit thee to the school of war magic. Prove to me that thou art a worthy warrior by collecting one thousand Monster Points, and return.\""; + next; + goto L_Farewell; + +L_Farewell: + mes "[Mystic Sword]"; + mes "\"Farewell for now!\""; + close; + +L_L2_W12: + mes "[Mystic Sword]"; + mes "\"Welcome back, traveler! Hast thou returned to advance in thy quest for magic?\""; + next; + menu + "No.", L_farewell, + "Yes.", -; + + mes "[Mystic Sword]"; + mes "\"Very well. I shall teach thee another spell, if thou provest thy progress by sacrificing another five thousand monster points.\""; + next; + menu + "No, I don't want that.", L_farewell, + "So be it.", -; + + if (Mobpt < 5000) goto L_lacking_mobpoints; + + mes "[Mystic Sword]"; + mes "\"Indeed thou art worthy. The next spell I shall teach thee will enchant thy knuckles to turn them into powerful weapons; the component is a mere beer.\""; + mes "[1000 experience points]"; + set Mobpt, Mobpt - 5000; + getexp 1000, 0; + set @Q_status, @Q_status + 2; + callsub S_update_var; + next; + + mes "[Mystic Sword]"; + mes "\"Speak '" + getspellinvocation("magic-knuckles") + "' and take a glass of beer and drink it, without ever taking it off thy lips. This will harden and enchant thy fists, turning them into powerful weapons.\""; + close; + +L_L2_almost_done: + mes "[Mystic Sword]"; + mes "\"Greetings once more, traveler! I have another spell I wish to teach thee, but first thou must learn my brother's arrow spell.\""; + close; + +L_L2_W10: + mes "[Mystic Sword]"; + mes "\"Welcome back!\""; + next; + + mes "[Mystic Sword]"; + mes "\"I shall now teach thee the final spell of this level of war magic. For further spells thou wilt have to increase thy magical powers more.\""; + next; + + mes "[Mystic Sword]"; + mes "\"For this spell, I ask that thou bringest a lump of iron ore. Thou must also sacrifice ten thousand monster points.\""; + next; + + menu + "OK.", -, + "No way.", L_farewell; + + if (countitem("IronOre") < 1) + goto L_no_ore; + if (MPQUEST && (Mobpt < 10000)) goto L_lacking_mobpoints; + + mes "[Mystic Sword]"; + mes "\"Raise up the ore, mortal!\""; + mes "As you do so, the ore begins to crumble, leaving only iron powder behind."; + mes "[1000 experience points]"; + set Mobpt, Mobpt - 10000; + getexp 1000, 0; + delitem "IronOre", 1; + getitem "IronPowder", 5; + set @Q_status, @STATUS_L2_ALLSPELLS; + callsub S_update_var; + next; + + mes "[Mystic Sword]"; + mes "\"This powder thou shalst need to cast the lightning spell. Throw it up into the air and shout '" + getspellinvocation("lightning-strike") + "', and smite thine enemies with lightning.\""; + next; + goto L_farewell; + +L_no_ore: + mes "[Mystic Sword]"; + mes "\"Thou dost appear to lack ore. We cannot continue; please fare well and return swiftly!\""; + close; + +L_farewell: + mes "[Mystic Sword]"; + mes "\"Then I bid thee farewell for now!\""; + close; + +L_lacking_mobpoints: + mes "[Mystic Sword]"; + mes "\"Thou dost not have enough monster points to prove thy worthiness. Return when thou hast slain more monsters!\""; + close; + +S_update_var: + set QUEST_MAGIC, + (QUEST_MAGIC & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/015-3/_import.txt b/world/map/npc/015-3/_import.txt new file mode 100644 index 00000000..9a9632ba --- /dev/null +++ b/world/map/npc/015-3/_import.txt @@ -0,0 +1,8 @@ +// Map 015-3: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 015-3.gat +npc: npc/015-3/_mobs.txt +npc: npc/015-3/_warps.txt +npc: npc/015-3/barrier.txt +npc: npc/015-3/katze.txt +npc: npc/015-3/pot.txt diff --git a/world/map/npc/015-3/_mobs.txt b/world/map/npc/015-3/_mobs.txt new file mode 100644 index 00000000..43f7eea0 --- /dev/null +++ b/world/map/npc/015-3/_mobs.txt @@ -0,0 +1,27 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + +015-3.gat,21,25,3,4 monster Bats 1017,2,100000,30000,Mob015-3::On1017 +015-3.gat,29,31,2,2 monster Maggots 1002,2,100000,30000,Mob015-3::On1002 +015-3.gat,23,19,1,1 monster Maggots 1002,1,100000,30000,Mob015-3::On1002 +015-3.gat,40,19,1,1 monster Spider 1012,1,100000,30000,Mob015-3::On1012 + + +015-3.gat,0,0,0 script Mob015-3 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1012: + set @mobID, 1012; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/015-3/_warps.txt b/world/map/npc/015-3/_warps.txt new file mode 100644 index 00000000..861a6938 --- /dev/null +++ b/world/map/npc/015-3/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +015-3.gat,31,43 warp to 015-1 -1,-1,015-1.gat,59,32 diff --git a/world/map/npc/015-3/barrier.txt b/world/map/npc/015-3/barrier.txt new file mode 100644 index 00000000..27a18bc3 --- /dev/null +++ b/world/map/npc/015-3/barrier.txt @@ -0,0 +1,27 @@ +// You can only enter the cat cave naked, otherwise the cat's reaction scares +// you away. You can also get in while wearing the cat ears. + +015-3.gat,31,42,0 script #CatCaveBarrier 127,1,1,{ + + if (getequipid(equip_head) != 1217 && (getequipid(equip_head) > 0 || + getequipid(equip_shield) > 0 || + getequipid(equip_hand1) > 0 || + getequipid(equip_hand2) > 0 || + getequipid(equip_gloves) > 0 || + getequipid(equip_shoes) > 0 || + getequipid(equip_misc1) > 0 || + getequipid(equip_misc2) > 0 || + getequipid(equip_torso) > 0 || + getequipid(equip_legs) > 0)) goto L_Not_Naked; + + if (LastHiss != 2) mes "\"Hissss...\""; + set LastHiss, 2; + close; + +L_Not_Naked: + warp "015-1.gat", 60, 32; + set LastHiss, 1; + mes "\"GRAAUWL! Hissss...\""; + mes "Scared of what you hear, you flee back outside."; + close; +} diff --git a/world/map/npc/015-3/katze.txt b/world/map/npc/015-3/katze.txt new file mode 100644 index 00000000..f1433ed6 --- /dev/null +++ b/world/map/npc/015-3/katze.txt @@ -0,0 +1,196 @@ +// Katze doesn't like the player at first, needs following: +// +// 1. Some milk +// 2. Some steak or chicken leg +// 3. Some fur +// +// Now the cat starts to speak, still needs: +// +// 4. Some wood for scratching +// 5. Some stuff for making somethings nice for the player: +// +// * 2 Snake skins +// * 2 Snake tongues +// * 2 Maggot slimes +// * 2 White furs +// * 2 Hard spikes +// * 2 Tiny potions + +015-3.gat,32,25,0 script Katze 172, { + + if (Katze == 1 && KatzeBeenOutside == 1) goto L_NeedsFood; + if (Katze == 1) goto L_PreNeedsFood; + + if (Katze == 2 && KatzeBeenOutside == 1) goto L_NeedsFur; + if (Katze == 2) goto L_PreNeedsFur; + + if (Katze == 3) goto L_NeedsWood; + + if (Katze == 4 && KatzeBeenOutside == 1) goto L_NeedsStuff; + if (Katze == 4) goto L_PreNeedsStuff; + + if (Katze == 5) goto L_NeedsStuff2; + + if (Katze == 6 && KatzeBeenOutside == 1) goto L_GainEars; + if (Katze == 6) goto L_PreGainEars; + + if (Katze == 7) goto L_Finished; + +L_NeedsMilk: + mes "[Katze]"; + mes "\"Meow.\""; + next; + menu "Throw a stone at the cat", L_ThrowStone, + "Leave the cat alone", -; + close; + +L_ThrowStone: + set Katze, 0; + // Maybe make sure not to kill the player, since this has an issue. The + // text below will remain in the NPC dialog until it is used again. + heal -100,0; + warp "015-1.gat", 60, 32; + mes "\"GRAAUWL! Hissss...\""; + mes "Yikes, the cat attacked you! Your whole body is scratched. Maybe throwing a stone wasn't such a great idea..."; + close; + +L_PreNeedsFood: +L_NeedsFood: + mes "[Katze]"; + mes "\"Meow, prrrr...\""; + next; + menu "Throw a stone at the cat", L_ThrowStone, + "Leave the cat alone", -; + close; + +L_PreNeedsFur: +L_NeedsFur: + mes "[Katze]"; + mes "\"Prrr. Meow, prrr...\""; + next; + + if (countitem("WhiteFur") > 0) + menu "Make funny movements with the fur near the ground", L_MoveFur, + "Throw a stone at the cat", L_ThrowStone, + "Leave the cat alone", -; + if (countitem("WhiteFur") == 0) + menu "Throw a stone at the cat", L_ThrowStone, + "Leave the cat alone", -; + close; + +L_MoveFur: + delitem "WhiteFur", 1; + set Katze, 3; + mes "The cat jumps at the fur! You quickly let go of it. The cat happily returns to its spot, carrying the fur in its mouth."; + next; + mes "The cat drops the fur and looks at you with half opened eyes. Suddenly she starts talking, and says: \"That was very kind of you.\" She seems to be smiling."; + close; + +L_NeedsWood: + mes "[Katze]"; + mes "\"Prrrr, now I'd like something to sharpen my claws on.\""; + next; + + if (countitem("RawLog") > 0) + menu "Want this piece of wood?", L_GiveWood, + "Ok, see you later", -; + close; + +L_GiveWood: + mes "[Katze]"; + mes "\"Sure! Please put it next to the pot.\""; + close; + +L_PreNeedsStuff: + mes "The cat is still eyeing the piece of wood. She probably needs to be left alone for a bit again."; + close; + +L_NeedsStuff: + set Katze, 5; + mes "[Katze]"; + mes "\"You've been really kind to me. I can make you something nice, but I will need"; + mes "2 Snake Skins,"; + mes "2 Snake Tongues,"; + mes "2 Maggot Slimes,"; + mes "2 White Furs,"; + mes "2 Hard Spikes and"; + mes "2 Tiny Healing Potions.\""; + close; + +L_NeedsStuff2: + mes "[Katze]"; + mes "\"Did you bring what I asked you for?\""; + next; + menu "Look here", L_CatChecksStuff, + "What do you need again?", L_WhatsNeeded, + "No, I haven't got everything yet", -; + close; + +L_WhatsNeeded: + mes "[Katze]"; + mes "\"Actually, you should have remembered yourself.\""; + next; + menu "Please tell me", L_Please, + "Never mind", -; + close; + +L_Please: + mes "[Katze]"; + mes "\"Alright... [the cat glares at you] it was"; + mes "2 Snake Skins,"; + mes "2 Snake Tongues,"; + mes "2 Maggot Slimes,"; + mes "2 White Furs,"; + mes "2 Hard Spikes and"; + mes "2 Tiny Healing Potions.\""; + close; + +L_CatChecksStuff: + if (countitem("SnakeSkin") > 1 && + countitem("SnakeTongue") > 1 && + countitem("MaggotSlime") > 1 && + countitem("WhiteFur") > 1 && + countitem("HardSpike") > 1 && + countitem("TinyHealingPotion") > 1) + goto L_GiveStuff; + mes "[Katze]"; + mes "\"You don't seem to have everything yet. Come back later when you do.\""; + close; + +L_GiveStuff: + delitem "SnakeSkin", 2; + delitem "SnakeTongue", 2; + delitem "MaggotSlime", 2; + delitem "WhiteFur", 2; + delitem "HardSpike", 2; + delitem "TinyHealingPotion", 2; + set Katze, 6; + set KatzeBeenOutside, 0; + mes "[Katze]"; + mes "\"Nicely done! Now leave me alone for a while, I need some time to prepare your present.\""; + close; + +L_PreGainEars: + mes "[Katze]"; + mes "\"Please leave me alone for a while, so I can prepare your present.\""; + close; + +L_GainEars: + getitem "CatEars", 1; + set @xpval, 5000; + getexp @xpval, 0; + set Katze, 7; + mes "[Katze]"; + mes "\"Look what I made for you! It makes you look a bit like me! Maybe it will give you a feeling of what it is like to be a cat.\""; + mes "The cat winks at you."; + mes "[You gain " + @xpval + " experience points]"; + close; + +L_Finished: + mes "[Katze]"; + if (getequipid(equip_head) == 1217) // Cat ears + mes "\"Meow, fellow cat.\""; + if (getequipid(equip_head) != 1217) + mes "\"Meow. Lost your ears?\""; + close; +} diff --git a/world/map/npc/015-3/pot.txt b/world/map/npc/015-3/pot.txt new file mode 100644 index 00000000..a965223d --- /dev/null +++ b/world/map/npc/015-3/pot.txt @@ -0,0 +1,106 @@ +// The pot where the player can deposit stuff for the cat. + +015-3.gat,37,29,0 script Pot 127, { + + if (Katze > 0) + mes "It's that old pot again."; + if (Katze == 0) + mes "It's a pot."; + next; + + if (Katze == 1 && KatzeBeenOutside == 1) goto L_NeedsFood; + if (Katze == 1) goto L_HasMilk; + + if (Katze == 2 && KatzeBeenOutside == 1) goto L_NeedsFur; + if (Katze == 2) goto L_HasFood; + + if (Katze == 3) goto L_NeedsWood; + + if (Katze == 4 && KatzeBeenOutside == 0) goto L_HasWood; + if (Katze >= 4) goto L_Finished; + +L_NeedsMilk: + if (countitem("Milk") > 0) + menu + "Pour in some milk", L_GiveMilk, + "Leave it alone", -; + close; + +L_GiveMilk: + delitem "Milk", 1; + set Katze, 1; + set KatzeBeenOutside, 0; + close; + +L_HasMilk: + mes "There is milk in it."; + close; + +L_NeedsFood: + mes "The milk is gone!"; + next; + + if (countitem("ChickenLeg") > 0 && countitem("Steak") > 0) + menu + "Put in a chicken leg", L_GiveChicken, + "Put in a steak", L_GiveSteak, + "Leave it alone", -; + if (countitem("ChickenLeg") > 0 && countitem("Steak") == 0) + menu + "Put in a chicken leg", L_GiveChicken, + "Leave it alone", -; + if (countitem("ChickenLeg") == 0 && countitem("Steak") > 0) + menu + "Put in a steak", L_GiveSteak, + "Leave it alone", -; + close; + +L_GiveChicken: + delitem "ChickenLeg", 1; + set Katze, 2; + set KatzeBeenOutside, 0; + close; + +L_GiveSteak: + delitem "Steak", 1; + set Katze, 2; + set KatzeBeenOutside, 0; + close; + +L_HasFood: + mes "There is some food in it."; + close; + +L_NeedsFur: + mes "And it's empty!"; + next; + + if (countitem("WhiteFur") > 0) + menu "Put a white fur next to the pot", L_GiveFur, + "Leave it alone", -; + close; + +L_GiveFur: + mes "You put down the fur, but the cat doesn't seem to take any notice. Maybe there's something else you could do. You pick the fur up again."; + close; + +L_NeedsWood: + if (countitem("RawLog") > 0) + menu "Put a wooden log next to the pot", L_GiveWood, + "Leave it alone", -; + close; + +L_GiveWood: + delitem "RawLog", 1; + set Katze, 4; + set KatzeBeenOutside, 0; + mes "You put the wooden log next to the pot. The cat eyes it suspiciously, but remains on her spot."; + close; + +L_HasWood: + mes "A wooden log is patiently lying next to it."; + close; + +L_Finished: + close; +} diff --git a/world/map/npc/016-1/_import.txt b/world/map/npc/016-1/_import.txt new file mode 100644 index 00000000..3ba02b95 --- /dev/null +++ b/world/map/npc/016-1/_import.txt @@ -0,0 +1,7 @@ +// Map 016-1: Woodland +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 016-1.gat +npc: npc/016-1/_mobs.txt +npc: npc/016-1/_warps.txt +npc: npc/016-1/gwendolyn.txt +npc: npc/016-1/monsters.txt diff --git a/world/map/npc/016-1/_mobs.txt b/world/map/npc/016-1/_mobs.txt new file mode 100644 index 00000000..3cdcb753 --- /dev/null +++ b/world/map/npc/016-1/_mobs.txt @@ -0,0 +1,20 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mobs + +016-1.gat,0,0,0,0 monster Clover 1037,2,100000,30000,Mob016-1::On1037 +016-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob016-1::On1055 + + +016-1.gat,0,0,0 script Mob016-1 -1,{ +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/016-1/_warps.txt b/world/map/npc/016-1/_warps.txt new file mode 100644 index 00000000..8503d94d --- /dev/null +++ b/world/map/npc/016-1/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland warps + +016-1.gat,56,20 warp ToWoodland 1,-1,010-1.gat,56,103 +016-1.gat,20,53 warp toSwamp -1,1,025-1.gat,129,58 diff --git a/world/map/npc/016-1/gwendolyn.txt b/world/map/npc/016-1/gwendolyn.txt new file mode 100644 index 00000000..469b720a --- /dev/null +++ b/world/map/npc/016-1/gwendolyn.txt @@ -0,0 +1,530 @@ +//################################################################################# +//# +//# This script is for gaining the skill "Hawk's Eye" +//# +//# Needed: Forest Bow Quest +//# +//# Quest1: Proving Dexterity +//# Needed: 10 cave snake eggs, 10 snake eggs, 10 mountain snake eggs, 10 grass snake eggs +//# Reward: 10000 Exp +//# Quest2: Hitting the Target +//# Needed: win the minigame and hit the target depending on the wind, dex and agi +//# Reward: Skill Hawk's Eye +//# +//# Variables used: @QUEST_Forestbow_state, nibble 6 +//# +//# This nibble will have these values: +//# 0, state0: never talked to Gwendolyn +//# 1, state1: talked with her, but not a student yet +//# 2, state2: student, but no bow (from alan of course) +//# 3, state3: heard first lesson, she is waiting for the snake eggs +//# 4, state4: quest done, but too young, or having the ability for skills not learned +//# 5, state5: you are ready to do the targeting minigame +//# 6, state6: you did the minigame +//################################################################################# + +016-1.gat,33,45,0 script Gwendolyn 182, { + // schoolfee in gp + set @SCHOOLFEE, 25000; + // how many eggs do you need of each kind? + set @EGGS_AMOUNT, 10; + // experience for eggs + set @QUEST_EGG_EXP, 10000; + // The needed level for the minigame: + set @BASELEVEL_GAME, 50; + // experience gained for hitting the bullseye: + set @QUEST_HAWK_EXP, 10000; + + set @Q_hawkseye_MASK, NIBBLE_6_MASK; + set @Q_hawkseye_SHIFT, NIBBLE_6_SHIFT; + + set @Q_hawkseye, (QUEST_Forestbow_state & @Q_hawkseye_MASK) >> @Q_hawkseye_SHIFT; + + set @Q_forestbow_MASK, NIBBLE_0_MASK; + set @Q_forestbow_SHIFT, NIBBLE_0_SHIFT; + + set @FORESTBOW, ((QUEST_Forestbow_state) & @Q_forestbow_MASK) >> @Q_forestbow_SHIFT; + + if (@Q_hawkseye == 6) goto state6; + if (@Q_hawkseye == 5) goto state5; + if (@Q_hawkseye == 4) goto state4; + if (@Q_hawkseye == 3) goto state3; + if (@Q_hawkseye == 2) goto state2; + if (@Q_hawkseye == 1) goto state1; + +state0: + mes "[Gwendolyn Bowmaker]"; + mes "\"Hello, and welcome to my reopened School of Archery. My name is Gwendolyn Bowmaker; I'm the granddaughter of the famous Gwendolyn Bowmaker.\""; + next; + mes "\"As you surely know, she was the greatest archer this world had ever seen and opened this School of Archery together with her husband Simon Bowmaker. He was able to make the most well-balanced and the finest bows.\""; + next; + mes "\"I am now back from my training journey and want to continue with my family's tradition, to teach the Way of Archery.\""; + next; + mes "\"Are you interested in becoming a student of Archery?\""; + next; + menu + "I want to become an archer!", -, + "I'm not interested right now.", no_student; +fee: + mes "[Gwendolyn Bowmaker]"; + mes "\"Wonderful! The school's fee is " + @SCHOOLFEE + ".\""; + next; + menu + "That's a lot, but I think it will be worth it.", -, + "I'm not sure I want to spend that much.", no_student; + + if (zeny < @SCHOOLFEE) goto no_money; + + set zeny, zeny - @SCHOOLFEE; + set @Q_hawkseye, 2; + callsub S_Update_Var; + + mes "[Gwendolyn Bowmaker]"; + mes "\"The first thing you need is, obviously, a bow. You should not use any you come across, but a high quality one. I think it would be best to go to Alan in Hurnscald. He is my cousin, and knows how to make Forest Bows of exquisite quality. \""; + + if (countitem("ForestBow") < 1) close; + next; + menu + "I already have a Forest Bow.", -; + +state2: + mes "[Gwendolyn Bowmaker]"; + mes "\"Let me see your bow.\""; + next; + + if (countitem("ForestBow") < 1) goto no_bow; + + if (@FORESTBOW < 5) goto bow_bought; + + set @Q_hawkseye, 3; + callsub S_Update_Var; + mes "[Gwendolyn Bowmaker]"; + mes "\"Very well, this looks fine. It is time for your first lesson. \""; + next; + +lesson: + mes "[Gwendolyn Bowmaker]"; + mes "\"The advantage of fighting with a ranged weapon is that you can stay out of the enemy's range. So there is no need to spend training on your resistibility.\""; + next; + mes "\"But remember: this makes you much more vulnerable, so watch your step and don't stumble into your enemy's attack.\""; + next; + mes "\"Also your strength doesn't matter much. You might be able to shoot a little harder, but not so much as to make it important.\""; + next; + mes "\"The most important thing to improve is your dexterity. When you use a bow, it is your dexterity that determines if you are able to hit your enemy where it hurts most.\""; + next; + mes "\"Also worth mentioning is how to improve your ability to shoot fast. You need to be agile to grab a new arrow from your quiver and aim for the next shot before your enemy has recovered from your last.\""; + next; + +state3: + mes "[Gwendolyn Bowmaker]"; + mes "\"To demonstrate that you understood what I'm trying to teach you, you should go and fight against some snakes. To prove me your results, bring me ten each of cave snake eggs, snake eggs, mountain snake eggs and grass snake eggs.\""; + next; + + menu + "Can you please repeat your lesson?", lesson, + "I will go and hunt some snakes.", quit, + "I have what you want.", -; + + if (countitem("CaveSnakeEgg") < @EGGS_AMOUNT ||countitem("SnakeEgg") < @EGGS_AMOUNT ||countitem("MountainSnakeEgg") < @EGGS_AMOUNT ||countitem("GrassSnakeEgg") < @EGGS_AMOUNT) goto not_enough_eggs; + + delitem "CaveSnakeEgg", @EGGS_AMOUNT; + delitem "SnakeEgg", @EGGS_AMOUNT; + delitem "MountainSnakeEgg", @EGGS_AMOUNT; + delitem "GrassSnakeEgg", @EGGS_AMOUNT; + + getexp @QUEST_EGG_EXP, 0; + + set @Q_hawkseye, 4; + callsub S_Update_Var; + + mes "[Gwendolyn Bowmaker]"; + mes "\"Very well. That will make a great meal.\""; + next; + +state4: + if (baselevel < @BASELEVEL_GAME) goto not_ready; + if (!(getskilllv(SKILL_POOL))) goto not_ready; + mes "Gwendolyn takes an analyzing look at you. Then she nods."; + next; + + set @Q_hawkseye, 5; + callsub S_Update_Var; + mes "[Gwendolyn Bowmaker]"; + mes "\"Ok. You have made great progress. I think you are ready for further tasks.\""; + next; + +game_explain: + mes "[Gwendolyn Bowmaker]"; + mes "\"As you might have noticed, it depends on many circumstances if your arrow finds its target. Your shot may be too powerful or too weak, so the arrow goes far beyond your target or hits the ground before it reaches its destination.\""; + next; + mes "\"The greater the distance to your target is, the more important is the strength and direction of the wind. Even if you are exploring a cave, there might be air flow caused by the corners in the cave.\""; + next; + mes "\"Ok, you can see that target over there? I will tell you how strong the wind blows and from which direction. Then you will try to hit the target by moving right or left and decide how powerful you want to shoot.\""; + next; + +state5: + // needed for the minigame: + set @wdX, 0; // wind direction x-coordinate, rand + set @wdY, 0; // wind direction y-coordinate, rand + // set @wp, 0; // windpower + set @spX, 0; // start position x-coordinate, player decision + // set @spY, 0; // start position y-coordinate, const + set @sp, 0; // shotpower, player decision + //set @targetX, 0; // target position, const + //set @targetY, 20; // target position, const + set @pointX, 0; // point the player hits, x-coordinate + set @pointY, 0; // point the player hits, y-coordinate + set @wdIndex, 0; + // + mes "[Gwendolyn Bowmaker]"; + mes "\"Show me what you can!\""; + next; + + menu + "Can you please explain the task again?", game_explain, + "I'm ready, let's start!", -, + "I'm sorry, I will come back later.", quit; + +game: + if (countitem("ForestBow") < 1) goto no_bow; + if (countitem("Arrow") < 1) goto no_arrows; + delitem "Arrow", 1; + mes "You go to the training field and stand exactly on the same level with the target. The target is located about 43 feet north of you.You take one arrow and look at Gwendolyn."; + next; + + // possibility for wdX and wdY to become zero is reduced, so windless status is less often + set @wdX, rand(9) - 4; + if (@wdX != 2 && @wdX !=-2) set @wdX, rand(9) - 4; + if (@wdX == 0) set @wdX, rand(9) - 4; + + set @wdY, rand(9) - 4; + if (@wdY != 2 && @wdY !=-2) set @wdY, rand(9) - 4; + if (@wdY == 0) set @wdY, rand(9) - 4; + + // wind direction array, where the wind blows to: + // 123 + // 456 + // 789 + //here is where the wind comes from, that's why it is the opposite. + setarray @wd$,"error1, please report", "southeast", "south", "southwest", "east", "error2, please report", "west", "northeast", "north", "northwest" ; + set @paramX, @wdX; + set @paramY, @wdY; + callsub S_getDirection; + set @wdIndex, @returnIndex; + + set @wp_sq, (@wdX * @wdX) + (@wdY * @wdY); + + if (@wp_sq == 0) goto wp0; + if (@wp_sq < 3) goto wp1; + if (@wp_sq < 9) goto wp2; + if (@wp_sq < 19) goto wp3; + goto wp4; + + +wp0: + mes "[Gwendolyn Bowmaker]"; + mes "\"You're lucky. It is windless now.\""; + next; + goto choose_start_pos; +wp1: + mes "[Gwendolyn Bowmaker]"; + mes "\"There is a slight breeze coming from "+ @wd$[@wdIndex] + ".\""; + next; + goto choose_start_pos; +wp2: + mes "[Gwendolyn Bowmaker]"; + mes "\"The wind is blowing from "+ @wd$[@wdIndex] + ".\""; + next; + goto choose_start_pos; +wp3: + mes "[Gwendolyn Bowmaker]"; + mes "\"Right now, there is a strong wind blowing from " + @wd$[@wdIndex] + ".\""; + next; + goto choose_start_pos; +wp4: + mes "[Gwendolyn Bowmaker]"; + mes "\"Here we have a squall from "+ @wd$[@wdIndex] + ".\""; + next; + goto choose_start_pos; + +choose_start_pos: + mes "Do you want to go to the left, the right or stay where you are?"; + next; + + menu + "I want to move left.", step_left, + "I go right.", step_right, + "I stay.", step_no, + "I will try it later.", quit; + +step_no: + set @spX, 0; + mes "You stay where you are.."; + next; + goto choose_shotpower; + +step_left: + mes "How many steps?"; + next; + menu + "1", step_left1, + "2", step_left2, + "3", step_left3, + "4", step_left4; +step_left1: + set @spX, -1; + mes "You take one step to the left."; + next; + goto choose_shotpower; +step_left2: + set @spX, -2; + mes "You take two steps to the left."; + next; + goto choose_shotpower; +step_left3: + set @spX, -3; + mes "You take three steps to the left."; + next; + goto choose_shotpower; +step_left4: + set @spX, -4; + mes "You take four steps to the left."; + next; + goto choose_shotpower; + +step_right: + mes "How many steps?"; + next; + menu + "1", step_right1, + "2", step_right2, + "3", step_right3, + "4", step_right4; +step_right1: + set @spX, 1; + mes "You take one step to the right."; + next; + goto choose_shotpower; +step_right2: + set @spX, 2; + mes "You take two steps to the right."; + next; + goto choose_shotpower; +step_right3: + set @spX, 3; + mes "You take three steps to the right."; + next; + goto choose_shotpower; +step_right4: + set @spX, 4; + mes "You take four steps to the right."; + next; + goto choose_shotpower; + +choose_shotpower: + mes "How powerfully do you want to shoot?"; + next; + + menu + "very weak shot", -, + "rather weak shot", -, + "weak shot", -, + "somewhat weak shot", -, + "medium shot", -, + "somewhat powerful shot", -, + "powerful shot", -, + "rather powerful shot", -, + "very powerful shot", -; + + // we have 9 menu entries, so scale @menu, which is in range 1-9, to a scale in -4 to +4 + set @sp, @menu - 5; + // calculate where you hit. You range is in [-8, 8] in X and Y as well + set @pointX, @wdX + @spX; + set @pointY, @wdY + @sp; + + if( @pointX==0 && @pointY==0 ) goto target_hit; + + //set @targethit to these numbers: + //1,2,3 for left above, above, right above, + //4,5,6 for left, hit, right + //7,8,9 for lower left, below, lower right; + setarray @target_direction$, "error3, please report", "left above", "above", "right above","left","error4, please report","right","lower left","below","lower right"; + + set @paramX , @pointX; + set @paramY , @pointY; + callsub S_getDirection; + set @targethit, @returnIndex; + + //now check how close + //get the distance squared: + // so it is in range 0 - 64: + // 0 is hit + // < 5 is very close + // <17 is close + // rest is a quite fucking shot + set @target_dist_sq, (@pointX * @pointX) + (@pointY*@pointY); + + if (@target_dist_sq < 5) goto target_veryclose; + if (@target_dist_sq < 17) goto target_close; + + //here are bad shots: + mes "[Gwendolyn Bowmaker]"; + mes "\"D'oh, what a terrible shot!\""; + next; + mes "\"Do you even know what a bow is?\""; + next; + mes "\"That was far "+@target_direction$[@targethit]+".\""; + next; + goto game; + +target_close: + mes "[Gwendolyn Bowmaker]"; + mes "\"That was "+@target_direction$[@targethit]+".\""; + next; + mes "\"I suggest some training.\""; + next; + goto game; + +target_veryclose: + mes "[Gwendolyn Bowmaker]"; + mes "\"That was quite close. Impressive!\""; + next; + mes "\"It was a little "+@target_direction$[@targethit]+".\""; + next; + mes "\"But you did not hit... have another try.\""; + next; + //like a coin toss: 2 possibilites, the same chance for both: + //if(0 == rand(2)) goto game; + mes "\"Hurry up, before the wind changes.\""; + next; + goto choose_start_pos; + +target_hit: + mes "[Gwendolyn Bowmaker]"; + mes "\"Wonderful! That was great! Directly hit the bull's eye!\""; + next; + mes "\"Seems like you did it!\""; + next; + mes "\"Let me inspect it...\" She walks to the target."; + next; + if( rand(500) > (2*readparam(bDex) + readparam(bAgi))) goto target_nohit; + set @Q_hawkseye, 6; + callsub S_Update_Var; + + setskill SKILL_MALLARDS_EYE, 1; + getexp @QUEST_HAWK_EXP, 0; + + mes "\"You proved that you are worthy to call yourself a graduate of the School of Archery.\""; + next; + mes "\"But remember, there is always something new to learn. And you should not let your training down in order to keep and improve your abilities.\""; + close; + +target_nohit: + mes "\"Ohh! Half a fingerbreadth aside.\""; + next; + mes "\"That is quite impressive, but you can perform better with more training.\""; + next; + goto game; + +state6: + mes "[Gwendolyn Bowmaker]"; + mes "\"You really have a reason to be proud.\""; + close; + +state1: + mes "[Gwendoly Bowmaker]"; + mes "\"Welcome back. Did you decide to follow the Way of Archery?\""; + next; + menu + "I want to become an archer!", fee, + "I am not interested", -; + +no_student: + mes "\"That's a pity. Well, if you change your mind, come back any time.\""; + set @Q_hawkseye, 1; + callsub S_Update_Var; + close; + +no_money: + mes "\"I am sorry, but it seems that you don't have enough money. Come back when you have reorganized your finances.\""; + set @Q_hawkseye, 1; + callsub S_Update_Var; + close; + +no_bow: + mes "\"As an archer, you should always carry your bow with you. Go and get it.\""; + close; + +bow_bought: + mes "\"You just bought it? You won't learn anything from that. To understand the nature of this bow, you have to collect the needed material by yourself. Only this way will you get a feeling of what it means to use such a weapon. \""; + next; + mes "\"The best thing would be to let you make the bow by yourself. But I guess, that would go to far. And it would take ages to get a high quality bow.\""; + next; + mes "\"Ok, go to Alan and come back with a bow made out of the logs you collected.\""; + close; + +not_enough_eggs: + mes "\"Maybe I should also give you a lesson in how to count? You haven't enough.\""; + close; + +not_ready: + mes "\"I am pleased about your progrees, but you are not ready for the next step yet. Go and do some more training, before you come back. Remember also: It is wise to speak with people you meet on your journey, there is always something new to learn.\""; + close; + +no_arrows: + mes "Gwendolyn sighs and shake her head."; + next; + mes "\"Another lecture: Take always enough arrows with you. Go and come back when you are equipped adequately.\""; + close; + +quit: + close; + +S_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_hawkseye_MASK) + | (@Q_hawkseye << @Q_hawkseye_SHIFT)); + return; + +S_getDirection: + // get @paramX @paramY as parameters + // returns an index where these parameters are in relation to origin + // 123 + // 456 whereas 5 is the origin. (3,6,9 there is paramX>0); (1,2,3 there is paramY>0) + // 789 + //first check the quadrants and after check more precisely + if(@paramX>0 && @paramY>0) set @returnIndex, 3; + if(@paramX>0 && @paramY<0) set @returnIndex, 9; + if(@paramX<0 && @paramY>0) set @returnIndex, 1; + if(@paramX<0 && @paramY<0) set @returnIndex, 7; + + //straight left + if ( (@paramX < 0) && (@paramY >= @paramX/2) && (-@paramY >= @paramX/2) ) set @returnIndex, 4; + + //straight right + if ( (@paramX > 0) && (@paramY <= @paramX/2) && (-@paramY <= @paramX/2) ) set @returnIndex, 6; + + //straight above + if ( (@paramY > 0) && (@paramX <= @paramY/2) && (-@paramX <= @paramY/2) ) set @returnIndex, 2; + + //straight below + if ( (@paramY < 0) && (@paramX >= @paramY/2) && (-@paramX >= @paramY/2) ) set @returnIndex, 8; + + //check the origin, because the origin is found by the "straight" lines as well. (should not, but is.. maybe a bug?) + if( @paramX==0 && @paramY==0 ) set @returnIndex, 5; + return; +} + +//////////////////////////////////// +// rand(X) returns a random number uniformly distributed between in range [0; X-1] +// +// A=rand(2) => (0,1) 50% for 0 50% for 1 +// B=rand(2) => (0,1) 50% for 0 50% for 1 +// C=rand(2) => (0,1) 50% for 0 50% for 1 +// D=rand(2) => (0,1) 50% for 0 50% for 1 +// +// A+B => 0+0, 1+0, 0+1, 1+1 => [0,1,2] 25% for 0 50 % for 1 25 % for 2 +// +// rand(3) => [0,1,2] 33% for 0 33% for 1 33% for 2 + + diff --git a/world/map/npc/016-1/monsters.txt b/world/map/npc/016-1/monsters.txt new file mode 100644 index 00000000..d9d0de4f --- /dev/null +++ b/world/map/npc/016-1/monsters.txt @@ -0,0 +1,48 @@ +// Map: 016-1 +// This is Southernmost Woodlands. +// + +016-1.gat,0,0,0,0 monster Mouboo 1028,5,0,0,Mob32::OnMouboo +016-1.gat,0,0,0,0 monster Scorpion 1003,15,0,0,Mob32::OnScorpion + +016-1.gat,0,0,0,0 monster Mauve 1029,3,0,0,Mob32::OnMauve +016-1.gat,0,0,0,0 monster Cobalt 1030,3,0,0,Mob32::OnCobalt +016-1.gat,0,0,0,0 monster Mauve 1029,4,270000,180000,Mob32::OnMauve + +016-1.gat,0,0,0,0 monster SilkWorm 1035,7,15000,7000,Mob32::onSilkWorm + +016-1.gat,0,0,0,0 monster Squirrel 1038,30,20,10,Mob32::OnSquirrel + +016-1.gat,0,0,0 script Mob32 -1,{ +OnMouboo: + set @mobID, 1028; + callfunc "MobPoints"; + break; + +OnScorpion: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +OnMauve: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +OnCobalt: + set @mobID, 1030; + callfunc "MobPoints"; + break; + +OnSilkWorm: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +OnSquirrel: + set @mobID, 1038; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/017-1/_import.txt b/world/map/npc/017-1/_import.txt new file mode 100644 index 00000000..41eb315e --- /dev/null +++ b/world/map/npc/017-1/_import.txt @@ -0,0 +1,6 @@ +// Map 017-1: Woodland hills +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 017-1.gat +npc: npc/017-1/_mobs.txt +npc: npc/017-1/_warps.txt +npc: npc/017-1/monsters.txt diff --git a/world/map/npc/017-1/_mobs.txt b/world/map/npc/017-1/_mobs.txt new file mode 100644 index 00000000..a28ae59b --- /dev/null +++ b/world/map/npc/017-1/_mobs.txt @@ -0,0 +1,33 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland hills mobs + +017-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob017-1::On1037 +017-1.gat,29,29,19,12 monster GambogeHerb 2033,1,0,25000,Mob017-1::On2033 +017-1.gat,91,25,76,8 monster Loghead 2027,3,5000,60000,Mob017-1::On2027 +017-1.gat,31,48,19,12 monster Loghead 2027,3,5000,60000,Mob017-1::On2027 +017-1.gat,0,0,0,0 monster Butterfly 1055,10,30,20,Mob017-1::On1055 + + +017-1.gat,0,0,0 script Mob017-1 -1,{ +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + +On2027: + set @mobID, 2027; + callfunc "MobPoints"; + break; + +On2033: + set @mobID, 2033; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/017-1/_warps.txt b/world/map/npc/017-1/_warps.txt new file mode 100644 index 00000000..3eb1c24e --- /dev/null +++ b/world/map/npc/017-1/_warps.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland hills warps + +017-1.gat,46,105 warp toWoodland 2,-1,013-1.gat,45,22 +017-1.gat,43,32 warp toTheatre -1,-1,017-2.gat,26,28 +017-1.gat,76,31 warp toCave -1,-1,013-3.gat,141,147 +017-1.gat,98,20 warp toCave -1,-1,013-3.gat,173,129 +017-1.gat,97,31 warp toCave -1,-1,013-3.gat,162,168 diff --git a/world/map/npc/017-1/monsters.txt b/world/map/npc/017-1/monsters.txt new file mode 100644 index 00000000..28f2d7e2 --- /dev/null +++ b/world/map/npc/017-1/monsters.txt @@ -0,0 +1,83 @@ +// Map: 017-1 +// This is North Woodlands Mountains. +// + +017-1.gat,0,0,0,0 monster Bat 1017,5,0,0,Mob33::OnBat +017-1.gat,0,0,0,0 monster FireGoblin 1011,5,0,0,Mob33::OnFireGoblin +017-1.gat,0,0,0,0 monster Mouboo 1028,5,0,0,Mob33::OnMouboo +017-1.gat,0,0,0,0 monster PinkFlower 1014,5,0,0,Mob33::OnPinkFlower +017-1.gat,0,0,0,0 monster SpikyMushroom 1019,5,0,0,Mob33::OnSpikyMushroom +017-1.gat,0,0,0,0 monster EvilMushshroom 1013,10,0,0,Mob33::OnEvilMushroom + +017-1.gat,0,0,0,0 monster Alizarin 1032,3,0,0,Mob33::OnAlizarin +017-1.gat,0,0,0,0 monster Gamboge 1031,3,0,0,Mob33::OnGamboge +017-1.gat,0,0,0,0 monster Cobalt 1030,3,0,0,Mob33::OnCobalt +017-1.gat,0,0,0,0 monster Mauve 1029,5,0,0,Mob33::OnMauve + +017-1.gat,0,0,0,0 monster SilkWorm 1035,10,0,0,Mob33::OnSilkWorm + +017-1.gat,0,0,0,0 monster Squirrel 1038,30,20,10,Mob33::OnSquirrel + +017-1.gat,0,0,0 script Mob33 -1,{ +OnBat: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +OnFireGoblin: + set @mobID, 1011; + callfunc "MobPoints"; + break; + +OnMouboo: + set @mobID, 1028; + callfunc "MobPoints"; + break; + +OnPinkFlower: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +OnSpikyMushroom: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +OnEvilMushroom: + set @mobID, 1013; + callfunc "MobPoints"; + break; + +OnAlizarin: + set @mobID, 1032; + callfunc "MobPoints"; + break; + +OnGamboge: + set @mobID, 1031; + callfunc "MobPoints"; + break; + +OnCobalt: + set @mobID, 1030; + callfunc "MobPoints"; + break; + +OnMauve: + set @mobID, 1029; + callfunc "MobPoints"; + break; + +OnSilkWorm: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +OnSquirrel: + set @mobID, 1038; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/017-2/_import.txt b/world/map/npc/017-2/_import.txt new file mode 100644 index 00000000..843da4e7 --- /dev/null +++ b/world/map/npc/017-2/_import.txt @@ -0,0 +1,5 @@ +// Map 017-2: Theater +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 017-2.gat +npc: npc/017-2/_mobs.txt +npc: npc/017-2/_warps.txt diff --git a/world/map/npc/017-2/_mobs.txt b/world/map/npc/017-2/_mobs.txt new file mode 100644 index 00000000..fff25198 --- /dev/null +++ b/world/map/npc/017-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Theater mobs + + + +017-2.gat,0,0,0 script Mob017-2 -1,{ + end; +} diff --git a/world/map/npc/017-2/_warps.txt b/world/map/npc/017-2/_warps.txt new file mode 100644 index 00000000..0cd1dec9 --- /dev/null +++ b/world/map/npc/017-2/_warps.txt @@ -0,0 +1,11 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Theater warps + +017-2.gat,30,20 warp toBackStage02 -1,-1,017-9.gat,30,23 +017-2.gat,26,30 warp toWoodlandHills -1,-1,017-1.gat,43,33 +017-2.gat,22,20 warp toBackStage01 -1,-1,017-9.gat,22,23 +017-2.gat,21,-3 warp toStage01 -2,-2,013-2.gat,24,58 +017-2.gat,26,-3 warp toStage01 -2,-2,013-2.gat,26,54 +017-2.gat,22,-13 warp toStage02 -2,-2,013-2.gat,22,54 +017-2.gat,30,-13 warp toStage01 -2,-2,013-2.gat,30,54 +017-2.gat,31,-3 warp toStage01 -2,-2,013-2.gat,28,58 diff --git a/world/map/npc/017-9/_import.txt b/world/map/npc/017-9/_import.txt new file mode 100644 index 00000000..819fd8b3 --- /dev/null +++ b/world/map/npc/017-9/_import.txt @@ -0,0 +1,5 @@ +// Map 017-9: Backstage +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 017-9.gat +npc: npc/017-9/_mobs.txt +npc: npc/017-9/_warps.txt diff --git a/world/map/npc/017-9/_mobs.txt b/world/map/npc/017-9/_mobs.txt new file mode 100644 index 00000000..960546c2 --- /dev/null +++ b/world/map/npc/017-9/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Backstage mobs + + + +017-9.gat,0,0,0 script Mob017-9 -1,{ + end; +} diff --git a/world/map/npc/017-9/_warps.txt b/world/map/npc/017-9/_warps.txt new file mode 100644 index 00000000..905f4de2 --- /dev/null +++ b/world/map/npc/017-9/_warps.txt @@ -0,0 +1,9 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Backstage warps + +017-9.gat,22,21 warp toLeftDoor -1,-1,017-2.gat,22,21 +017-9.gat,26,22 warp toWoodlandHills -1,-1,017-1.gat,43,33 +017-9.gat,30,21 warp toRightDoor -1,-1,017-2.gat,30,21 +017-9.gat,21,28 warp toLeftTrapdoor -1,-1,017-2.gat,24,25 +017-9.gat,26,28 warp toCentreTrapdoor -1,-1,017-2.gat,26,21 +017-9.gat,31,28 warp toRightTrapdoor -1,-1,017-2.gat,28,25 diff --git a/world/map/npc/018-1/_import.txt b/world/map/npc/018-1/_import.txt new file mode 100644 index 00000000..b3ab9841 --- /dev/null +++ b/world/map/npc/018-1/_import.txt @@ -0,0 +1,8 @@ +// Map 018-1: Woodland mining camp +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 018-1.gat +npc: npc/018-1/_mobs.txt +npc: npc/018-1/_warps.txt +npc: npc/018-1/mike.txt +npc: npc/018-1/miners.txt +npc: npc/018-1/sword.txt diff --git a/world/map/npc/018-1/_mobs.txt b/world/map/npc/018-1/_mobs.txt new file mode 100644 index 00000000..02cdab24 --- /dev/null +++ b/world/map/npc/018-1/_mobs.txt @@ -0,0 +1,94 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mining camp mobs + +018-1.gat,136,79,9,41 monster Sea Slime 1033,10,100000,30000,Mob018-1::On1033 +018-1.gat,108,87,53,25 monster Log Head 1025,10,100000,30000,Mob018-1::On1025 +018-1.gat,116,44,6,7 monster Sea Slime 1033,3,100000,30000,Mob018-1::On1033 +018-1.gat,119,56,13,6 monster PinkFlower 1014,2,100000,30000,Mob018-1::On1014 +018-1.gat,175,28,17,19 monster Jack O 1022,1,300000,240000,Mob018-1::On1022 +018-1.gat,78,59,3,1 monster Yellow Slime 1007,1,100000,30000,Mob018-1::On1007 +018-1.gat,57,63,14,7 monster Silk Worm 1035,2,100000,30000,Mob018-1::On1035 +018-1.gat,43,63,31,28 monster Bat 1017,10,100000,30000,Mob018-1::On1017 +018-1.gat,134,39,18,10 monster Grass Snake 1034,4,100000,50000,Mob018-1::On1034 +018-1.gat,124,42,9,11 monster Grass Snake 1034,2,100000,50000,Mob018-1::On1034 +018-1.gat,124,19,22,9 monster Grass Snake 1034,3,100000,50000,Mob018-1::On1034 +018-1.gat,122,29,19,9 monster Grass Snake 1034,2,100000,50000,Mob018-1::On1034 +018-1.gat,149,45,10,8 monster Bat 1017,5,100000,30000,Mob018-1::On1017 +018-1.gat,169,47,20,10 monster Red Slime 1008,4,120000,30000,Mob018-1::On1008 +018-1.gat,136,49,13,8 monster Bat 1017,4,100000,30000,Mob018-1::On1017 +018-1.gat,136,49,13,9 monster Clover Patch 1037,1,100000,30000,Mob018-1::On1037 +018-1.gat,111,62,5,2 monster Silk Worm 1035,1,60000,30000,Mob018-1::On1035 +018-1.gat,117,50,4,3 monster Sea Slime 1033,1,120000,60000,Mob018-1::On1033 +018-1.gat,96,47,18,11 monster Red Slime 1008,3,100000,50000,Mob018-1::On1008 +018-1.gat,106,52,15,6 monster Cobalt Plant 1030,1,240000,120000,Mob018-1::On1030 +018-1.gat,78,55,37,6 monster Red Slime 1008,7,100000,50000,Mob018-1::On1008 +018-1.gat,145,24,10,9 monster Red Slime 1008,3,100000,50000,Mob018-1::On1008 +018-1.gat,68,89,14,17 monster Bat 1017,3,100000,50000,Mob018-1::On1017 +018-1.gat,160,31,11,18 monster Red Slime 1008,5,100000,50000,Mob018-1::On1008 +018-1.gat,0,0,0,0 monster Clover 1037,2,0,1000,Mob018-1::On1037 +018-1.gat,0,0,0,0 monster Butterfly 1055,20,30,20,Mob018-1::On1055 + + +018-1.gat,0,0,0 script Mob018-1 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1008: + set @mobID, 1008; + callfunc "MobPoints"; + break; + +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1022: + set @mobID, 1022; + callfunc "MobPoints"; + break; + +On1025: + set @mobID, 1025; + callfunc "MobPoints"; + break; + +On1030: + set @mobID, 1030; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + +On1034: + set @mobID, 1034; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1055: + set @mobID, 1055; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/018-1/_warps.txt b/world/map/npc/018-1/_warps.txt new file mode 100644 index 00000000..028dbd0e --- /dev/null +++ b/world/map/npc/018-1/_warps.txt @@ -0,0 +1,18 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mining camp warps + +018-1.gat,79,59 warp toMine 0,-1,018-3.gat,99,132 +018-1.gat,112,61 warp toCave -1,-1,018-3.gat,44,36 +018-1.gat,115,40 warp toCave -1,-1,013-3.gat,22,114 +018-1.gat,128,56 warp toCave -1,-1,018-3.gat,49,97 +018-1.gat,90,42 warp toCave -1,-1,018-3.gat,123,164 +018-1.gat,69,54 warp toCave -1,-1,018-3.gat,70,103 +018-1.gat,127,36 warp toCave -1,-1,013-3.gat,139,44 +018-1.gat,134,45 warp toCave -1,-1,013-3.gat,61,178 +018-1.gat,147,40 warp toCave -1,-1,013-3.gat,81,102 +018-1.gat,153,46 warp toCave -1,-1,018-3.gat,146,160 +018-1.gat,158,34 warp toCave -1,-1,018-3.gat,64,101 +018-1.gat,162,44 warp toCave -1,-1,018-3.gat,29,164 +018-1.gat,177,20 warp toCave -1,-1,013-3.gat,177,90 +018-1.gat,65,73 warp toIndoor -1,-1,018-2.gat,50,28 +018-1.gat,79,98 warp toHurnscald 2,-1,008-1.gat,79,18 diff --git a/world/map/npc/018-1/mike.txt b/world/map/npc/018-1/mike.txt new file mode 100644 index 00000000..7e0d296c --- /dev/null +++ b/world/map/npc/018-1/mike.txt @@ -0,0 +1,22 @@ +018-1.gat,77,60,0 script Mike 113,{ + + mes "[Mike]"; + mes "\"I need black stingers to make some medicine to cure my sister.\""; + next; + + set @dq_level, 40; + set @dq_cost, 16; + set @dq_count, 4; + set @dq_name$, "BlackScorpionStinger"; + set @dq_friendly_name$, "black stingers"; + set @dq_money, 2500; + set @dq_exp, 500; + + callfunc "DailyQuest"; + + next; + + mes "\"Hopefully I'll have enough soon.\""; + close; + +} diff --git a/world/map/npc/018-1/miners.txt b/world/map/npc/018-1/miners.txt new file mode 100644 index 00000000..f16b8bd7 --- /dev/null +++ b/world/map/npc/018-1/miners.txt @@ -0,0 +1,7 @@ +// + +018-1.gat,80,61,0 script Miner 109,{ + mes "[Miner]"; + mes "\"Be careful in there.\""; + close; +} diff --git a/world/map/npc/018-1/sword.txt b/world/map/npc/018-1/sword.txt new file mode 100644 index 00000000..78cad244 --- /dev/null +++ b/world/map/npc/018-1/sword.txt @@ -0,0 +1,11 @@ +018-1.gat,110,43,0 script #IceSword#_M 127,{ + if (getskilllv(SKILL_MAGIC)) + goto L_message; + + close; + +L_message: + mes "[Sword in Pond]"; + mes "\"Zzzzzz.....\""; + close; +} diff --git a/world/map/npc/018-2/_import.txt b/world/map/npc/018-2/_import.txt new file mode 100644 index 00000000..8ce96730 --- /dev/null +++ b/world/map/npc/018-2/_import.txt @@ -0,0 +1,10 @@ +// Map 018-2: Woodland mining camp +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 018-2.gat +npc: npc/018-2/_mobs.txt +npc: npc/018-2/_warps.txt +npc: npc/018-2/angus.txt +npc: npc/018-2/books.txt +npc: npc/018-2/caul.txt +npc: npc/018-2/miners.txt +npc: npc/018-2/receptionist.txt diff --git a/world/map/npc/018-2/_mobs.txt b/world/map/npc/018-2/_mobs.txt new file mode 100644 index 00000000..87593b1c --- /dev/null +++ b/world/map/npc/018-2/_mobs.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mining camp mobs + +018-2.gat,114,21,4,3 monster Yellow Slime 1007,1,100000,30000,Mob018-2::On1007 + + +018-2.gat,0,0,0 script Mob018-2 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/018-2/_warps.txt b/world/map/npc/018-2/_warps.txt new file mode 100644 index 00000000..78c97883 --- /dev/null +++ b/world/map/npc/018-2/_warps.txt @@ -0,0 +1,10 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland mining camp warps + +018-2.gat,50,29 warp toOutside -1,-1,018-1.gat,65,74 +018-2.gat,41,20 warp toOutside -1,-1,018-1.gat,65,69 +018-2.gat,20,24 warp toBasement -1,-1,018-2.gat,112,27 +018-2.gat,112,26 warp toFirstFloor -1,-1,018-2.gat,20,23 +018-2.gat,21,28 warp toSecondFloor 0,-1,018-2.gat,79,25 +018-2.gat,79,26 warp toFirstFloor 0,-1,018-2.gat,21,29 +018-2.gat,114,20 warp toCave -1,-1,018-3.gat,177,53 diff --git a/world/map/npc/018-2/angus.txt b/world/map/npc/018-2/angus.txt new file mode 100644 index 00000000..846bed7d --- /dev/null +++ b/world/map/npc/018-2/angus.txt @@ -0,0 +1,18 @@ +// Angus the craftsman + +018-2.gat,31,39,0 script Angus 147,{ + set @honorific$, "lad"; + if (Sex == 0) set @honorific$, "lass"; + + if (Inspector == 10) goto L_NohMask; + + mes "[Angus]"; + mes "Angus is tinkering with some mechanical concoction."; + mes "\"It keeps breakin' left an' right... fortunat'ly I put in redundancies everywhere, but I haf' to keep repairin'.\""; + close; + +L_NohMask: + mes "[Angus]"; + mes "\"I'm sorry, " + @honorific$ + ", I truely am, but I stay in the town. One o' the miners might have heard something.\""; + close; +} diff --git a/world/map/npc/018-2/books.txt b/world/map/npc/018-2/books.txt new file mode 100644 index 00000000..22364c6d --- /dev/null +++ b/world/map/npc/018-2/books.txt @@ -0,0 +1,18 @@ +// + +018-2.gat,112,19,0 script #Bookcase38 127,0,1{ + if (Inspector == 11) goto L_NohMask; + + mes "Looking over the bookcase, you find nothing strange or out of order."; + close; + +L_NohMask: + mes "Looking over the bookcase closely, you find a book is upside down."; + next; + + mes "The book has been hollowed out. Inside is a theater mask and a note that you cannot even begin to read."; + next; + + set Inspector, 12; + close; +} diff --git a/world/map/npc/018-2/caul.txt b/world/map/npc/018-2/caul.txt new file mode 100644 index 00000000..56734a69 --- /dev/null +++ b/world/map/npc/018-2/caul.txt @@ -0,0 +1,1018 @@ +//################################################################################# +//# +//# this script file contains the script for the NPC which allows the +//# PCs to create potions from herbs. +//# +//# Participates in the monster oil subquest (cf. Nicholas' Setzer quest) +//# +//################################################################################# + +018-2.gat,37,22,0 script Caul 107,{ + set @SETZER_INITIAL, 0; + set @SETZER_KNOWS_OIL, 1; + set @SETZER_KNOWS_STINGER, 2; + set @SETZER_FLAG_MADE_OIL, 4; + + set @MONSTER_OIL_XP, 100000; + set @MOPOX_CURE_XP, 30000; + + set @Q_MASK, NIBBLE_3_MASK; + set @Q_SHIFT, NIBBLE_3_SHIFT; + + set @Q_status, (QUEST_Forestbow_state & @Q_MASK) >> @Q_SHIFT; + + set @Q_knows_mopox_cure, ((QUEST_MAGIC2 & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT) >= 4; // Elanore's quest for curing Kadiya + + // Can the player get XP for brewing the cure? + set @Q_can_score_mopox_cure, (((QUEST_MAGIC2 & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT) == 4) // Elanore's quest for curing Kadiya + && (((QUEST_MAGIC2 & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT) < 2); // Haven't brewed it yet + + mes "[Caul]"; + mes "\"I can help you to brew healing potions out of mauve, cobalt, gamboge and alizarin herbs."; + mes "How many potions do you want to brew?\""; + next; + + set @C_monster_oil, 20; + set @C_mopox_cure, 21; + set @C_nohmask, 22; + set @C_dementiapotion, 23; + set @C_bye, 24; + + setarray @choice$, "One", "Five", "Ten", "Fifty", "", "", "", "", ""; + setarray @choice_idx, 1, 5, 10, 50, 0, 0, 0, 0, 0; + set @choices_nr, 4; + + + if !(@Q_status) + goto L_M_no_monster_oil; + + set @choice_idx[@choices_nr], @C_monster_oil; + set @choice$[@choices_nr], "I would like to brew monster oil."; + set @choices_nr, @choices_nr + 1; + +L_M_no_monster_oil: + + if (!@Q_knows_mopox_cure) + goto L_M_no_mopox_cure; + + set @choice_idx[@choices_nr], @C_mopox_cure; + set @choice$[@choices_nr], "I would like to brew a Mopox cure."; + set @choices_nr, @choices_nr + 1; + +L_M_no_mopox_cure: + + if (Inspector != 10) + goto L_M_no_inspector; + + set @choice_idx[@choices_nr], @C_nohmask; + set @choice$[@choices_nr], "Actually..."; + set @choices_nr, @choices_nr + 1; + +L_M_no_inspector: + + if (!(MAGIC_FLAGS & MFLAG_KNOWS_UNFOCUS_RECIPE)) + goto L_M_no_dempo; + + set @choice_idx[@choices_nr], @C_dementiapotion; + set @choice$[@choices_nr], "I would like to brew Dementia Potion"; + set @choices_nr, @choices_nr + 1; + +L_M_no_dempo: + + set @choice_idx[@choices_nr], @C_bye; + set @choice$[@choices_nr], "Never mind"; + set @choices_nr, @choices_nr + 1; + + menu + @choice$[0], -, + @choice$[1], -, + @choice$[2], -, + @choice$[3], -, + @choice$[4], -, + @choice$[5], -, + @choice$[6], -, + @choice$[7], -; + + set @choice, @choice_idx[@menu - 1]; + + if (@choice == @C_monster_oil) + goto L_monster_oil_start; + if (@choice == @C_mopox_cure) + goto L_mopox_cure_start; + if (@choice == @C_nohmask) + goto L_NohMask; + if (@choice == @C_dementiapotion) + goto L_DemPotion; + if (@choice == @C_bye) + goto L_close; + + // otherwise the choice is the number of potions-to-brew + set @num, @choice; + if (@num == 0) + goto L_close; + +L_brew: + mes "[Caul]"; + mes "\"Now put " + @num + " herbs of each kind into the cauldron, stir, and concentrate all your mental energy on it.\""; + next; + + if (countitem("MauveHerb") < @num) goto L_NotEnough; + if (countitem("CobaltHerb") < @num) goto L_NotEnough; + if (countitem("GambogeHerb") < @num) goto L_NotEnough; + if (countitem("AlizarinHerb") < @num) goto L_NotEnough; + + set @a, @num; + set @result1, 0; + set @result2, 0; + set @result3, 0; + set @result4, 0; + +L_CraftLoop: + set @throw, rand(readparam(bInt)); + set @result, 1; + if (@throw >= 5) set @result, 2; + if (@throw >= 15) set @result, 3; + if (@throw >= 35) set @result, 4; + + if (@result == 1) set @result1, @result1 + 1; + if (@result == 2) set @result2, @result2 + 1; + if (@result == 3) set @result3, @result3 + 1; + if (@result == 4) set @result4, @result4 + 1; + + set @a, @a - 1; + if (@a > 0) goto L_CraftLoop; + + delitem "MauveHerb", @num; + delitem "CobaltHerb", @num; + delitem "GambogeHerb", @num; + delitem "AlizarinHerb", @num; + + getitem 684, @result1; + getitem 685, @result2; + getitem 686, @result3; + getitem 687, @result4; + + mes "[Caul]"; + mes "\"Well done! You made:"; + if (@result1 > 0) mes @result1 + " tiny potions"; + if (@result2 > 0) mes @result2 + " small potions"; + if (@result3 > 0) mes @result3 + " medium potions"; + if (@result4 > 0) mes @result4 + " large potions"; + mes "Come again.\""; + close; + +L_NotEnough: + mes "[Caul]"; + mes "\"Oh, it seems like you don't have enough herbs. You can find herbs in deep forests.\""; + close; + +L_monster_oil_start: + mes "[Caul]"; + mes "\"Monster oil? Hmm, I have heard of it, but I don't remember the precise recipe to make it...\""; + next; + if (@Q_status == @SETZER_KNOWS_OIL) + menu "OK, I'll ask around, perhaps someone else knows.", L_close; + if (@Q_status > @SETZER_KNOWS_OIL) + menu "Rauk told me the recipe.", L_monster_oil_knows_recipe; + close; + +L_monster_oil_knows_recipe: + mes "[Caul]"; + mes "\"Ah, but of course! Yes, we should be able to brew that here. Except that... hmm. Pearl and three black scorpion stingers? This sounds very dangerous;"; + mes "I fear that I will have to ask you to do this yourself.\""; + next; + +L_monster_oil_main_menu: + set @main_menu, 1; + menu + "What do you mean by 'dangerous'?", L_monster_oil_why_dangerous, + "What do I need, again?", L_monster_oil_ingredients, + "How does this work?", L_monster_oil_explain, + "Let's start!", L_monster_oil_start_brew, + "Where can I get a golden scorpion stinger?", L_monster_oil_where_gold, + "I've changed my mind.", L_close; + close; + +L_monster_oil_why_dangerous: + mes "[Caul]"; + mes "\"Well, with those two reagents in there at that ratio, you risk an explosion-- quite possibly a fatal one. So be prepared to duck if the brew gets too bubbly-- it's better to lose the ingredients than your head!\""; + next; + goto L_monster_oil_main_menu; + +L_monster_oil_ingredients: + mes "[Caul]"; + mes "\"You will need one pearl, two snake skins, three black scorpion stingers, two piles of ash, and a golden scorpion stinger. The golden stinger goes in last, after the dangerous part, so you won't lose it if your brew blows up.\""; + next; + mes "[Caul]"; + mes "\"You should also bring gamboge, mauve, alizarin and cobalt leaves. You will have to stabilize the brew, and they will help with that.\""; + next; + goto L_monster_oil_main_menu; + +L_monster_oil_explain: + mes "[Caul]"; + mes "\"After you have put in the monster parts-- except for the golden stinger-- the brew will take on some random color; this can be a light, dark, or medium color. You have to stabilize this color by adding leaves to it.\""; + next; + mes "[Caul]"; + mes "\"Of course, with such a violent brew the mixture will change color by itself, too, probably faster than your leaves can affect it. It will randomly add or remove colors, and might even get lighter.\""; + next; + mes "[Caul]"; + mes "\"From what I have seen, it seems to go through phases-- for each alternate leaf it adds a colour, then removes a color, then adds again and so on. Of course, if the color is there already it can't add any more.\""; + next; + mes "[Caul]"; + mes "\"I haven't figured out yet precisely when it gets lighter, though.\""; + next; + mes "[Caul]"; + mes "\"By adding Mauve, you can make it darker. Alizarin adds red, Gamboge yellow, Cobalt blue. To make it a proper black, you have to get it to be dark gray, then add one Mauve leaf.\""; + next; + mes "[Caul]"; + mes "\"Unfortunately the brew changes randomly before your leaves dissolve, so sometimes you can't help but add the wrong color...\""; + next; + mes "[Caul]"; + mes "\"Since the brew changes its color first, you might want to add the Mauve when your color is a dark purple or dark green or dark orange and hope for the best.\""; + next; + mes "[Caul]"; + mes "\"But don't add too much! If you add a color that is already there, or try to make it darker at the wrong spot, it may backfire.\""; + next; + if (@main_menu) + goto L_monster_oil_main_menu; + goto L_monster_oil_loop; + +L_monster_oil_where_gold: + mes "[Caul]"; + mes "\"Good question. There aren't any golden scorpions nearby. Perhaps you can find a trader or an adventurer who have travelled further south and ask them to help?\""; + next; + goto L_monster_oil_main_menu; + +L_monster_oil_start_brew: + set @main_menu, 0; + if (countitem ("Pearl") < 1) goto L_monster_oil_missing; + if (countitem ("SnakeSkin") < 2) goto L_monster_oil_missing; + if (countitem ("BlackScorpionStinger") < 3) goto L_monster_oil_missing; + if (countitem ("PileOfAsh") < 2) goto L_monster_oil_missing; + if (countitem ("GoldenScorpionStinger") < 1) goto L_monster_oil_missing_gold; + + delitem "Pearl", 1; + delitem "SnakeSkin", 2; + delitem "BlackScorpionStinger", 3; + delitem "PileOfAsh", 2; + + set @bubble_mode, 0; + setarray @bubble_modes$, + "The brew is calm.", + "The brew is bubbling.", + "The brew is bubbling violently."; + + set @color, 1 << (rand(3)); + setarray @colors$, + "white", + "red", + "yellow", + "orange", + "blue", + "purple", + "green", + "gray"; + + set @intensity, 1; + setarray @intensities$, + "light", + "medium", + "dark"; + + set @auto_mode, 0; // Start by adding a colour or going lighter + + goto L_monster_oil_loop; + +L_monster_oil_missing: + mes "[Caul]"; + mes "\"You don't seem to have all of the ingredients. You need one pearl, two snake skins, three black stingers, two piles of ash, and one golden stinger.\""; + close; + +L_monster_oil_missing_gold: + mes "[Caul]"; + mes "\"You seem to have everything except for the golden stinger. I understand that this one is hard to get, but I'm sure that you can find one somewhere.\""; + close; + +L_monster_oil_loop: + mes "[Brewing monster oil]"; + mes @bubble_modes$[@bubble_mode]; + mes "It is currently a " + @intensities$[@intensity] + " " + @colors$[@color] + "."; + next; + + menu + "Add alizarin leaf", L_monster_oil_alizarin, + "Add gamboge leaf", L_monster_oil_gamboge, + "Add cobalt leaf", L_monster_oil_cobalt, + "Add mauve leaf", L_monster_oil_mauve, + "Ask Caul for advice", L_monster_oil_explain, + "Duck!", -; + + mes "[Brewing monster oil]"; + mes "You throw yourself onto the ground. Seconds later, the cauldron shakes, and your entire mixture explodes upwards."; + mes "Caul crawls out from underneath a char."; + next; + mes "[Caul]"; + mes "\"I'm glad to see that you chose to brew another day... perhaps it might be best if you give up on this dangerous concoction, though!\""; + close; + +L_monster_oil_out_of_leaves: + mes "[Brewing monster oil]"; + mes "You don't have any of these leaves left!"; + next; + goto L_monster_oil_loop; + +L_monster_oil_alizarin: + set @use_leaf$, "AlizarinHerb"; + set @use_color, 1; + goto L_monster_oil_leaf_color; + +L_monster_oil_gamboge: + set @use_leaf$, "GambogeHerb"; + set @use_color, 2; + goto L_monster_oil_leaf_color; + +L_monster_oil_cobalt: + set @use_leaf$, "CobaltHerb"; + set @use_color, 4; + goto L_monster_oil_leaf_color; + +L_monster_oil_leaf_color: + if (countitem (@use_leaf$) < 1) goto L_monster_oil_out_of_leaves; + + callsub S_monster_oil_random_move; + if (@color & @use_color) goto L_monster_oil_pc_bad; + set @color, @color | @use_color; + delitem @use_leaf$, 1; + + mes "The brew changes its hue as your leaf dissolves."; + next; + goto L_monster_oil_loop; + +L_monster_oil_mauve: + if (countitem("MauveHerb") < 1) goto L_monster_oil_out_of_leaves; + delitem "MauveHerb", 1; + + callsub S_monster_oil_random_move; + if (@intensity == 2 && @color == 7) goto L_monster_oil_done; + if (@intensity == 2) goto L_monster_oil_pc_bad; + + set @intensity, @intensity + 1; + mes "The brew darkens as your mauve leaf dissolves."; + next; + goto L_monster_oil_loop; + +S_monster_oil_random_move: + mes "[Brewing monster oil]"; + mes "You throw in a leaf and stir."; + + if (@auto_mode == 1) + goto L_monster_oil_random_1; + +L_monster_oil_random_0: // mode 0: add colour or lighten up + set @auto_mode, 1; + if (rand(3) == 0) + goto L_monster_oil_random_0_lighten; + + set @choice, 1 << (rand(3)); + if (@color & @choice) + goto L_monster_oil_auto_bad; + set @color, @color | @choice; + + mes "Before your leaf has a chance to dissolve, the brew changes to a " + @colors$[@color] + " hue."; + return; + +L_monster_oil_random_0_lighten: + if (@intensity == 0) + goto L_monster_oil_auto_bad; + set @intensity, @intensity - 1; + mes "Before your leaf has a chance to dissolve, the brew takes on a lighter shade of " + @colors$[@color] + "."; + return; + +L_monster_oil_random_1: // mode 1: remove colour + set @auto_mode, 0; + set @choice, 1 << (rand(3)); + if (!(@color & @choice)) + goto L_monster_oil_auto_bad; + set @color, @color & (~@choice); + mes "Before your leaf has a chance to dissolve, the brew changes to a " + @colors$[@color] + " hue."; + return; + +L_monster_oil_pc_bad: + if (rand(readparam(bInt) + 100) > 60) goto L_monster_oil_pc_bad_ok; + if (@bubble_mode) + mes "As your leaf dissolves, the intensity of the bubbling increases."; + if (!@bubble_mode) + mes "As your leaf dissolves, the brew begins to bubble."; + next; + set @bubble_mode, @bubble_mode + 1; + if (@bubble_mode > 2) + goto L_monster_oil_explode; + goto L_monster_oil_loop; + +L_monster_oil_pc_bad_ok: + mes "Your leaf dissolves but seems to have no effect."; + next; + goto L_monster_oil_loop; + +L_monster_oil_auto_bad: + if (rand(3) == 0) + return; + if (rand(readparam(bInt) + 100) > 70) + return; + mes "The brew begins to bubble more violently."; + set @bubble_mode, @bubble_mode + 1; + if (@bubble_mode > 2) + next; + if (@bubble_mode > 2) + goto L_monster_oil_explode; + return; + +L_monster_oil_explode: + mes "[Exploding monster oil]"; + mes "Your brew explodes!"; + if (rand(readparam(bAgi)) > 40) + goto L_monster_oil_explode_dodge; + mes "The burst of boiling monster brew hits you."; + next; + itemheal (15 * rand(readparam(bVit))) - 1500, 0; + close; + +L_monster_oil_explode_dodge: + mes "You throw yourself to the ground at the very last moment, barely avoiding the burst of boiling monster brew."; + next; + mes "[Caul]"; + mes "Caul nods at you from underneath a chair."; + mes "\"I told you, it's dangerous!!\""; + close; + +L_monster_oil_done: + mes "As you throw in another mauve leaf, the brew takes on a deep black color and calms down."; + next; + + mes "[Brewing monster oil]"; + mes "As instructed, you toss in your golden scorpion stinger."; + + if (countitem ("GoldenScorpionStinger") < 1) goto L_monster_oil_no_gold_end; + + mes "The brew bubbles once more, then calms completely."; + + delitem "GoldenScorpionStinger", 1; + getitem "MonsterOilPotion", 1; + + if (!(@Q_status & @SETZER_FLAG_MADE_OIL)) + getexp @MONSTER_OIL_XP, 0; + if (!(@Q_status & @SETZER_FLAG_MADE_OIL)) + mes "[" + @MONSTER_OIL_XP + " experience points]"; + + set @Q_status, @Q_status | @SETZER_FLAG_MADE_OIL; + callsub S_Update_Var; + next; + + mes "[Caul]"; + mes "Caul gets up from underneath the cover he was taking and looks at your brew. He is visibly impressed."; + mes "\"Well done! This should be just enough for one potion of monster oil. Let me get you a bottle.\""; + mes "He hands you the monster oil."; + close; + +L_monster_oil_no_gold_end: + mes "But where is your golden stinger? Didn't you have one earlier?"; + mes "Frustrated, you give up."; + close; + +L_mopox_cure_start: + mes "[Caul]"; + mes "\"The mopox cure potion? Certainly, if you have all of the ingredients... oh, and make sure to bring water, roots, sulphur powder and Mauve leaves.\""; + mes "\"This is a very easy one, so I think I should let you do this yourself. It is very good exercise.\""; + next; + +L_mopox_cure_overview_menu: + menu + "I'm ready!", L_mopox_cure_setup, + "What are the ingredients?", L_mopox_cure_ingredients, + "How does this work?", L_mopox_cure_howto, + "I'd rather not try.", -; + close; + +L_mopox_cure_ingredients: + mes "[Caul]"; + mes "\"You will need one concentration potion, one iron potion, a lifestone, and one gamboge leaf.\""; + next; + goto L_mopox_cure_overview_menu; + +L_mopox_cure_howto: + mes "[Caul]"; + mes "\"When you start brewing, the liquid very rarely has the proper consistency and color. You need to make it gooey and medium dark.\""; + next; + + mes "[Caul]"; + mes "\"You can affect the consistency by adding ground roots and water, and you can change the color by adding mauve leaves (to darken it) and sulphur powder (to make it brighter).\""; + next; + + mes "[Caul]"; + mes "\"The ingredients have some side effects, though, so you will have to experiment a little.\""; + next; + + mes "[Caul]"; + mes "\"Oh, and be careful: water will evaporate over time, too.\""; + next; + goto L_mopox_cure_overview_menu; + +L_mopox_cure_no_lifestone: + mes "[Caul]"; + mes "\"You will need a lifestone.\""; + goto L_mopox_cure_overview_menu; + +L_mopox_cure_no_gamboge: + mes "[Caul]"; + mes "\"You will need a gamboge leaf.\""; + goto L_mopox_cure_overview_menu; + +L_mopox_cure_no_concentration: + mes "[Caul]"; + mes "\"You will need a concentration potion.\""; + goto L_mopox_cure_overview_menu; + +L_mopox_cure_no_iron: + mes "[Caul]"; + mes "\"You will need an iron potion.\""; + goto L_mopox_cure_overview_menu; + +L_mopox_cure_setup: + if (countitem("IronPotion") < 1) goto L_mopox_cure_no_iron; + if (countitem("ConcentrationPotion") < 1) goto L_mopox_cure_no_concentration; + if (countitem("GambogeHerb") < 1) goto L_mopox_cure_no_gamboge; + if (countitem("Lifestone") < 1) goto L_mopox_cure_no_lifestone; + + delitem "IronPotion", 1; + delitem "ConcentrationPotion", 1; + delitem "GambogeHerb", 1; + delitem "Lifestone", 1; + + mes "[Brewing Mopox Cure]"; + mes "You pour your two potions into the cauldron, then add a gamboge herb and a lifestone. Caul heats up the cauldron and you wait until it begins to boil."; + + setarray @colours$, "white", "almost white", "light", "medium-dark", "dark", "very dark", "almost black", "black"; + setarray @stickinesses$, "watery", "very runny", "runny", "gooey", "sticky", "very sticky", "almost solid"; + set @stickiness, rand(7); + set @colour, 2 + rand(5); + + // Target: (@stickiness, @colour) = (3, 3) + + if (@stickiness == 3 && @colour == 3) + set @colour, 4; // don't allow insta-win; it's easy enough. + set @rounds, 0; + +L_mopox_cure_loop: + mes "[Brewing Mopox Cure]"; + mes "The brew is " + @colours$[@colour] + " and " + @stickinesses$[@stickiness] + "."; + + if (@colour == 3 && @stickiness == 3) + goto L_mopox_cure_win; + next; + + set @colour, @colour + 10; + set @stickiness, @stickiness + 10; + + menu + "Add root", L_mopox_B_root, + "Add water", L_mopox_B_water, + "Add sulphur powder", L_mopox_B_sulphur, + "Add mauve", L_mopox_B_mauve, + "...what should I do again?", L_mopox_reexplain, + "Wait", -; + +L_mopox_cure_next: + set @stickiness, @stickiness + @rounds; + set @rounds, 1 - @rounds; + + if (@stickiness < 10) + set @stickiness, 10; + if (@colour < 10) goto L_mopox_failed_badcolour; + if (@colour > 17) goto L_mopox_failed_badcolour; + if (@stickiness > 16) goto L_mopox_failed_hard; + if (@colour > 17) goto L_mopox_failed_badcolour; + + set @colour, @colour - 10; + set @stickiness, @stickiness - 10; + + goto L_mopox_cure_loop; + +L_mopox_reexplain: + mes "[Caul]"; + mes "\"Make this brew gooey and medium dark.\""; + mes "\"(Gooey is right between runny and sticky.)\""; + mes "\"You can add different items that will affect both color and stickiness.\""; + next; + mes "[Caul]"; + mes "\"Water and ground roots mostly affect stickiness.\""; + mes "\"Mauve and sulphur powder mostly affect color, with Mauve darkening the brew.\""; + next; + goto L_mopox_cure_next; + +L_mopox_B_none: + mes "[Brewing Mopox Cure]"; + mes "You don't have any left!"; + next; + goto L_mopox_cure_next; + +L_mopox_B_root: + if (countitem ("Root") < 1) goto L_mopox_B_none; + delitem "Root", 1; + + mes "[Brewing Mopox Cure]"; + mes "You grind a root and pour it into the brew."; + next; + set @colour, @colour + 1; + set @stickiness, @stickiness + 3; + goto L_mopox_cure_next; + +L_mopox_B_water: + if (countitem ("BottleOfWater") < 1) goto L_mopox_B_none; + delitem "BottleOfWater", 1; + getitem "EmptyBottle", 1; + + mes "[Brewing Mopox Cure]"; + mes "You pour a bottle of water into the brew."; + next; + set @colour, @colour; + set @stickiness, @stickiness - 2; + goto L_mopox_cure_next; + +L_mopox_B_sulphur: + if (countitem ("SulphurPowder") < 1) goto L_mopox_B_none; + delitem "SulphurPowder", 1; + + mes "[Brewing Mopox Cure]"; + mes "You mix some sulphur powder into the brew."; + next; + set @colour, @colour - 3; + set @stickiness, @stickiness + 1; + goto L_mopox_cure_next; + +L_mopox_B_mauve: + if (countitem ("MauveHerb") < 1) goto L_mopox_B_none; + delitem "MauveHerb", 1; + + mes "[Brewing Mopox Cure]"; + mes "You grind a mauve herb and toss it in."; + next; + set @colour, @colour + 2; + set @stickiness, @stickiness + 1; + goto L_mopox_cure_next; + +L_mopox_failed_badcolour: + mes "[Brewing Mopox Cure]"; + mes "The brew suddenly begins to bubble again, turning green."; + mes "\"Oh dear,\" Caul remarks, \"you let the color stray too much.\""; + next; + mes "[Caul]"; + mes "\"Better luck next time!\""; + close; + +L_mopox_failed_hard: + mes "[Brewing Mopox Cure]"; + mes "You find it almost impossible to stir the brew."; + mes "Suddenly, the thick mass bends outwards, a huge bubble bursting open right in your face!"; + next; + + if (rand(readparam(bVit)) < 40) + sc_start sc_poison, 1, 20; + + mes "[Brewing Mopox Cure]"; + mes "Yeech. That smelled bad."; + mes "\"Don't worry, I'll clean up the cauldron,\", interrupts Caul. \"You should wipe that off your face and make sure that you didn't get poisoned.\""; + next; + + mes "[Caul]"; + mes "\"Better luck next time!\""; + close; + +L_mopox_cure_win: + mes "Caul looks pleased. \"Well done! This looks very good to me.\""; + next; + + mes "[Caul]"; + mes "Caul picks a bottle from a shelf and fills it with your brew."; + mes "\"One potion of Mopox cure, here you are. Good luck!\""; + getitem "MopoxCurePotion", 1; + if (!@Q_can_score_mopox_cure) + goto L_mopox_cure_win_quick; + getexp @MOPOX_CURE_XP, 0; + mes "[" + @MOPOX_CURE_XP + " experience points]"; + set QUEST_MAGIC2, (QUEST_MAGIC2 & ~NIBBLE_3_MASK) | (2 << NIBBLE_3_SHIFT); // Make sure we can only get XP for brewing this once +L_mopox_cure_win_quick: + close; + +L_DemPotion: + mes "[Caul]"; + mes "\"Ok, you do know this potion is one of the most dangerous potions brewed? My cauldron is empty, you can try it yourself.\""; + next; + mes "Caul goes three steps away and watches your actions carefully."; + menu + "Please explain to me what you know about that potion.", L_explain_dempo, + "Ok, I will start brewing.", L_brew_dempo_init, + "Nevermind", -; + close; +L_explain_dempo: + mes "[Caul]"; + mes "\"Hrrm. I have heard of that potion. I hope I can remember all the stuff needed.\""; + next; + mes "\"Basically this potion is a balancing between death and life; between knowledge and forgetting.\""; + next; + mes "\"So, to get it balanced, we need ingredients for both sides.\""; + next; + mes "\"For the death and forgetting side we can use bones. Although, bones do not work well. We would get the best results with a diseased heart of zombies. Of course, we can use undead ears and skulls as well.\""; + next; + mes "\"For the life and knowledge side we can use fresh mauve herbs. Lifestones would be even better. Roots will do as well, although these must be really fresh to show effect.\""; + next; + mes "\"Brewing such a powerful potion is dangerous. That is why you will need to do it yourself. I will try to assist you as best as I can.\""; + next; + mes "\"I don't know exactly, but there is a slight chance of exploding all time.\""; + next; + mes "\"The color of the mixture will give you a very good impression of what you need to do.\""; + mes "\"And to get that potion working, we need to stabilize it with a pearl at the end.\""; + next; + mes "\"The color will be in a range of really dark black to bright shining white. In between it is grey in different nuances.\""; + mes "\"When it is calm grey, the finalisation with a pearl will work best, so I have heard.\""; + next; + goto L_DemPotion; + +L_brew_dempo_init: + if ((countitem("BottleOfWater") == 0) || (countitem("Bone") == 0) || (countitem("Lifestone") == 0) || (countitem("Pearl") == 0)) + goto L_dempo_noinit; + delitem "BottleOfWater", 1; + delitem "Bone", 1; + delitem "Lifestone", 1; + + set @finish_dempo, 0; + // color can be either black or white at the beginning. + // with a slight randomness in there. + set @dempo_color, rand(10); + if (rand(2)==0) + set @dempo_color, @dempo_color + 90 ; + mes "To start that potion you put in the cauldron a bone, a bottle of water and a lifestone."; + next; + goto L_brew_dempo; + +L_dempo_noinit: + mes "[Caul]"; + mes "\"Hrrm. Usually you start that potion with a bone, a bottle of water and a lifestone.\""; + mes "\"I'd propose you do it exactly that way. You see, maybe it would even work with a skull and a healing potion, but since we don't know, and I don't want to repair my cauldron again, please don't try other solutions.\""; + next; + mes "\"Please use only this way to start the recipe: a bone, a bottle of water and a lifestone. In that order!\""; + mes "\"Ah, and of course you will need at least one pearl with you. This pearl is needed to finalize the potion.\""; + close; + +L_brew_dempo: + callsub L_check_explosion; + + callsub L_calc_dempo_color; + mes "After a little while of cooking you see its color turning into " + @dempo_color_S$+ "."; + next; + + setarray @choice_idx, 0,0,0,0,0,0,0,0,0,0,0; + setarray @choice$, "","","","","","","","","","",""; + + set @C_root, 12; + set @C_mauve, 13; + set @C_lifestone, 14; + set @C_diseasedheart, 15; + set @C_bone, 16; + set @C_skull, 17; + set @C_undeadear, 18; + set @C_pearl, 19; + set @C_nevermind, 20; + + // counter of avalable answers + set @choices_nr, 0; + + if (countitem("Root") == 0) goto L_noroots; + set @choice_idx[@choices_nr], @C_root; + set @choice$[@choices_nr], "Add a root"; + set @choices_nr, @choices_nr + 1; +L_noroots: + if (countitem("MauveHerb") == 0) goto L_nomauve; + set @choice_idx[@choices_nr], @C_mauve; + set @choice$[@choices_nr], "Add a mauve herb"; + set @choices_nr, @choices_nr + 1; +L_nomauve: + if (countitem("Lifestone") == 0) goto L_nolifestone; + set @choice_idx[@choices_nr], @C_lifestone; + set @choice$[@choices_nr], "Add a lifestone"; + set @choices_nr, @choices_nr + 1; +L_nolifestone: + if (countitem("DiseasedHeart") == 0) goto L_noheart; + set @choice_idx[@choices_nr], @C_diseasedheart; + set @choice$[@choices_nr], "Add a diseased heart"; + set @choices_nr, @choices_nr + 1; +L_noheart: + if (countitem("Bone") == 0) goto L_nobone; + set @choice_idx[@choices_nr], @C_bone; + set @choice$[@choices_nr], "Add a bone"; + set @choices_nr, @choices_nr + 1; +L_nobone: + if (countitem("DiseasedHeart") == 0) goto L_noskull; + set @choice_idx[@choices_nr], @C_skull; + set @choice$[@choices_nr], "Add a skull"; + set @choices_nr, @choices_nr + 1; +L_noskull: + if (countitem("UndeadEar") == 0) goto L_noear; + set @choice_idx[@choices_nr], @C_undeadear; + set @choice$[@choices_nr], "Add an undead ear"; + set @choices_nr, @choices_nr + 1; +L_noear: + if (countitem("Pearl") == 0) goto L_nopearl; + set @choice_idx[@choices_nr], @C_pearl; + set @choice$[@choices_nr], "Finalize with a pearl."; + set @choices_nr, @choices_nr + 1; +L_nopearl: + set @choice_idx[@choices_nr], @C_nevermind; + set @choice$[@choices_nr], "Nevermind and leave"; + + menu + @choice$[0],-, + @choice$[1],-, + @choice$[2],-, + @choice$[3],-, + @choice$[4],-, + @choice$[5],-, + @choice$[6],-, + @choice$[7],-, + @choice$[8],-, + @choice$[9],-, + @choice$[10],-; + + set @menu, @menu - 1; + if (@choice_idx[@menu] == 0) + goto L_brew_dempo; + if ((countitem("Root") != 0) && (@choice_idx[@menu] == @C_root)) + goto L_useroot; + if ((countitem("MauveHerb") != 0) && (@choice_idx[@menu] == @C_mauve)) + goto L_usemauve; + if ((countitem("Lifestone") != 0) && (@choice_idx[@menu] == @C_lifestone)) + goto L_uselifestone; + if ((countitem("DiseasedHeart") != 0) && (@choice_idx[@menu] == @C_diseasedheart)) + goto L_usediseasedheart; + if ((countitem("Bone") != 0) && (@choice_idx[@menu] == @C_bone)) + goto L_usebone; + if ((countitem("Skull") != 0) && (@choice_idx[@menu] == @C_skull)) + goto L_useskull; + if ((countitem("UndeadEar") != 0) && (@choice_idx[@menu] == @C_undeadear)) + goto L_useear; + if ((countitem("Pearl") != 0) && (@choice_idx[@menu] == @C_pearl)) + goto L_usepearl; + if ((@choice_idx[@menu] == @C_nevermind)) + goto L_ask_quit; + + // fallthrough only when player remove the items while in menu, trying to cheat + // the potion will be lost then + mes "\"Do not try to betray me. Come back when you have a better morale.\""; + close; + +L_useroot: + delitem "Root", 1; + set @dempo_color, @dempo_color + 9 + rand(9); + goto L_brew_dempo; + +L_usemauve: + delitem "MauveHerb", 1; + set @dempo_color, @dempo_color + 1 + rand(2); + goto L_brew_dempo; + +L_uselifestone: + delitem "Lifestone", 1; + set @dempo_color, @dempo_color + 3 + rand(4); + goto L_brew_dempo; + +L_usediseasedheart: + delitem "DiseasedHeart", 1; + set @dempo_color, @dempo_color - 35 - rand(25); + goto L_brew_dempo; + +L_usebone: + delitem "Bone", 1; + set @dempo_color, @dempo_color - 3 - rand(3); + goto L_brew_dempo; + +L_useskull: + delitem "Skull", 1; + set @dempo_color, @dempo_color - 9 - rand(9); + goto L_brew_dempo; + +L_useear: + delitem "UndeadEar", 1; + set @dempo_color, @dempo_color - 15 - rand(13); + goto L_brew_dempo; + +L_usepearl: + delitem "Pearl", 1; + //ending it is a little dangerous as well, + // stay calm, when it smashes your fine tuned well done potion. + set @finish_dempo, 1; + callsub L_check_explosion; + // ok now you really did it. Here is your potion: + getitem "DementiaPotion",1; + + mes "[Caul]"; + mes "\"The potion is now ready. It seems as if it worked fine.\""; + next; + mes "\"Ok here is a flask of that potion. I'll care for the rest.\""; + mes "\"I mean it is a very dangerous fluid.\""; + next; + mes "\"See you later, alligator!\""; + close; + +L_ask_quit: + mes "[Caul]"; + mes "\"The potion is not ready. You can't just leave now!\""; + menu + "Please throw away that stupid potion, I'm in a hurry!", -, + "Oh you are right, let me finish it.", L_brew_dempo; + close; + +L_check_explosion: + // set to range [-50 50]; + set @prob, @dempo_color - 50; + + set @prob, ((@prob * @prob) / 80) + 4; + if (@finish_dempo == 0) + goto L_check_exp_nof; + + // square again, so you must be in the middle to get it work there; + // and multiply with 3 so there is definitly no chance to get it directly after starting + set @prob, (@prob * @prob) * 2; +L_check_exp_nof: + // in about 95% of the cases anything is fine, so return. + if (rand(1000) > @prob) return; + // in some cases it is not: + // kabooom! + close2; + heal -(Hp/2), 0; + misceffect 5; + misceffect 16; + heal -Hp, 0; + end; + +L_calc_dempo_color: + // @dempo_color_S$ is set in here: + + //really dark black 0-11 + if (@dempo_color < 12) + set @dempo_color_S$, "really dark black"; + + //dark black 12-23 + if ((@dempo_color > 11) && (@dempo_color < 24)) + set @dempo_color_S$, "dark black"; + + //black 24-34 + if ((@dempo_color > 23) && (@dempo_color < 35)) + set @dempo_color_S$, "black"; + + //dark grey with little dark spots 35-41 + if ((@dempo_color > 34) && (@dempo_color < 42)) + set @dempo_color_S$, "dark grey with little dark spots"; + + //dark grey 42-47 + if ((@dempo_color > 41) && (@dempo_color < 48)) + set @dempo_color_S$, "dark grey"; + + //calm grey 48-52 + if ((@dempo_color > 47) && (@dempo_color < 53)) + set @dempo_color_S$, "calm grey"; + + //light grey 53-58 + if ((@dempo_color > 52) && (@dempo_color < 59)) + set @dempo_color_S$, "light grey"; + + //light grey with little light spots 59-65 + if ((@dempo_color > 58) && (@dempo_color < 66)) + set @dempo_color_S$, "light grey with little light spots"; + + //white 66-76 + if ((@dempo_color > 65) && (@dempo_color < 77)) + set @dempo_color_S$, "white"; + + //shining white 77-88 + if ((@dempo_color > 76) && (@dempo_color < 89)) + set @dempo_color_S$, "shining white"; + + //bright shining white 77-100 + if (@dempo_color > 88) + set @dempo_color_S$, "bright shining white"; + + return; + +L_NohMask: + mes "[Caul]"; + mes "\"I'm sorry, but I didn't. I'm staying in town. Try asking one of the miners.\""; + close; + +L_close: + close; + +S_Update_Var: + set QUEST_Forestbow_state, + (QUEST_Forestbow_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/018-2/miners.txt b/world/map/npc/018-2/miners.txt new file mode 100644 index 00000000..1e337036 --- /dev/null +++ b/world/map/npc/018-2/miners.txt @@ -0,0 +1,152 @@ +// This NPC makes gem powders out of gemstones +// Authors: Ali-G, enchilado, Jenalya + +018-2.gat,85,23,0 script Malek 109,{ + + set @MIN_GEM_AMOUNT, 7; + + if (Inspector == 10) goto L_NohMask; + + mes "[Malek]"; + mes "\"Hi, can I help you at all?\""; + + if (FLAGS & FLAG_TOWEL_HELPED) + menu + "I'm looking for someone able to make gem powder.", L_GemPowder, + "I was just having a look, have a nice day.", L_abort; + menu + "I was just having a look, have a nice day.", L_abort; + +L_NohMask: + mes "[Malek]"; + mes "\"Hi, can I help you at all?\""; + + if (FLAGS & FLAG_TOWEL_HELPED) + menu + "I'm looking for someone able to make gem powder.", L_GemPowder, + "I was just having a look, have a nice day.", L_abort, + "The inspector sent me here to investigate.", L_Investigation; + menu + "I was just having a look, have a nice day.", L_abort, + "The inspector sent me here to investigate.", L_Investigation; + +L_Investigation: + set Inspector, 11; + mes "\"Yeah, we did hear a commotion. We thought we heard someone go down to the basement, but we checked the whole place over and didn't see anything out of the ordinary.\""; + close; + +L_GemPowder: + mes "[Malek]"; + mes "\"My father taught me how to make that sort of powder. Put the gem on a firm surface, hold your pickaxe tight and whack that gem hard. It'll be crushed into powder pretty soon if you keep at it.\""; + mes "\"Do you want me to make any for you?\""; + + menu + "Yes, I really need some.", L_GemPowderStart, + "Actually, I don't want anything. Have a nice day.", L_abort; + +L_GemPowderStart: + mes "[Malek]"; + mes "\"Well, I can do that. Bring me a gem and I'll make you some powder - hope you don't mind if I keep a little as payment!\""; + + menu + "I've got some gems.", L_Check_Gems, + "I'll be back with a gem soon.", L_abort, + "Actually, I prefer my gems whole. Thanks anyway.", L_abort; + +L_Check_Gems: + mes "[Malek]"; + mes "\"Which gem do you want me to powder for you?\""; + next; + setarray @menuitems$, "", "", "", "", "", "", ""; + set @c, 0; + +L_Check_Diamond: + if (countitem("GemRawWhite") < 1) goto L_Check_Ruby; + set @menuitems$[@c], "A diamond."; + set @menuid[@c], 0; + set @c, @c + 1; + +L_Check_Ruby: + if (countitem("GemRawRed") < 1) goto L_Check_Emerald; + set @menuitems$[@c], "A ruby."; + set @menuid[@c], 1; + set @c, @c + 1; + +L_Check_Emerald: + if (countitem("GemRawGreen") < 1) goto L_Check_Sapphire; + set @menuitems$[@c], "An emerald."; + set @menuid[@c], 2; + set @c, @c + 1; + +L_Check_Sapphire: + if (countitem("GemRawBlue") < 1) goto L_Check_Topaz; + set @menuitems$[@c], "A sapphire."; + set @menuid[@c], 3; + set @c, @c + 1; + +L_Check_Topaz: + if (countitem("GemRawYellow") < 1) goto L_Check_Amethyst; + set @menuitems$[@c], "A topaz."; + set @menuid[@c], 4; + set @c, @c + 1; + +L_Check_Amethyst: + if (countitem("GemRawPurple") < 1) goto L_Choose_Gem; + set @menuitems$[@c], "An amethyst."; + set @menuid[@c], 5; + set @c, @c + 1; + +L_Choose_Gem: + set @menuitems$[@c], "None right now, thanks."; + set @menuid[@c], 6; + set @c, @c + 1; + menu + @menuitems$[0], -, + @menuitems$[1], -, + @menuitems$[2], -, + @menuitems$[3], -, + @menuitems$[4], -, + @menuitems$[5], -, + @menuitems$[6], -; + set @menu, @menu - 1; + if (@menu >= @c) close; + if (@menuid[@menu] == 0) set @gem$, "GemRawWhite"; + if (@menuid[@menu] == 1) set @gem$, "GemRawRed"; + if (@menuid[@menu] == 2) set @gem$, "GemRawGreen"; + if (@menuid[@menu] == 3) set @gem$, "GemRawBlue"; + if (@menuid[@menu] == 4) set @gem$, "GemRawYellow"; + if (@menuid[@menu] == 5) set @gem$, "GemRawPurple"; + if (@menuid[@menu] == 6) goto L_abort; + + getinventorylist; + if (countitem(@gem$) < 1) goto L_no_gem; + if (@inventorylist_count == 100 && countitem(@gem$) > 1) goto L_TooMany; + delitem @gem$, 1; + if (@gem$ == "GemRawWhite") getitem "GemPowderWhite", @MIN_GEM_AMOUNT + rand(6) + rand(6); + if (@gem$ == "GemRawRed") getitem "GemPowderRed", @MIN_GEM_AMOUNT + rand(6); + if (@gem$ == "GemRawGreen") getitem "GemPowderGreen", @MIN_GEM_AMOUNT + rand(6); + if (@gem$ == "GemRawBlue") getitem "GemPowderBlue", @MIN_GEM_AMOUNT + rand(6); + if (@gem$ == "GemRawYellow") getitem "GemPowderYellow", @MIN_GEM_AMOUNT + rand(6); + if (@gem$ == "GemRawPurple") getitem "GemPowderPurple", @MIN_GEM_AMOUNT + rand(6); + + mes "[Malek]"; + mes "\"Here's your powder. Hope it's fine enough for you.\""; + mes "\"Do you need me to make any more?\""; + + menu + "Yes please.", L_Check_Gems, + "No thank you, this is enough.", L_abort; + +L_TooMany: + mes "[Malek]"; + mes "\"Doesn't look like you've got room for this powder. Come back when you do.\""; + close; + +L_no_gem: + mes "[Malek]"; + mes "\"You don't have that gem.\""; + close; + +L_abort: + close; +} diff --git a/world/map/npc/018-2/receptionist.txt b/world/map/npc/018-2/receptionist.txt new file mode 100644 index 00000000..ee735d14 --- /dev/null +++ b/world/map/npc/018-2/receptionist.txt @@ -0,0 +1,65 @@ +// + +018-2.gat,50,24,0 script Receptionist 108,{ + mes "[Receptionist]"; + mes "\"Welcome to the mining camp!"; + mes "Do you need anything?\""; + next; + +L_Menu: + if (Inspector == 10) + menu + "Why was a mine setup here?", L_Mine, + "Can I go into the mine?", L_Enter, + "Did the company build this building?", L_Building, + "Did you hear a commotion here the other night?", L_NohMask, + "Thank you, no.", -; + if (Inspector != 10) + menu + "Why was a mine setup here?", L_Mine, + "Can I go into the mine?", L_Enter, + "Did the company build this building?", L_Building, + "Thank you, no.", -; + close; + +L_Mine: + mes "[Receptionist]"; + mes "\"Minerals have been easy to find in this area historically. The mine entrance we're using collapsed from the mountain side when the volcano errupted. Plenty of minerals were exposed then.\""; + next; + goto L_Question_End; + +L_Enter: + mes "[Receptionist]"; + mes "\"If you think you can handle all the monsters that have appeared there.\""; + next; + goto L_Question_End; + +L_Building: + mes "[Receptionist]"; + mes "\"No, the company bought this building. It's been abandoned for a while. The villagers think it's haunted, but we haven't seen anything, except for the basement. None of us have been able to stay there for very long.\""; + next; + + menu + "Why not?", -, + "Not my problem", L_Question_End; + + mes "[Receptionist]"; + mes "\"I haven't been down there myself, and the ones who have haven't been able to describe why at all.\""; + next; + + goto L_Question_End; + +L_NohMask: + mes "[Receptionist]"; + mes "\"I stay in town, and so couldn't have heard anything over here. One of the miners might be able to help you.\""; + next; + + goto L_Question_End; + +L_Question_End: + mes "[Receptionist]"; + mes "\"Do you need anything else?\""; + next; + + goto L_Menu; +} diff --git a/world/map/npc/018-3/_import.txt b/world/map/npc/018-3/_import.txt new file mode 100644 index 00000000..53391a07 --- /dev/null +++ b/world/map/npc/018-3/_import.txt @@ -0,0 +1,8 @@ +// Map 018-3: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 018-3.gat +npc: npc/018-3/_mobs.txt +npc: npc/018-3/_warps.txt +npc: npc/018-3/bookcase.txt +npc: npc/018-3/evil-obelisk.txt +npc: npc/018-3/sword.txt diff --git a/world/map/npc/018-3/_mobs.txt b/world/map/npc/018-3/_mobs.txt new file mode 100644 index 00000000..a063b8bb --- /dev/null +++ b/world/map/npc/018-3/_mobs.txt @@ -0,0 +1,88 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + +018-3.gat,48,28,56,17 monster Bat 1017,10,100000,30000,Mob018-3::On1017 +018-3.gat,35,144,31,48 monster Evil Mushroom 1013,10,120000,30000,Mob018-3::On1013 +018-3.gat,35,65,28,22 monster Spider 1012,20,100000,50000,Mob018-3::On1012 +018-3.gat,28,157,3,2 monster PinkFlower 1014,1,60000,30000,Mob018-3::On1014 +018-3.gat,99,111,17,41 monster Yellow slime 1007,10,90000,30000,Mob018-3::On1007 +018-3.gat,134,140,12,8 monster Maggot 1002,3,80000,40000,Mob018-3::On1002 +018-3.gat,132,137,15,25 monster Spider 1012,8,300000,120000,Mob018-3::On1012 +018-3.gat,102,172,131,13 monster Black scorpions 1009,20,60000,10000,Mob018-3::On1009 +018-3.gat,174,37,10,31 monster Yellow slime 1007,5,180000,120000,Mob018-3::On1007 +018-3.gat,87,153,78,22 monster Snake 1010,10,60000,10000,Mob018-3::On1010 +018-3.gat,148,148,13,24 monster Bat 1017,3,180000,40000,Mob018-3::On1017 +018-3.gat,153,97,18,22 monster Yellow slime 1007,6,80000,40000,Mob018-3::On1007 +018-3.gat,81,77,27,21 monster Red slime 1008,15,80000,40000,Mob018-3::On1008 +018-3.gat,111,80,5,6 monster Black scorpions 1009,10,80000,40000,Mob018-3::On1009 +018-3.gat,175,122,5,40 monster Snake 1010,15,40000,20000,Mob018-3::On1010 +018-3.gat,98,75,1,2 monster Fire skull 1023,1,120000,30000,Mob018-3::On1023 +018-3.gat,100,75,1,2 monster Poison skull 1024,1,120000,30000,Mob018-3::On1024 +018-3.gat,171,95,15,19 monster Black scorpion 1009,5,60000,30000,Mob018-3::On1009 +018-3.gat,134,87,17,7 monster Red slime 1008,10,60000,30000,Mob018-3::On1008 +018-3.gat,59,95,11,8 monster Spider 1012,15,60000,30000,Mob018-3::On1012 +018-3.gat,77,92,23,7 monster Black scorpion 1009,15,60000,30000,Mob018-3::On1009 +018-3.gat,94,55,16,8 monster Snake 1010,5,60000,30000,Mob018-3::On1010 +018-3.gat,133,39,12,17 monster Spider 1012,10,60000,30000,Mob018-3::On1012 +018-3.gat,111,33,30,16 monster Snake 1010,15,60000,30000,Mob018-3::On1010 +018-3.gat,68,101,5,4 monster Snake 1010,4,60000,30000,Mob018-3::On1010 + + +018-3.gat,0,0,0 script Mob018-3 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1008: + set @mobID, 1008; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1010: + set @mobID, 1010; + callfunc "MobPoints"; + break; + +On1012: + set @mobID, 1012; + callfunc "MobPoints"; + break; + +On1013: + set @mobID, 1013; + callfunc "MobPoints"; + break; + +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1023: + set @mobID, 1023; + callfunc "MobPoints"; + break; + +On1024: + set @mobID, 1024; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/018-3/_warps.txt b/world/map/npc/018-3/_warps.txt new file mode 100644 index 00000000..a4450b3f --- /dev/null +++ b/world/map/npc/018-3/_warps.txt @@ -0,0 +1,24 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +018-3.gat,100,133 warp toOutside 0,-1,018-1.gat,78,60 +018-3.gat,44,37 warp toOutside -1,-1,018-1.gat,112,62 +018-3.gat,49,98 warp toOutside -1,-1,018-1.gat,128,57 +018-3.gat,123,165 warp toOutside -1,-1,018-1.gat,90,43 +018-3.gat,70,104 warp toOutside -1,-1,018-1.gat,69,55 +018-3.gat,50,88 warp toCave -1,-1,013-3.gat,69,142 +018-3.gat,146,161 warp toOutside 0,-1,018-1.gat,153,47 +018-3.gat,64,102 warp toOutside -1,-1,018-1.gat,158,35 +018-3.gat,29,165 warp toOutside -1,-1,018-1.gat,162,45 +018-3.gat,97,69 warp toCave -1,-1,013-3.gat,178,43 +018-3.gat,27,54 warp toCave -1,-1,013-3.gat,169,44 +018-3.gat,134,61 warp toCave -1,-1,013-3.gat,152,29 +018-3.gat,177,54 warp toBasement -1,-1,018-2.gat,114,20 +018-3.gat,172,21 warp toCave -1,-1,013-3.gat,123,103 +018-3.gat,177,21 warp toCave -1,-1,013-3.gat,147,103 +018-3.gat,27,91 warp toCave -1,-1,013-3.gat,158,67 +018-3.gat,90,50 warp toCave -1,-1,013-3.gat,67,50 +018-3.gat,71,122 warp toCave -1,-1,013-3.gat,111,41 +018-3.gat,174,85 warp toCave -1,-1,013-3.gat,62,99 +018-3.gat,102,69 warp toCave -1,-1,013-3.gat,68,96 +018-3.gat,179,179 warp toCave -1,-1,009-3.gat,157,31 diff --git a/world/map/npc/018-3/bookcase.txt b/world/map/npc/018-3/bookcase.txt new file mode 100644 index 00000000..843c94ae --- /dev/null +++ b/world/map/npc/018-3/bookcase.txt @@ -0,0 +1,65 @@ +// + +018-3.gat,75,123,0 script #DemonMineBookcase1 127,{ + if (QUEST_demon_mines == 0) goto L_Search; + + mes "You see nothing different about the bookcase."; + mes "Do you want to search it again anyways?"; + next; + menu + "Yes", L_Search, + "No", -; + close; + +L_Search: + mes "After searching the bookcase, you were able to find a few passages that you can read."; + next; + + mes "One of the describes an ancient barrier that guards a great treasure."; + mes ""; + mes "To get through it, you need to consume the soul of a great pumpkin ghost."; + next; + + mes "Another passage describes a ritual needed to open a certain cursed chest."; + mes ""; + mes "It looks like a lot of items will be needed."; + next; + + mes "The slime of a maggot."; + mes "A mushroom, big or small."; + mes "The petal of a pink flower."; + next; + + mes "A pearl from the sea."; + mes "A spike; the harder, the better."; + mes "Some raw wood. One log should do."; + next; + + mes "An antenna. Preferably pink."; + mes "The tongues of four different snakes."; + mes "A key to a treasure chest."; + next; + + mes "A pile of ash."; + mes "Four different herbs."; + mes "A bug, or part of one."; + next; + + mes "A lamp for the dark."; + mes "Rock and metal, as one."; + mes "Three different deaths dealt by three different scorpions."; + next; + + mes "The womb that gives birth to butterflies."; + mes "The gentle caress of a creature without blemish."; + mes "A single piece of darkness."; + next; + + mes "And a bottle's worth of water."; + mes ""; + mes "You begin to wonder if you read that list right."; + next; + + if (QUEST_demon_mines == 0) set QUEST_demon_mines, 1; + close; +} diff --git a/world/map/npc/018-3/evil-obelisk.txt b/world/map/npc/018-3/evil-obelisk.txt new file mode 100644 index 00000000..4893cfeb --- /dev/null +++ b/world/map/npc/018-3/evil-obelisk.txt @@ -0,0 +1,10 @@ +// + +018-3.gat,67,28,0 script Evil Obelisk 185, { + callfunc "ClearVariables"; + set @map$, "018-3.gat"; + set @x, 67; + set @y, 28; + callfunc "EvilObelisk"; + close; +} diff --git a/world/map/npc/018-3/sword.txt b/world/map/npc/018-3/sword.txt new file mode 100644 index 00000000..f8ee7725 --- /dev/null +++ b/world/map/npc/018-3/sword.txt @@ -0,0 +1,11 @@ +018-3.gat,71,127,0 script #DemonSword#_M 127,{ + if (getskilllv(SKILL_MAGIC)) + goto L_message; + + close; + +L_message: + mes "[Sword in Rock]"; + mes "\"Ouch... my head...\""; + close; +} diff --git a/world/map/npc/019-1/_import.txt b/world/map/npc/019-1/_import.txt new file mode 100644 index 00000000..287a2cb2 --- /dev/null +++ b/world/map/npc/019-1/_import.txt @@ -0,0 +1,8 @@ +// Map 019-1: Snow field +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 019-1.gat +npc: npc/019-1/_mobs.txt +npc: npc/019-1/_warps.txt +npc: npc/019-1/monsters.txt +npc: npc/019-1/santa_helper.txt +npc: npc/019-1/snowman.txt diff --git a/world/map/npc/019-1/_mobs.txt b/world/map/npc/019-1/_mobs.txt new file mode 100644 index 00000000..ae32c186 --- /dev/null +++ b/world/map/npc/019-1/_mobs.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field mobs + +019-1.gat,0,0,0,0 monster Fluffy 1020,100,100000,30000,Mob019-1::On1020 + + +019-1.gat,0,0,0 script Mob019-1 -1,{ +On1020: + set @mobID, 1020; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/019-1/_warps.txt b/world/map/npc/019-1/_warps.txt new file mode 100644 index 00000000..6e1fa6c9 --- /dev/null +++ b/world/map/npc/019-1/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field warps + +019-1.gat,70,21 warp ToVillage 2,-1,020-1.gat,70,126 +019-1.gat,61,102 warp toRomanticPlace 2,-1,030-1.gat,60,29 +019-1.gat,96,40 warp toCave -1,-1,019-3.gat,98,27 +019-1.gat,38,75 warp toCave2 -1,-1,019-3.gat,40,97 diff --git a/world/map/npc/019-1/monsters.txt b/world/map/npc/019-1/monsters.txt new file mode 100644 index 00000000..d41d63b3 --- /dev/null +++ b/world/map/npc/019-1/monsters.txt @@ -0,0 +1,20 @@ +// Map: 019-1 +// This is the Snow Fields. +// + +019-1.gat,0,0,0,0 monster SantaSlime 1015,10,0,0,Mob10::OnSantaSlime +019-1.gat,0,0,0,0 monster RudolphSlime 1016,25,0,0,Mob10::OnRudolphSlime + +019-1.gat,0,0,0 script Mob10 -1,{ +OnSantaSlime: + set @mobID, 1015; + callfunc "MobPoints"; + break; + +OnRudolphSlime: + set @mobID, 1016; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/019-1/santa_helper.txt b/world/map/npc/019-1/santa_helper.txt new file mode 100644 index 00000000..d2c5bcf9 --- /dev/null +++ b/world/map/npc/019-1/santa_helper.txt @@ -0,0 +1,65 @@ +019-1.gat,74,75,0 script Santa's Helper 105,{ + if (ChristmasQuest2 == 1) goto L_Done; + mes "[Santa's Helper]"; + mes "\"Hello my young friend."; + mes "Would you like to help me?\""; + next; + mes "[Santa's Helper]"; + mes "\"Those monsters stole Santa's presents."; + mes "If you help me, I'll give you something very nice\""; + next; + +L_M: + menu + "I have some present boxes", L_Y, + "Hmm, see you later", L_N, + "What you need exactly?", L_R; + +L_Y: + mes "[Santa's Helper]"; + mes "\"Hmm, let me check what you have.\""; + next; + if (countitem("PurplePresentBox") < 25) goto L_NoItem; + if (countitem("BluePresentBox") < 20) goto L_NoItem; + if (countitem("GreenPresentBox") < 5) goto L_NoItem; + getinventorylist; + if (@inventorylist_count > 99) goto L_TooMany; + mes "[Santa's Helper]"; + mes "\"Great! Here is something for you\""; + delitem "PurplePresentBox", 25; + delitem "BluePresentBox", 20; + delitem "GreenPresentBox", 5; + getitem "TurtleneckSweater", 1; + set ChristmasQuest2,1; + close; + +L_R: + mes "[Santa's Helper]"; + mes "\"I need:"; + mes "25 Purple Present Boxes"; + mes "20 Blue Present Boxes"; + mes "5 Green Present Boxes\""; + next; + goto L_M; + +L_N: + mes "[Santa's Helper]"; + mes "\"Enjoy your holidays and I wish you a happy Christmas!\""; + close; + +L_NoItem: + mes "[Santa's Helper]"; + mes "\"You dont seem to have enough presents.\""; + close; + +L_Done: + mes "[Santa's Helper]"; + mes "\"All the children got their Christmas presents."; + mes "Thank you for your help.\""; + close; + +L_TooMany: + mes "[Santa's Helper]"; + mes "\"It doesn't look like you have room for this. Come back later.\""; + close; +} diff --git a/world/map/npc/019-1/snowman.txt b/world/map/npc/019-1/snowman.txt new file mode 100644 index 00000000..11831356 --- /dev/null +++ b/world/map/npc/019-1/snowman.txt @@ -0,0 +1,62 @@ +// + +019-1.gat,77,44,0 script Snowman 129,{ + if( ChristmasQuest == 1) goto L_Done; + + mes "[Snowman]"; + mes "\"Hello there young man."; + mes "Would you like a Christmas hat?\""; + next; + +L_Menu: + menu + "Yes", L_Sure, + "No", -, + "What do you need?", L_Need; + mes "[Snowman]"; + mes "\"Well, thats too bad, but make sure to have the holiday spirit!\""; + close; + +L_Sure: + mes "[Snowman]"; + mes "\"Hmm, let me see what you have.\""; + next; + if(countitem("Candy") < 15) goto L_NoItem; + if(countitem("ChocolateBar") < 10) goto L_NoItem; + if(countitem("CactusPotion") < 5) goto L_NoItem; + getinventorylist; + if (@inventorylist_count > 99) goto L_TooMany; + delitem "Candy", 15; + delitem "ChocolateBar", 10; + delitem "CactusPotion", 5; + mes "[Snowman]"; + mes "\"Here you go, enjoy your new hat!\""; + getitem "SantaHat", 1; + set ChristmasQuest, 1; + close; + +L_Need: + mes "[Snowman]"; + mes "\"For this special hat, I need a pint of magic and a little help."; + mes "Just kidding. I would like to get some food:"; + mes "15 pieces of Candy"; + mes "10 Chocolate Bars"; + mes "5 Cactus Potions\""; + next; + goto L_Menu; + +L_NoItem: + mes "[Snowman]"; + mes "\"Well, I am interested in some food and you don't have enought to get a hat.\""; + close; + +L_Done: + mes "[Snowman]"; + mes "\"Thank you for your help!\""; + close; + +L_TooMany: + mes "[Snowman]"; + mes "\"It doesn't look like you have room for this. Come back later.\""; + close; +} diff --git a/world/map/npc/019-3/_import.txt b/world/map/npc/019-3/_import.txt new file mode 100644 index 00000000..4ccd622b --- /dev/null +++ b/world/map/npc/019-3/_import.txt @@ -0,0 +1,5 @@ +// Map 019-3: Snow Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 019-3.gat +npc: npc/019-3/_mobs.txt +npc: npc/019-3/_warps.txt diff --git a/world/map/npc/019-3/_mobs.txt b/world/map/npc/019-3/_mobs.txt new file mode 100644 index 00000000..60d9e507 --- /dev/null +++ b/world/map/npc/019-3/_mobs.txt @@ -0,0 +1,20 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow Cave mobs + +019-3.gat,0,0,0,0 monster Moggun 1061,10,100000,30000,Mob019-3::On1061 +019-3.gat,0,0,0,0 monster Bats 1017,50,100000,30000,Mob019-3::On1017 + + +019-3.gat,0,0,0 script Mob019-3 -1,{ +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1061: + set @mobID, 1061; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/019-3/_warps.txt b/world/map/npc/019-3/_warps.txt new file mode 100644 index 00000000..2df54be1 --- /dev/null +++ b/world/map/npc/019-3/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow Cave warps + +019-3.gat,40,99 warp WarpOutside1 -1,-1,019-1.gat,38,73 +019-3.gat,98,25 warp warpOutside2 -1,-1,019-1.gat,96,38 diff --git a/world/map/npc/020-1/KrickKrackKrock.txt b/world/map/npc/020-1/KrickKrackKrock.txt new file mode 100644 index 00000000..b37dd0e1 --- /dev/null +++ b/world/map/npc/020-1/KrickKrackKrock.txt @@ -0,0 +1,121 @@ +// author: Lien +// reviewed by Pjotr Orial and Jenalya +//020-1.gat,82,82,0 script Criker 192, { + +L_Main: +//Var + + set @NPC_NAME$, "[Criker]"; + set @BET, 50; +//lots of array ;( + setarray @KRICK$, "Krick", "Krack", "Krock"; + setarray @ITEM_RAND, 613, 537, 631, 775, 703, 640, 641, 4006, 700; + setarray @ITEM_HEALTH, 684, 685, 686, 687; + +//ends of var + + mes @NPC_NAME$; + mes "\"Hello " + strcharinfo(0) + ", do you want to play Krick-Krack-Krock?\""; +L_Menu: + menu + "Let's start!", L_Start, + "What's this?", L_info, + "Well, not for the moment.", -; + close; +L_Start: + mes @NPC_NAME$; + mes "\"Well, how many do you want to bet?\""; + input @BET; + if(@BET < 50 ) goto L_poor; + if(@BET > 2000) goto L_Too_rich; + if(zeny < @BET) goto L_No_Money; + set zeny, zeny - @BET; + + + + set @NPC_KRICK, rand(2); + mes "\"Choose Krick, Krack or Krock.\""; + menu + @KRICK$[0], -, + @KRICK$[1], -, + @KRICK$[2], -; + + //menu = min 1 & not 0 so I change it + set @menu, @menu - 1; + + mes @NPC_NAME$; + mes "\" "+ @KRICK$[@NPC_KRICK] +"!\""; + if( @menu == @NPC_KRICK ) goto L_Work; + mes @NPC_NAME$; + mes "\"Too bad! You were not lucky!\""; + close; +L_Work: + mes @NPC_NAME$; + mes "\"Wow amazing... What kind of present do you want?\""; + menu + "Money!", L_Money, + "An item!", L_Item, + "Some healing potions would be cool!", L_Health_item; + close; + +L_Money: + mes @NPC_NAME$; + mes "\"Here is your money.\""; + set zeny, zeny + (@BET*2); + close; +L_Item: +//item +getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + + if( @BET > 50) getitem @ITEM_RAND[rand(1)], 1; + if( @BET > 200) getitem @ITEM_RAND[1 + rand(1)], 1; + if( @BET > 500) getitem @ITEM_RAND[2 + rand(1)], 1; + if( @BET > 1000) getitem @ITEM_RAND[3 + rand(1)], 1; + if( @BET > 1200) getitem @ITEM_RAND[4 + rand(1)], 1; + if( @BET > 1500) getitem @ITEM_RAND[5 + rand(1)], 1; + if( @BET == 2000) getitem @ITEM_RAND[6 + rand(1)], 1; + mes @NPC_NAME$; + mes "\"Here it is !\""; + close; + +L_Health_item: +// health item +getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + +if( @BET > 50) getitem @ITEM_HEALTH[rand(1)], 1; +if( @BET > 200) getitem @ITEM_HEALTH[ 1 +rand(1)], 1 + rand(1); +if( @BET > 500) getitem @ITEM_HEALTH[2 + rand(1)], 1 + rand(3); +if( @BET > 1000) getitem @ITEM_HEALTH[3], 2 + rand(1); +if( @BET > 1500) getitem @ITEM_HEALTH[3], 3 + rand(2); +if( @BET == 2000) getitem @ITEM_HEALTH[3], 5 + rand(10); + mes @NPC_NAME$; + mes "\"Here it is !\""; + close; + +L_Full_Inv: + mes @NPC_NAME$; + mes "\"What are you doing? You have so much stuff with you, you can't carry what you won. Ha, well, then I will keep it!\""; + close; + +L_poor: + mes @NPC_NAME$; + mes "\"Erm... if you want to play you HAVE to bet, and you can't bet "+ @BET +" gold pieces. You need at least 50gp.\""; + close; +L_Too_rich: + mes @NPC_NAME$; + mes "\"Mh... I have to bet too. How will I get a present which is "+ @BET +"? No, that's too much.\""; + close; +L_No_Money: + mes @NPC_NAME$; + mes "\"Oh? You don't have "+ @BET +" gold pieces.\""; + close; +L_info: + mes @NPC_NAME$; + mes "\"Well, if you want to play Krick Krack Krock with me, you need to bet some money. We will both say a word (Krack, Krick or Krock). If we say the same, you can win double your money or an item worth what you bet. \""; + next; + mes "\"So, do you want to play? \""; + goto L_Menu; +} + diff --git a/world/map/npc/020-1/_import.txt b/world/map/npc/020-1/_import.txt new file mode 100644 index 00000000..704d916d --- /dev/null +++ b/world/map/npc/020-1/_import.txt @@ -0,0 +1,10 @@ +// Map 020-1: Nivalis +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 020-1.gat +npc: npc/020-1/KrickKrackKrock.txt +npc: npc/020-1/_mobs.txt +npc: npc/020-1/_warps.txt +npc: npc/020-1/mapflags.txt +npc: npc/020-1/rockscissor.txt +npc: npc/020-1/soul-menhir.txt +npc: npc/020-1/well.txt diff --git a/world/map/npc/020-1/_mobs.txt b/world/map/npc/020-1/_mobs.txt new file mode 100644 index 00000000..d236884e --- /dev/null +++ b/world/map/npc/020-1/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Nivalis mobs + + + +020-1.gat,0,0,0 script Mob020-1 -1,{ + end; +} diff --git a/world/map/npc/020-1/_warps.txt b/world/map/npc/020-1/_warps.txt new file mode 100644 index 00000000..5bac9e69 --- /dev/null +++ b/world/map/npc/020-1/_warps.txt @@ -0,0 +1,12 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Nivalis warps + +020-1.gat,76,38 warp ToIceCave 1,-1,020-3.gat,31,28 +020-1.gat,47,48 warp ToClothesShop -1,-1,020-2.gat,25,33 +020-1.gat,66,52 warp ToHouse -1,-1,020-2.gat,72,68 +020-1.gat,70,127 warp toSnowField 2,-1,019-1.gat,70,22 +020-1.gat,64,82 warp toInn -1,-1,020-2.gat,111,31 +020-1.gat,86,46 warp toWeaponShop -1,-1,020-2.gat,32,72 +020-1.gat,56,90 warp ToPotionsShop -1,-1,020-2.gat,66,25 +020-1.gat,70,127 warp toSnowField 2,-1,019-1.gat,70,22 +020-1.gat,107,55 warp toPort -1,-1,031-1.gat,38,55 diff --git a/world/map/npc/020-1/mapflags.txt b/world/map/npc/020-1/mapflags.txt new file mode 100644 index 00000000..203cf649 --- /dev/null +++ b/world/map/npc/020-1/mapflags.txt @@ -0,0 +1,2 @@ +020-1.gat mapflag no_player_drops +020-1.gat mapflag town diff --git a/world/map/npc/020-1/rockscissor.txt b/world/map/npc/020-1/rockscissor.txt new file mode 100644 index 00000000..d4a9d6f6 --- /dev/null +++ b/world/map/npc/020-1/rockscissor.txt @@ -0,0 +1,96 @@ +// author: Lien +// reviewed by Pjotr Orial and Jenalya +//##################################### +//== NPC [Player] # +// anyone want to do a funny bet # +// ------------------------ # +// Rock-Paper-Scissors can be playing # +// I hope that'll make fun # +// ------------------------ # +//##################################### + +//020-1.gat,74,78,0 script Gobmel 189, { + //var + set @NPC_name$, "[Gobmel]"; + set @NPC_point, 0; + set @PC_point, 0; + set @gamblerun, 0; + setarray @CHOOSE_PC$, "Scissors", "Paper", "Rock"; + setarray @CHOSE_ID, 0, 1, 2; + //0 : scissors; 1: Paper; 2: Rock; + // 0 cut 1 and 1 cover 3 and break 0 ... + //var ends + + mes @NPC_name$; + mes "\"Hello " + strcharinfo(0) + "! Do you want to do a little party of Rock-Paper-Scissors and bet some gold?\""; + menu + "Yes, I want.", L_RPS, + "Well, maybe later.", -; + close; + +L_RPS: + + mes @NPC_name$; + mes "\"How much money do you want to bet?\""; + input @MONEY_BET; + if(zeny < @MONEY_BET) goto L_poor; + set zeny, zeny - @MONEY_BET; + +L_Start: + if(@gamblerun == 3) goto L_finish; + //what chose the NPC ? + + set @CHOOSE_NPCID, rand(2); + + mes @NPC_name$; + mes "[ " + @gamblerun + "/3 ]"; + mes "\"1... 2... 3...\""; + mes ""; + mes"[chose what sign you do]"; + mes ""; + menu + @CHOOSE_PC$[0], -, + @CHOOSE_PC$[1], -, + @CHOOSE_PC$[2], -; + + set @CHOSEN, @menu -1; + mes "Gobmal: " + @CHOOSE_PC$[@CHOOSE_NPCID]; + mes strcharinfo(0)+" " + strcharinfo(0)+ ": " +@CHOOSE_PC$[@CHOSEN]; + mes ""; + if(@CHOSEN == @CHOOSE_NPCID) goto L_Start; + if(@CHOSEN == 0 && @CHOOSE_NPCID == 2) goto L_Lost; + if(@CHOSEN == 1 && @CHOOSE_NPCID == 0) goto L_Lost; + if(@CHOSEN == 2 && @CHOOSE_NPCID == 1) goto L_Lost; +L_Win: + set @PC_point, @PC_point + 1; + set @gamblerun, @gamblerun + 1; + mes "Oh no! I have lost."; + mes ""; + next; + goto L_Start; + +L_poor: + mes @NPC_name$; + mes "\"Go away from me...\""; + close; + +L_Lost: + set @NPC_point, @NPC_point + 1; + set @gamblerun, @gamblerun + 1; + mes "I have won!"; + mes ""; + next; + goto L_Start; + +L_finish: + if(@PC_point > @NPC_point ) goto L_Won; + mes @NPC_name$; + mes "\"Nice! I have won, give me your gp!\""; + close; +L_Won: + mes @NPC_name$; + mes "\"Here is my money.\""; + set zeny, zeny + @MONEY_BET*2; + close; +} + diff --git a/world/map/npc/020-1/soul-menhir.txt b/world/map/npc/020-1/soul-menhir.txt new file mode 100644 index 00000000..f6e52869 --- /dev/null +++ b/world/map/npc/020-1/soul-menhir.txt @@ -0,0 +1,12 @@ +// + +020-1.gat,63,89,0 script Soul Menhir 144, { + callfunc "ClearVariables"; + set @map$, "020-1.gat"; + setarray @Xs, 62, 63, 64, 62, 64, 62, 63, 64; + setarray @Ys, 88, 88, 88, 89, 89, 90, 90, 90; + set @x, 0; + set @y, 0; + callfunc "SoulMenhir"; + close; +} diff --git a/world/map/npc/020-1/well.txt b/world/map/npc/020-1/well.txt new file mode 100644 index 00000000..ed025a0f --- /dev/null +++ b/world/map/npc/020-1/well.txt @@ -0,0 +1,119 @@ +//############################################ +//# NPC Well & Miler +//# Authors: Lien, PjotrOrial +//# Review: +//# +//# There is someone in the well. This can be found out by throwing some stuff +//# in there. +//# +//# When the npc in the well is detected they can be rescued by asking Miler +//# for help. +//# +//# The experience reward given by Miler is 111 * Baselevel +//# +//# used variables: QUEST_Nivalis_state Nibble4 +//############################################ + +020-1.gat,99,83,0 script #Well 127, { + + set @Q_MASK, NIBBLE_4_MASK; + set @Q_SHIFT, NIBBLE_4_SHIFT; + set @Q_status, ((QUEST_Nivalis_state) & @Q_MASK) >> @Q_SHIFT; + +if(@Q_status == 2) goto L_Finished; + set @item_ID, 0; + setarray @quote_item$, "Yuck! Who has thrown that on me?","Ouch! Who hurts me?","White powder!? What's going on up there?","Ahw! It's raining ","","",""; + + mes "..."; + menu "Throw something in the well.", L_trew, + "Leave it alone.", -; + close; + +L_trew: + mes "What do you want to throw?"; + menu "Maggot slime", -, + "A raw log", -, + "Pile of ash", -, + "Bottle of water", -, + "Leave it alone", L_Close; + + set @menu, @menu - 1; + + // little IF to do @quote$ & @Item_ID + set @quote$, @quote_item$[@menu]; + if(@menu == 0) set @item_ID, 505; + if(@menu == 1) set @item_ID, 569; + if(@menu == 2) set @item_ID, 701; + if(@menu == 3) set @item_ID, 541; + + if(countitem(@item_ID) < 1) goto L_NO_ITEM; + if(@menu == 3) getitem 540, 1; + delitem @item_ID, 1; + + mes "[Mysterious voice inside the well]"; + mes "\" "+ @quote$ +"\""; + next; + menu + "Who are you?", -, + "How did you get there?", -, + "Do you need help?", -; + + set @menu, @menu - 1; + if(@menu == 0) set @quote$, "I'll talk about who I am after leaving the well."; + if(@menu == 1) set @quote$, "Well, someone has pushed me in the well, I don't know who did that."; + if(@menu == 2) set @quote$, ""; + mes "[Mysterious voice inside the well]"; + mes "\" "+ @quote$ +". So if you can call help for me... please do so!\""; + set @Q_status, 1; + callsub S_Update_Var; + close; + +L_NO_ITEM: + mes "You don't have such an item... Come back when you have it."; + close; + +L_Finished: + mes "This is a well."; + close; + +L_Close: + close; + +S_Update_Var: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} + +020-2.gat,100,28,0 script Miler 100, { + set @Q_MASK, NIBBLE_4_MASK; + set @Q_SHIFT, NIBBLE_4_SHIFT; + set @Q_status, ((QUEST_Nivalis_state) & @Q_MASK) >> @Q_SHIFT; + + mes "[Miler]"; + mes "\"Hello!\""; + if(@Q_status == 2) close; + if(@Q_status == 1) + menu + "Hello.", -, + "Hello, Can you help me?", L_HELP; + close; +L_HELP: + mes "[Miler]"; + mes "\"What's the problem?\""; + menu "Someone has fallen in the well.", -; + mes "[Miler]"; + mes "\"Ho! I'll help him!\""; + getexp (BaseLevel * 111), 0; + set @Q_status, 2; + callsub S_Update_Var; + close; + +S_Update_Var: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} + diff --git a/world/map/npc/020-2/_import.txt b/world/map/npc/020-2/_import.txt new file mode 100644 index 00000000..77e81574 --- /dev/null +++ b/world/map/npc/020-2/_import.txt @@ -0,0 +1,9 @@ +// Map 020-2: Nivalis +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 020-2.gat +npc: npc/020-2/_mobs.txt +npc: npc/020-2/_warps.txt +npc: npc/020-2/baktar.txt +npc: npc/020-2/furquest.txt +npc: npc/020-2/mapflags.txt +npc: npc/020-2/shops.txt diff --git a/world/map/npc/020-2/_mobs.txt b/world/map/npc/020-2/_mobs.txt new file mode 100644 index 00000000..04e864c0 --- /dev/null +++ b/world/map/npc/020-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Nivalis mobs + + + +020-2.gat,0,0,0 script Mob020-2 -1,{ + end; +} diff --git a/world/map/npc/020-2/_warps.txt b/world/map/npc/020-2/_warps.txt new file mode 100644 index 00000000..fab55b38 --- /dev/null +++ b/world/map/npc/020-2/_warps.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Nivalis warps + +020-2.gat,25,35 warp ToOutside -1,-1,020-1.gat,47,50 +020-2.gat,64,25 warp ToOutside -1,-1,020-1.gat,55,90 +020-2.gat,111,32 warp ToOutside -1,-1,020-1.gat,64,83 +020-2.gat,32,73 warp ToOutside -1,-1,020-1.gat,84,48 +020-2.gat,72,70 warp ToOutside -1,-1,020-1.gat,66,54 diff --git a/world/map/npc/020-2/baktar.txt b/world/map/npc/020-2/baktar.txt new file mode 100644 index 00000000..1bcbf152 --- /dev/null +++ b/world/map/npc/020-2/baktar.txt @@ -0,0 +1,388 @@ +//#========================= +//#== NPC Baktar +//# Authors: Lien, PjotrOrial +//# Review: BigCrunch, Mistakes, Jenalya +//# This NPC has two stages: +//# +//# In the first stage you need to bring 7 different items, but only one of each kind. +//# +//# In the second stage he tells you what hard life he is living. He will be very aggressive telling you some stuff. +//# He will send you to kill Scroticular. That npc will be located in the labyrinth caves. +//# (its a mob actually, to be spawned only, if the players knows his name and his location) +//# +//# variables used: +//# @QUEST_Nivalis_state: NIBBLE0, NIBBLE1, NIBBLE2, NIBBLE3: +//# BYTE0 ( == NIBBLE0 | NIBBLE1) stores in each bit information if that item was already brought. +//# bits: +//# bit 0 if you have met the npc already +//# bit 1 Desert Hat +//# bit 2 Desert Shirt +//# bit 3 Serf Hat +//# bit 4 tongue_Item +//# bit 5 eggs_Item +//# bit 6 skin_Item +//# bit 7 bugleg +//# NIBBLE2 store the progress after the item collecting stage: +//# =0 he will thank you for bringing all stuff. +//# =1 talking about his youth +//# =2 talking, you get the mission to hunt down Scroticular +//# =3 you get information where Scroticular can be found. +//# NIBBLE3 a bitmasking nibble for stage 2 again +//# bit 0 knows the name/location of the opponent +//# bit 1 killed the ugly opponent +//#========================= +020-2.gat,70,61,0 script Baktar 191,{ + set @npcname$, "[Baktar]"; + + set @Q_MASK, BYTE_0_MASK; + set @Q_SHIFT, BYTE_0_SHIFT; + set @Q_status, ((QUEST_Nivalis_state) & @Q_MASK) >> @Q_SHIFT; + + set @Q_MASK2, NIBBLE_2_MASK; + set @Q_SHIFT2, NIBBLE_2_SHIFT; + set @Q_status2, ((QUEST_Nivalis_state) & @Q_MASK2) >> @Q_SHIFT2; + + set @Q_MASK2_BITS, NIBBLE_3_MASK; + set @Q_SHIFT2_BITS, NIBBLE_3_SHIFT; + set @Q_status2_bits, ((QUEST_Nivalis_state) & @Q_MASK2_BITS) >> @Q_SHIFT2_BITS; + + // if all bits are set, you brought him everything! Now we continue in Phase 2 of this npc. + // this is not ready yet, so do not enable that stage + // if(@Q_status == @Q_MASK) goto L_2_init; + + set @BIT_KNOWHIM, 0; + + set @BIT_DESERTHAT,1; + set @MONEY_DESERTHAT, 1500; + set @XP_DESERTHAT, 500; + + set @BIT_DESERTSHIRT,2; + set @MONEY_DESERTSHIRT, 1500; + set @XP_DESERTSHIRT, 600; + + set @BIT_SERFHAT,3; + set @MONEY_SERFHAT, 800; + set @XP_SERFHAT, 350; + + set @BIT_MS_TONGUE,4; + set @MONEY_MS_TONGUE, 800; + set @XP_MS_TONGUE, 350; + + set @BIT_MS_EGG,5; + set @MONEY_MS_EGG, 800; + set @XP_MS_EGG, 350; + + set @BIT_SNAKESKIN,6; + set @MONEY_SNAKESKIN, 800; + set @XP_SNAKESKIN, 350; + + set @BIT_BUGLEG,7; + set @MONEY_BUGLEG, 20; + set @XP_BUGLEG, 130; + + if(sex) + set @type$, "man"; + if(!sex) + set @type$, "woman"; + + if(@Q_status & (1<<@BIT_KNOWHIM)) goto L_KnowAlready; + mes @npcname$; + mes "\"Hello, " + @type$ + ", did you come from Tulimshar? Because you have a nice tan. \""; + menu + "Yes, I'm from Tulimshar", L_exotic, + "Well, I just like sunbathing", -, + "Good bye", -; + close; + +L_KnowAlready: + mes @npcname$; + mes "\"I love Tulimshar's stuff. I'm collecting souvenirs from Tulimshar to help remind me of all the great times I had there. If you give me an interesting item from the area, I'll give you a nice reward. So, you have a new item?\""; + goto L_startitem; +close; + +L_exotic: + mes @npcname$; + mes "\"I said that because I love Tulimshar's stuff...I'm collecting souvenirs from Tulimshar to help remind me of all the great times I had there. If you give me an interesting item maybe I can give you a nice reward. But I don't need a lot, I just need one of each item.\""; + menu "I have some items on me maybe you'll like them ", L_startitem, + "Don't touch my stuff!", -, + "I'll get them. Bye.", -; + close; + +L_startitem: + setarray @exotic_item$, "", "", "", "", "", "", ""; + set @c, 0; + set @Q_status, @Q_status | (1<<@BIT_KNOWHIM); + callsub S_Update_Var; + if (countitem("DesertHat") < 1 || @Q_status & (1<<@BIT_DESERTHAT) ) goto L_DesertShirt; + set @exotic_item$[@c], "a Desert Hat ?"; + set @menuid[@c], 0; + set @c, @c + 1; + +L_DesertShirt: + if (countitem("DesertShirt") < 1 || @Q_status & (1<<@BIT_DESERTSHIRT) ) goto L_SerfHat; + set @exotic_item$[@c], "a Desert Shirt ?"; + set @menuid[@c], 1; + set @c, @c + 1; + +L_SerfHat: + if (countitem("SerfHat") < 1 || @Q_status & (1<<@BIT_SERFHAT) ) goto L_tongue; + set @exotic_item$[@c], "a Serf Hat ?"; + set @menuid[@c], 2; + set @c, @c + 1; + +L_tongue: + if (countitem("MountainSnakeTongue") < 1 || @Q_status & (1<<@BIT_MS_TONGUE)) goto L_egg; + set @exotic_item$[@c], "a Mountain Snake Tongue ?"; + set @menuid[@c], 3; + set @c, @c + 1; + +L_egg: + if (countitem("MountainSnakeEgg") < 1 || @Q_status & (1<<@BIT_MS_EGG)) goto L_Skin; + set @exotic_item$[@c], "a Mountain Snake Egg?"; + set @menuid[@c], 4; + set @c, @c + 1; + +L_Skin: + if (countitem("SnakeSkin") < 1 || @Q_status & (1<<@BIT_SNAKESKIN)) goto L_bugleg; + set @exotic_item$[@c], "a Snake Skin?"; + set @menuid[@c], 5; + set @c, @c + 1; + +L_bugleg: + if (countitem("BugLeg") < 1 || @Q_status & (1<<@BIT_BUGLEG)) goto L_NeverMind; + set @exotic_item$[@c], "a Bug Leg?"; + set @menuid[@c], 6; + set @c, @c + 1; + +L_NeverMind: + set @exotic_item$[@c], "Nevermind"; + set @menuid[@c], 6; +//menu for the item + menu + @exotic_item$[0], -, + @exotic_item$[1], -, + @exotic_item$[2], -, + @exotic_item$[3], -, + @exotic_item$[4], -, + @exotic_item$[5], -, + @exotic_item$[6], -; + + set @menu, @menu -1; + + if (@menuid[@menu] == 0) goto L_DesertHat_Item; + if (@menuid[@menu] == 1) goto L_DesertShirt_Item; + if (@menuid[@menu] == 2) goto L_SerfHat_Item; + if (@menuid[@menu] == 3) goto L_tongue_Item; + if (@menuid[@menu] == 4) goto L_egg_Item; + if (@menuid[@menu] == 5) goto L_skin_Item; + if (@menuid[@menu] == 6) goto L_BugLegItem; +//if Never mind + mes @npcname$; + mes "\"Ok, goodbye then.\""; + close; +L_DesertHat_Item: + if(@Q_status & (1<<@BIT_DESERTHAT)) goto L_havealready; + if (countitem("DesertHat") < 1) goto L_Noitem; + delitem "DesertHat", 1; + set zeny, zeny + @MONEY_DESERTHAT; + getexp @XP_DESERTHAT,0; + set @Q_status, @Q_status | (1<<@BIT_DESERTHAT); + callsub S_Update_Var; + close; +L_DesertShirt_Item: + if(@Q_status & (1<<@BIT_DESERTSHIRT)) goto L_havealready; + if (countitem("DesertShirt") < 1) goto L_Noitem; + delitem "DesertShirt", 1; + set zeny, zeny + @MONEY_DESERTSHIRT; + getexp @XP_DESERTSHIRT,0; + set @Q_status, @Q_status | (1<<@BIT_DESERTSHIRT); + callsub S_Update_Var; + close; +L_SerfHat_Item: + if(@Q_status & (1<<@BIT_SERFHAT)) goto L_havealready; + if (countitem("SerfHat") < 1) goto L_Noitem; + delitem "SerfHat", 1; + set zeny, zeny + @MONEY_SERFHAT; + getexp @XP_SERFHAT,0; + set @Q_status, @Q_status | (1<<@BIT_SERFHAT); + callsub S_Update_Var; + close; +L_tongue_Item: + if(@Q_status & (1<<@BIT_MS_TONGUE)) goto L_havealready; + if (countitem("MountainSnakeTongue") < 1) goto L_Noitem; + delitem "MountainSnakeTongue", 1; + set zeny, zeny + @MONEY_MS_TONGUE; + getexp @XP_MS_TONGUE,0; + set @Q_status, @Q_status | (1<<@BIT_MS_TONGUE); + callsub S_Update_Var; +close; +L_egg_Item: + if(@Q_status & (1<<@BIT_MS_EGG)) goto L_havealready; + if (countitem("MountainSnakeEgg") < 1) goto L_Noitem; + delitem "MountainSnakeEgg", 1; + set zeny, zeny + @MONEY_MS_EGG; + getexp @XP_MS_EGG,0; + set @Q_status, @Q_status | (1<<@BIT_MS_EGG); + callsub S_Update_Var; +close; +L_skin_Item: + if(@Q_status & (1<<@BIT_SNAKESKIN)) goto L_havealready; + if (countitem("SnakeSkin") < 1) goto L_Noitem; + delitem "SnakeSkin", 1; + set zeny, zeny + @MONEY_SNAKESKIN; + getexp @XP_SNAKESKIN,0; + set @Q_status, @Q_status | (1<<@BIT_SNAKESKIN); + callsub S_Update_Var; +close; +L_BugLegItem: + if(@Q_status & (1<<@BIT_BUGLEG)) goto L_havealready; + if (countitem("BugLeg") < 1) goto L_Noitem; + delitem "BugLeg", 1; + set zeny, zeny + @MONEY_BUGLEG; + getexp @XP_BUGLEG,0; + set @Q_status, @Q_status | (1<<@BIT_BUGLEG); + callsub S_Update_Var; +close; + +L_Noitem: + mes @npcname$; + mes "\"Well, if you happen to get items from Tulimshar, see me first before you sell anything.\""; + close; + +L_havealready: + mes @npcname$; + mes "\"I already collected what you can offer me.\""; + close; + +S_Update_Var: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; + + + +//# The following stage is completely cutoff the first. +//# So there is no linking between the upper and lower part, except for one goto at the very beginning +// + +L_2_init: + +//# NIBBLE3 a bitmasking nibble for stage 2 again +//# bit 0 knows the name of the opponent +//# bit 1 killed the ugly opponent + set @BIT_KNOWS_NAME, 0; + set @BIT_KILLED_HIM, 1; + + if (@Q_status2 == 1) goto L_2_talk1; + if (@Q_status2 == 2) goto L_2_talk2; + if (@Q_status2 == 3) goto L_2_talk3; + if (@Q_status2 == 4) goto L_2_talk4; + // fall through @Q_status2==0: + // need to thank for bringing all stuff. + mes @npcname$; + mes "\"Thanks a lot for bringing me all this nice stuff!\""; + next; + mes "\"That helps me a lot. You see over there is already another set I collected: There are some pieces of the Hurnscald town. That sign there has been stolen from the inn.\""; + next; + mes "\"But do not tell anyone, please! I really like collecting things. And that sign is one of the first things I organized.\""; + next; + mes "\"So thank you for bringing me that stuff for my desert collection\""; + next; + mes "\"Do you have an idea how to arrange that to make it cool looking for my admirers?\""; + next; + set @Q_status2, 1; + callsub S_Update_Var2; + close; + +L_2_talk1: + mes @npcname$; + mes "\"In my childhood I was called a packrat, because I collected old cans.\""; + next; + mes "\"But everybody does collect things right?\""; + next; + mes "\"So after I had collected way over 1000 cans, I started collecting snail-shells. Nice? Do you like that?\""; + next; + mes "\"Not many people like me. And I don't know why. It is nice to talk about such nice things. What did you collect in your childhood?\""; + next; + mes "He picks in his nose"; + next; + mes @npcname$; + mes "\"Ok erm, talk to you later.\""; + next; + mes "\"Ok.\""; + set @Q_status2, 2; + callsub S_Update_Var2; + close; + +L_2_talk2: + mes @npcname$; + mes "\"Could you do me a favor? This ugly guy, who always attacked me....\""; + next; + mes "\"*sob*\""; + next; + mes "\"I was always bullied by him. You know in early childhood we were very nice friends. We played some roleplaying. He was the captain, and I was the soldier."; + next; + mes "\"Or another day he was the chieftain and I was the redskin.\""; + next; + mes "\"But to tell you the truth, HE was ALWAYS the one who directed me.\""; + next; + mes "\"I DO NOT LIKE THAT!\""; + next; + mes "\"I WANT TO BE THE LEADER!\""; + next; + mes "\"STOP HIM DOING NASTY THINGS\""; + next; + mes "\"I WANT YOU TO KILL THAT BASTARD!!\""; + set @Q_status2, 3; + callsub S_Update_Var2; + close; + +L_2_talk3: + menu "Ok, I am a professional in doing such things", L_2_professional, + "Hey do you really mean it? ", L_2_professional, + "You calmed down again?", -, + "Oh a packrat! By the way, is that trash over there yours?", L_2_name, + "Nevermind", -; + mes @npcname$; + mes "\"Get out of my way, prank!\""; + close; + +L_2_professional: + mes @npcname$; + mes "\"What are you talking about?\""; + goto L_2_talk3; + +L_2_name: + mes @npcname$; + mes "\"ONE DAY I WILL GET A HUGE REVENGE!\""; + next; + mes "\"AND I MEAN IT!\""; + next; + mes "\"You see I am a dangerous killer. Last week I killed five slimes and a pinkie!\""; + next; + mes "He takes out a piece of paper... mumbling"; + mes "\"Ok Scroticular first, and then ...\""; + set @Q_status2, 4; + set @Q_status2_bits, @Q_status2_bits | (1<<@BIT_KNOWS_NAME); + callsub S_Update_Var2; + + mes @npcname$; + mes "\"What is your name again?\""; + + menu "I am sorry for the joke... Please forgive me", -, + "They call me Mistakes. I am a professional killer as well. You heard about that business in the terranite cave?", -; + mes @npcname$; + mes "\"Alright, I see. Ok maybe I really need to calm down. Please leave me alone... I will try to calm down, ok?\""; + close; + +S_Update_Var2: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_MASK2) + | (@Q_status2 << @Q_SHIFT2)); + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_MASK2_BITS) + | (@Q_status2_bits << @Q_SHIFT2_BITS)); + return; +} + diff --git a/world/map/npc/020-2/furquest.txt b/world/map/npc/020-2/furquest.txt new file mode 100644 index 00000000..98d46660 --- /dev/null +++ b/world/map/npc/020-2/furquest.txt @@ -0,0 +1,338 @@ +//################################################################################# +// Script by Shaili and QOAL +//################################################################################# + +// Tulimshar Crafting Workshop - Agostine, The Legendary Tailor +020-2.gat,27,26,0 script Agostine 137,{ + if (QUEST_WG_state == 1) goto L_State_0_3; + if (QUEST_WG_state == 2) goto L_State_1; + if (QUEST_WG_state == 3) goto L_State_2; + if (QUEST_WG_state == 4) goto L_State_4; + if (QUEST_WG_state == 5) goto L_State_4_success; + if (QUEST_WG_state == 6) goto L_State_6; + if (QUEST_WG_state == 7) goto L_State_11; + if (QUEST_WG_state == 8) goto L_State_12; + if (QUEST_WG_state >= 9) goto L_State_13; + + mes "\"This goes up, this goes left...\""; + next; + mes "\"Mmmm...?\""; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh, a customer! Let me introduce myself! My name is Agostine!"; + mes "Some people say that I am the best tailor in the world,"; + mes "but I think I am the best one in the universe!"; + mes "So, What can I do for you, my friend?\""; + next; + menu + "I want something new for my wardrobe!", L_State_0_1, + "Oh, nothing, thanks!", -; + close; + +// Quest #0 - Beginning - Needed: Iron Potion + +L_State_0_1: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Well.. you know... working so hard makes me so tired!"; + mes "Can you bring me something tasty to drink, my friend?\""; + next; + menu + "Sure, what kind of drink you like?", L_State_0_2, + "I'm not your waiter!", -; + close; + +L_State_0_2: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Here we do not have a bar. Let me taste different beverages."; + mes "I want something new to drink.\""; + next; + menu + "I'll bring you different drinks to try!", L_State_Accept, + "Maybe a bar will open soon, wait for it.", -; + close; + +L_State_Accept: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Thanks so much.\""; + set QUEST_WG_state, 1; + close; + +L_State_0_3: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Well, what have you brought me?\""; + next; + menu + "A Cactus Drink.", L_State_0_4, + "A Cactus Potion.", L_State_0_5, + "Some milk.", L_State_0_6, + "A pint of beer.", L_State_0_7, + "An Iron potion.", L_State_0_9, + "A Concentration Potion.", L_State_0_8, + "Nothing, at the moment.", -; + close; + +L_State_0_4: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a Cactus Drink?\""; + if (countitem("CactusDrink") < 1) goto L_State_neg; + delitem "CactusDrink", 1; + goto L_State_bad; + close; + +L_State_0_5: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a Cactus Potion?\""; + if (countitem("CactusPotion") < 1) goto L_State_neg; + delitem "CactusPotion", 1; + goto L_State_bad; + close; + +L_State_0_6: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, some milk for me?\""; + if (countitem("Milk") < 1) goto L_State_neg; + delitem "Milk", 1; + goto L_State_bad; + close; + +L_State_0_7: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a beer?\""; + if (countitem("Beer") < 1) goto L_State_neg; + delitem "Beer", 1; + goto L_State_bad; + close; + +L_State_0_8: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a Concentration Potion?\""; + if (countitem("ConcentrationPotion") < 1) goto L_State_neg; + delitem "ConcentrationPotion", 1; + goto L_State_bad; + close; + +L_State_0_9: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, an Iron Potion?\""; + if (countitem("IronPotion") < 1) goto L_State_neg; + delitem "IronPotion", 1; + next; + mes "Agostine looks pleased as he drinks the potion."; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh! This is damn good! I feel a new man, my friend!\""; + next; + set zeny, zeny + 500; + mes "[Agostine, The Legendary Tailor]"; + mes "\"This is a little reward for your help. Take 500 GP, my friend!\""; + set QUEST_WG_state, 2; + close; + +L_State_neg: + next; + mes "\"Seems that you lied. You don't have the drink you told me.\""; + close; + +L_State_bad: + next; + mes "\"Well, I don't like it so much. Bring me something else.\""; + close; + +// First Quest: edited version of Forest Bow Quest - Needed: about 30 White Furs and 15.000 GP + +L_State_1: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Mmmm... Let me see... This year light colours are fashionable!"; + mes "Would you like a pair of snow-white Winter Gloves?\""; + next; + menu + "No, thanks. I love dark clothes...", -, + "You really can do this for me?", L_State_2; + close; + +L_State_2: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Well, Winter Gloves are so fashionable for their lovable fur!"; + mes "Only the best furs can be used for these gloves!"; + mes "But, as you see, I am a tailor, not a hunter! So, why don't you bring me the best fluffy's fur you can find?\""; + set QUEST_WG_state, 3; + next; + menu + "You are crazy! I won't kill any animal for this!", -, + "Sure, I will be back soon!", L_State_3; + close; + +L_State_3: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Remember, I want the best of fur!\""; + set QUEST_WG_state, 4; + close; + +L_State_4: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh, my friend! Have you brought me some good furs?\""; + if (countitem("WhiteFur") < 1) close; + next; + menu + "Here, take a look!", L_State_4_try, + "Yes, but I need it for something else.", -; + close; + +L_State_4_try: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Let me see, my friend! It needs to be perfect for my gloves!\""; + mes "Agostine examines the patch of fur."; + next; + if (countitem("WhiteFur") < 1) goto L_No_Fur; + delitem "WhiteFur", 1; + set @Temp1,rand(30); + if (@Temp1 == 0) goto L_State_4_success; + mes "Agostine throws away the white fur."; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"It was awfully cut! You should pay more attention when you kill fluffies!\""; + if (countitem("WhiteFur") < 1) close; + next; + menu + "Here I have another one!", L_State_4_try, + "Sorry, I will be careful...", -; + close; + +L_State_4_success: + mes "Agostine breaks into a smile"; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"It's perfect! Perfect! Good job, my friend! I will prepare your gloves right now!\""; + next; + set QUEST_WG_state, 5; + goto L_State_5; + +L_State_5: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Ehm, my friend, my work is not free. I need 15,000 GP for the work.\""; + next; + menu + "You are not a tailor, you are a thief!!", -, + "I think it's a reasonable price...", L_State_5_pay; + close; + +L_State_5_pay: + if (zeny < 15000) goto L_State_5_nocash; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + set zeny, zeny - 15000; + getitem "WinterGloves", 1; + set QUEST_WG_state, 6; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Here they are. You will have the most fashionable hands in the world!\""; + close; + +L_State_5_nocash: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Seems like you are out of cash. Come back when you have the money.\""; + close; + +L_State_6: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh, I remember you! Your gloves are sooo fashionable, my friend!"; + mes "Well, I have a good news for you. In this issue of 'TMW Fashion'"; + mes "I saw a pretty accessory, a pair of Furry Boots, my friend."; + mes "I can make your own pair, if you want!\""; + next; + menu + "It's a great idea!", L_State_10, + "I'm glamourous enough, thanks", -; + close; + +// Start of Second Quest: Furry Boots - Needed: About 30 White Furs, 1 pair of Boots and 15.000 GP +L_State_10: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Perfect! For satisfying your request I need another perfect White Fur"; + mes "and a pair of Boots, like those you can find in the mines."; + mes "They will make you lovely, my friend!\""; + set QUEST_WG_state, 7; + close; + +L_State_11: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, my friend, have you brought me the right Fur?\""; + if (countitem("WhiteFur") < 1) close; + next; + menu + "Sure, I'm a fluffy hunter!", L_State_11_try, + "Not yet, sorry.", -; + close; + +L_State_11_try: + mes "[Agostine, The Legendary Tailor]"; + mes "\"I'd rather see the patch of fur, first.\""; + next; + mes "Agostine examines the patch of fur."; + next; + if (countitem("WhiteFur") < 1) goto L_No_Fur; + delitem "WhiteFur", 1; + set @Temp2,rand(30); + if (@Temp2 == 0) goto L_State_11_success; + mes "Agostine rips the white fur."; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"That fur was terrible. I won't work with it!\""; + if (countitem("WhiteFur") < 1) close; + next; + menu + "Well, maybe this is better!", L_State_11_try, + "I will hunt other fluffies...", -; + close; + +L_State_11_success: + mes "Agostine breaks into a smile"; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"This one is good enough, my friend. Good job.\""; + set QUEST_WG_state, 8; + goto L_State_12; + +L_State_12: + mes "[Agostine, The Legendary Tailor]"; + mes "\"I need also a pair of Boots for the work."; + mes "And my payment, obviously. 15,000 GP is right.\""; + next; + menu + "Sure, here it all is.", L_State_12_pay, + "I missed something, I will be back soon!", -; + close; + +L_State_12_pay: + if (zeny < 15000) goto L_State_12_missing; + if (countitem("Boots") < 1) goto L_State_12_missing; + // No inventory check needed, as boots are removed, opening a slot + set zeny, zeny - 15000; + delitem "Boots", 1; + getitem "FurBoots", 1; + set QUEST_WG_state, 9; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Enjoy your new boots, my friend!\""; + close; + +L_State_12_missing: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Seems you have forgotten something. Check your inventory"; + mes "and your pockets!\""; + close; + +L_State_13: + mes "[Agostine, The Legendary Tailor]"; + mes "\"You are so glamourous, my dear friend!"; + mes "I have done a very good job on your clothes!\""; + close; + +L_TooMany: + mes "[Agostine, The Legendary Tailor]"; + mes "\"You don't have anywhere to put them. Come back when you do.\""; + close; + +L_No_Fur: + mes "[Agostine, The Legendary Tailor]"; + mes "\"You don't have any white fur! Stop talking nonsense.\""; + close; +} diff --git a/world/map/npc/020-2/mapflags.txt b/world/map/npc/020-2/mapflags.txt new file mode 100644 index 00000000..aaa1b90f --- /dev/null +++ b/world/map/npc/020-2/mapflags.txt @@ -0,0 +1,2 @@ +020-2.gat mapflag no_player_drops +020-2.gat mapflag town diff --git a/world/map/npc/020-2/shops.txt b/world/map/npc/020-2/shops.txt new file mode 100644 index 00000000..cc796b55 --- /dev/null +++ b/world/map/npc/020-2/shops.txt @@ -0,0 +1,22 @@ +// Snow town shops + +// Clothes shop +020-2.gat,75,28,0 shop Taylor 137,523:2000,524:1600,543:800,544:5000,546:10000,586:1000,741:-1 +// Weapons shop +020-2.gat,25,65,0 shop Bracco 135,1201:50,521:1000,522:100,529:3,530:-1 +// Potions shop +020-2.gat,75,24,0 shop Mede 103,501:50,502:70,567:500,568:500 + +// INN +020-2.gat,111,23,0 script Kane 120,{ + set @npcname$, "Kane the Inn Keeper"; + set @cost, 100; + + mes "[" + @npcname$ + "]"; + mes "\"Welcome stranger!\""; + mes "\"What? You've already seen an INN like mine?\""; + mes "\"That's impossible!\""; + next; + callfunc "Inn"; + close; +} diff --git a/world/map/npc/020-3/_import.txt b/world/map/npc/020-3/_import.txt new file mode 100644 index 00000000..fe2ee10c --- /dev/null +++ b/world/map/npc/020-3/_import.txt @@ -0,0 +1,6 @@ +// Map 020-3: Ice cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 020-3.gat +npc: npc/020-3/_mobs.txt +npc: npc/020-3/_warps.txt +npc: npc/020-3/monsters.txt diff --git a/world/map/npc/020-3/_mobs.txt b/world/map/npc/020-3/_mobs.txt new file mode 100644 index 00000000..1b23103c --- /dev/null +++ b/world/map/npc/020-3/_mobs.txt @@ -0,0 +1,20 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Ice cave mobs + +020-3.gat,40,36,29,4 monster Bat 1017,1,100000,30000,Mob020-3::On1017 +020-3.gat,40,49,34,7 monster Violet 1018,1,100000,30000,Mob020-3::On1018 + + +020-3.gat,0,0,0 script Mob020-3 -1,{ +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1018: + set @mobID, 1018; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/020-3/_warps.txt b/world/map/npc/020-3/_warps.txt new file mode 100644 index 00000000..b43072b5 --- /dev/null +++ b/world/map/npc/020-3/_warps.txt @@ -0,0 +1,10 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Ice cave warps + +020-3.gat,31,25 warp toOutside -1,-1,020-1.gat,76,37 +020-3.gat,25,22 warp toRightLowerCave -1,-1,020-3.gat,97,101 +020-3.gat,97,99 warp toLeftUpperCave -1,-1,020-3.gat,25,24 +020-3.gat,28,57 warp toLeftLowerCave -1,-1,020-3.gat,33,100 +020-3.gat,49,33 warp ToRightUpperCave -1,-1,020-3.gat,110,55 +020-3.gat,33,98 warp toLeftUpperCave -1,-1,020-3.gat,28,54 +020-3.gat,110,57 warp ToLeftUpperCave -1,-1,020-3.gat,49,35 diff --git a/world/map/npc/020-3/monsters.txt b/world/map/npc/020-3/monsters.txt new file mode 100644 index 00000000..062c6a9f --- /dev/null +++ b/world/map/npc/020-3/monsters.txt @@ -0,0 +1,18 @@ +// Ice Cave level 1 + +020-3.gat,0,0,0,0 monster Bat 1017,20,0,0,Mob12::OnBat +020-3.gat,0,0,0,0 monster Pinkie 1018,10,0,0,Mob12::OnPinkie + +020-3.gat,0,0,0 script Mob12 -1,{ +OnBat: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +OnPinkie: + set @mobID, 1018; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/021-1/_import.txt b/world/map/npc/021-1/_import.txt new file mode 100644 index 00000000..0c068010 --- /dev/null +++ b/world/map/npc/021-1/_import.txt @@ -0,0 +1,14 @@ +// Map 021-1: Tulimshar +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 021-1.gat +npc: npc/021-1/_mobs.txt +npc: npc/021-1/_warps.txt +npc: npc/021-1/bakery.txt +npc: npc/021-1/eurni.txt +npc: npc/021-1/gate_guards.txt +npc: npc/021-1/inac.txt +npc: npc/021-1/mapflags.txt +npc: npc/021-1/north_shops.txt +npc: npc/021-1/royal_guards.txt +npc: npc/021-1/weellos.txt +npc: npc/021-1/workers.txt diff --git a/world/map/npc/021-1/_mobs.txt b/world/map/npc/021-1/_mobs.txt new file mode 100644 index 00000000..ab4a88c1 --- /dev/null +++ b/world/map/npc/021-1/_mobs.txt @@ -0,0 +1,23 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar mobs + +021-1.gat,126,86,3,2 monster Maggot 1002,2,100000,30000,Mob021-1::On1002 +021-1.gat,90,65,3,2 monster Maggot 1002,2,100000,30000,Mob021-1::On1002 +021-1.gat,95,124,3,2 monster Maggot 1002,2,100000,30000,Mob021-1::On1002 +021-1.gat,103,53,6,2 monster Maggot 1002,5,100000,30000,Mob021-1::On1002 +021-1.gat,98,24,2,2 monster Sea Slime 1033,1,150000,100000,Mob021-1::On1033 + + +021-1.gat,0,0,0 script Mob021-1 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/021-1/_warps.txt b/world/map/npc/021-1/_warps.txt new file mode 100644 index 00000000..5d8bdc27 --- /dev/null +++ b/world/map/npc/021-1/_warps.txt @@ -0,0 +1,15 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar warps + +021-1.gat,55,146 warp toBazaar 3,-1,001-1.gat,44,20 +021-1.gat,136,146 warp toSouthTulimshar 0,-1,001-1.gat,124,21 +021-1.gat,53,134 warp toBuilding -1,-1,021-2.gat,27,29 +021-1.gat,55,134 warp toBuilding -1,-1,021-2.gat,33,29 +021-1.gat,57,134 warp toBuilding -1,-1,021-2.gat,39,29 +021-1.gat,103,100 warp toBakery -1,-1,021-2.gat,91,27 +021-1.gat,103,96 warp toBakery -1,-1,021-2.gat,122,23 +021-1.gat,49,63 warp toMagicSchool 3,-1,024-1.gat,86,72 +021-1.gat,53,99 warp toTaylor -1,-1,021-2.gat,25,66 +021-1.gat,52,95 warp toTaylor -1,-1,021-2.gat,23,98 +021-1.gat,73,20 warp ToNorthTulimshar 3,-1,022-1.gat,73,107 +021-1.gat,113,20 warp ToNorthTulimshar 3,-1,022-1.gat,113,107 diff --git a/world/map/npc/021-1/bakery.txt b/world/map/npc/021-1/bakery.txt new file mode 100644 index 00000000..d7ca399f --- /dev/null +++ b/world/map/npc/021-1/bakery.txt @@ -0,0 +1,17 @@ +// Outside the bakery + +021-1.gat,105,104,0 shop Ara 163,WhiteCake :-1,ChocolateCake :-1,OrangeCake :-1,AppleCake :-1 + +021-1.gat,108,102,0 script Itka 114,{ + mes "[Itka]"; + mes "\"This bakery is the best!\""; + close; + +OnTimer300000: + npctalk "Come to the bakery!"; + setnpctimer 0; + end; + +OnInit: + initnpctimer; +} diff --git a/world/map/npc/021-1/eurni.txt b/world/map/npc/021-1/eurni.txt new file mode 100644 index 00000000..1a140e81 --- /dev/null +++ b/world/map/npc/021-1/eurni.txt @@ -0,0 +1,39 @@ +// + +021-1.gat,141,113,0 script Eurni 136,{ + if (BaseLevel < 10) goto L_TooYoung; + if (zeny < 10000) goto L_NoMoney; + + mes "[Eurni the Surgeon]"; + mes "\"Are you tired of being what you are?\""; + next; + + mes "[Eurni the Surgeon]"; + mes "\"Would you maybe be interested in a sex change?\""; + next; + + mes "[Server]"; + mes "Warning: All characters under this login will be changed. Once it's done, you will be kicked from the server. Don't panic, as everything is fine."; + next; + + menu + "Please do, my dear...", L_Change, + "Leave alone my family treasure!", -; + close; + +L_Change: + if (zeny < 10000) goto L_No_Money; + set zeny, zeny - 10000; + changesex; + close; + +L_TooYoung: + mes "[Eurni the Surgeon]"; + mes "\"Move along, kid.\""; + close; + +L_NoMoney: + mes "[Eurni the Surgeon]"; + mes "\"You don't have enough to pay for my services.\""; + close; +} diff --git a/world/map/npc/021-1/gate_guards.txt b/world/map/npc/021-1/gate_guards.txt new file mode 100644 index 00000000..2d0dc504 --- /dev/null +++ b/world/map/npc/021-1/gate_guards.txt @@ -0,0 +1,41 @@ +// Various guards at gates + +// Guards by the gates to the port +021-1.gat,70,23,0 script Guard 104,{ + mes "[Guard]"; + mes "\"Lots of stuff happens in the port district. Those sailors can get quite rowdy.\""; + close; +} + +021-1.gat,110,23,0 script Guard 104,{ + mes "[Guard]"; + mes "\"I'm not quite sure why I'm here, since that bridge is out.\""; + close; +} + +// Guard near the magic school +021-1.gat,46,65,0 script Guard 104,{ + mes "[Guard]"; + mes "\"I'm just here to provide a presence for the guards at this gate. The mages here can defend themselves without problem.\""; + close; +} + +// Guards by the gates to East Tulimshar +021-1.gat,156,42,0 script Guard 104,{ + mes "[Guard]"; + mes "\"It's still a mess in East Tulimshar. The volcano and earthquake did a lot of damage.\""; + close; +} + +021-1.gat,156,95,0 script Guard 104,{ + mes "[Guard]"; + mes "\"It can get quite dangerous east of town. But for now, the passage is closed.\""; + close; +} + +// Near the bazaar, outside the government building +021-1.gat,58,135,0 script Guard 123,{ + mes "[Guard]"; + mes "\"This is a government building. They have some clerical and tax offices in here. There is also a jail in the subbasement.\""; + close; +} diff --git a/world/map/npc/021-1/inac.txt b/world/map/npc/021-1/inac.txt new file mode 100644 index 00000000..15f9eca3 --- /dev/null +++ b/world/map/npc/021-1/inac.txt @@ -0,0 +1,13 @@ +// + +021-1.gat,53,103,0 script Inac 156,{ + mes "[Inac]"; + mes "\"This cities water system is amazing. It was built centuries ago after the cataclysm that turned Tonori into this desert.\""; + next; + mes "[Inac]"; + mes "\"They say that not much maintainence is needed, even though it's so old.\""; + next; + mes "[Inac]"; + mes "\"They also say monsters have moved into the underground tunnels that bring and distribute water.\""; + close; +} diff --git a/world/map/npc/021-1/mapflags.txt b/world/map/npc/021-1/mapflags.txt new file mode 100644 index 00000000..3719ed0f --- /dev/null +++ b/world/map/npc/021-1/mapflags.txt @@ -0,0 +1,2 @@ +021-1.gat mapflag no_player_drops +021-1.gat mapflag town diff --git a/world/map/npc/021-1/north_shops.txt b/world/map/npc/021-1/north_shops.txt new file mode 100644 index 00000000..4fc3c481 --- /dev/null +++ b/world/map/npc/021-1/north_shops.txt @@ -0,0 +1,45 @@ +// Northern shopping plaza + +// More high-end stuff to satisfy the richer people in Royal Tulimshar + +// Some clothing +021-1.gat,136,38,0 shop Inar 108,CottonShirt :-1,CottonShorts :-1,WhiteCottonBoots :-1,DesertShirt :-1,SilkRobe :-5,DesertHat :-4 + +// Some general stuff +021-1.gat,128,36,0 shop Imec 162,CoinBag :-3,EmptyBottle :-6,CasinoCoins :10,CottonCloth :-6 + +// A snobby store that won't sell to the player +021-1.gat,138,29,0 script Latoy 106,{ + mes "[Latoy]"; + mes "\"There's nothing here you could want or afford.\""; + close; +} + +// A barber (later we can make it so certain styles need to come from him, for a price) +021-1.gat,119,29,0 script Issay 156,{ + mes "[Issay the Barber]"; + mes "\"Do you need a change of style?\""; + next; + callfunc "Barber"; + mes "[Issay the Barber]"; + mes "\"Come again!\""; + close; +} + +// Another banker +021-1.gat,122,32,0 script Hydusun 149,{ + set @npcname$, "Hydusun"; + callfunc "Banker"; + close; +} + +021-1.gat,129,40,0 script Well 127,{ + callfunc "WaterBottle"; +} + +// An officer (for security) +021-1.gat,130,38,0 script Officer 150,{ + mes "[Officer]"; + mes "I'm here for extra security for this market."; + close; +} diff --git a/world/map/npc/021-1/royal_guards.txt b/world/map/npc/021-1/royal_guards.txt new file mode 100644 index 00000000..02996184 --- /dev/null +++ b/world/map/npc/021-1/royal_guards.txt @@ -0,0 +1,13 @@ +// + +021-1.gat,141,23,0 script Guard 126,{ + mes "[Guard]"; + mes "\"Stay away.\""; + close; +} + +021-1.gat,147,23,0 script Guard 126,{ + mes "[Guard]"; + mes "\"Stay away.\""; + close; +} diff --git a/world/map/npc/021-1/weellos.txt b/world/map/npc/021-1/weellos.txt new file mode 100644 index 00000000..06bb8f17 --- /dev/null +++ b/world/map/npc/021-1/weellos.txt @@ -0,0 +1,15 @@ +// A historian + +021-1.gat,130,125,0 script Weellos 103,{ + if isin("021-1.gat", 130, 120, 140, 125) goto L_In; + + mes "[Weellos]"; + mes "\"This is a very historic building. One of the oldest in the area.\""; + close; + +// If the player is inside the fence with Weellos +L_In: + mes "[Weellos]"; + mes "\"What did you think of the historic building?\""; + close; +} diff --git a/world/map/npc/021-1/workers.txt b/world/map/npc/021-1/workers.txt new file mode 100644 index 00000000..24ea8f84 --- /dev/null +++ b/world/map/npc/021-1/workers.txt @@ -0,0 +1,19 @@ +// + +021-1.gat,144,22,0 script Construction Worker 155,{ + mes "[Construction worker]"; + mes "\"I can't let you beyond this gate. The area is closed for renovation.\""; + close; +} + +021-1.gat,156,97,0 script Construction Worker 155,{ + mes "[Construction worker]"; + mes "\"East Tulimshar is closed for repairs.\""; + close; +} + +021-1.gat,156,44,0 script Construction Worker 155,{ + mes "[Construction worker]"; + mes "\"East Tulimshar is closed for repairs.\""; + close; +} diff --git a/world/map/npc/021-2/_import.txt b/world/map/npc/021-2/_import.txt new file mode 100644 index 00000000..9dc3ac4b --- /dev/null +++ b/world/map/npc/021-2/_import.txt @@ -0,0 +1,12 @@ +// Map 021-2: Tulimshar +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 021-2.gat +npc: npc/021-2/_mobs.txt +npc: npc/021-2/_warps.txt +npc: npc/021-2/bakery.txt +npc: npc/021-2/government_building.txt +npc: npc/021-2/heathin.txt +npc: npc/021-2/inya.txt +npc: npc/021-2/jhedia.txt +npc: npc/021-2/mapflags.txt +npc: npc/021-2/workshop.txt diff --git a/world/map/npc/021-2/_mobs.txt b/world/map/npc/021-2/_mobs.txt new file mode 100644 index 00000000..a390438e --- /dev/null +++ b/world/map/npc/021-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar mobs + + + +021-2.gat,0,0,0 script Mob021-2 -1,{ + end; +} diff --git a/world/map/npc/021-2/_warps.txt b/world/map/npc/021-2/_warps.txt new file mode 100644 index 00000000..0af6f275 --- /dev/null +++ b/world/map/npc/021-2/_warps.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar warps + +021-2.gat,27,30 warp toOutside -1,-1,021-1.gat,53,135 +021-2.gat,33,30 warp toOutside -1,-1,021-1.gat,55,135 +021-2.gat,39,30 warp toOutside -1,-1,021-1.gat,57,135 +021-2.gat,91,28 warp toOutside -1,-1,021-1.gat,103,101 +021-2.gat,122,24 warp toOutside -1,-1,021-1.gat,103,97 +021-2.gat,118,24 warp to1stFloor 0,-1,021-2.gat,79,22 +021-2.gat,80,22 warp to2ndFloor 0,-1,021-2.gat,118,23 +021-2.gat,23,99 warp toOutside -1,-1,021-1.gat,52,96 +021-2.gat,25,67 warp toOutside -1,-1,021-1.gat,53,100 +021-2.gat,46,97 warp to1stFloor 0,-1,021-2.gat,45,58 +021-2.gat,46,57 warp to2ndFloor 0,-1,021-2.gat,46,96 diff --git a/world/map/npc/021-2/bakery.txt b/world/map/npc/021-2/bakery.txt new file mode 100644 index 00000000..8a6dbdb2 --- /dev/null +++ b/world/map/npc/021-2/bakery.txt @@ -0,0 +1,234 @@ +// The bakery + +// The chef +021-2.gat,95,21,0 script Riskim 148,{ + +// lines belong to easter 2011: +// set @month, 4; +// set @start_day, 15; +// set @end_day, 30; + +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 10) goto L_ChocMouboo; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 11) goto L_MakeChocMouboo; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 12) goto L_SeeBunny; + +L_Begin: + mes "[Riskim]"; + mes ""; + mes "\"Welcome to our bakery!\""; + + callfunc "KadiyaSubquestConsts"; + if ((@Q_kadiya_status == @Q_STATUS_WANTS_CHOCOCAKE) && (countitem ("MopoxCurePotion") > 0)) + goto L_lace_chococake; + + if ((@Q_kadiya_status == @Q_STATUS_WANTS_ORANGECUPCAKE) && (countitem ("MopoxCurePotion") > 0)) + goto L_lace_cupcake; + + mes "\"Would you mind bringing me 6 acorns please? I need them to make flour for the chocolate cakes. I will be so delicious!\""; + next; + mes "\"Um, I mean, the cakes will be delicious...\""; + emotion 8; + next; + + set @dq_level, 15; + set @dq_cost, 3; + set @dq_count, 6; + set @dq_name$, "Acorn"; + set @dq_friendly_name$, "acorns"; + set @dq_money, 250; + set @dq_exp, 50; + + callfunc "DailyQuest"; + + next; + + mes "\"And don't forget, our bakery is the best!\""; + + close; + +L_lace_chococake: + next; + + menu + "Thanks! Let me have a look around...", L_end, + "Can you put this potion into a Chocolate Cake?", -, + "Goodbye!", L_end; + + mes "[Riskim]"; + mes ""; + mes "As you show Riskim the potion, he leans back, away from it."; + mes "\"Ooooh, I remember that smell...\""; + mes "\"Elanore's Mopox potion, right? She made me drink that, too...\""; + mes "He chuckles."; + mes "\"Yes, well, you do want to hide that somehow.\""; + next; + + mes "[Riskim]"; + mes ""; + mes "\"We'll need extra chocolate for that one. If you can give me ten pieces of chocolate and that potion, plus 400 GP, I will bake you a special Chocolate Cake that hides the taste.\""; + next; + + menu + "I will get them for you.", L_end, + "Here you are!", -, + "Maybe later.", L_end; + + if (countitem("ChocolateBar") < 10) + goto L_lacking_ingredients; + if (countitem("MopoxCurePotion") < 1) + goto L_lacking_ingredients; + if (zeny < 400) + goto L_lacking_zeny; + delitem "MopoxCurePotion", 1; + delitem "ChocolateBar", 10; + getitem "LacedChocolateCake", 1; + set zeny, zeny - 400; + + mes "[Riskim]"; + mes ""; + mes "\"Please have a seat!\""; + mes "You watch as Riskim melts the chocolate and stirs in the potion, then glazes a cake with the mixture."; + mes "\"It's a bit more chocolatey than your average chocolate cake, of course...\""; + next; + + mes "[Riskim]"; + mes ""; + mes "Riskim hands you the cake."; + mes "\"Here you are. I hope that this works.\""; + close; + +L_lacking_zeny: + mes "[Riskim]"; + mes ""; + mes "\"I'm sorry, but I have to charge 400 GP.\""; + close; + +L_lacking_ingredients: + mes "[Riskim]"; + mes ""; + mes "\"Sorry, but I need ten Chocolate Bars AND your cure potion for this. Please come back later when you have everything.\""; + close; + +L_lace_cupcake: + next; + + menu + "Thanks! Let me have a look around...", L_end, + "Can you put this potion into an Orange Cupcake?", -, + "Goodbye!", L_end; + + mes "[Riskim]"; + mes ""; + mes "\"Orange Cupcakes? Oh dear... I'm sorry, but I have a very bad orange allergy.\""; + next; + mes "[Riskim]"; + mes ""; + mes "\"Perhaps the Chef at Dimond's Cove can help you? We get all our cupcakes from him.\""; + next; + +L_End: + close; + +L_ChocMouboo: + mes "[Riskim]"; + mes ""; + mes "\"Welcome to our bakery! Here you will find the best cakes in Tulimshar. And don't leave before you try one of our delicious Chocolate Pinkies!\""; + next; + menu + "Excuse me, sir? Did you say Chocolate Pinkies?", -; + mes "\"Yes! But there is no need to be alarmed, it is just plain chocolate molded in the shape of a small pinkie...\""; + next; + menu + "Do you have one in the shape of a mouboo? The Easter Bunny needs one.", -; + mes "\"The Easter Bunny? Interesting... I think I can help you make a Chocolate Mouboo.\""; + menu + "Nah, I decided not to do that stupid quest.", L_End, + "I would really appreciate that!", -; + set QUEST_Easter11, 11; + +L_MakeChocMouboo: + mes "[Riskim]"; + mes ""; + mes "\"I will need you to bring me some Chocolate Bars.\""; + mes "\"I think 5 bars should be enough.\""; + mes "\"Red slimes seem to have those, so try there.\""; + mes "\"I will also need a Mouboo Figurine to hollow out and use as a mold.\""; + mes "\"Any mage should be able to make you one out of a log, if you ask.\""; + menu + "I have everything you need.", -, + "Ok, I will be back soon.", L_End, + "I changed my mind, forget about it.", L_End; + + if(countitem("ChocolateBar") < 5 || countitem("MoubooFigurine") < 1) goto L_EasterNotEnough; + +L_EasterEnough: + getinventorylist; + if (@inventorylist_count == 100 && countitem("ChocolateBar") > 5 && countitem("MoubooFigurine") > 1) goto L_EasterTooMany; + if(countitem("ChocolateBar") < 5 || countitem("MoubooFigurine") < 1) goto L_EasterNotEnough; + delitem "ChocolateBar", 5; + delitem "MoubooFigurine", 1; + getitem "ChocolateMouboo", 1; + set QUEST_Easter11, 12; + mes "[Riskim]"; + mes ""; + mes "\"Excellent. You have brought me the chocolate and the mold.\""; + mes "He places the chocolate in a pan to melt."; + mes "Next, he pours the melted chocolate into the mold."; + mes "Finally, he dips the mold in cold water for a moment to solidify the chocolate before skillfully cracking it open and handing you the finished product."; + mes "\"Here is your Chocolate Mouboo.\""; + close; + +L_EasterNotEnough: + mes "[Riskim]"; + mes ""; + if(countitem("ChocolateBar") < 5) mes "\"You do not have enough Chocolate Bars for me to work with yet.\""; + if(countitem("MoubooFigurine") < 1) mes "\"You do not have the Mouboo Figurine to use as a mold.\""; + mes "\"Please go get what I asked.\""; + close; + +L_EasterTooMany: + mes "[Riskim]"; + mes ""; + mes "\"You don't have enough room for the Chocolate Mouboo. Come back later.\""; + close; + +L_SeeBunny: + mes "[Riskim]"; + mes ""; + mes "\"You need to return to the Easter Bunny now.\""; + close; +} + +// Server? +021-2.gat,82,23,0 script Sara 108,{ + mes "[Sara]"; + mes ""; + mes "\"Hello!\""; + close; +} + +// The cashier +021-2.gat,89,21,0 shop Drabur 112,WhiteCake :-1,ChocolateCake :-1,OrangeCake :-1,AppleCake :-1,Cake :-1,CherryCake :-1,OrangeCupcake :-3,Milk :-5,XmasCake :-1 + +// Stockroom boy +021-2.gat,133,21,0 script Iormo 160,{ + mes "[Iormo]"; + mes ""; + mes "\"This stock room can get messy.\""; + close; +} + +// An old couple eating at the bakery +021-2.gat,71,22,0 script Rynoh 159,{ + mes "[Rynoh]"; + mes ""; + mes "\"The cakes may be expensive, but they sure are delicious!\""; + close; +} + +021-2.gat,73,22,0 script Ontas 154,{ + mes "[Ontas]"; + mes ""; + mes "\"We come here every week. This place has some of the best bread I've ever eaten!\""; + close; +} diff --git a/world/map/npc/021-2/government_building.txt b/world/map/npc/021-2/government_building.txt new file mode 100644 index 00000000..f4f9d0de --- /dev/null +++ b/world/map/npc/021-2/government_building.txt @@ -0,0 +1,220 @@ +// The government builing in the south west + +// A clerk +021-2.gat,27,17,0 script Estard 107,{ + mes "[Estard]"; + mes "\"Hello what can I do for you?\""; + next; + +L_main: + if (getpartnerid2(0)) + goto L_main_married; + + menu + "I'm looking at getting married.", L_marry, + "Nothing, I guess.", -; + close; + +L_main_married: + menu + "I'd like a divorce.", L_divorce, + "Nothing, I guess.", -; + close; + +L_marry: + if (BaseLevel < WEDDING_MIN_LEVEL) + goto L_marry_too_young; + if (zeny < WEDDING_FEE) + goto L_marry_too_poor; + + mes "[Estard]"; + mes "\"Are you sure you want to get married? It'll cost " + WEDDING_FEE + " GP.\""; + + menu + "Yes", L_marry_do, + "No", -; + close; + +L_marry_do: + callsub S_give_rings; + + mes "[Estard]"; + mes "\"Here are your rings. You can get married by standing in one of the designated places (like that small rug over there) with your partner, give them their ring, and say 'marry (their name here)'. You both need to have your rings on.\""; + close; + +L_marry_too_young: + mes "[Estard]"; + mes "\"I'm sorry, but you are too young to get married. You must be atleast " + WEDDING_MIN_LEVEL + " levels old.\""; + next; + + menu + "Can I at least get wedding rings?", L_get_rings, + "Thanks anyways.", -; + close; + +L_marry_too_poor: + mes "[Estard]"; + mes "\"You need " + WEDDING_FEE + " GP to get married. That covers all administrative fees for the marriage and provides two wedding rings.\""; + close; + +L_get_rings: + mes "[Estard]"; + mes "\"Yes. They are " + WEDDING_FEE + " GP. That covers all administrative fees for the marriage.\""; + + if (zeny < WEDDING_FEE) + menu + "Thanks anyways. I don't have enough with me.", -; + + if (zeny >= WEDDING_FEE) + menu + "I'll buy a pair.", L_get_rings_pay, + "Thanks anyways.", -; + close; + +L_get_rings_pay: + callsub S_give_rings; + + mes "[Estard]"; + mes "\"There you go. Come again.\""; + close; + +L_divorce: + set @divorce_cost, DIVORCE_FEE_PER_LEVEL * BaseLevel; + + if (zeny < @divorce_cost) + goto L_divorce_not_enough; + + mes "[Estard]"; + mes "\"If you're sure you want a divorce, it'll cost you " + @divorce_cost + " GP.\""; + next; + + menu + "I am sure I want it.", L_do_divorce, + "I don't want it.", -; + close; + +L_do_divorce: + if (zeny < @divorce_cost) + goto L_not_enough_money; + + if divorce(0) goto L_divorce_done; + + mes "[Estard]"; + mes "\"I'm having trouble finding the record. \""; + + mes "[Server]"; + mes "Try again when your partner is online too."; + close; + +L_divorce_done: + set zeny, zeny - @divorce_cost; + + mes "[Estard]"; + mes "\"You have been divorced. Come again.\""; + close; + +L_divorce_not_enough: + mes "[Estard]"; + mes "\"I'm sorry , but you don't have enough money to get a divorce. You need " + @divorce_cost + " GP.\""; + close; + +L_not_enough_money: + mes "[Estard]"; + mes "\"Seems you don't have enough money.\""; + close; + +L_no_room_for_rings: + mes "[Estard]"; + mes "\"You don't have enough room to carry these rings.\""; + close; + +S_give_rings: + if (zeny < WEDDING_FEE) + goto L_not_enough_money; + getinventorylist; + if (@inventorylist_count > 98) goto L_no_room_for_rings; + + set zeny, zeny - WEDDING_FEE; + getitem "WeddingRing", 1; + getitem "WeddingRing", 1; + return; +} + +021-2.gat,36,17,0 script Tathin 107,{ + set @PARTY_SKILL, 3; + + mes "[Tathin]"; + mes "\"Hello what Can I do for you?\""; + next; + + if (getskilllv(@PARTY_SKILL) == 2 ) goto L_Base_Menu; + if (BaseLevel >= 15 && getskilllv(@PARTY_SKILL) == 1) goto L_Can_Make_Party; + if (getskilllv(@PARTY_SKILL) == 1) goto L_Base_Menu; + if (BaseLevel >= 10) goto L_Can_Party; + +L_Base_Menu: + menu + "Nothing, I guess.", -; + close; + +L_Can_Party: + menu + "I'd like to get a party permit.", L_Get_Party, + "Nothing, I guess.", -; + close; + +L_Can_Make_Party: + menu + "I'd like to get a party creator permit.", L_Get_Make_Party, + "Nothing, I guess.", -; + close; + +L_Get_Party: + mes "[Tathin]"; + mes "\"A permit to join parties costs 10 GP.\""; + next; + menu + "OK", L_Give_Party, + "No thank you", -; + close; + +L_Give_Party: + if (zeny < 10) goto L_NotEnoughMoney; + set zeny, zeny - 10; + setskill @PARTY_SKILL, 1; + mes "[Tathin]"; + mes "\"Here's your permit. You'll need to be invited by an existing member of a party to join it.\""; + next; + mes "[Tathin]"; + mes "\"Remember, parties cannot share experience if any members are more than 10 levels apart.\""; + close; + +L_Get_Make_Party: + mes "[Tathin]"; + mes "\"A permit to create parties costs 50 GP.\""; + next; + menu + "OK", L_Give_Make_Party, + "No thank you", -; + close; + +L_Give_Make_Party: + if (zeny < 50) goto L_NotEnoughMoney; + set zeny, zeny - 50; + setskill @PARTY_SKILL, 2; + mes "[Tathin]"; + mes "\"Here's your permit. You can create parties with the 'new' or 'create' commands on the Party tab in the client. Parties need to have unique names.\""; + close; + +L_NotEnoughMoney: + mes "[Tathin]"; + mes "\"You don't have enough GP\""; + close; +} + +// Guard +021-2.gat,20,19,0 script Guard 123,1,1,{ + mes "[Guard]"; + mes "\"You can't come back here.\""; + close; +} diff --git a/world/map/npc/021-2/heathin.txt b/world/map/npc/021-2/heathin.txt new file mode 100644 index 00000000..567d5fee --- /dev/null +++ b/world/map/npc/021-2/heathin.txt @@ -0,0 +1,287 @@ +//Items for NPC are incomplete. Makes "simple ring" which can be crafted into a useful ring by Inya and terranite armor. + +021-2.gat,29,55,0 script Heathin 147,{ + + set @TARROW_REQ_TERRA_ORE, 1; + set @TARROW_REQ_COAL, 5; + set @TARROW_REQ_GP, 3000; + + if (HEATHIN_QUEST == 14) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Trade; + if (HEATHIN_QUEST == 13) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Ready; + if (HEATHIN_QUEST == 12) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Forge; + if (HEATHIN_QUEST == 11) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows; + if (HEATHIN_QUEST == 10) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor_Ready; + if (HEATHIN_QUEST == 9) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor_Forge; + if (HEATHIN_QUEST == 8) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor; + if (HEATHIN_QUEST == 7) && (baselevel >= 80) goto L_Heathin_Terranite_Legs_Ready; + if (HEATHIN_QUEST == 6) && (baselevel >= 80) goto L_Heathin_Terranite_Legs_Forge; + if (HEATHIN_QUEST == 5) && (baselevel >= 80) goto L_Heathin_Terranite_Legs; + if (HEATHIN_QUEST == 4) && (baselevel >= 80) goto L_Heathin_Terranite_Hood_Ready; + if (HEATHIN_QUEST == 3) && (baselevel >= 80) goto L_Heathin_Terranite_Hood_Forge; + if (HEATHIN_QUEST == 2) && (baselevel >= 80) goto L_Heathin_Terranite_Hood; + if (HEATHIN_QUEST == 2) && (baselevel >= 60)goto L_Heathin_Ring_Thanks; + if (HEATHIN_QUEST == 1) && (baselevel >= 60) goto L_Heathin_Ring_Award; + if (baselevel >= 60) goto L_Heathin_Start; + + mes "[Heathin]"; + mes "\"Hello, friend. I am Heathin, a smith of exotic metals. \""; + close; + +L_Heathin_Start: + mes "[Heathin]"; + mes "\"Hello, friend. I am Heathin, a smith of exotic metals. \""; + next; + mes "\"By the order of the Wizard's Council, I've been commissioned to forge gold ingots from gold pieces. I need to collect as many gold pieces as I can manage, forge them and give the ingots to the Council. However, I am but a simple smith and cannot complete this effort by myself.\""; + next; + mes "\"Forging gold ingots is not just a simple matter of gold falling from the sky! I need individuals that can gather not just the gold, but also help collect Coal to heat my forge.\""; + next; + mes "\"Of course it would make little sense for me to gather gold pieces from helpers just to pass them back out. However, I am willing to smith an award for any who would put an effort in towards completing my goal.\""; + next; + mes "\"Perhaps you would be interested in helping me out? Would you be willing to help me gather Coal and gold to fulfill my commission? I am asking any and all willing souls to get me 50 coal and 100,000 gold pieces, as that would put a significant dint in my goal.\""; + menu + "Sure, I'll help!", L_Heathin_Help, + "I'd rather keep my gold for my own purposes, thank you very much.", L_Heathin_No, + "Wait, what kind of award are we talking about?", L_Heathin_Interested; + +L_Heathin_Help: + set HEATHIN_QUEST, 1; + mes "[Heathin]"; + mes "\"Excellent! I am always glad when someone can be of service not just to me, but to all of Tulimshar. Please get me 50 Coal and 100,000 gold pieces, and you will be compensated for your efforts.\""; + close; + +L_Heathin_No: + mes "[Heathin]"; + mes "\"That is too bad. If you change your mind, I shall still be here, attempting to get my commission done.\""; + close; + +L_Heathin_Interested: + mes "[Heathin]"; + mes "\"Well, when I am crafting these ingots, there are always stray metals left over. Surely I could forge them into ingots again, but I'd rather ensure that my commission be completed. I am willing to forge a Simple Ring for you, which could be made more beautiful by a skilled jeweler.\""; + next; + mes "\"What you do with the ring after I am done forging it is your own business, but it could come in handy.\""; + next; + mes "\"Does this sound like something you might be interested in?\""; + menu + "Sure, I'll help!", L_Heathin_Help, + "I'd rather keep my gold.", L_Heathin_No, + "Can you repeat that again?", L_Heathin_Interested; + close; + +L_Heathin_Ring_Award: + if ( (zeny < 100000) | (countitem ("Coal") < 50) ) goto L_Heathin_Ring_Wait; + set HEATHIN_QUEST, 2; + set zeny, zeny - 100000; + delitem "Coal", 50; + getitem "RingSimple", 1; + mes "[Heathin]"; + mes "\"You have brought the Coal and gold pieces. This is most excellent! As promised, I have crafted a ring for you. Hopefully you will find it useful.\""; + next; + mes "\"Time to smelt these gold pieces into ingots. The Council will be pleased. Thank you for your efforts!\""; + close; + +L_Heathin_Ring_Wait: + mes "[Heathin]"; + mes "\"Hello again. Making golden ingots keeps me pretty busy. I certainly hope I can fulfill my commission soon so that I can move on to bigger and better things.\""; + next; + mes "\"The pay is good, certainly, but I am a far better smith than this. If you can bring me 100,000 gold pieces and 50 Coal, it would surely get me to my goal faster.\""; + next; + mes "\"I will be sure to provide an apt award once you are done.\""; + close; + +L_Heathin_Ring_Thanks: + mes "[Heathin]"; + mes "\"Thank you again for helping me fulfil my commission. It has made a signficant dint in what the Council requires of me. Perhaps I may be of service to you again one day!\""; + close; + +L_Heathin_Terranite_Hood: + mes "[Heathin]"; + mes "\"Hello again friend, I just found out about this great metal called terranite.\""; + next; + mes "\"This metal is almost as strong as steel, but is also very ductile.\""; + next; + mes "\"With some effort, I can make this metal form rings tighter than any chain mail. It isn't the prettiest in hue, but its uses can be many.\""; + next; + mes "\"Unfortunately, it seems to be difficult to gather. Most that have searched for Terranite Ore either cannot find it or have never returned...\""; + next; + mes "\"I may be an excellent smith, but I certainly am no combatant. However, I would enjoy turning this ore into something useful, perhaps some type of armor to help those that may be braver.\""; + next; + mes "\"So, what do you say? Are you interested?\""; + menu + "No, thank you. Maybe later.", L_Heathin_Terranite_No, + "Armor, you say? Definitely!", L_Heathin_Terranite_Yes; + close; + +L_Heathin_Terranite_No: + mes "[Heathin]"; + mes "\"Ah, that is too bad. Come by again anytime.\""; + close; + +L_Heathin_Terranite_Yes: + set HEATHIN_QUEST, 3; + mes "[Heathin]"; + mes "\"Great, this is going to be fun! As I have not had much practice with this armor, I'd like to get started soon.\""; + next; + mes "Heathin thinks for a moment."; + next; + mes "\"Ah, I know! I will make a helm... Well, more like a hood, since it will be woven.\""; + next; + mes "\"It will require a great amount of heat, if the rumors are to be believed. For this, I will need 100 Coal to keep my forge burning hot. I will also need 10 Terranite Ore to make the armor. Of course, such work does not come cheap. While I may enjoy my work, my time and effort is very valuable. To compensate my efforts I will need 200,000 gold pieces. Please come back with the gold, Coal and ore and I'll make this hood for you.\""; + close; + +L_Heathin_Terranite_Hood_Forge: + if ( (zeny < 200000) | (countitem("Coal") < 100) | (countitem("TerraniteOre") < 10) ) goto L_Heathin_Terranite_Hood_Wait; + set HEATHIN_QUEST, 4; + delitem "Coal", 100; + delitem "TerraniteOre", 10; + set zeny, zeny - 200000; + mes "[Heathin]"; + mes "\"Great, you brought everything! Come back later and I'll have the helm ready for you.\""; + close; + +L_Heathin_Terranite_Hood_Wait: + mes "[Heathin]"; + mes "\"I am very busy right now. If you could bring me 10 Terranite Ore, 100 Coal and 200,000 gold pieces, I will make that terranite hood for you.\""; + close; + +L_Heathin_Terranite_Hood_Ready: + set HEATHIN_QUEST, 5; + getitem "TerraniteHelmet", 1; + mes "[Heathin]"; + mes "\"I am all done with your terranite hood. I hope you enjoy it! I have some work to wrap up for the Council, but come back later and I might be able to assist you again.\""; + close; + +L_Heathin_Terranite_Legs: + set HEATHIN_QUEST, 6; + mes "[Heathin]"; + mes "\"I am glad you are back! I've just finished up some more of my commission. Now I can get back to making terranite armor for you. This time I will make some pants, but they need more ore, more Coal to heat my forge and of course, more gold for my efforts.\""; + next; + mes "\"To make terranite pants, I need 200 Coal, 30 Terranite Ore and 400,000 gold pieces. The faster you bring this to me, the faster I can have your terranite pants ready.\""; + close; + +L_Heathin_Terranite_Legs_Forge: + if ( (zeny < 400000) | (countitem("Coal") < 200) | (countitem("TerraniteOre") < 30) ) goto L_Heathin_Terranite_Legs_Wait; + set HEATHIN_QUEST, 7; + delitem "Coal", 200; + delitem "TerraniteOre", 30; + set zeny, zeny - 400000; + mes "[Heathin]"; + mes "\"Great, you have brought everything! Come back later and I will have those terranite pants ready for you.\""; + close; + +L_Heathin_Terranite_Legs_Wait: + mes "[Heathin]"; + mes "\"I am very busy right now. If you could bring me 30 Terranite Ore, 200 Coal and 400,000 gold pieces, I will make those terranite pants for you.\""; + close; + +L_Heathin_Terranite_Legs_Ready: + set HEATHIN_QUEST, 8; + getitem "TerraniteLegs", 1; + mes "[Heathin]"; + mes "\"I am all done with your terranite pants. Hope you enjoy them! I have some more work to complete for the Council. Come back later and I might be able to assist you again.\""; + close; + +L_Heathin_Terranite_Chest_Armor: + set HEATHIN_QUEST, 9; + mes "[Heathin]"; + mes "\"Good to see you again. I have just finished up some more of my commission. Now I can get back to making terranite armor for you. This time, I will make some terranite chest armor, but it needs more ore, more Coal for my forge and of course, more gold to compensate for my efforts.\""; + next; + mes "\"To make terranite chest armor, I need 250 Coal, 40 Terranite Ore and 500,000 gold pieces. The faster you bring this to me, the faster I can have your terranite armor ready.\""; + close; + +L_Heathin_Terranite_Chest_Armor_Forge: + if ( (zeny < 500000) | (countitem("Coal") < 250) | (countitem("TerraniteOre") < 40) ) goto L_Heathin_Terranite_Chest_Armor_Wait; + set HEATHIN_QUEST, 10; + delitem "Coal", 250; + delitem "TerraniteOre", 40; + set zeny, zeny - 500000; + mes "[Heathin]"; + mes "\"Splendid, you have brought everything! Come back later and I will have the terranite chest armor ready for you.\""; + close; + +L_Heathin_Terranite_Chest_Armor_Wait: + mes "[Heathin]"; + mes "\"I am very busy right now. If you could bring me 40 Terranite Ore, 250 Coal and 500,000 gold pieces, I will make that chest armor for you.\""; + close; + +L_Heathin_Terranite_Chest_Armor_Ready: + set HEATHIN_QUEST, 11; + getitem "TerraniteChestArmor", 1; + mes "[Heathin]"; + mes "\"I have completed your terranite chest armor. I hope you enjoy it! I have some work to wrap up for the Council again, but come back later and I might be able to assist you once more.\""; + close; + +L_Heathin_Terranite_Arrows: + mes "[Heathin]"; + mes "\"How good to see you. I have experimented a little with Terranite Ore to see what else can be done with it. It seems to have some qualities suitable for weapons, but I have only tested it with arrows. If you would like, I can make Terranite Arrows, but as as with the armor, I need Coal, Terranite Ore and payment for my efforts.\""; + next; + mes "\"Also, it might be a while until I have time to see what else I can make with terranite other than arrows, as right now the Council is keeping me rather busy with my commission. So, would you like some Terranite Arrows?\""; + menu + "No, thank you.", L_Heathin_Terranite_Arrows_No, + "Sure, I could use some arrows.", L_Heathin_Terranite_Arrows_Yes; + close; + +L_Heathin_Terranite_Arrows_No: + mes "[Heathin]"; + mes "\"Well, if you change your mind, I'm not going anywhere.\""; + close; + +L_Heathin_Terranite_Arrows_Yes: + set HEATHIN_QUEST, 12; + mes "[Heathin]"; + mes "\"Good, good. I shall begin crafting these arrows as soon as you come back. However, I cannot just make small handfuls as it would not be worth my time and effort to have my concentration interrupted for small tasks. I will make 1,000 Terranite Arrows per request, for which I will need "+@TARROW_REQ_TERRA_ORE+" Terranite Ore, "+@TARROW_REQ_COAL+" Coal and "+@TARROW_REQ_GP+" gold pieces.\""; + next; + mes "\"See you soon!\""; + close; + +L_Heathin_Terranite_Arrows_Forge: + if ( (zeny < @TARROW_REQ_GP) | (countitem("Coal") < @TARROW_REQ_COAL) | (countitem("TerraniteOre") < @TARROW_REQ_TERRA_ORE) ) goto L_Heathin_Terranite_Arrows_Wait; + set HEATHIN_QUEST, 13; + delitem "Coal", @TARROW_REQ_COAL; + delitem "TerraniteOre", @TARROW_REQ_TERRA_ORE; + set zeny, zeny - @TARROW_REQ_GP; + mes "[Heathin]"; + mes "\"Wonderful! You have everything I asked for. I will start working on the arrows right away.\""; + close; + +L_Heathin_Terranite_Arrows_Wait: + mes "[Heathin]"; + mes "\"If you want Terranite Arrows, please get me "+@TARROW_REQ_TERRA_ORE+" Terranite Ore, "+@TARROW_REQ_COAL+" Coal and "+@TARROW_REQ_GP+" gold pieces.\""; + close; + +L_Heathin_Terranite_Arrows_Ready: + getitem "TerraniteArrow", 1000; + set HEATHIN_QUEST, 14; + mes "[Heathin]"; + mes "\"All done, here you go! I hope you like them. I am still working on my commission, but if you ever need any more Terranite Arrows, just come on by with "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces and I will make another 1,000 arrows for you. By now I have enough Terranite Ore in reserve that you can just trade me my requirements to keep my resources up. Thank you for all your efforts!\""; + close; + +L_Heathin_Terranite_Arrows_Trade: + mes "[Heathin]"; + mes "\"Hello, there. If you have "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces, I will trade you 1,000 Terranite Arrows. Would you like some Terranite Arrows?\""; + menu + "No.", L_Heathin_Terranite_Arrows_Trade_No, + "Yes.", L_Heathin_Terranite_Arrows_Trade_Yes; + close; + +L_Heathin_Terranite_Arrows_Trade_No: + mes "[Heathin]"; + mes "\"Come back again if you would like to get Terranite Arrows.\""; + close; + +L_Heathin_Terranite_Arrows_Trade_Yes: + if ( (zeny < @TARROW_REQ_GP) | (countitem("Coal") < @TARROW_REQ_COAL) | (countitem("TerraniteOre") < @TARROW_REQ_TERRA_ORE) ) goto L_Heathin_Terranite_Arrows_Trade_Wait; + delitem "Coal", @TARROW_REQ_COAL; + delitem "TerraniteOre", @TARROW_REQ_TERRA_ORE; + set zeny, zeny - @TARROW_REQ_GP; + set @lucky, 5 * rand(readparam(bLuk)); + getitem "TerraniteArrow", 1000 + @lucky; + mes "[Heathin]"; + mes "\"Here you go! You are lucky, I could forge "+@lucky+" more arrows than expected. Come back again if you want more Terranite Arrows.\""; + close; + +L_Heathin_Terranite_Arrows_Trade_Wait: + mes "[Heathin]"; + mes "\"It seems that you do not have the necessary resources for me to trade you. Please come back with "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces if you want another 1,000 Terranite Arrows.\""; + close; + +} diff --git a/world/map/npc/021-2/inya.txt b/world/map/npc/021-2/inya.txt new file mode 100644 index 00000000..ac383e87 --- /dev/null +++ b/world/map/npc/021-2/inya.txt @@ -0,0 +1,174 @@ +//Gemstones: Diamond (white) , Ruby (red), Emerald (green), Sapphire (blue), Topaz (yellow), Amethyst (purple) +//The power of the gems is important to future balance of these rings. Are they related to stats, tiers of power, schools of magic? + +021-2.gat,43,62,0 script Inya 106,{ + + mes "[Inya]"; + mes "\"I am Inya, a jeweler of fine rings. If you have a Simple Ring and a gem, I can make a nice ring for you for 1,000,000 gold pieces.\""; + next; + mes "\"Also, if you have a ring with gems on it, I can remove the gems and return the Simple Ring to you for 500,000 gold pieces.\""; + next; + mes "\"So, how can I help you?\""; + menu + "I have a wedding ring, will that do?", L_Inya_Wedding_Ring, + "I'd like to remove a gem (500000 GP).", L_Inya_Remove_RingGem, + "I'd like to add a gem (1000000 GP).", L_Inya_Add_RingGem, + "Not interested.", L_Inya_NotInterested; + close; + +L_Inya_Wedding_Ring: + mes "[Inya]"; + mes "\"No, sorry. I do not alter wedding rings at this time.\""; + close; + +L_Inya_Remove_RingGem: + mes "[Inya]"; + mes "\"What kind of gem would you like to have removed?\""; + menu + "Diamond.", L_Inya_Remove_Diamond, + "Ruby.", L_Inya_Remove_Ruby, + "Emerald.", L_Inya_Remove_Emerald, + "Sapphire.", L_Inya_Remove_Sapphire, + "Topaz.", L_Inya_Remove_Topaz, + "Amethyst.", L_Inya_Remove_Amethyst, + "I've changed my mind.", L_Inya_NotInterested; + close; + +L_Inya_Add_RingGem: + mes "[Inya]"; + mes "\"What kind of gem would you like to add?\""; + menu + "Diamond.", L_Inya_Add_Diamond, + "Ruby.", L_Inya_Add_Ruby, + "Emerald.", L_Inya_Add_Emerald, + "Sapphire.", L_Inya_Add_Sapphire, + "Topaz.", L_Inya_Add_Topaz, + "Amethyst.", L_Inya_Add_Amethyst, + "I've changed my mind.", L_Inya_NotInterested; + close; + +L_Inya_Remove_Diamond: + if ( (zeny < 500000) | (countitem ("RingGemWhite") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 500000; + delitem "RingGemWhite", 1; + getitem "RingSimple", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Remove_Ruby: + if ( (zeny < 500000) | (countitem ("RingGemRed") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 500000; + delitem "RingGemRed", 1; + getitem "RingSimple", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Remove_Emerald: + if ( (zeny < 500000) | (countitem ("RingGemGreen") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 500000; + delitem "RingGemGreen", 1; + getitem "RingSimple", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Remove_Sapphire: + if ( (zeny < 500000) | (countitem ("RingGemBlue") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 500000; + delitem "RingGemBlue", 1; + getitem "RingSimple", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Remove_Topaz: + if ( (zeny < 500000) | (countitem ("RingGemYellow") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 500000; + delitem "RingGemYellow", 1; + getitem "RingSimple", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Remove_Amethyst: + if ( (zeny < 500000) | (countitem ("RingGemPurple") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 500000; + delitem "RingGemPurple", 1; + getitem "RingSimple", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Add_Diamond: + if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawWhite") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 1000000; + delitem "RingSimple", 1; + delitem "GemRawWhite", 1; + getitem "RingGemWhite", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Add_Ruby: + if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawRed") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 1000000; + delitem "RingSimple", 1; + delitem "GemRawRed", 1; + getitem "RingGemRed", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Add_Emerald: + if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawGreen") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 1000000; + delitem "RingSimple", 1; + delitem "GemRawGreen", 1; + getitem "RingGemGreen", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Add_Sapphire: + if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawBlue") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 1000000; + delitem "RingSimple", 1; + delitem "GemRawBlue", 1; + getitem "RingGemBlue", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Add_Topaz: + if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawYellow") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 1000000; + delitem "RingSimple", 1; + delitem "GemRawYellow", 1; + getitem "RingGemYellow", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_Add_Amethyst: + if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawPurple") < 1) ) goto L_Inya_Not_Enough; + set zeny, zeny - 1000000; + delitem "RingSimple", 1; + delitem "GemRawPurple", 1; + getitem "RingGemPurple", 1; + mes "[Inya]"; + mes "\"Here you go.\""; + close; + +L_Inya_NotInterested: + mes "[Inya]"; + mes "\"Come back later and I will try to be of assistance.\""; + close; + +L_Inya_Not_Enough: + mes "[Inya]"; + mes "\"I am sorry, you simply do not seem to have the necessary items for me to help you. Please come back when you do, and I would be more than happy to help you out.\""; + close; + +} diff --git a/world/map/npc/021-2/jhedia.txt b/world/map/npc/021-2/jhedia.txt new file mode 100644 index 00000000..b4ec8380 --- /dev/null +++ b/world/map/npc/021-2/jhedia.txt @@ -0,0 +1,54 @@ +// Ingot maker takes iron ore, gives ingots for future crafting purposes. + +021-2.gat,23,55,0 script Jhedia 160,{ + + set @Cost_Per_Ingot, 1000; + set @Iron_Ore_Per, 5; + set @Coal_Per, 10; + + mes "[Jhedia]"; + mes "\"I forge Iron Ore into ingots. Ingots are more useful for skilled smiths, like armorers, because the ore is refined and made into useful units which can be worked with. To make ingots, I need " + @Iron_Ore_Per + " Iron Ore and " + @Cost_Per_Ingot + " gp per ingot. I also need " + @Coal_Per + " Coal for my forge.\""; + next; + mes "[Jhedia]"; + mes "\"How many ingots would you like?\""; + input @ingot_count; + + if (@ingot_count == 0) goto L_Jhedia_Bye; + set @Zeny_cost, @ingot_count * @Cost_Per_Ingot; + if (countitem("IronOre") < @Iron_Ore_Per * @ingot_count) goto L_Jhedia_NotEnough_Ore; + if (countitem("Coal") < @Coal_Per * @ingot_count) goto L_Jhedia_NotEnough_Coal; + if (zeny < @Zeny_cost) goto L_Jhedia_NotEnough_Zeny; + getinventorylist; + if (@inventorylist_count == 100 && countitem("IngotIron") == 0 && countitem("IronOre") > @ingot_count * @Iron_Ore_Per | countitem("Coal") > @ingot_count * @Coal_Per) goto L_Jhedia_NotEnoughSlots; + set zeny, zeny - @Zeny_cost; + delitem "IronOre", @ingot_count * @Iron_Ore_Per; + delitem "Coal", @ingot_count * @Coal_Per; + getitem "IngotIron", @ingot_count; + close; + +L_Jhedia_Bye: + mes "[Jhedia]"; + mes "\"Goodbye then.\""; + close; + +L_Jhedia_NotEnough_Ore: + mes "[Jhedia]"; + mes "\"You do not seem to have enough Iron Ore.\""; + close; + +L_Jhedia_NotEnough_Coal: + mes "[Jhedia]"; + mes "\"You do not seem to have enough Coal.\""; + close; + +L_Jhedia_NotEnough_Zeny: + mes "[Jhedia]"; + mes "\"You do not seem to have enough gold pieces.\""; + close; + +L_Jhedia_NotEnoughSlots: + mes "[Jhedia]"; + mes "\"You do not seem to have enough room to carry this many ingots.\""; + close; + +} diff --git a/world/map/npc/021-2/mapflags.txt b/world/map/npc/021-2/mapflags.txt new file mode 100644 index 00000000..8f4a9dcd --- /dev/null +++ b/world/map/npc/021-2/mapflags.txt @@ -0,0 +1,2 @@ +021-2.gat mapflag no_player_drops +021-2.gat mapflag town diff --git a/world/map/npc/021-2/workshop.txt b/world/map/npc/021-2/workshop.txt new file mode 100644 index 00000000..ffe732b4 --- /dev/null +++ b/world/map/npc/021-2/workshop.txt @@ -0,0 +1,11 @@ +// Tulimshar's main workshop + +// The receptionist +021-2.gat,22,63,0 script Sonir 118,{ + mes "[Sonir]"; + mes "\"This is Tulimshar's main workshop. Much crafting happens here.\""; + next; + mes "[Sonir]"; + mes "\"We also have limited housing on the second floor.\""; + close; +} diff --git a/world/map/npc/022-1/_import.txt b/world/map/npc/022-1/_import.txt new file mode 100644 index 00000000..fe6db9f9 --- /dev/null +++ b/world/map/npc/022-1/_import.txt @@ -0,0 +1,9 @@ +// Map 022-1: Tulimshar +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 022-1.gat +npc: npc/022-1/_mobs.txt +npc: npc/022-1/_warps.txt +npc: npc/022-1/dock.txt +npc: npc/022-1/ferry_master.txt +npc: npc/022-1/mapflags.txt +npc: npc/022-1/tutorial.txt diff --git a/world/map/npc/022-1/_mobs.txt b/world/map/npc/022-1/_mobs.txt new file mode 100644 index 00000000..a61eb346 --- /dev/null +++ b/world/map/npc/022-1/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar mobs + + + +022-1.gat,0,0,0 script Mob022-1 -1,{ + end; +} diff --git a/world/map/npc/022-1/_warps.txt b/world/map/npc/022-1/_warps.txt new file mode 100644 index 00000000..38e63696 --- /dev/null +++ b/world/map/npc/022-1/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar warps + +022-1.gat,72,108 warp ToCentralTulimshar 3,-1,021-1.gat,73,21 +022-1.gat,113,108 warp ToCentralTulimshar 3,-1,021-1.gat,113,21 diff --git a/world/map/npc/022-1/dock.txt b/world/map/npc/022-1/dock.txt new file mode 100644 index 00000000..72d28486 --- /dev/null +++ b/world/map/npc/022-1/dock.txt @@ -0,0 +1,6 @@ +// The ferry dock + +022-1.gat,84,72,0 script #tulimshardock 127,6,1,{ + set @loc, DOCK_tulimshar; + callfunc "Ferry"; +} diff --git a/world/map/npc/022-1/ferry_master.txt b/world/map/npc/022-1/ferry_master.txt new file mode 100644 index 00000000..a1d9d69a --- /dev/null +++ b/world/map/npc/022-1/ferry_master.txt @@ -0,0 +1,16 @@ +// + +022-1.gat,73,71,0 script Ferry Master 138,{ + mes "[Ferry Master]"; + mes "\"Hello! Do you need something?\""; + next; + menu + "How do I use the ferry?", L_Explain, + "Nothing I guess", -; + close; + +L_Explain: + mes "[Ferry Master]"; + mes "\"You'll step up on the dock and select your destination. Each destination has an associated price that you need to pay. You don't have to go anywhere. Choosing the current port will result in nothing.\""; + close; +} diff --git a/world/map/npc/022-1/mapflags.txt b/world/map/npc/022-1/mapflags.txt new file mode 100644 index 00000000..f1b0444b --- /dev/null +++ b/world/map/npc/022-1/mapflags.txt @@ -0,0 +1,2 @@ +022-1.gat mapflag no_player_drops +022-1.gat mapflag town diff --git a/world/map/npc/022-1/tutorial.txt b/world/map/npc/022-1/tutorial.txt new file mode 100644 index 00000000..a0166921 --- /dev/null +++ b/world/map/npc/022-1/tutorial.txt @@ -0,0 +1,9 @@ +// This file is part of the Tutorial +// Author: Jenalya +// if you enter the tutorial area, it is set to be already done + +022-1.gat,19,37,0 script #tutorial 127,0,2{ + set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + warp "042-1.gat", 114, 76; + end; +} diff --git a/world/map/npc/024-1/_import.txt b/world/map/npc/024-1/_import.txt new file mode 100644 index 00000000..debf3dda --- /dev/null +++ b/world/map/npc/024-1/_import.txt @@ -0,0 +1,10 @@ +// Map 024-1: Tulimshar Canyon +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 024-1.gat +npc: npc/024-1/_mobs.txt +npc: npc/024-1/_warps.txt +npc: npc/024-1/ched.txt +npc: npc/024-1/david.txt +npc: npc/024-1/eomie.txt +npc: npc/024-1/tinris.txt +npc: npc/024-1/tondar.txt diff --git a/world/map/npc/024-1/_mobs.txt b/world/map/npc/024-1/_mobs.txt new file mode 100644 index 00000000..81103764 --- /dev/null +++ b/world/map/npc/024-1/_mobs.txt @@ -0,0 +1,35 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar Canyon mobs + +024-1.gat,89,52,3,2 monster Maggot 1002,2,100000,30000,Mob024-1::On1002 +024-1.gat,40,45,3,2 monster Maggot 1002,2,100000,30000,Mob024-1::On1002 +024-1.gat,90,37,10,7 monster Maggot 1002,4,100000,30000,Mob024-1::On1002 +024-1.gat,96,25,3,10 monster Sea Sime 1033,1,100000,30000,Mob024-1::On1033 +024-1.gat,33,45,24,20 monster Black Scorpion 1009,3,100000,30000,Mob024-1::On1009 +024-1.gat,93,35,5,6 monster Gian Maggot 1006,1,100000,30000,Mob024-1::On1006 +024-1.gat,63,54,3,6 monster Maggot 1002,1,100000,30000,Mob024-1::On1002 + + +024-1.gat,0,0,0 script Mob024-1 -1,{ +On1002: + set @mobID, 1002; + callfunc "MobPoints"; + break; + +On1006: + set @mobID, 1006; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/024-1/_warps.txt b/world/map/npc/024-1/_warps.txt new file mode 100644 index 00000000..12012376 --- /dev/null +++ b/world/map/npc/024-1/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar Canyon warps + +024-1.gat,86,73 warp toCentralTulimshar 3,-1,021-1.gat,49,64 +024-1.gat,80,48 warp toBuilding 0,-1,024-2.gat,26,26 +024-1.gat,86,48 warp toBuilding -1,-1,024-2.gat,42,27 diff --git a/world/map/npc/024-1/ched.txt b/world/map/npc/024-1/ched.txt new file mode 100644 index 00000000..43dd832e --- /dev/null +++ b/world/map/npc/024-1/ched.txt @@ -0,0 +1,48 @@ +// Student at Tulimshar's magic academy + +024-1.gat,69,56,0 script Ched 113,{ + if (isin("024-1.gat", 62, 52, 65, 57)) goto L_Garden; + if (isin("024-1.gat", 66, 43, 80, 54)) goto L_Canyon; + + mes "[Ched]"; + mes "\"I'm trying to get a spell to work. It's supposed to combine two potions, but I can't seem to figure out which two those are...\""; + next; + + menu + "Well, good luck with that!", L_Done, + "What spell is that?", -; + + + mes "[Ched]"; + mes "\"Well, I don't know what it's called... I took it out of `Timbleweed's Advanced Transmutations.' It seems awfully hard to cast, somehow.\""; + next; + + mes "[Ched]"; + mes "\"Well, the invocation is `" + getspellinvocation("merge-concentration-potions") + "'. You're supposed to just hold up the potions and cast it, and then they're supposed to merge.\""; + close; + + mes "[Ched]"; + mes "\"Maybe I should go back to `detect magic' until I can cast that one properly.\""; + close; + +L_Done: + close; + +L_Garden: + if (BaseLevel < 40) goto L_Warp; + mes "[Ched]"; + mes "\"Be careful of those plants. They can be dangerous,\""; + close; + +L_Canyon: + if (BaseLevel < 40) goto L_Warp; + mes "[Ched]"; + mes "\"I'm not allowed back there.\""; + close; + +L_Warp: + warp "024-1.gat", 71, 56; + mes "[Ched]"; + mes "\"You can't be back there.\""; + close; +} diff --git a/world/map/npc/024-1/david.txt b/world/map/npc/024-1/david.txt new file mode 100644 index 00000000..6c30afc9 --- /dev/null +++ b/world/map/npc/024-1/david.txt @@ -0,0 +1,50 @@ +024-1.gat,70,70,0 script David 120,{ + + if (Rossy_Quest == 17) goto L_FinalEnd; + if (Rossy_Quest == 14) goto L_Julia; + if (Rossy_Quest >= 8) goto L_Done; + + mes "[David]"; + mes "\"Learning magic is hard...\""; + if (Rossy_Quest == 7) goto L_Help; + close; + +L_Help: + menu + "Do you know Rossy?", L_Set, + "I can tell, it is hard.", L_No; + +L_Set: + mes "[David]"; + mes "\"Yes, I do. I am her teacher. That makes me remember about her final exam, she didn't hand me her potion yet. Time is running out.\""; + menu + "A potion? Oh, uhm... Strange kind of exam. Bye.", L_No, + "Right, I have her potion in my pocket. She asked me to bring it to you. Here it is.", -; + mes "[David]"; + mes "\"Let me see...\""; + set Rossy_Quest, 8; + mes "\"This potion is... perfect! Tell Rossy that she succesfully made her potion, it is flawless!\""; + getexp 2000, 0; + close; + +L_Done: + mes "[David]"; + mes "\"I am really happy that my best student succesfully passed her exam!\""; + close; + +L_No: + close; + +L_Julia: + mes "[David]"; + mes "\"I heard Rossy's sister got kidnapped. We count on you to find her!\""; + next; + mes "\"If you find her, talk to her sister and her mother.\""; + close; + +L_FinalEnd: + mes "[David]"; + mes "Well done! Thanks for finding Julia!"; + close; + +} diff --git a/world/map/npc/024-1/eomie.txt b/world/map/npc/024-1/eomie.txt new file mode 100644 index 00000000..4b82920e --- /dev/null +++ b/world/map/npc/024-1/eomie.txt @@ -0,0 +1,90 @@ +// A professor at Tulimshar's magic academy + +024-1.gat,72,94,0 script Eomie 164,{ + +// lines belong to easter 2011: +// set @month, 4; +// set @start_day, 15; +// set @end_day, 30; + +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 4) goto L_Grass; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 5) goto L_MakeGrass; +// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 6) goto L_SeeBunny; + +L_Greeting: + mes "[Eomie]"; + mes ""; + mes "\"I maintain this little spot of grass in the desert.\""; + close; + +L_Grass: + mes "[Eomie]"; + mes ""; + mes "\"I maintain this little spot of grass in the desert.\""; + next; + menu + "It looks beautiful. I wish I could find a Grass Liner like this.", -; + mes "\"A Grass Liner? Last year I helped the Easter Bunny with a Grass Liner for his basket... It was really easy... Is this liner for yourself?\""; + next; + menu + "No. Actually, it is for the Easter Bunny again...", -; + mes "\"Why didn't you say so before? I can help you make the Grass Liner for the basket if you wish.\""; + menu + "I would really appreciate that!", -, + "Nah, I decided not to do that stupid quest.", L_End; + set QUEST_Easter11, 5; + +L_MakeGrass: + mes "[Eomie]"; + mes ""; + mes "\"I will need you to bring me some Grass Seeds.\""; + mes "\"I think 5 seeds should be enough.\""; + mes "\"Squirrels tend to pick those up as they gather food.\""; + menu + "I have some seeds...", -, + "Ok, I will be back soon.", L_End, + "I changed my mind, forget about it.", L_End; + + if(countitem("GrassSeed") < 5) goto L_EasterNotEnough; + if(countitem("GrassSeed") >= 5) goto L_EasterEnough; + close; + +L_EasterNotEnough: + mes "[Eomie]"; + mes ""; + mes "\"You do not have enough Grass Seeds for me to work with yet.\""; + mes "\"Please go get more.\""; + close; + +L_EasterEnough: + getinventorylist; + if (@inventorylist_count == 100 && countitem("GrassSeed") > 10) goto L_EasterTooMany; + if(countitem("GrassSeed") < 5) goto L_EasterNotEnough; + delitem "GrassSeed", 5; + getitem "GrassLiner", 1; + set QUEST_Easter11, 6; + mes "[Eomie]"; + mes ""; + mes "\"You have gathered enough Grass Seeds for me to grow the liner.\""; + mes "She plants the seeds and murmurs a spell over them."; + mes "You both watch the grass grow tall and when it's done growing,"; + mes "she deftly gathers it for you."; + mes "\"Here is your Grass Liner.\""; + close; + +L_EasterTooMany: + mes "[Eomie]"; + mes ""; + mes "\"You don't have enough room for the Grass Liner. Come back later.\""; + close; + +L_SeeBunny: + mes "[Eomie]"; + mes ""; + mes "\"You need to return to the Easter Bunny now.\""; + close; + +L_End: + close; + +} diff --git a/world/map/npc/024-1/tinris.txt b/world/map/npc/024-1/tinris.txt new file mode 100644 index 00000000..29381f57 --- /dev/null +++ b/world/map/npc/024-1/tinris.txt @@ -0,0 +1,7 @@ +// A gardener at Tulimshar's magic academy + +024-1.gat,82,64,0 script Tinris 160,{ + mes "[Tinris]"; + mes "\"This is a magic school.\""; + close; +} diff --git a/world/map/npc/024-1/tondar.txt b/world/map/npc/024-1/tondar.txt new file mode 100644 index 00000000..585806df --- /dev/null +++ b/world/map/npc/024-1/tondar.txt @@ -0,0 +1,61 @@ +// A professor at Tulimshar's magic academy + +024-1.gat,83,51,0 script Tondar 168,{ + mes "[Tondar]"; + mes "\"We're not accepting any new students right now.\""; + if (getskilllv(SKILL_MAGIC) > 0) + goto L_may_ask; + + close; + +L_may_ask: + next; + menu + "Can you teach me a spell?", L_askspell, + "Do you have a magic library?", L_library, + "Are you sure? I can pay well...", L_nopay, + "That's unfortunate.", -, + "Goodbye, then.", -; + + close; + +L_library: + mes "[Tondar]"; + mes "\"Of course we do. It is only for graduate students, alumni, and faculty.\""; + next; + menu + "Thank you, and goodbye.", L_end, + "Nobody else is allowed inside?", -; + + + mes "[Tondar]"; + mes "\"Well, it is possible to get a special permit from the headmaster. But he is currently on sabbatical.\""; + close; + + +L_askspell: + mes "[Tondar]"; + mes "\"We only teach spells to students.\""; + next; + + menu + "Oh, come on... just one little spell!", L_nopay, + "Pretty please?", L_spell, + "I can pay you, too...", L_nopay; + + +L_spell: + mes "[Tondar]"; + mes "\"Well, all right; this one can't do much harm. Press your hands together and say `" + getspellinvocation("ask-magic-exp") + "'.\""; + mes "\"This will release a steady flow of magic within you. Focus and try to control it; it is a good meditative practice.\""; + close; + + +L_nopay: + mes "[Tondar]"; + mes "The wizard frowns angrily."; + mes "\"Do not tempt me to teach you a different kind of lesson, young one! Begone!\""; + +L_end: + close; +} diff --git a/world/map/npc/024-2/_import.txt b/world/map/npc/024-2/_import.txt new file mode 100644 index 00000000..2a03af32 --- /dev/null +++ b/world/map/npc/024-2/_import.txt @@ -0,0 +1,8 @@ +// Map 024-2: Tulimshar Magic School +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 024-2.gat +npc: npc/024-2/_mobs.txt +npc: npc/024-2/_warps.txt +npc: npc/024-2/barrier.txt +npc: npc/024-2/tyer.txt +npc: npc/024-2/tyer_trigger.txt diff --git a/world/map/npc/024-2/_mobs.txt b/world/map/npc/024-2/_mobs.txt new file mode 100644 index 00000000..7074e7a7 --- /dev/null +++ b/world/map/npc/024-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar Magic School mobs + + + +024-2.gat,0,0,0 script Mob024-2 -1,{ + end; +} diff --git a/world/map/npc/024-2/_warps.txt b/world/map/npc/024-2/_warps.txt new file mode 100644 index 00000000..e7b9d28f --- /dev/null +++ b/world/map/npc/024-2/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Tulimshar Magic School warps + +024-2.gat,26,27 warp toOutside 0,-1,024-1.gat,79,49 +024-2.gat,42,28 warp toOutside -1,-1,024-1.gat,86,49 diff --git a/world/map/npc/024-2/barrier.txt b/world/map/npc/024-2/barrier.txt new file mode 100644 index 00000000..ede39644 --- /dev/null +++ b/world/map/npc/024-2/barrier.txt @@ -0,0 +1,10 @@ +// A barrier in the magic school to keep less experienced players out of the canyon + +024-2.gat,31,24,0 script #MagicSchoolBarrier1#M 0,1,1,{ + if (BaseLevel < 40) goto L_PushBack; + close; + +L_PushBack: + warp "024-2.gat", 34, 24; + close; +} diff --git a/world/map/npc/024-2/tyer.txt b/world/map/npc/024-2/tyer.txt new file mode 100644 index 00000000..f6b78331 --- /dev/null +++ b/world/map/npc/024-2/tyer.txt @@ -0,0 +1,7 @@ +// A man in the magic school + +024-2.gat,36,21,0 script Tyer 157,{ + mes "[Tyer]"; + mes "\"Hello.\""; + close; +} diff --git a/world/map/npc/024-2/tyer_trigger.txt b/world/map/npc/024-2/tyer_trigger.txt new file mode 100644 index 00000000..ee588365 --- /dev/null +++ b/world/map/npc/024-2/tyer_trigger.txt @@ -0,0 +1,23 @@ +// A man in the magic school + +024-2.gat,33,24,0 script #Tyer_Trigger 0,1,1,{ + if (BaseLevel >= 40) end; + + mes "[Tyer]"; + mes "\"You're still too young to go in there.\""; + next; + + menu + "What do you mean I'm too young to go in there?", L_Explain, + "Ah, right.", -; + close; + +L_Explain: + mes "[Tyer]"; + mes "\"The canyon is a dangerous place, so only more experienced people are allowed there.\""; + next; + + mes "[Tyer]"; + mes "\"That barrier was made to keep those that are too young out.\""; + close; +} diff --git a/world/map/npc/025-1/_import.txt b/world/map/npc/025-1/_import.txt new file mode 100644 index 00000000..a29be248 --- /dev/null +++ b/world/map/npc/025-1/_import.txt @@ -0,0 +1,8 @@ +// Map 025-1: Woodland Swamp +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 025-1.gat +npc: npc/025-1/_mobs.txt +npc: npc/025-1/_warps.txt +npc: npc/025-1/barrier.txt +npc: npc/025-1/reset.txt +npc: npc/025-1/rossy.txt diff --git a/world/map/npc/025-1/_mobs.txt b/world/map/npc/025-1/_mobs.txt new file mode 100644 index 00000000..7f444112 --- /dev/null +++ b/world/map/npc/025-1/_mobs.txt @@ -0,0 +1,63 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland Swamp mobs + +025-1.gat,100,60,56,79 monster Clover Patch 1037,3,30000,10000,Mob025-1::On1037 +025-1.gat,56,96,13,5 monster Clover Patch 1037,1,1200000,10000,Mob025-1::On1037 +025-1.gat,56,36,77,33 monster Alizarin Plant 1032,2,240000,12000,Mob025-1::On1032 +025-1.gat,55,62,24,13 monster Snail 1041,7,30000,12000,Mob025-1::On1041 +025-1.gat,38,84,37,31 monster Silkworm 1035,18,40000,300,Mob025-1::On1035 +025-1.gat,96,47,63,55 monster Log Head 1025,14,18000,3000,Mob025-1::On1025 +025-1.gat,73,61,106,83 monster PinkFlower 1014,34,20000,5000,Mob025-1::On1014 +025-1.gat,73,61,107,82 monster Spiky Mushroom 1019,40,90000,500,Mob025-1::On1019 +025-1.gat,101,53,55,65 monster Squirrel 1038,18,60000,9000,Mob025-1::On1038 +025-1.gat,26,61,15,85 monster Scorpion 1003,12,100000,50000,Mob025-1::On1003 + + +025-1.gat,0,0,0 script Mob025-1 -1,{ +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +On1014: + set @mobID, 1014; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1025: + set @mobID, 1025; + callfunc "MobPoints"; + break; + +On1032: + set @mobID, 1032; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1041: + set @mobID, 1041; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/025-1/_warps.txt b/world/map/npc/025-1/_warps.txt new file mode 100644 index 00000000..e408c509 --- /dev/null +++ b/world/map/npc/025-1/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Woodland Swamp warps + +025-1.gat,19,66 warp toSwamp -1,-1,026-1.gat,128,66 +025-1.gat,90,19 warp toWoodland 2,-1,015-1.gat,59,100 +025-1.gat,130,58 warp toWoodland -1,1,016-1.gat,20,53 diff --git a/world/map/npc/025-1/barrier.txt b/world/map/npc/025-1/barrier.txt new file mode 100644 index 00000000..df5ffc2a --- /dev/null +++ b/world/map/npc/025-1/barrier.txt @@ -0,0 +1,13 @@ +// +025-1.gat,42,79,0 script #JuliaBarrier 45,1,1,{ + if (Rossy_Quest <= 13) goto L_Block; + if (@Alrd_Been != 1 && Rossy_Quest == 14) message strcharinfo(0), "You hear distant screams of fear."; + set @Alrd_Been, 1; + warp "025-3.gat", 112, 97; + end; + +L_Block: + message strcharinfo(0), "You are too frightened by what you can hear coming out of the cave that you can't enter."; + end; + +} diff --git a/world/map/npc/025-1/reset.txt b/world/map/npc/025-1/reset.txt new file mode 100644 index 00000000..26feec12 --- /dev/null +++ b/world/map/npc/025-1/reset.txt @@ -0,0 +1,49 @@ +// +025-1.gat,47,84,0 script reset 145,{ + + mes "Do you want to reset Rossy Quest?"; + menu + "Reset every variable of the quest.", -, + "Set Rossy_Quest.", L_Set, + "Pass cave quest.", L_Pass2, + "Pass all caves except boss cave.", L_Pass, + "Do not reset.", L_No; + set Rossy_Quest, 0; + set cavefights, 0; + set FLAGS, FLAGS & ~FLAG_ROSSI_COMPLETED; + +L_No: + close; + +L_Set: + mes "value"; + input @name$; + set Rossy_Quest, @name$; + close; + +L_Pass: + set Rossy_Quest, 15; + set cavefights, (cavefights ^ BATTLE_CAVE1); + set cavefights, (cavefights ^ BATTLE_CAVE2); + set cavefights, (cavefights ^ BATTLE_CAVE3); + set cavefights, (cavefights ^ BATTLE_CAVE4); + set cavefights, (cavefights ^ BATTLE_CAVE5); + set cavefights, (cavefights ^ BATTLE_CAVE6); + set cavefights, (cavefights ^ BATTLE_CAVE7); + set cavefights, (cavefights ^ BATTLE_CAVE8); + set cavefights, (cavefights ^ BATTLE_CAVE9); + close; + +L_Pass2: + set Rossy_Quest, 16; + set cavefights, (cavefights ^ BATTLE_CAVE1); + set cavefights, (cavefights ^ BATTLE_CAVE2); + set cavefights, (cavefights ^ BATTLE_CAVE3); + set cavefights, (cavefights ^ BATTLE_CAVE4); + set cavefights, (cavefights ^ BATTLE_CAVE5); + set cavefights, (cavefights ^ BATTLE_CAVE6); + set cavefights, (cavefights ^ BATTLE_CAVE7); + set cavefights, (cavefights ^ BATTLE_CAVE8); + set cavefights, (cavefights ^ BATTLE_CAVE9); + close; +} diff --git a/world/map/npc/025-1/rossy.txt b/world/map/npc/025-1/rossy.txt new file mode 100644 index 00000000..b78def6b --- /dev/null +++ b/world/map/npc/025-1/rossy.txt @@ -0,0 +1,240 @@ +025-1.gat,80,88,0 script Rossy 114,{ + + if (FLAGS & FLAG_ROSSI_COMPLETED) goto L_FinalEnd; + if (Rossy_Quest == 17 || Rossy_Quest == 18) goto L_End; + + if (Rossy_Quest >= 14 && Rossy_Quest <= 16) goto L_Julia; + if (Rossy_Quest >= 13) goto L_Best; + if (Rossy_Quest >= 11) goto L_Allergic; + if (Rossy_Quest >= 8 && Rossy_Quest < 11) goto L_Donet; + if (Rossy_Quest == 7) goto L_BT; + if (Rossy_Quest == 6) goto L_Check2; + if (Rossy_Quest == 5) goto L_Let; + if (Rossy_Quest == 4 || Rossy_Quest == 5) goto L_Cherry_Done; + if (Rossy_Quest == 3) goto L_Check; + if (Rossy_Quest == 2) goto L_Mother; + + mes "*A young girl looks at you in tears.*"; + if (baselevel < 50) close; + if (Rossy_Quest < 1) close; + next; + menu + "Hey, hey... Why are you crying? Are you hurt?", -, + "Sorry kid, I don't have time to play with children.", L_No; + mes "[Young Girl]"; + mes "\"No. I am crying because I lost all my fruits. My sister and I were collecting some near Dimond's Cove, but then I stumbled on a giant snail and it attacked us!"; + next; + mes "But we were lucky, because the snail is really slow and we ran away from it. Julia ran to the left and I ran to the right. The snail got pretty confused, because we are identical twins... But the problem is that I dropped the basket full of fruits on the ground and that evil snail ate them all! And I can't find Julia to help me collect more fruits.\""; + next; + menu + "Did you say Julia? I talked to you mother. She is very worried about you.", -; + mes "[Rossy]"; + mes "\"Really? But she let us play in the woods... There is no reason to be worried. Unless...\""; + next; + mes "*Rossy suddenly looks strange, mumbling something about Julia...*"; + next; + mes "[Rossy]"; + mes "\"Could you do me a favor? Please, tell my mother we are OK... There is.. erh... there is no reason to worry about us.\""; + next; + menu + "Ok, if you say so", -, + "Sorry, I have no time for this", L_No; + mes "[Rossy]"; + mes "\"Thank you very much!\""; + set Rossy_Quest, 2; + close; + +L_No: + close; + +L_Mother: + mes "[Rossy]"; + mes "\"Please, tell my mother we are OK... If you feel like helping, come back after you talk to my mother. Maybe you could help us find some fruits.\""; + close; + +L_Get_Cherry: + mes "[Young Girl]"; + mes "\"No, you don't have 10 cherries. I know how to count. I hope you get them soon.\""; + close; + +L_Check: + mes "[Rossy]"; + mes "\"Hey, that is nice of you to come back. I was thinking about giving a basket full of cherries to my mother, to make her happy, you know... But I can't get so many cherries alone. I would need at least 10 cherries, and It would take too much time!\""; + next; + menu + "That is no problem for me. Just wait and I will come back with the cherries", L_No, + "Hey, I have some cherries in my backpack!", -, + "You should get them yourself.", L_No; + if(countitem("Cherry") < 10) goto L_Get_Cherry; + mes "[Rossy]"; + set Rossy_Quest, 4; + getexp 2000, 0; + mes "\"I can't believe it, you got them all! Please give them to my mother, she is in one of the buildings in the town north east from here. Tell her it is a gift from me and Julia and there is no reason to worry about us.\""; + next; + mes "(Rossy mumbles to herself) *I hope* "; + next; + mes "[Rossy]"; + mes "\"Oh, after you give the cherries to my mother, please come back here. If you have some free time, of course.\""; + close; + +L_Cherry_Done: + mes "[Rossy]"; + mes "\"Please, try to distract my mother... I don't want her to be worried about us. While you do this, I will try to find Julia.\""; + close; + +L_Let: + mes "[Rossy]"; + mes "\"Hello "+ strcharinfo(0) +", nice to see you again. Hey, what are you hiding behind your back? Is that a... letter?\""; + next; + menu + "Your mother asked me to hand you this letter. She told me it was from your teacher.", L_Let2, + "Not at all... I need to go now, see you next time.", L_No; + +L_Let2: + mes "[Rossy]"; + mes "*The little girl grabs the piece of paper and reads it with an automatic gesture. Her face turns pale.*"; + menu + "What does it say?", -; + mes "[Rossy]"; + mes "\"Oh no, I completely forgot! My magic scholl exam! I need to make a potion and give it to my teacher today! But I didn't find Julia yet and I don't even have any of the ingredients required. Could you get them for me, please?\""; + next; + menu + "Of course I can, what do you need?", L_Sett, + "Well, I'm already really busy right now, sorry. Bye.", L_No; + +L_Sett: + mes "[Rossy]"; + set Rossy_Quest, 6; + mes "\"I need 24 [Cactus Drink]s, 32 [Maggot Slime]s, 50 [Gamboge Herb]s, 43 [Alizarin Herb]s and 30 [Bug Leg]s.\""; + next; + mes "\"Please come back to see me when you have the ingredients. I know the recipe by heart.\""; + close; + +L_NE: + mes "[Rossy]"; + mes "\"Please bring me 24 [Cactus Drink]s, 32 [Maggot Slime]s, 50 [Gamboge Herb]s, 43 [Alizarin Herb]s and 30 [Bug Leg]s.\""; + next; + mes "\"Please hurry!\""; + close; + +L_Check2: + if(countitem("CactusDrink") < 24) goto L_NE; + if(countitem("MaggotSlime") < 32) goto L_NE; + if(countitem("GambogeHerb") < 50) goto L_NE; + if(countitem("AlizarinHerb") < 43) goto L_NE; + if(countitem("BugLeg") < 30) goto L_NE; + mes "Rossy gets all the ingredients and place them on the ground. She starts to mix some herbs with the cactus drink and cast some funny spells... She seems to know what she is doing"; + next; + mes "[Rossy]"; + mes "\"Oh, thank you "+ strcharinfo(0) +" ! It is done. If you don't mind, please give this potion to my teacher.\""; + delitem "CactusDrink", 24; + delitem "MaggotSlime", 32; + delitem "GambogeHerb", 50; + delitem "AlizarinHerb", 43; + delitem "BugLeg", 30; + set Rossy_Quest, 7; + getexp 3000, 0; + message strcharinfo(0), "Rossy hands you the potion, holding the bottle very carefully"; + next; + mes "\"My teacher's name is David, he is a very young magician and lives near the magic school in the north of Tulimshar.\""; + next; + mes "\"Please, give it to him as soon as you can!\""; + close; + +L_BT: + mes "[Rossy]"; + mes "\"Great. Now if you could just give it to my teacher. His name is David, he is a very young magician and lives near the magic school in the north of Tulimshar.\""; + next; + mes "\"You should take the ferry, that'll be faster than swimming!\""; + close; + +L_Donet: + if (Rossy_Quest == 10 && countitem("redrose") >= 15) goto L_RG; + menu + "David took your potion and he tested it in front of me. It worked perfectly!", -; + mes "[Rossy]"; + mes "\"Yay! Phew... That was close, I almost forgot about my exam. Please, tell my mother about it. I am sure she will be proud of me.\""; + close; + +L_RG: + menu + "Your mother was so happy that she asked me to bring you these flowers.", -; + mes "[Rossy]"; + mes "\"How nice!\""; + next; + mes "*Rossy takes the flowers from your hands and suddenly throws them on the ground. She begins sneezing.*"; + set Rossy_Quest, 11; + delitem "redrose", 15; + menu + "I presume you don't like roses, right?", -; + mes "[Rossy]"; + mes "\"I am allergic to roses, my mother should already know that!\""; + close; + +L_Allergic: + mes "*Rossy sneezes a lot*"; + if (Rossy_Quest == 12 && countitem("redtulip") >= 15) goto L_Sorry; + close; + +L_Sorry: + menu + "Your mother is sorry about the roses. Here are some beautiful red tulips instead.", L_See; + +L_See: + mes "[Rossy]"; + set Rossy_Quest, 13; + delitem "redtulip", 15; + mes "\"That's better! Go and tell my mother that she is the nicest mother in the world.\""; + next; + mes "\"Now I should really find my sister... Come back later.\""; + getexp 2500, 0; + close; + +L_Best: + mes "[Rossy]"; + mes "\"Thank you "+ strcharinfo(0) +", you helped me so much!\""; + next; + menu + "Did you find your sister? I am starting to get worried too.", -; + mes "\"I think I have an idea where she might be... Come back in a few minutes, I will tell you if she is OK.\""; + set Rossy_Quest, 14; + close; + +L_Julia: + mes "[Rossy]"; + mes "\"I saw Julia! She was running away from something and entered in a cave not far from here. I heard her scream. Please can you enter that cave and save her? Im so scared!\""; + close; + +L_End: + mes "[Rossy]"; + mes "\"Oh no, Julia... Why would you go to that scary place? Have you seen her yet?\""; + menu + "She'll be back soon, trust me, I saved her.", L_Found, + "I didn't see her yet, sorry.", L_No; + +L_Found: + mes "[Rossy]"; + if (Rossy_Quest == 17) set Rossy_Quest, 18; + if (Rossy_Quest == 18) set Rossy_Quest, 19; + mes "\"Oh "+ strcharinfo(0) +", thank you very much! Take this, you deserve it!\""; + next; + mes "\"*Rossy hands you a huge bag full of coins.*\""; + getexp 5000, 0; + set zeny, zeny + 5000; + if (Rossy_Quest == 19) goto L_Clear; + close; + +L_Clear: + set Rossy_Quest, 0; + set cavefights, 0; + set FLAGS, FLAGS | FLAG_ROSSI_COMPLETED; + close; + + +L_FinalEnd: + mes "[Rossy]"; + mes "\"Julia and I are playing hide and seek right now, it is funny in the forest!\""; + mes "*The young girl laughs quietly.*"; + close; + +} diff --git a/world/map/npc/025-3/_import.txt b/world/map/npc/025-3/_import.txt new file mode 100644 index 00000000..285e674e --- /dev/null +++ b/world/map/npc/025-3/_import.txt @@ -0,0 +1,6 @@ +// Map 025-3: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 025-3.gat +npc: npc/025-3/_mobs.txt +npc: npc/025-3/_warps.txt +npc: npc/025-3/barriers.txt diff --git a/world/map/npc/025-3/_mobs.txt b/world/map/npc/025-3/_mobs.txt new file mode 100644 index 00000000..9ce0508c --- /dev/null +++ b/world/map/npc/025-3/_mobs.txt @@ -0,0 +1,32 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + +025-3.gat,0,0,0,0 monster CaveMaggot 1056,100,0,100,Mob025-3::On1056 +025-3.gat,0,0,0,0 monster Archant 1060,20,0,100,Mob025-3::On1060 +025-3.gat,0,0,0,0 monster AngryScorpion 1057,25,0,0,Mob025-3::On1057 +025-3.gat,67,153,4,2 monster Skeleton 1043,1,0,30000,Mob025-3::On1043 + + +025-3.gat,0,0,0 script Mob025-3 -1,{ +On1043: + set @mobID, 1043; + callfunc "MobPoints"; + break; + +On1056: + set @mobID, 1056; + callfunc "MobPoints"; + break; + +On1057: + set @mobID, 1057; + callfunc "MobPoints"; + break; + +On1060: + set @mobID, 1060; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/025-3/_warps.txt b/world/map/npc/025-3/_warps.txt new file mode 100644 index 00000000..c64903e0 --- /dev/null +++ b/world/map/npc/025-3/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +025-3.gat,112,98 warp ToOutside 1,-1,025-1.gat,42,81 +025-3.gat,105,86 warp ToHelper -1,-1,025-4.gat,28,36 diff --git a/world/map/npc/025-3/barriers.txt b/world/map/npc/025-3/barriers.txt new file mode 100644 index 00000000..46048298 --- /dev/null +++ b/world/map/npc/025-3/barriers.txt @@ -0,0 +1,984 @@ +// -----------------------------------Warp to Cave 1 --------------------------------------- + +025-3.gat,78,127,0 script #WarpBattleCave1 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 26, 63, 60, 97) >= 1) goto L_SomeoneInside; + if ($@timercontrol1 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE1) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave1, 1; + warp "025-4.gat", 41, 95; + set $@cave1fighter$, strcharinfo(0); + set $@cave1fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave1start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave1fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone1 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone1, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave1 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave1fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave1fighter$)); + if (gettimetick(2) - $@cave1start >= $@CAVE1_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave1fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave1fighter$)); + warp "025-3.gat", 78, 129; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave1, 0; + set $@cave1_kills, 0; + set $@cave1start, 0; + set $@cave1fighter$, ""; + set $@cave1fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight1::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave1fighter$)); + warp "025-3.gat", 78, 129; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave1, 0; + set $@cave1_kills, 0; + set $@cave1start, 0; + set $@cave1fighter$, ""; + set $@cave1fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight1::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave1, 0; + set $@cave1_kills, 0; + set $@cave1start, 0; + set $@cave1fighter$, ""; + set $@cave1fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight1::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol1, 0; + stopnpctimer; + setnpctimer 0; + end; + +} + +// ---------------------------- Warp to Cave 2 ---------------------------- + +025-3.gat,53,107,0 script #WarpBattleCave2 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 97, 62, 126, 96) >= 1) goto L_SomeoneInside; + if ($@timercontrol2 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE2) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave2, 1; + warp "025-4.gat", 110, 94; + set $@cave2fighter$, strcharinfo(0); + set $@cave2fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave2start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave2fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone2 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone2, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave2 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave2fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave2fighter$)); + if (gettimetick(2) - $@cave2start >= $@CAVE2_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave2fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave2fighter$)); + warp "025-3.gat", 53, 109; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave2, 0; + set $@cave2_kills, 0; + set $@cave2start, 0; + set $@cave2fighter$, ""; + set $@cave2fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight2::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave2fighter$)); + warp "025-3.gat", 53, 109; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave2, 0; + set $@cave2_kills, 0; + set $@cave2start, 0; + set $@cave2fighter$, ""; + set $@cave2fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight2::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave2, 0; + set $@cave2_kills, 0; + set $@cave2start, 0; + set $@cave2fighter$, ""; + set $@cave2fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight2::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol2, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// --------------------------------- Warp to Cave 3 ---------------------------------------- + +025-3.gat,71,83,0 script #WarpBattleCave3 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 150, 84, 177, 117) >= 1) goto L_SomeoneInside; + if ($@timercontrol3 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE3) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave3, 1; + warp "025-4.gat", 168, 115; + set $@cave3fighter$, strcharinfo(0); + set $@cave3fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave3start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave3fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone3 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone3, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave3 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave3fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave3fighter$)); + if (gettimetick(2) - $@cave3start >= $@CAVE3_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave3fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave3fighter$)); + warp "025-3.gat", 71, 85; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave3, 0; + set $@cave3_kills, 0; + set $@cave3start, 0; + set $@cave3fighter$, ""; + set $@cave3fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight3::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave3fighter$)); + warp "025-3.gat", 71, 85; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave3, 0; + set $@cave3_kills, 0; + set $@cave3start, 0; + set $@cave3fighter$, ""; + set $@cave3fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight3::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave3, 0; + set $@cave3_kills, 0; + set $@cave3start, 0; + set $@cave3fighter$, ""; + set $@cave3fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight3::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol3, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// --------------------------- Warp to Cave 4 -------------------------------------- + +025-3.gat,80,83,0 script #WarpBattleCave4 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 28, 124, 57, 156) >= 1) goto L_SomeoneInside; + if ($@timercontrol4 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE4) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave4, 1; + warp "025-4.gat", 32, 154; + set $@cave4fighter$, strcharinfo(0); + set $@cave4fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave4start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave4fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone4 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone4, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave4 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave4fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave4fighter$)); + if (gettimetick(2) - $@cave4start >= $@CAVE4_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave4fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave4fighter$)); + warp "025-3.gat", 80, 85; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave4, 0; + set $@cave4_kills, 0; + set $@cave4start, 0; + set $@cave4fighter$, ""; + set $@cave4fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight4::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave4fighter$)); + warp "025-3.gat", 80, 85; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave4, 0; + set $@cave4_kills, 0; + set $@cave4start, 0; + set $@cave4fighter$, ""; + set $@cave4fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight4::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave4, 0; + set $@cave4_kills, 0; + set $@cave4start, 0; + set $@cave4fighter$, ""; + set $@cave4fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight4::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol4, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// --------------------------- Warp to Cave 5 ---------------------------------------- + +025-3.gat,71,30,0 script #WarpBattleCave5 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 91, 131, 124, 160) >= 1) goto L_SomeoneInside; + if ($@timercontrol5 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE5) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave5, 1; + warp "025-4.gat", 100, 158; + set $@cave5fighter$, strcharinfo(0); + set $@cave5fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave5start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave5fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone5 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone5, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave5 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave5fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave5fighter$)); + if (gettimetick(2) - $@cave5start >= $@CAVE5_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave5fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave5fighter$)); + warp "025-3.gat", 71, 32; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave5, 0; + set $@cave5_kills, 0; + set $@cave5start, 0; + set $@cave5fighter$, ""; + set $@cave5fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight5::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave5fighter$)); + warp "025-3.gat", 71, 32; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave5, 0; + set $@cave5_kills, 0; + set $@cave5start, 0; + set $@cave5fighter$, ""; + set $@cave5fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight5::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave5, 0; + set $@cave5_kills, 0; + set $@cave5start, 0; + set $@cave5fighter$, ""; + set $@cave5fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight5::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol5, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// -------------------------------- Warp to Cave 6 ----------------------------------------- + +025-3.gat,128,35,0 script #WarpBattleCave6 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 153, 143, 178, 174) >= 1) goto L_SomeoneInside; + if ($@timercontrol6 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE6) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave6, 1; + warp "025-4.gat", 159, 172; + set $@cave6fighter$, strcharinfo(0); + set $@cave6fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave6start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave6fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone6 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone6, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave6 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave6fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave6fighter$)); + if (gettimetick(2) - $@cave6start >= $@CAVE6_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave6fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave6fighter$)); + warp "025-3.gat", 128, 37; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave6, 0; + set $@cave6_kills, 0; + set $@cave6start, 0; + set $@cave6fighter$, ""; + set $@cave6fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight6::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave6fighter$)); + warp "025-3.gat", 128, 37; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave6, 0; + set $@cave6_kills, 0; + set $@cave6start, 0; + set $@cave6fighter$, ""; + set $@cave6fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight6::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave6, 0; + set $@cave6_kills, 0; + set $@cave6start, 0; + set $@cave6fighter$, ""; + set $@cave6fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight6::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol6, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// ---------------------------- Warp to Cave 7 ------------------------------------------ + +025-3.gat,70,57,0 script #WarpBattleCave7 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 27, 185, 61, 219) >= 1) goto L_SomeoneInside; + if ($@timercontrol7 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE7) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave7, 1; + warp "025-4.gat", 42, 217; + set $@cave7fighter$, strcharinfo(0); + set $@cave7fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave7start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave7fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone7 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone7, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave7 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave7fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave7fighter$)); + if (gettimetick(2) - $@cave7start >= $@CAVE7_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave7fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave7fighter$)); + warp "025-3.gat", 70, 59; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave7, 0; + set $@cave7_kills, 0; + set $@cave7start, 0; + set $@cave7fighter$, ""; + set $@cave7fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight7::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave7fighter$)); + warp "025-3.gat", 70, 59; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave7, 0; + set $@cave7_kills, 0; + set $@cave7start, 0; + set $@cave7fighter$, ""; + set $@cave7fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight7::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave7, 0; + set $@cave7_kills, 0; + set $@cave7start, 0; + set $@cave7fighter$, ""; + set $@cave7fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight7::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol7, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// -----------------------------------------------Warp to Cave 8------------------------------------------------------------- + +025-3.gat,138,92,0 script #WarpBattleCave8 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 90, 193, 119, 216) >= 1) goto L_SomeoneInside; + if ($@timercontrol8 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE8) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave8, 1; + warp "025-4.gat", 105, 214; + set $@cave8fighter$, strcharinfo(0); + set $@cave8fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave8start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave8fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone8 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone8, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave8 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave8fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave8fighter$)); + if (gettimetick(2) - $@cave8start >= $@CAVE8_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave8fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave8fighter$)); + warp "025-3.gat", 138, 94; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave8, 0; + set $@cave8_kills, 0; + set $@cave8start, 0; + set $@cave8fighter$, ""; + set $@cave8fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight8::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave8fighter$)); + warp "025-3.gat", 138, 94; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave8, 0; + set $@cave8_kills, 0; + set $@cave8start, 0; + set $@cave8fighter$, ""; + set $@cave8fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight8::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave8, 0; + set $@cave8_kills, 0; + set $@cave8start, 0; + set $@cave8fighter$, ""; + set $@cave8fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight8::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol8, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// ------------------------------ Warp to Cave 9 ---------------------------------------- + +025-3.gat,138,160,0 script #WarpBattleCave9 45,1,1,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped; + if (getareausers("025-4.gat", 144, 192, 173, 226) >= 1) goto L_SomeoneInside; + if ($@timercontrol9 != 0) goto L_Wait; + if (cavefights & BATTLE_CAVE9) goto L_AlreadyDone; + if (Rossy_Quest < 15) goto L_Block; + +L_StartFight: + set $@battlecave9, 1; + warp "025-4.gat", 157, 224; + set $@cave9fighter$, strcharinfo(0); + set $@cave9fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave9start, gettimetick(2); + message strcharinfo(0), "As you enter, you feel an evil force filling up the cave."; + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave9fighter$ + " is already inside. The cave seems to be blocked."; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_AlreadyDone: + message strcharinfo(0), "I already defeated the monsters in this cave."; + end; + +L_AlreadyHelped: + if (@juliadone9 == 1) end; + message strcharinfo(0), "There are nothing more than dead monster corpses in this cave."; + set @juliadone9, 1; + end; + +L_Block: + message strcharinfo(0), "I should maybe learn a bit more about this place before I go inside."; + end; + +OnTimer5000: + if ($@battlecave9 == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave9fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave9fighter$)); + if (gettimetick(2) - $@cave9start >= $@CAVE9_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave9fighterdeaths) goto L_CleaningDead; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave9fighter$)); + warp "025-3.gat", 138, 158; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave9, 0; + set $@cave9_kills, 0; + set $@cave9start, 0; + set $@cave9fighter$, ""; + set $@cave9fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight9::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave9fighter$)); + warp "025-3.gat", 138, 158; + message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + set $@wave_cave9, 0; + set $@cave9_kills, 0; + set $@cave9start, 0; + set $@cave9fighter$, ""; + set $@cave9fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight9::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave9, 0; + set $@cave9_kills, 0; + set $@cave9start, 0; + set $@cave9fighter$, ""; + set $@cave9fighterdeaths$, 0; + killmonster "025-4.gat", "#StartCaveFight9::OnMonsterDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol9, 0; + stopnpctimer; + setnpctimer 0; + end; +} + +// ----------------------------- Warp to Boss Cave ------------------------------- + +025-3.gat,77,170,0 script #WarpBossCave 45,1,1,{ + if (Rossy_Quest > 16 || FLAGS & FLAG_ROSSI_COMPLETED) end; + if (Rossy_Quest == 16) goto L_AlreadyHelped; + set @barrier_force, -9; + if (cavefights & BATTLE_CAVE1) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE2) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE3) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE4) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE5) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE6) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE7) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE8) set @barrier_force, @barrier_force + 1; + if (cavefights & BATTLE_CAVE9) set @barrier_force, @barrier_force + 1; + if (@barrier_force != 0) goto L_Hurt; + if (getareausers("025-4.gat", 142, 24, 172, 48) >= 1) goto L_SomeoneInside; + if ($@timercontrol10 != 0) goto L_Wait; + if (@barrier_force == 0) goto L_StartFight; + end; + +L_Hurt: + message strcharinfo(0), "As you try to enter, you bump into a magic barrier. Its force pushes you back, hurting you badly."; + percentheal @barrier_force * 10, 0; + warp "025-3.gat", 77, 164; + end; + +L_Wait: + message strcharinfo(0), "Someone just got out of the cave, but it is still blocked. I should try to enter again."; + end; + +L_StartFight: + message strcharinfo(0), "You go through the magic barrier without problems... you can hear screams that seem to be very close."; + set $@battlebosscave, 1; + warp "025-4.gat", 157, 46; + set $@cave10fighter$, strcharinfo(0); + set $@cave10fighterdeaths, PC_DIE_COUNTER; + startnpctimer; + set $@cave10start, gettimetick(2); + end; + +L_SomeoneInside: + message strcharinfo(0), $@cave10fighter$ + " is already inside."; + end; + +L_AlreadyHelped: + message strcharinfo(0), "There are nothing more than corpses in this cave. You close your eyes and go straight to the place where Julia is hidden."; + warp "025-4.gat", 93, 33; + end; + +OnTimer5000: + if ($@battlebosscave == 0) goto L_AlreadyClean; + if (isloggedin(getcharid(3,$@cave10fighter$))==0) goto L_CleaningNorid; + attachrid(getcharid(3,$@cave10fighter$)); + if (gettimetick(2) - $@cave10start >= $@CAVE10_TIME) goto L_Cleaning; + if (PC_DIE_COUNTER > $@cave10fighterdeaths) goto L_CleaningDead; + if ($@wave_cave10 == 5) goto L_SummonBoss; + setnpctimer 0; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave10fighter$)); + warp "025-3.gat", 77, 168; + message strcharinfo(0), "You took too much time to free this cave from evil forces."; + set $@wave_cave10, 0; + set $@cave10_kills, 0; + set $@cave10start, 0; + set $@cave10fighter$, ""; + set $@cave10fighterdeaths$, 0; + killmonster "025-4.gat", "#StartBossCaveFight::OnMonsterDeath"; + killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningDead: + attachrid(getcharid(3,$@cave10fighter$)); + warp "025-3.gat", 77, 168; + if ($@wave_cave10 < 5) message strcharinfo(0), "You were surrounded by monsters and got eaten alive."; + if ($@wave_cave10 == 5) message strcharinfo(0), "This horrible monster is probably too powerful for you right now."; + set $@wave_cave10, 0; + set $@cave10_kills, 0; + set $@cave10start, 0; + set $@cave10fighter$, ""; + set $@cave10fighterdeaths$, 0; + killmonster "025-4.gat", "#StartBossCaveFight::OnMonsterDeath"; + killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleaningNorid: + set $@wave_cave10, 0; + set $@cave10_kills, 0; + set $@cave10start, 0; + set $@cave10fighter$, ""; + set $@cave10fighterdeaths$, 0; + killmonster "025-4.gat", "#StartBossCaveFight::OnMonsterDeath"; + killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_AlreadyClean: + set $@timercontrol10, 0; + stopnpctimer; + setnpctimer 0; + end; +} + diff --git a/world/map/npc/025-4/_import.txt b/world/map/npc/025-4/_import.txt new file mode 100644 index 00000000..a8b01ca1 --- /dev/null +++ b/world/map/npc/025-4/_import.txt @@ -0,0 +1,9 @@ +// Map 025-4: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 025-4.gat +npc: npc/025-4/_mobs.txt +npc: npc/025-4/_warps.txt +npc: npc/025-4/battlecaves.txt +npc: npc/025-4/clauquer.txt +npc: npc/025-4/julia.txt +npc: npc/025-4/mapflags.txt diff --git a/world/map/npc/025-4/_mobs.txt b/world/map/npc/025-4/_mobs.txt new file mode 100644 index 00000000..6ee5b1d1 --- /dev/null +++ b/world/map/npc/025-4/_mobs.txt @@ -0,0 +1,15 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + +025-4.gat,29,31,20,14 monster CaveMaggot 1056,3,0,0,Mob025-4::On1056 +025-4.gat,94,24,20,21 monster CaveMaggot 1056,5,0,0,Mob025-4::On1056 + + +025-4.gat,0,0,0 script Mob025-4 -1,{ +On1056: + set @mobID, 1056; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/025-4/_warps.txt b/world/map/npc/025-4/_warps.txt new file mode 100644 index 00000000..e0b9ae4d --- /dev/null +++ b/world/map/npc/025-4/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +025-4.gat,28,37 warp ToMainHall -1,-1,025-3.gat,105,87 diff --git a/world/map/npc/025-4/battlecaves.txt b/world/map/npc/025-4/battlecaves.txt new file mode 100644 index 00000000..e92d0012 --- /dev/null +++ b/world/map/npc/025-4/battlecaves.txt @@ -0,0 +1,1064 @@ +// --------------------------------- Cave 1 ----------------------------------- + +025-4.gat,41,91,0 script #StartCaveFight1 324,{ + if ($@wave_cave1 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave1 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + +L_Summon: + set $@cave1_loop, $@cave1_loop + 1; + areamonster "025-4.gat",26,63,60,97,"",$@CAVE1_MONSTERS_IDS[$@cave1_loop],$@CAVE1_MONSTERS_QTY[$@cave1_loop],"#StartCaveFight1::OnMonsterDeath"; + if ($@cave1_loop <= getarraysize($@CAVE1_MONSTERS_IDS)) goto L_Summon; + set $@cave1_loop, 0; + set $@wave_cave1, $@wave_cave1 + 1; + end; + +L_Done: + set $@cave1_kills, 0; + attachrid(getcharid(3,$@cave1fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave1 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave1 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave1 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave1 < $@CAVE1_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE1); + warp "025-3.gat", 78, 129; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave1fighter$)); + set $@wave_cave1, 0; + set $@cave1_kills, 0; + set $@cave1start, 0; + set $@cave1fighter$, ""; + set $@cave1fighterdeaths$, 0; + set $@battlecave1, 0; + killmonster "025-4.gat", "#StartCaveFight1::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave1_kills, $@cave1_kills + 1; + if ($@cave1_kills >= $@CAVE1_MONSTERS_QTY[1] + $@CAVE1_MONSTERS_QTY[2] + $@CAVE1_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE1_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE1_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE1_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE1_TIME, 900; +} + +// --------------------- Cave 1 Checker ---------------------------- + +025-4.gat,41,97,0 script #CheckCaveFight1 45,1,1,{ + if ($@wave_cave1 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave1 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 78, 130; + set $@battlecave1, 0; + set $@cave1fighter$, ""; + set $@cave1fighterdeaths, 0; + set $@cave1start, 0; + set $@timercontrol1, 1; + end; +} + +// --------------------------------- Cave 2 --------------------------------------- + + +025-4.gat,110,90,0 script #StartCaveFight2 324,{ + if ($@wave_cave2 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave2 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + + +L_Summon: + set $@cave2_loop, $@cave2_loop + 1; + areamonster "025-4.gat",97, 62, 126, 96,"",$@CAVE2_MONSTERS_IDS[$@cave2_loop],$@CAVE2_MONSTERS_QTY[$@cave2_loop],"#StartCaveFight2::OnMonsterDeath"; + if ($@cave2_loop <= getarraysize($@CAVE2_MONSTERS_IDS)) goto L_Summon; + set $@cave2_loop, 0; + set $@wave_cave2, $@wave_cave2 + 1; + end; + +L_Done: + set $@cave2_kills, 0; + attachrid(getcharid(3,$@cave2fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave2 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave2 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave2 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave2 < $@CAVE2_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE2); + warp "025-3.gat", 53, 109; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave2fighter$)); + set $@wave_cave2, 0; + set $@cave2_kills, 0; + set $@cave2start, 0; + set $@cave2fighter$, ""; + set $@cave2fighterdeaths$, 0; + set $@battlecave2, 0; + killmonster "025-4.gat", "#StartCaveFight2::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave2_kills, $@cave2_kills + 1; + if ($@cave2_kills >= $@CAVE2_MONSTERS_QTY[1] + $@CAVE2_MONSTERS_QTY[2] + $@CAVE2_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE2_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE2_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE2_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE2_TIME, 900; +} + +// --------------------- Cave 2 Checker ---------------------------- + +025-4.gat,110,96,0 script #CheckCaveFight2 45,1,1,{ + if ($@wave_cave2 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave2 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 53, 110; + set $@battlecave2, 0; + set $@cave2fighter$, ""; + set $@cave2fighterdeaths, 0; + set $@cave2start, 0; + set $@timercontrol2, 1; + end; +} + +// ------------------------------------ Cave 3 -------------------------------------- +025-4.gat,168,111,0 script #StartCaveFight3 324,{ + if ($@wave_cave3 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave3 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + + +L_Summon: + set $@cave3_loop, $@cave3_loop + 1; + areamonster "025-4.gat",150, 84, 177, 117,"",$@CAVE3_MONSTERS_IDS[$@cave3_loop],$@CAVE3_MONSTERS_QTY[$@cave3_loop],"#StartCaveFight3::OnMonsterDeath"; + if ($@cave3_loop <= getarraysize($@CAVE3_MONSTERS_IDS)) goto L_Summon; + set $@cave3_loop, 0; + set $@wave_cave3, $@wave_cave3 + 1; + end; + +L_Done: + set $@cave3_kills, 0; + attachrid(getcharid(3,$@cave3fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave3 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave3 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave3 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave3 < $@CAVE3_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE3); + warp "025-3.gat", 71, 85; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave3fighter$)); + set $@wave_cave3, 0; + set $@cave3_kills, 0; + set $@cave3start, 0; + set $@cave3fighter$, ""; + set $@cave3fighterdeaths$, 0; + set $@battlecave3, 0; + killmonster "025-4.gat", "#StartCaveFight3::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave3_kills, $@cave3_kills + 1; + if ($@cave3_kills >= $@CAVE3_MONSTERS_QTY[1] + $@CAVE3_MONSTERS_QTY[2] + $@CAVE3_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE3_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE3_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE3_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE3_TIME, 900; +} + +// --------------------- Cave 3 Checker ---------------------------- + +025-4.gat,168,117,0 script #CheckCaveFight3 45,1,1,{ + if ($@wave_cave3 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave3 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 71, 85; + set $@battlecave3, 0; + set $@cave3fighter$, ""; + set $@cave3fighterdeaths, 0; + set $@cave3start, 0; + set $@timercontrol3, 1; + end; +} + +// --------------------------- Cave 4 -------------------------------- +025-4.gat,32,150,0 script #StartCaveFight4 324,{ + if ($@wave_cave4 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave4 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + +L_Summon: + set $@cave4_loop, $@cave4_loop + 1; + areamonster "025-4.gat",28, 124, 57, 156,"",$@CAVE4_MONSTERS_IDS[$@cave4_loop],$@CAVE4_MONSTERS_QTY[$@cave4_loop],"#StartCaveFight4::OnMonsterDeath"; + if ($@cave4_loop <= getarraysize($@CAVE4_MONSTERS_IDS)) goto L_Summon; + set $@cave4_loop, 0; + set $@wave_cave4, $@wave_cave4 + 1; + end; + +L_Done: + set $@cave4_kills, 0; + attachrid(getcharid(3,$@cave4fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave4 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave4 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave4 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave4 < $@CAVE4_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE4); + warp "025-3.gat", 80, 85; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave4fighter$)); + set $@wave_cave4, 0; + set $@cave4_kills, 0; + set $@cave4start, 0; + set $@cave4fighter$, ""; + set $@cave4fighterdeaths$, 0; + set $@battlecave4, 0; + killmonster "025-4.gat", "#StartCaveFight4::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave4_kills, $@cave4_kills + 1; + if ($@cave4_kills >= $@CAVE4_MONSTERS_QTY[1] + $@CAVE4_MONSTERS_QTY[2] + $@CAVE4_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE4_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE4_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE4_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE4_TIME, 900; +} + +// --------------------- Cave 4 Checker ---------------------------- + +025-4.gat,32,156,0 script #CheckCaveFight4 45,1,1,{ + if ($@wave_cave4 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave4 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 80, 85; + set $@battlecave4, 0; + set $@cave4fighter$, ""; + set $@cave4fighterdeaths, 0; + set $@cave4start, 0; + set $@timercontrol4, 1; + end; +} + +// ---------------------------- Cave 5 ------------------------------ + +025-4.gat,100,154,0 script #StartCaveFight5 324,{ + if ($@wave_cave5 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave5 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + +L_Summon: + set $@cave5_loop, $@cave5_loop + 1; + areamonster "025-4.gat",91, 131, 124, 160,"",$@CAVE5_MONSTERS_IDS[$@cave5_loop],$@CAVE5_MONSTERS_QTY[$@cave5_loop],"#StartCaveFight5::OnMonsterDeath"; + if ($@cave5_loop <= getarraysize($@CAVE5_MONSTERS_IDS)) goto L_Summon; + set $@cave5_loop, 0; + set $@wave_cave5, $@wave_cave5 + 1; + end; + +L_Done: + set $@cave5_kills, 0; + attachrid(getcharid(3,$@cave5fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave5 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave5 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave5 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave5 < $@CAVE5_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE5); + warp "025-3.gat", 71, 32; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave5fighter$)); + set $@wave_cave5, 0; + set $@cave5_kills, 0; + set $@cave5start, 0; + set $@cave5fighter$, ""; + set $@cave5fighterdeaths$, 0; + set $@battlecave5, 0; + killmonster "025-4.gat", "#StartCaveFight5::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave5_kills, $@cave5_kills + 1; + if ($@cave5_kills >= $@CAVE5_MONSTERS_QTY[1] + $@CAVE5_MONSTERS_QTY[2] + $@CAVE5_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE5_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE5_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE5_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE5_TIME, 900; +} + +// --------------------- Cave 5 Checker ---------------------------- + +025-4.gat,100,160,0 script #CheckCaveFight5 45,1,1,{ + if ($@wave_cave5 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave5 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 71, 33; + set $@battlecave5, 0; + set $@cave5fighter$, ""; + set $@cave5fighterdeaths, 0; + set $@cave5start, 0; + set $@timercontrol5, 1; + end; +} + +// -------------------------------- Cave 6 ----------------------------------------- + +025-4.gat,159,168,0 script #StartCaveFight6 324,{ + if ($@wave_cave6 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave6 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + +L_Summon: + set $@cave6_loop, $@cave6_loop + 1; + areamonster "025-4.gat",153, 143, 178, 174,"",$@CAVE6_MONSTERS_IDS[$@cave6_loop],$@CAVE6_MONSTERS_QTY[$@cave6_loop],"#StartCaveFight6::OnMonsterDeath"; + if ($@cave6_loop <= getarraysize($@CAVE6_MONSTERS_IDS)) goto L_Summon; + set $@cave6_loop, 0; + set $@wave_cave6, $@wave_cave6 + 1; + end; + +L_Done: + set $@cave6_kills, 0; + attachrid(getcharid(3,$@cave6fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave6 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave6 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave6 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave6 < $@CAVE6_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE6); + warp "025-3.gat", 128, 37; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave6fighter$)); + set $@wave_cave6, 0; + set $@cave6_kills, 0; + set $@cave6start, 0; + set $@cave6fighter$, ""; + set $@cave6fighterdeaths$, 0; + set $@battlecave6, 0; + killmonster "025-4.gat", "#StartCaveFight6::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave6_kills, $@cave6_kills + 1; + if ($@cave6_kills >= $@CAVE6_MONSTERS_QTY[1] + $@CAVE6_MONSTERS_QTY[2] + $@CAVE6_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE6_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE6_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE6_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE6_TIME, 900; +} + +// --------------------- Cave 6 Checker ---------------------------- + +025-4.gat,159,174,0 script #CheckCaveFight6 45,1,1,{ + if ($@wave_cave6 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave6 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 128, 38; + set $@battlecave6, 0; + set $@cave6fighter$, ""; + set $@cave6fighterdeaths, 0; + set $@cave6start, 0; + set $@timercontrol6, 1; + end; +} + +// -------------------------------- Cave 7 ----------------------------------- + +025-4.gat,39,215,0 script #StartCaveFight7 324,{ + if ($@wave_cave7 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave7 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + + +L_Summon: + set $@cave7_loop, $@cave7_loop + 1; + areamonster "025-4.gat",27, 185, 61, 219,"",$@CAVE7_MONSTERS_IDS[$@cave7_loop],$@CAVE7_MONSTERS_QTY[$@cave7_loop],"#StartCaveFight7::OnMonsterDeath"; + if ($@cave7_loop <= getarraysize($@CAVE7_MONSTERS_IDS)) goto L_Summon; + set $@cave7_loop, 0; + set $@wave_cave7, $@wave_cave7 + 1; + end; + +L_Done: + set $@cave7_kills, 0; + attachrid(getcharid(3,$@cave7fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave7 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave7 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave7 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave7 < $@CAVE7_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE7); + warp "025-3.gat", 70, 59; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave7fighter$)); + set $@wave_cave7, 0; + set $@cave7_kills, 0; + set $@cave7start, 0; + set $@cave7fighter$, ""; + set $@cave7fighterdeaths$, 0; + set $@battlecave7, 0; + killmonster "025-4.gat", "#StartCaveFight7::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave7_kills, $@cave7_kills + 1; + if ($@cave7_kills >= $@CAVE7_MONSTERS_QTY[1] + $@CAVE7_MONSTERS_QTY[2] + $@CAVE7_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE7_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE7_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE7_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE7_TIME, 900; +} + +// --------------------- Cave 7 Checker ---------------------------- + +025-4.gat,42,219,0 script #CheckCaveFight7 45,1,1,{ + if ($@wave_cave7 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave7 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 70, 60; + set $@battlecave7, 0; + set $@cave7fighter$, ""; + set $@cave7fighterdeaths, 0; + set $@cave7start, 0; + set $@timercontrol7, 1; + end; +} + +// --------------------------- Cave 8 ------------------------------- + +025-4.gat,105,210,0 script #StartCaveFight8 324,{ + if ($@wave_cave8 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave8 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + + +L_Summon: + set $@cave8_loop, $@cave8_loop + 1; + areamonster "025-4.gat",90, 193, 119, 216,"",$@CAVE8_MONSTERS_IDS[$@cave8_loop],$@CAVE8_MONSTERS_QTY[$@cave8_loop],"#StartCaveFight8::OnMonsterDeath"; + if ($@cave8_loop <= getarraysize($@CAVE8_MONSTERS_IDS)) goto L_Summon; + set $@cave8_loop, 0; + set $@wave_cave8, $@wave_cave8 + 1; + end; + +L_Done: + set $@cave8_kills, 0; + attachrid(getcharid(3,$@cave8fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave8 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave8 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave8 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave8 < $@CAVE8_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE8); + warp "025-3.gat", 138, 94; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave8fighter$)); + set $@wave_cave8, 0; + set $@cave8_kills, 0; + set $@cave8start, 0; + set $@cave8fighter$, ""; + set $@cave8fighterdeaths$, 0; + set $@battlecave8, 0; + killmonster "025-4.gat", "#StartCaveFight8::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave8_kills, $@cave8_kills + 1; + if ($@cave8_kills >= $@CAVE8_MONSTERS_QTY[1] + $@CAVE8_MONSTERS_QTY[2] + $@CAVE8_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE8_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE8_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE8_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE8_TIME, 900; +} + +// --------------------- Cave 8 Checker ---------------------------- + +025-4.gat,105,216,0 script #CheckCaveFight8 45,1,1,{ + if ($@wave_cave8 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave8 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 138, 95; + set $@battlecave8, 0; + set $@cave8fighter$, ""; + set $@cave8fighterdeaths, 0; + set $@cave8start, 0; + set $@timercontrol8, 1; + end; +} + +// --------------------------- Cave 9 ------------------------------- + +025-4.gat,157,220,0 script #StartCaveFight9 324,{ + if ($@wave_cave9 != 0) end; + if (Rossy_Quest < 15) goto L_Cheat; + if ($@battlecave9 == 1) goto L_Start; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + +L_Summon: + set $@cave9_loop, $@cave9_loop + 1; + areamonster "025-4.gat",144, 192, 173, 226,"",$@CAVE9_MONSTERS_IDS[$@cave9_loop],$@CAVE9_MONSTERS_QTY[$@cave9_loop],"#StartCaveFight9::OnMonsterDeath"; + if ($@cave9_loop <= getarraysize($@CAVE9_MONSTERS_IDS)) goto L_Summon; + set $@cave9_loop, 0; + set $@wave_cave9, $@wave_cave9 + 1; + end; + +L_Done: + set $@cave9_kills, 0; + attachrid(getcharid(3,$@cave9fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave9 == 1) message strcharinfo(0), "Oh no, more monsters?!"; + if ($@wave_cave9 == 2) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave9 == 3) message strcharinfo(0), "As soon as you kill the last monster, your vision blacks out and you feel a strange sensation, as if you were being lifted from the ground... When you open your eyes, you are outside of the cave."; + + if ($@wave_cave9 < $@CAVE9_WAVES) goto L_Summon; + set cavefights, (cavefights ^ BATTLE_CAVE9); + warp "025-3.gat", 138, 158; + goto L_Cleaning; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave9fighter$)); + set $@wave_cave9, 0; + set $@cave9_kills, 0; + set $@cave9start, 0; + set $@cave9fighter$, ""; + set $@cave9fighterdeaths$, 0; + set $@battlecave9, 0; + killmonster "025-4.gat", "#StartCaveFight9::OnMonsterDeath"; + end; + +OnMonsterDeath: + set $@cave9_kills, $@cave9_kills + 1; + if ($@cave9_kills >= $@CAVE9_MONSTERS_QTY[1] + $@CAVE9_MONSTERS_QTY[2] + $@CAVE9_MONSTERS_QTY[3]) goto L_Done; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. + setarray $@CAVE9_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE9_MONSTERS_QTY[1], 3, 2, 2, 2; +// Number of waves. + set $@CAVE9_WAVES, 3; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE9_TIME, 900; +} + +// --------------------- Cave 9 Checker ---------------------------- + +025-4.gat,157,226,0 script #CheckCaveFight9 45,1,1,{ + if ($@wave_cave9 != 0) message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters."; + if ($@wave_cave9 == 0) goto L_Done; + end; + +L_Done: + warp "025-3.gat", 138, 158; + set $@battlecave9, 0; + set $@cave9fighter$, ""; + set $@cave9fighterdeaths, 0; + set $@cave9start, 0; + set $@timercontrol9, 1; + end; +} + +// --------------------- Boss Cave ---------------------------- + +025-4.gat,157,42,0 script #StartBossCaveFight 324,{ + if ($@wave_cave10 != 0) end; + if (Rossy_Quest >= 16) end; + if ($@battlebosscave == 1 && cavefights & BATTLE_CAVE1 && cavefights & BATTLE_CAVE2 && cavefights & BATTLE_CAVE3 && cavefights & BATTLE_CAVE4 && cavefights & BATTLE_CAVE5 && cavefights & BATTLE_CAVE6 && cavefights & BATTLE_CAVE7 && cavefights & BATTLE_CAVE8 && cavefights & BATTLE_CAVE9 && Rossy_Quest == 15) goto L_Start; + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Start: + menu + "Place a root at the center of the energy source.", -, + "I am not prepared yet!", L_Close; + if ((countitem("Root")<1)) goto L_no_root; + close2; + delitem "Root", 1; + message strcharinfo(0), "As you place the root on the energy source, earth monsters seem to emerge from the ground."; + +L_Summon: + set $@cave10_loop, $@cave10_loop + 1; + areamonster "025-4.gat",142, 24, 172, 48,"",$@CAVE10_MONSTERS_IDS[$@cave10_loop],$@CAVE10_MONSTERS_QTY[$@cave10_loop],"#StartBossCaveFight::OnMonsterDeath"; + if ($@cave10_loop <= getarraysize($@CAVE10_MONSTERS_IDS)) goto L_Summon; + set $@cave10_loop, 0; + set $@wave_cave10, $@wave_cave10 + 1; + end; + +L_SummonBoss: + attachrid(getcharid(3,$@cave10fighter$)); + areamonster "025-4.gat",142, 24, 172, 48,"",$@BOSS,1,"#StartBossCaveFight::OnBossDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_Done: + set $@cave10_kills, 0; + attachrid(getcharid(3,$@cave10fighter$)); + +// Here you can define the messages to be shown for the players on the beginning of each wave. +// Remember to adjust the number of conditionals according to the number of waves. + + if ($@wave_cave10 == 1) message strcharinfo(0), "I can't give up now!"; + if ($@wave_cave10 == 2) message strcharinfo(0), "I feel I'm getting close to the end..."; + if ($@wave_cave10 == 3) message strcharinfo(0), "What? This is harder than I imagined!"; + if ($@wave_cave10 == 4) message strcharinfo(0), "Finally! It seems I have defeated all of them!"; + + if ($@wave_cave10 < $@CAVE10_WAVES) goto L_Summon; + set $@wave_cave10, 5; + startnpctimer; + end; + +L_Cleaning: + attachrid(getcharid(3,$@cave10fighter$)); + set $@wave_cave10, 0; + set $@cave10_kills, 0; + set $@cave10start, 0; + set $@cave10fighter$, ""; + set $@cave10fighterdeaths$, 0; + set $@battlebosscave, 0; + killmonster "025-4.gat", "#StartBossCaveFight::OnMonsterDeath"; + killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath"; + end; + +OnTimer4000: + attachrid(getcharid(3,$@cave10fighter$)); + set @boss, @boss + 1; + if (@boss == 1) message strcharinfo(0), "You feel something strange... Looks like something terrible is about to show up in this cave."; + if (@boss == 2) goto L_SummonBoss; + setnpctimer 0; + end; + +OnMonsterDeath: + set $@cave10_kills, $@cave10_kills + 1; + if ($@cave10_kills >= $@CAVE10_MONSTERS_QTY[1] + $@CAVE10_MONSTERS_QTY[2] + $@CAVE10_MONSTERS_QTY[3]) goto L_Done; + end; + +OnBossDeath: + attachrid(getcharid(3,$@cave10fighter$)); + set $@wave_cave10, 0; + set $@cave10_kills, 0; + set $@cave10start, 0; + set $@cave10fighter$, ""; + set $@cave10fighterdeaths$, 0; + message strcharinfo(0), "What a harsh battle! I should save Julia now."; + set Rossy_Quest, 16; + end; + +L_Close: + close; + +L_no_root: + mes "I don't have any root in my inventory!"; + close; + +onInit: +// Here you can define the specifics of each battle cave. +// Monsters IDs to be spawned. before the boss. + setarray $@CAVE10_MONSTERS_IDS[1], 1050, 1051, 1083, 1084; +// Number of monsters of each ID. + setarray $@CAVE10_MONSTERS_QTY[1], 3, 2, 2, 2; +// ID of the boss monster. + set $@BOSS, 1086; +// Number of waves. before the boss. + set $@CAVE10_WAVES, 4; +// Maximum time (in seconds) for the player to finish the fight. + set $@CAVE10_TIME, 1500; +} + +// --------------------- Boss Cave Checker ---------------------------- + +025-4.gat,157,48,0 script #CheckCaveFightBoss 45,1,1,{ + if (Rossy_Quest >= 17) goto L_Done; + if (Rossy_Quest == 16) goto L_Julia; + if (Rossy_Quest < 16) goto L_Out; + end; + +L_Julia: + message strcharinfo(0), "I shoudn't get out. Julia is still in danger."; + end; + +L_Done: + warp "025-3.gat", 77, 168; + end; + +L_Out: + set $@battlebosscave, 0; + set $@cave10fighter$, ""; + set $@cave10fighterdeaths, 0; + set $@cave10start, 0; + set $@timercontrol10, 1; + warp "025-3.gat", 77, 168; + end; +} + +// --------------------- Julia Cave Checker Outside ---------------------------- + +025-4.gat,157,24,0 script #CheckJuliaCaveOutside 45,1,1,{ + if (Rossy_Quest > 15) goto L_Done; + message strcharinfo(0), "As you try to walk through, you bump into a strong magical barrier."; + percentheal -10, 0; + end; + +L_Done: + warp "025-4.gat", 93, 33; + end; +} + +// --------------------- Julia Cave Checker Inside ---------------------------- + +025-4.gat,93,35,0 script #CheckJuliaCaveInside 45,1,1,{ + if (Rossy_Quest >= 17) goto L_Done; + if (Rossy_Quest == 16) goto L_Save; + if (Rossy_Quest <= 15) goto L_Cheat; + end; + +L_Cheat: + message strcharinfo(0), "You shouldn't be here, you cheater."; + percentheal -100, 0; + end; + +L_Done: + message strcharinfo(0), "As you go back to the cave you close your eyes, terrified of the bloody battle you just fought in this place, and go straight to the entrance of the cave."; + warp "025-3.gat", 77, 168; + end; + +L_Save: + message strcharinfo(0), "You can't leave Julia here, all alone!"; + end; +} + diff --git a/world/map/npc/025-4/clauquer.txt b/world/map/npc/025-4/clauquer.txt new file mode 100644 index 00000000..1acba11d --- /dev/null +++ b/world/map/npc/025-4/clauquer.txt @@ -0,0 +1,80 @@ +025-4.gat,30,30,0 script Clauquer 169,{ + + if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_Rescued; + if (Rossy_Quest == 15) goto L_Hmmm; + if (Rossy_Quest == 14) goto L_Help; + if (Rossy_Quest <= 13) goto L_Huh; + +L_Help: + mes "[Clauquer]"; + mes "\"Hello stranger, are you lost?\""; + next; + mes "\"Don't answer, I know you are looking for someone... A little girl, is that right?\""; + menu + "I must admit you're right, but how come you...", -, + "I'm not lost and I don't need help, bye.", L_No; + next; + mes "[Clauquer]"; + mes "\"How do I know you're looking for her? Well, because I saw her. I also heard her, she screamed and still screams like hell. Moreover, I don't think you would enter these caves just for fun!\""; + menu + "Of course not.", -; + next; + mes "[Clauquer]"; + mes "\"I can see that you really want to save the little girl. She is trapped in a place inside one of these caves, protected by a magic barrier created by a fey spirit. To save her, you have to annulate the energy sources of this barrier. They are located in 10 different spots, each one in a different cave.\""; + next; + mes "\"To do this, you have to place a root on the exact center of the energy source. Once you do this, its entire power will transmute into some terrible earth monsters. If you defeat them, this source of energy will be close to nothing and the barrier will be weaker.\""; + next; + mes "\"If my observations are correct, the girl is trapped in a cave protected by a barrier fed by 9 different power sources. And inside this cave, there is another barrier, fed by a single, but very strong, power source. The girl is inside that cave, protected by that strong barrier.\""; + next; + mes "\"Be prepared before you enter one of those caves, because once you put the root in the power source, you won't be able to get out. Also, remember that you can't stay in those caves for a long time, because of the foul air.\""; + next; + mes "\"Now I should tell you more about how that little girl got into that cave and warn you about what you are going to face there...\""; + next; + menu + "Please go on.", -; +L_Advice: + mes "[Clauquer]"; + mes "\"I advise you to be mentally prepared for this rescue operation. A fey nature spirit creature kidnapped the little girl and is planning to replace her with a changeling.\""; + next; + mes "\"The old tales of hurnscald say this spirit always change his offspring with beautiful and smart human childs, to use them as servants. And his offspring usually forgets about its own origin, growing up in a human family. But they are usually 'people' with really bad temper, the kind of people who does terrible things in this world...\""; + next; + mes "However, the girl you are looking for is mentally too strong, and the spirit is having problems to create a changeling identical to her. So it locked her in one of those terrible caves, trying to scare the poor girl and make his task easier.\""; + next; + mes "\"Oh, and if you really plan to rescue the girl in the cave, I advise you to use potions for every single battle, I'm thinking of Concentration and Iron Potions. You might want to take some food with you, you might be hungry in battle. I would personally take some water, I'm always thirsty. Don't be afraid to take too much of each, the battles take time to end.\""; + next; + mes "\"I think you're now ready to explore these caves and fight.\""; + if (Rossy_Quest == 14) set Rossy_Quest, 15; + close; + +L_End: + mes "[Clauquer]"; + mes "\"I see you came back because you didn't know enough of these caves... Well, well...\""; + next; + goto L_Advice; + +L_Hmmm: + mes "[Clauquer]"; + mes "\"You already know everything about these caves. You don't need me anymore to find the little girl.\""; + menu + "But please, I really need your help!", -, + "You're right, I don't need your help!", L_No; + next; + mes "\"Ok, if you insist... But I can only repeat what I already said.\""; + goto L_Advice; + +L_Huh: + mes "[Clauquer]"; + mes "Why are you here? Get out."; + close; + +L_No: + close; + +L_Rescued: + mes "[Clauquer]"; + mes "Please put something here."; + next; + mes "*The man talks about you, rescuing the girl.*"; + close; + +} diff --git a/world/map/npc/025-4/julia.txt b/world/map/npc/025-4/julia.txt new file mode 100644 index 00000000..8c7b3ce4 --- /dev/null +++ b/world/map/npc/025-4/julia.txt @@ -0,0 +1,39 @@ +025-4.gat,89,21,0 script Julia 114,{ + + if (Rossy_Quest > 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_End; + if (Rossy_Quest == 16) goto L_Done; + if (Rossy_Quest <= 15) goto L_Hmmm; + +L_Done: + mes "[Julia]"; + mes "I heard some battle noises a few minutes ago and I presume you are here to save me!"; + next; + menu + "Of course I'm here to save you, Rossy sent me here!", -; + mes "Rossy? My twin sister? I knew she was going to look for me. Well, here is a present for you."; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + getitem "BlackBoots", 1; + getexp 5000, 0; + set Rossy_Quest, 17; + mes "I'm out of here now, let's get out of this horrible cave."; + close; + +L_End: + mes "[Julia]"; + mes "Let's get out of this horrible cave."; + close; + +L_Hmmm: + mes "[Julia]"; + mes "Don't hurt me!"; + close; + +L_TooMany: + mes "[Julia]"; + mes "\"Oh, you don't have room for it. Come back when your backpack will not be full.\""; + next; + mes "I'll wait here until you get your present!"; + close; + +} diff --git a/world/map/npc/025-4/mapflags.txt b/world/map/npc/025-4/mapflags.txt new file mode 100644 index 00000000..1c8999bb --- /dev/null +++ b/world/map/npc/025-4/mapflags.txt @@ -0,0 +1 @@ +025-4.gat mapflag nosave 025-3,112,96; diff --git a/world/map/npc/026-1/_import.txt b/world/map/npc/026-1/_import.txt new file mode 100644 index 00000000..ae18387c --- /dev/null +++ b/world/map/npc/026-1/_import.txt @@ -0,0 +1,6 @@ +// Map 026-1: Swamp +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 026-1.gat +npc: npc/026-1/_mobs.txt +npc: npc/026-1/_warps.txt +npc: npc/026-1/sign.txt diff --git a/world/map/npc/026-1/_mobs.txt b/world/map/npc/026-1/_mobs.txt new file mode 100644 index 00000000..89a32db8 --- /dev/null +++ b/world/map/npc/026-1/_mobs.txt @@ -0,0 +1,56 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Swamp mobs + +026-1.gat,70,58,111,83 monster Wisp 1040,34,120000,40000,Mob026-1::On1040 +026-1.gat,70,59,110,84 monster Spectre 1042,34,120000,40000,Mob026-1::On1042 +026-1.gat,69,59,109,85 monster Poltergeist 1047,34,120000,40000,Mob026-1::On1047 +026-1.gat,71,58,112,82 monster Silkworm 1035,10,300000,60000,Mob026-1::On1035 +026-1.gat,69,60,108,86 monster Scorpion 1003,15,300000,30000,Mob026-1::On1003 +026-1.gat,71,57,113,81 monster Skeleton 1043,5,900000,10000,Mob026-1::On1043 +026-1.gat,68,61,106,88 monster LadySkeleton 1044,5,900000,20000,Mob026-1::On1044 +026-1.gat,68,60,107,87 monster Log Head 1025,8,300000,40000,Mob026-1::On1025 + + +026-1.gat,0,0,0 script Mob026-1 -1,{ +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +On1025: + set @mobID, 1025; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + +On1040: + set @mobID, 1040; + callfunc "MobPoints"; + break; + +On1042: + set @mobID, 1042; + callfunc "MobPoints"; + break; + +On1043: + set @mobID, 1043; + callfunc "MobPoints"; + break; + +On1044: + set @mobID, 1044; + callfunc "MobPoints"; + break; + +On1047: + set @mobID, 1047; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/026-1/_warps.txt b/world/map/npc/026-1/_warps.txt new file mode 100644 index 00000000..dc5c51fc --- /dev/null +++ b/world/map/npc/026-1/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Swamp warps + +026-1.gat,63,16 warp toGraveyard -1,-1,027-1.gat,63,105 +026-1.gat,129,66 warp toSwamp -1,-1,025-1.gat,20,66 diff --git a/world/map/npc/026-1/sign.txt b/world/map/npc/026-1/sign.txt new file mode 100644 index 00000000..44813c38 --- /dev/null +++ b/world/map/npc/026-1/sign.txt @@ -0,0 +1,7 @@ +// + +026-1.gat,64,16,0 script Sign 127,{ + mes "Hurnscald's Graveyard is north of here."; + mes "BEWARE!"; + close; +} diff --git a/world/map/npc/027-1/_import.txt b/world/map/npc/027-1/_import.txt new file mode 100644 index 00000000..14fc594e --- /dev/null +++ b/world/map/npc/027-1/_import.txt @@ -0,0 +1,8 @@ +// Map 027-1: Graveyard +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 027-1.gat +npc: npc/027-1/_mobs.txt +npc: npc/027-1/_warps.txt +npc: npc/027-1/golbenez.txt +npc: npc/027-1/graves.txt +npc: npc/027-1/monsters.txt diff --git a/world/map/npc/027-1/_mobs.txt b/world/map/npc/027-1/_mobs.txt new file mode 100644 index 00000000..e7eac33a --- /dev/null +++ b/world/map/npc/027-1/_mobs.txt @@ -0,0 +1,66 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Graveyard mobs + +027-1.gat,81,91,95,27 monster Poltergeist 1047,4,900000,60000,Mob027-1::On1047 +027-1.gat,81,91,97,25 monster Spectre 1042,4,900000,60000,Mob027-1::On1042 +027-1.gat,81,91,99,23 monster Wisp 1040,4,900000,60000,Mob027-1::On1040 +027-1.gat,54,53,66,46 monster FireSkull 1023,2,60000,20000,Mob027-1::On1023 +027-1.gat,54,53,66,46 monster PoisonSkull 1024,1,60000,20000,Mob027-1::On1024 +027-1.gat,54,53,66,46 monster Skeleton 1043,2,60000,8000,Mob027-1::On1043 +027-1.gat,54,53,66,46 monster LadySkeleton 1044,2,60000,8000,Mob027-1::On1044 +027-1.gat,71,41,31,22 monster Skeleton 1043,2,175000,20000,Mob027-1::On1043 +027-1.gat,71,41,31,22 monster LadySkeleton 1044,2,175000,20000,Mob027-1::On1044 +027-1.gat,37,41,33,22 monster FireSkull 1023,2,200000,10000,Mob027-1::On1023 +027-1.gat,37,41,33,22 monster PoisonSkull 1024,2,200000,10000,Mob027-1::On1024 +027-1.gat,37,41,33,22 monster Skeleton 1043,4,180000,20000,Mob027-1::On1043 +027-1.gat,37,41,33,22 monster LadySkeleton 1044,4,180000,20000,Mob027-1::On1044 +027-1.gat,105,40,32,21 monster Fire skull 1023,1,28000,25000,Mob027-1::On1023 +027-1.gat,105,40,32,21 monster Poison skull 1024,1,30000,20000,Mob027-1::On1024 +027-1.gat,105,40,32,21 monster Skeleton 1043,2,35000,20000,Mob027-1::On1043 +027-1.gat,105,40,32,21 monster LadySkeleton 1044,3,33000,25000,Mob027-1::On1044 +027-1.gat,28,67,2,1 monster Jack O 1022,1,265000,200000,Mob027-1::On1022 + + +027-1.gat,0,0,0 script Mob027-1 -1,{ +On1022: + set @mobID, 1022; + callfunc "MobPoints"; + break; + +On1023: + set @mobID, 1023; + callfunc "MobPoints"; + break; + +On1024: + set @mobID, 1024; + callfunc "MobPoints"; + break; + +On1040: + set @mobID, 1040; + callfunc "MobPoints"; + break; + +On1042: + set @mobID, 1042; + callfunc "MobPoints"; + break; + +On1043: + set @mobID, 1043; + callfunc "MobPoints"; + break; + +On1044: + set @mobID, 1044; + callfunc "MobPoints"; + break; + +On1047: + set @mobID, 1047; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/027-1/_warps.txt b/world/map/npc/027-1/_warps.txt new file mode 100644 index 00000000..b8f1991e --- /dev/null +++ b/world/map/npc/027-1/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Graveyard warps + +027-1.gat,88,84 warp toCaretaker's -1,-1,027-2.gat,26,32 +027-1.gat,63,106 warp toSwamp -1,-1,026-1.gat,63,17 diff --git a/world/map/npc/027-1/golbenez.txt b/world/map/npc/027-1/golbenez.txt new file mode 100644 index 00000000..336cdea3 --- /dev/null +++ b/world/map/npc/027-1/golbenez.txt @@ -0,0 +1,36 @@ +027-1.gat,68,89,0 script #Golbenez#_M 204,{ + + set @fee, 666; + + mes "[Golbenez]"; + mes "\"Welcome mortal. I finished the creation of the place of leisure.\""; + next; + if (baselevel < 60) goto L_Weak; + mes "\"I will bring you there for a small fee of " + @fee + "GP.\""; + menu + "What? You already got so much money!",-, + "Ok, bring me there.",L_Warp; + + mes "[Golbenez]"; + mes "\"Come back when you've changed your mind. It's a wonderful place.\""; + close; + +L_Warp: + if (zeny < @fee) goto L_No_Money; + set zeny, zeny - @fee; + warp "027-2.gat", 105, 44; + close; + +L_No_Money: + mes "[Golbenez]"; + mes "\"Don't try to betray me, pitiful human.\""; + next; + mes "\"Come back when you can pay my service.\""; + close; + +L_Weak: + mes "\"It is astonishing how WEAK you humans can be.\""; + next; + mes "\"Come back when you're a bit more experienced.\""; + close; +} diff --git a/world/map/npc/027-1/graves.txt b/world/map/npc/027-1/graves.txt new file mode 100644 index 00000000..ecda6ea0 --- /dev/null +++ b/world/map/npc/027-1/graves.txt @@ -0,0 +1,92 @@ +// Easter egg graves + +function script GraveTooFar { + if (isin("027-1.gat",89,54,122,76)) + return; + mes "You are too far away to read the grave."; + close; +} + +027-1.gat,89,62,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ FotherJ ~"; + mes "The mad sprite making genius who made all the creepy undead monster graphics."; + close; +} + +027-1.gat,118,54,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Yosuhara ~"; + mes "Contributed some of the tombstones."; + close; +} + +027-1.gat,111,62,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Feline Monstrosity ~"; + mes "Made the background music you are hearing."; + close; +} + +027-1.gat,112,76,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Superkoop ~"; + mes "Mapped the swamp to the south."; + close; +} + +027-1.gat,120,76,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Aroleon ~"; + mes "Mapped the swamp to the southeast."; + close; +} + +027-1.gat,100,68,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ John P ~"; + mes "Wrote the graveyard backstory and the dialog for the caretaker quest."; + close; +} + +027-1.gat,94,70,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Spit23 ~"; + mes "Made those freakin awesome cemetery gates."; + close; +} + +027-1.gat,106,60,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Black Don ~"; + mes "Contributed those cool gargoyle statues."; + close; +} + +027-1.gat,92,54,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Jaxad0127 ~"; + mes "Did all the scripting work for the graveyard. Made Caretaker's house."; + close; +} + +027-1.gat,122,64,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Ces Vargavind ~"; + mes "Scripted caretaker's daughter."; + close; +} + +027-1.gat,102,62,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Crush ~"; + mes "Organizer of the whole graveyard project, graveyard fence graphics, mapping of the graveyard itself."; + close; +} + +027-1.gat,104,76,0 script Grave 127,{ + callfunc "GraveTooFar"; + mes "~ Freeyorp ~"; + mes "Planned out monster stats and placements."; + close; +} diff --git a/world/map/npc/027-1/monsters.txt b/world/map/npc/027-1/monsters.txt new file mode 100644 index 00000000..0efe43c4 --- /dev/null +++ b/world/map/npc/027-1/monsters.txt @@ -0,0 +1,61 @@ +// 027-1 Graveyard zombies and fallens +// they need to be in an extra file because of the crying child quest + +027-1.gat,71,41,31,22 monster Zombie 1036,2,300000,120000,specialMob027-1::On1036 +027-1.gat,37,41,33,22 monster Zombie 1036,2,200000,10000,specialMob027-1::On1036 +027-1.gat,37,65,33,22 monster Zombie 1036,3,140000,30000,specialMob027-1::On1036 +027-1.gat,37,65,33,22 monster Fallen 1045,3,120000,30000,specialMob027-1::On1045 + +027-1.gat,0,0,0 script specialMob027-1 -1,{ +On1036: + set @mobID, 1036; + callsub _MOBCOUNT_ZOMBIES; + callfunc "MobPoints"; + break; + +On1045: + set @mobID, 1045; + callsub _MOBCOUNT_FALLENS; + callfunc "MobPoints"; + break; + +_MOBCOUNT_ZOMBIES: + + set @Graveyard_Inn_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + if (@state != 1) return; + set @ring, @ring + 1; + if (@ring < 10) return; + if (rand(8) != 0) return; + message strcharinfo(0), "You found a ring hidden in the zombie's rotten rags. Maybe this is what Aldred was looking for..."; + set @state, 2; + callsub S_Update_Mask; + return; + +_MOBCOUNT_FALLENS: + + set @Graveyard_Inn_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + if (@state != 1) return; + set @ring, @ring + 1; + if (@ring < 10) return; + if (rand(8) != 0) return; + message strcharinfo(0), "You found a ring inside the fallen's broken helmet. Maybe this is what Aldred was looking for..."; + set @state, 2; + callsub S_Update_Mask; + return; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; + + end; +} diff --git a/world/map/npc/027-2/_import.txt b/world/map/npc/027-2/_import.txt new file mode 100644 index 00000000..56dcdd1b --- /dev/null +++ b/world/map/npc/027-2/_import.txt @@ -0,0 +1,22 @@ +// Map 027-2: Caretaker's House +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 027-2.gat +npc: npc/027-2/_mobs.txt +npc: npc/027-2/_warps.txt +npc: npc/027-2/alacrius.txt +npc: npc/027-2/alacrius2.txt +npc: npc/027-2/barman.txt +npc: npc/027-2/caretaker.txt +npc: npc/027-2/cerhan.txt +npc: npc/027-2/crying_child.txt +npc: npc/027-2/diary.txt +npc: npc/027-2/door.txt +npc: npc/027-2/evil_guard.txt +npc: npc/027-2/golbenez.txt +npc: npc/027-2/gy_inn_shops.txt +npc: npc/027-2/headless_man.txt +npc: npc/027-2/husband.txt +npc: npc/027-2/innkeeper.txt +npc: npc/027-2/lover.txt +npc: npc/027-2/testnpcs.txt +npc: npc/027-2/werewolf.txt diff --git a/world/map/npc/027-2/_mobs.txt b/world/map/npc/027-2/_mobs.txt new file mode 100644 index 00000000..b316be00 --- /dev/null +++ b/world/map/npc/027-2/_mobs.txt @@ -0,0 +1,29 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Caretaker's House mobs + +027-2.gat,81,41,11,9 monster DrunkenSkeleton 1077,1,100000,30000,Mob027-2::On1077 +027-2.gat,91,38,11,9 monster TipsySkeleton 1078,1,100000,30000,Mob027-2::On1078 +027-2.gat,110,26,11,11 monster TipsySkeleton 1078,1,100000,30000,Mob027-2::On1078 +027-2.gat,104,28,11,9 monster DrunkenSkeleton 1077,1,100000,30000,Mob027-2::On1077 +027-2.gat,89,34,11,9 monster DrunkenLadySkeleton 1079,1,100000,30000,Mob027-2::On1079 +027-2.gat,116,26,11,9 monster DrunkenLadySkeleton 1079,1,100000,30000,Mob027-2::On1079 + + +027-2.gat,0,0,0 script Mob027-2 -1,{ +On1077: + set @mobID, 1077; + callfunc "MobPoints"; + break; + +On1078: + set @mobID, 1078; + callfunc "MobPoints"; + break; + +On1079: + set @mobID, 1079; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/027-2/_warps.txt b/world/map/npc/027-2/_warps.txt new file mode 100644 index 00000000..fcc40b4d --- /dev/null +++ b/world/map/npc/027-2/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Caretaker's House warps + +027-2.gat,26,33 warp toGraveyard -1,-1,027-1.gat,88,85 +027-2.gat,128,35 warp To2ndFloor 0,-1,027-2.gat,75,93 +027-2.gat,75,95 warp To1stFloor 0,-1,027-2.gat,127,37 +027-2.gat,106,46 warp ToOutside 0,-1,027-1.gat,68,89 diff --git a/world/map/npc/027-2/alacrius.txt b/world/map/npc/027-2/alacrius.txt new file mode 100644 index 00000000..99714ebc --- /dev/null +++ b/world/map/npc/027-2/alacrius.txt @@ -0,0 +1,40 @@ +// Starts the reaper quest + +//027-2.gat,107,29,0 script Alacrius 313,{ + // if started, go to started + // if fail go to failed + // if complete go to complete + // if cooldown go to cooldown + +// start quest section + mes "Hi, want to fight the reaper?"; + menu + "Let's go!",L_START, + "No, thank you.",-; + close; + +L_START: + monster "027-4.gat",40,55,"Reaper Quest",1067,1,"Reaper::OnDead"; + enablenpc "#gatecontrol"; + enablenpc "#closedgate"; + disablenpc "#opengate"; +// Open doors to reaper level + warp "027-3.gat",41,70; + initnpctimer; + close; + +// 5 min mark for testing purposes, up it when finished. +OnTimer300000: + mapwarp "027-3.gat", "027-2.gat",104,41; + mapwarp "027-4.gat", "027-2.gat",104,41; + killmonsterall "027-4.gat"; + end; +OnTimer301000: + npctalk "You have failed the mission."; + end; + +// cooldown before the quest can be restarted +OnTimer360000: + // set quest var + end; +} diff --git a/world/map/npc/027-2/alacrius2.txt b/world/map/npc/027-2/alacrius2.txt new file mode 100644 index 00000000..df1587ec --- /dev/null +++ b/world/map/npc/027-2/alacrius2.txt @@ -0,0 +1,113 @@ +// Starts the reaper quest + +//027-2.gat,107,29,0 script Alacrius 313,{ + if ($@FIGHT_ALACRIUS_STATUS != 0) goto L_Enjoy; + + + mes "[Alacrius]"; + mes "\"Hello, I'm Alacrius. \""; + next; + mes "[Alacrius]"; + mes "\"A very long time ago, I figured a way to cheat death and the limits of time and space. You may think it is evil, but I did it because of true love... \""; + next; + mes "[Alacrius]"; + mes "\"The reaper kidnapped my beloved wife, and took her to the underworld. I had to find a way to stop him, and as time went by, I became what you can see now... But if you dare to cheat death, time and space you'll have to pay a high price... \""; + next; + + mes "[Alacrius]"; + mes "\"Being away from time and space doesn't allow me to try to save my beloved wife... I need your help. Do you think you have what it takes to handle the most powerful monsters over the world of Mana? \""; + next; + + menu + "Let's go!",L_PLAY_OK, + "No, thank you.",-; + close; + + +L_PLAY_OK: + + if ($@FIGHT_ALACRIUS_STATUS != 0) goto L_AlreadyStarted; + set $@FIGHT_ALACRIUS_STATUS, 1; + set $@MO_REAPER, 0; + startnpctimer; + set @PRIZE, 1; + + goto L_Exit; + +L_Enjoy: + if ($@MO_REAPER == 1) goto L_AllDead; + mes "[Alacrius]"; + mes "\"...Please hurry up, the time is running...\""; + goto L_Exit; + +L_AlreadyStarted: + mes "[Alacrius]"; + mes "\"The Reaper is alive.\""; + goto L_Exit; + +L_Exit: + close; + end; + + +// Time to fight +OnTimer10000: + + monster "027-2.gat",0,0,"Reaper Quest",1111,1,"Alacrius::OnDeadReaper"; + end; + +OnDeadReaper: + set $@MO_REAPER, $@MO_REAPER + 1; + killmonster "027-2.gat","All"; + end; + +OnDeadLost: + set $@MO_LOST, $@MO_LOST + 1; + end; + + +OnTimer120000: + + set $@MO_REAPER,0; + set $@FIGHT_ALACRIUS_STATUS, 0; + killmonster "027-2.gat","All"; + stopnpctimer; + setnpctimer 0; + set @PRIZE, 0; + npctalk "Oh my beloved wife, you could not be rescued! I will have to purge my mistakes again..."; + npctalk "Please, help my beloved wife!!"; + + end; + +OnDead: + end; + + +L_AllDead: + if(@PRIZE == 0) goto L_NOHERO; + + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + getitem "CasinoCoins", 1; + + mes "[Alacrius]"; + mes "Thank you very much, you saved my love!! Here you are, a prize according to the dangers you've been exposed to."; + set @PRIZE , 0; + set $@MO_REAPER,0; + close; + end; + +L_TooMany: + mes "[Alacrius]"; + mes "You have no room for the reward."; + close; + +L_NOHERO: + mes "[Alacrius]"; + mes "Sorry, but you didn't save my love... Try it again when you're ready..."; + close; + end; +OnInit: + initnpctimer; + stopnpctimer; +} diff --git a/world/map/npc/027-2/barman.txt b/world/map/npc/027-2/barman.txt new file mode 100644 index 00000000..616b761a --- /dev/null +++ b/world/map/npc/027-2/barman.txt @@ -0,0 +1,9 @@ +027-2.gat,103,22,0 script Bennet 310,{ + mes "[Bennet]"; + mes "\"Hi there stranger! My name is Bennet, the bartender here.\""; + next; + mes "[Bennet]"; + mes "\"If you are planning to stick around for a while, please check back with me later. I might have some work for you.\""; + mes "\"In the meanwhile, enjoy your stay!\""; + close; +} diff --git a/world/map/npc/027-2/caretaker.txt b/world/map/npc/027-2/caretaker.txt new file mode 100644 index 00000000..bf4d35fc --- /dev/null +++ b/world/map/npc/027-2/caretaker.txt @@ -0,0 +1,131 @@ +// Cemetary Caretaker +// TODO: add dialog/code for giving more letters +// Airlia supports receiving an infinate number of letters + +027-2.gat,24,25,0 script Caretaker 159,{ + if (QUEST_Graveyard_Caretaker == 1) goto L_Return_Dialog; + if (QUEST_Graveyard_Caretaker == 2) goto L_Has_Letter; + if (QUEST_Graveyard_Caretaker == 3) goto L_Delivered_Letter; + if (QUEST_Graveyard_Caretaker == 4) goto L_Give_New_Letter; + if (QUEST_Graveyard_Caretaker == 5) goto L_Has_Letter; + + mes "[Caretaker]"; + mes "\"...Another adventurer comes to slay the already dead.\""; + next; + menu + "And what are you?", L_Who, + "Thats right, so move and let me kill that demon behind you.", -; + close; + +L_Who: + mes "[Caretaker]"; + mes "\"I was once the caretaker to these cemetery grounds, but look at what they have become."; + mes "I now care only for my wife. I watch over her... make sure that nobody ever does her harm.\""; + next; + + menu + "You guard her corpse day and night?", -; + + mes "[Caretaker]"; + mes "\"I am bound to this place by the very same spell that was cast to keep the undead from leaving. Until the day that this cemetery is cured of its curse, I remain within these gates.\""; + set QUEST_Graveyard_Caretaker, 1; + close; + +L_Return_Dialog: + mes "[Caretaker]"; + mes "\"I am somewhat fortunate that adventurers like yourself frequent this place... despite your intentions."; + mes "Perhaps you can do me a favor?\""; + next; + + menu + "What is the favor?", L_Favor, + "I'm sure I can, for a price.", L_Favor, + "Sorry, I am busy.", -; + close; + +L_Favor: + mes "[Caretaker]"; + mes "\"I have not seen my daughter since I was cursed to stay in this cemetery 25 years ago."; + mes "We communicate now through letters. Would you please take this to her?"; + mes "I am sure she will compensate you for your trouble.\""; + next; + + menu + "I will take it to her.", L_Receive, + "I will help you. Where can I find your daughter?", L_Receive, + "Sorry, but I am too busy.", -; + close; + +L_Receive: + set QUEST_Graveyard_Caretaker, 2; + mes "You receive the letter and put it in a special place so it doesn't get lost among your inventory."; + if (@menu == 2) goto L_Location; + close; + +L_Location: + next; + +L_Location_Real: + mes "[Caretaker]"; + mes "\"Her name is Airlia. She works at the city hall in Hurnscald. Thank you for your help.\""; + close; + +L_Has_Letter: + mes "[Caretaker]"; + mes "\"Have you found my daughter?\""; + next; + + menu + "Not Yet.", -, + "I'll get there when I get there.", -, + "Where did you say I could find her?", L_Location_Real; + close; + +L_Delivered_Letter: + mes "[Caretaker]"; + mes "\"Have you found my daughter?\""; + next; + + menu + "Yes.", -; + + mes "[Caretaker]"; + mes "\"Thank you for delivering my letter.\""; + set QUEST_Graveyard_Caretaker, 4; + close; + +L_Give_New_Letter: + mes "[Caretaker]"; + mes "\"I have another letter, if you want to deliver it.\""; + next; + + menu + "Sure.", L_Give_New_Letter_Real, + "I'm too busy right now.", -; + + close; + +L_Give_New_Letter_Real: + set QUEST_Graveyard_Caretaker, 5; + mes "You receive the letter and put it in a special place so it doesn't get lost among your inventory."; + next; + + mes "[Caretaker]"; + mes "\"Thank you.\""; + close; + +OnTimer3000: + monster "027-2.gat", 29, 21, "Caretaker's Wife", 1044, 1, "Caretaker::OnWifeDeath"; + end; + +OnWifeDeath: + mapannounce "027-2.gat", "NO! YOU KILLED MY WIFE!", 0; + gmcommand "@l I killed the caretaker's wife!"; + gmcommand "@ban +5mn " + strcharinfo(0); + setnpctimer 0; + end; + +OnInit: + initnpctimer; + end; +} diff --git a/world/map/npc/027-2/cerhan.txt b/world/map/npc/027-2/cerhan.txt new file mode 100644 index 00000000..33ee7895 --- /dev/null +++ b/world/map/npc/027-2/cerhan.txt @@ -0,0 +1,32 @@ +027-2.gat,70,77,0 script Cerhan 311,{ + mes "[Cerhan]"; + mes "\"Ah, hello! It is good to see another normal human at this strange place!\""; + next; + menu + "That's true. What are you doing here?",L_Story, + "Yes, this place is really strange. I'm going to have another look around.",-; + close; + +L_Story: + mes "[Cerhan]"; + mes "\"I came from Thermin, a town in Kazei area.\""; + next; + mes "\"I'm an experienced weapon master and thinking about establishing a smithy here. But I'll need some more equipment.\""; + next; + if (countitem("MylarinDust") > 0) + menu + "Do you know something about 'Mylarin Dust'?", L_Mylarin, + "Good luck with that.",-; + mes "[Cerhan]"; + mes "\"If you are interested in weapons and armor, you may want to come back later.\""; + close; + +L_Mylarin: + mes "[Cerhan]"; + mes "\"Mylarin dust?! Where did you get that? That's amazing!\""; + next; + mes "\"I can craft you an amazing strong armor with that - uhm, well, I first need to set up my smithy here.\""; + next; + mes "\"Please come back, when I'm ready with that. Mylarin dust... amazing.\""; + close; +} diff --git a/world/map/npc/027-2/crying_child.txt b/world/map/npc/027-2/crying_child.txt new file mode 100644 index 00000000..d7cbeac3 --- /dev/null +++ b/world/map/npc/027-2/crying_child.txt @@ -0,0 +1,186 @@ +// author: alastrim +// love triangle quest, involved npcs: Reid's Ghost, Hamond, Savaric, Aldred, Golbenez + +027-2.gat,50,92,0 script Aldred 314,{ + +// Crying Child subquest +// Variable states: +// 1 = You agree to help the child to find the ring outside +// 2 = You found the ring (see 027-1.../monsters.txt) +// 3 = You gave the ring to the child +// 4 = You decided to help the child again, by investigating what the ring means to them. +// 5 = The father/husband told you what he thinks of the ring +// 6 = The mother/wife told you what he thinks of the ring +// 7 = The kid decided that the ring has no value to their parents, so you can have it. + + set @Graveyard_Inn_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + if (Sex == 0) set @madamsir$, "Madam"; + if (Sex == 1) set @madamsir$, "Sir"; + if (@state == 7) goto L_return5; + if (@state == 6) goto L_return4; + if (@state == 4 || @state == 5) goto L_return3; + if (@state == 3) goto L_return2; + if (@state == 2) goto L_return1; + if (@state == 1) goto L_return; + if (BaseLevel >= 80) goto L_intro; + +L_cry: + mes "[Crying Child]"; + mes "\"Waaahhhhh! *sniffle*\""; + close; + +L_intro: + mes "[Crying Child]"; + mes "\"Waaah!\""; + next; + mes "\"*Sniffle*\""; + next; + mes "You bend your knees near the child, trying to gain his confidence and ask why he is crying. But looking closely, you are surprised to see that his skin color is an awful cadaveric grey..."; + menu + "Calm down kid, what happened?",-, + "Leave the kid alone.",L_close; + mes "[Crying Child]"; + mes "\"Oh, what? Who are you "+@madamsir$+", what are you doing here?\""; + next; + menu + "My name is "+strcharinfo(0)+". I heard you cry and decided to ask if you need help.",-; + mes "The child looks at you from head to toe and says: \"" +@madamsir$+ ", aren't you scared of me?\""; + next; + menu + "No... Why would I be scared of you?",-; + mes "[Crying Child]"; + mes "\"I am, you know... dead. And Mom and dad, and a lot of people in this inn... But most of them don't like to talk about it.\""; + menu + "You are a brave and smart kid... I have nothing to be afraid of.",-; + mes "[Crying Child]"; + mes "\"It is nice to talk to you. I don't have any friends and Mom is always sad and Dad is always angry with something I don't know... and... Did you see the man in the room next to me? The one with horns? Ohh, I don't like him! \""; + next; + mes "[Crying Child]"; + mes "\"My parents told me not to talk to strangers... But you look nice... I guess I can trust you... I'm Aldred and we live here, my parents and me. This is our inn.\""; + next; + mes "[Aldred]"; + mes "\"You asked why I was crying. My problem is... I don't know what to do... My dad will be so angry with me... He used to be very nice, but now... if you do something wrong... he... Waaaaa!\""; + next; + menu + "Here, here, don't cry... What did you do?",-; + mes "[Aldred]"; + mes "\"Err.. I was looking at my parents stuff and I found this funny thing! It looked like a normal ring, but with a round empty space... I thought it would be fun to take it with me and maybe look for a stone or a gem to fill the empty space. But I... *sniffle*... I lost it...\""; + next; + mes "\"I don't know what happened. I was in this room and... I heard some very loud noises, people screaming, cracking sounds... and a smell, a terrible smell, like something rotten. And then I can't remember anything else!\""; + next; + mes "\"I think it was something very bad, because, after all that, I woke up the way I am now and I couldn't find the ring in my pocket. Oh, and my parents are acting like they are not themselves. I don't know what happened, maybe it was my fault... I shouldn't have played with that ring... *sniffle*... \""; + next; + menu + "Don't worry, I will look around. Maybe I can find it for you...",-, + "Hey, you messed up, now you deal with this.",L_close; + + mes "[Aldred]"; + mes "\"Thank you " +strcharinfo(0)+"! Find it for me, pleeeease! Ohh, and don't tell my parents I lost their ring, okay?\""; + set @state, 1; + callsub S_Update_Mask; + close; + +L_return: + mes "[Aldred]"; + mes "\"Please, help me " +@madamsir$+ ". If you find that ring I think things can be a little better between me and my parents.\""; + close; + + +L_return1: + menu + "Hi Aldred. I found the ring!",-; + mes "[Aldred]"; + mes "\"Great! You are the best! Where did you find it?\""; + next; + menu + "It was easy, it was with one of the monsters outside.",-; + mes "[Aldred]"; + mes "\"Ohh.. a monster? He must be a fine monster since he returned it so easily to you!\""; + next; + menu + "Err... kind of...",-; + mes "[Aldred]"; + mes "\"Now I will put this thing back in its proper place... Thank you!\""; + set @state, 3; + callsub S_Update_Mask; + close; + + +L_return2: + mes "[Aldred]"; + mes "\"Hi "+strcharinfo(0)+ "! I was thinking... you were sooo nice helping me find the ring... I think I should give you a gift, but I'm just a dead kid, I have nothing to give you!\""; + next; + menu + "Don't worry, you don't need to give me anything...",-; + mes "[Aldred]"; + mes "\"Are you serious? That is why you are so great! But hey, I have an idea. What if you talk to my parents about this thing? If it is not important or valuable, I don't think it would be a problem to let you keep it. And I really want to know if they are acting all weird because I lost it. Would you do this for me?\""; + next; + menu + "Sounds interesting... But who are your parents?",-, + "Bad idea, it will only bring more problems...",L_close; + set @state, 4; + callsub S_Update_Mask; + mes "[Aldred]"; + mes "\"Ok, great... But please, don't tell them about it. I don't want my parents to know I was playing with their stuff. My father is always carrying a lantern... I guess he is still afraid of the dark. My mother is the innkeeper. She is very beautiful and she is wearing a red dress.\""; + next; + mes "\"Don't forget to come back with the ring after you talk to my parents.\""; + message strcharinfo(0), "Aldred hands you the ring and you keep it in a small pocket of your backpack"; + close; + +L_return3: + mes "[Aldred]"; + mes "\"I hope this ring doesn't mean a lot to my parents. This way you can keep it as a gift and I won't feel guilty about taking it.\""; + close; + +L_return4: + menu + "Hi, I talked to your parents.",-; + mes "[Aldred]"; + mes "\"Really? What did my father say about it?\""; + menu + "He said it is just a cheap ring. And it does not belong to him.",-; + mes "[Aldred]"; + mes "\"And what did my mother say?\""; + menu + "She said it was a gift to her, but she doesn't want it anymore.",-; + mes "[Aldred]"; + mes "\"Really? A gift? And why she doesn't want it?\""; + next; + menu + "She said it makes her sad.",-; + mes "\"Ohh... really? I don't like when my mother gets sad... If this ring is making her feel bad, I should keep it away from her. \""; + next; + mes "\"Well, I guess you can keep it, but don't show it to my mother again, she is already very sad. But now I am really curious, who else would give a gift to my mother? There are so many strange things happening lately...\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_full; + getitem "RingSimple", 1; + set @state, 7; + callsub S_Update_Mask; + mes "\"I will tell my parents how great and helpful you are. Maybe they can even let you stay here at the inn for free!\""; + close; + +L_return5: + mes "[Aldred]"; + mes "\"Thank you for all your help.\""; + close; + +L_full: + mes "[Aldred]"; + mes "\"I dont think you can carry this ring... Your backpack is full! Throw something away and come back to get it.\""; + close; + + +L_close: + close; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; + +} diff --git a/world/map/npc/027-2/diary.txt b/world/map/npc/027-2/diary.txt new file mode 100644 index 00000000..15eaa85e --- /dev/null +++ b/world/map/npc/027-2/diary.txt @@ -0,0 +1,43 @@ +027-2.gat,26,97,0 script #Diary 127, { + set @Graveyard_Inn_MASK, NIBBLE_0_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT; + + set @reid, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + if (@reid >= 6) goto L_Diary; + end; + +L_Diary: + mes "You pull out Reid's diary from behind a huge poem book. In the back of the book, you find some entries which seem to be about Savaric."; + next; + mes "'Savaric keeps confusing me - one time he is so flirty and slinky, another time he is cold and unfriendly. What is it with this man?'"; + next; + mes "'I need to stay away from him! It's not right, what I am feeling. It seems Hamond doesn't suspect anything of my feelings - but I know, it's just a matter of time. I need to come to my senses again!'"; + next; + mes "'Oh, this chaos between Savaric and me is getting serious. I was in his room today and he put his arms around me - I wanted to push him away, but I couldn't move. It was such a sweet feeling. I was torn between my brain saying 'No!' and my body wanting to feel his touch. Then Aldred showed up and Savaric let me go.'"; + next; + mes "The next part is blurred - it seems Reid was crying while writing."; + mes "'Savaric was talking again about leaving, because he can't find the mana seed. The thought that I would never see him again made me feel like I was falling into a big black hole! I need to decide what to do. But Hamond - I owe him so much. And what about Aldred?'"; + next; + mes "'We kissed each other - oh, I'm feeling so bad. I'm a disloyal slut. But I want it to happen again.'"; + next; + mes "'I told Savaric we have to stop with it - he was very understanding. But then he started to hold me again and I couldn't resist. I completely don't know what to do! His touch at my waist, even though over my clothes, made me feel hotter than Hamonds touch ever did.'"; + next; + mes "'I don't know if Hamond suspects us - he was holding me tight all through the night, whispering declarations of love in my ears. Oh, I'm feeling so bad.'"; + next; + mes "'Hamond won't be here tomorrow night - he needs to visit our wine supplier to negotiate the prices. Savaric knows this. I'm feeling so excited - I should go with Hamond, but I told him I need to take care of the inn while he's away. Savaric.. '"; + next; + mes "This is the last entry."; + if (@reid != 6) goto L_Close; + + set @reid, 7; + callsub S_Update_Mask; +L_Close: + close; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@reid << @Graveyard_Inn_SHIFT); + return; +} diff --git a/world/map/npc/027-2/door.txt b/world/map/npc/027-2/door.txt new file mode 100644 index 00000000..630e0ee2 --- /dev/null +++ b/world/map/npc/027-2/door.txt @@ -0,0 +1,19 @@ +027-2.gat,25,100,0 script #DoorIn 127,1,1,{ + set @Graveyard_Inn_MASK, NIBBLE_0_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT; + + set @reid, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + if (@reid >= 6) goto L_Warp; + message strcharinfo(0), "The door is locked."; + end; + +L_Warp: + warp "027-2.gat", 27, 99; + end; +} + +027-2.gat,26,99,0 script #DoorOut 127,1,1,{ + warp "027-2.gat", 23, 98; + end; +} diff --git a/world/map/npc/027-2/evil_guard.txt b/world/map/npc/027-2/evil_guard.txt new file mode 100644 index 00000000..0ee91cfa --- /dev/null +++ b/world/map/npc/027-2/evil_guard.txt @@ -0,0 +1,26 @@ +027-2.gat,100,43,0 script Blackwin 316,{ + mes "..."; + next; + mes "The guard glares at you, silently daring you to try something."; + next; + mes "[Evil Guard]"; + mes "\"I give you warning young human. My master will suffer no fools here.\""; + next; + mes "[Evil Guard]"; + mes "\"He created this as a place of leisure, and we are here to ensure that it stays that way.\""; + close; +} + +027-2.gat,112,37,0 script Forwin 316,{ + mes "[Evil Guard]"; + mes "\"" + strcharinfo(0) + "...\""; + next; + mes "[Evil Guard]"; + mes "\"I am your father...\""; + next; + mes "There is an awkward pause, and the guard bursts out laughing."; + mes ""; + mes "[Evil Guard]"; + mes "\"Just kidding! Can you imagine Golbanez' reaction if we had such puny offspring?\""; + close; +} diff --git a/world/map/npc/027-2/golbenez.txt b/world/map/npc/027-2/golbenez.txt new file mode 100644 index 00000000..651ccac1 --- /dev/null +++ b/world/map/npc/027-2/golbenez.txt @@ -0,0 +1,574 @@ +// author: Jenalya +// love triangle quest, involved npcs: Reid's Ghost, Hamond, Savaric, Aldred, Golbenez +// state 0: just talking, if lovers state is >= 2, go on +// state 1: ignores you until lovers state is >= 3, player can ask about the inn. needs if woman >= 7, lover >= 3 and husband >= 4 to go on +// state 2: shows reids memory if the player brings @ROTTENRAGS_AMOUNT rotten rags and an orange cake +// state 3: shows hamonds memory if the player brings @UNDEADEAR_AMOUNT undead ears and a chocolate cake +// state 4: shows savarics memory if the player brings @UNDEADEYE_AMOUNT undead eyes and an apple cake +// state 5: shows all memories again if asked for them. if @lover == 6, player can ask for savarics soul +// state 6: wants jackOsouls, random chance of 1/50 to success +// state 7: done + +027-2.gat,39,91,0 script Golbenez 307,{ + + set @Graveyard_Inn_MASK, NIBBLE_4_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_4_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + set @Graveyard_Inn_Woman_MASK, NIBBLE_0_MASK; + set @Graveyard_Inn_Woman_SHIFT, NIBBLE_0_SHIFT; + + set @woman, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Woman_MASK) >> @Graveyard_Inn_Woman_SHIFT); + + set @Graveyard_Inn_Lover_MASK, NIBBLE_1_MASK; + set @Graveyard_Inn_Lover_SHIFT, NIBBLE_1_SHIFT; + + set @lover, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Lover_MASK) >> @Graveyard_Inn_Lover_SHIFT); + + set @Graveyard_Inn_Husband_MASK, NIBBLE_3_MASK; + set @Graveyard_Inn_Husband_SHIFT, NIBBLE_3_SHIFT; + + set @husband, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Husband_MASK) >> @Graveyard_Inn_Husband_SHIFT); + + set @ROTTENRAGS_AMOUNT, 50; + set @ROTTENRAGS_EXP, 100000; + set @UNDEADEAR_AMOUNT, 25; + set @UNDEADEAR_EXP, 150000; + set @UNDEADEYE_AMOUNT, 20; + set @UNDEADEYE_EXP, 150000; + + if (@state >= 7) goto L_Done; + if (@state == 6) goto L_Soul; + if (@state == 5) goto L_All; + if (@state == 4) goto L_Savaric; + if (@state == 3) goto L_Hamond; + if (@state == 2) goto L_Reid; + if (@state == 1) goto L_Back; + + mes "[Golbenez]"; + mes "\"How do you like my place of leisure, mortal?\""; + menu + "What is this place? Why is it full of dead people?",-, + "You look different here. Nice horns.",L_Horns, + "I'm enjoying myself, thanks for asking.",L_Close; + + mes "[Golbenez]"; + mes "\"Mortal, this is way over your head. Don't worry about that and enjoy your time.\""; + + if (@lover < 2) + goto L_Close; + menu + "I want to know. Try me.",-; + + mes "Golbenez takes a piercing look at you."; + mes "[Golbenez]"; + mes "\"Fine.\""; + next; + mes "\"This place was a normal inn many, many of your years ago. I found it by chance and it became one of my most favorite playgrounds ever.\""; + next; + mes "Golbenez laughs in a way which really gives you the creeps."; + next; + mes "[Golbenez]"; + mes "\"Unfortunately - it got destroyed. So I took the memories of the dead and recreated this place.\""; + menu + "What do you mean by 'playground?'",-, + "Recreated? What do you mean by that?",-; + + mes "[Golbenez]"; + mes "\"As I said, you don't understand. You start to bore me. Leave.\""; + + set @state, 1; + callsub S_Update_Mask; + + close; + +L_Back: + if (@lover >= 3) + goto L_Memory; + mes "Golbenez decides to ignore your presence."; + close; + +L_Memory: + mes "[Golbenez]"; + mes "\"Mortal, you're back. Are you going to bore me with other stupid questions?\""; + menu + "I want to know what happened in the inn before it was destroyed.",-, + "Nevermind.",L_Close; + if ((@woman >= 7) && (@lover >= 3) && (@husband >= 4)) + goto L_Detective; + mes "[Golbenez]"; + mes "\"I was watching you playing detective. It is amusing. Play it a little longer and I may show you some of the memories from that time.\""; + close; + +L_Detective: + mes "[Golbenez]"; + mes "\"Watching you digging into this dirty little love story of those foolish humans has certainly been amusing so far.\""; + next; + mes "\"I can show you all their memories. Would you like that?\""; + next; + mes "\"The only thing you'd have to do is promise me your soul.\""; + menu + "No!",-, + "That's too expensive. Make another offer.",-, + "My soul?!",-; + mes "Golbenez giggles, which looks strange on such an intimidating being as he is."; + mes "[Golbenez]"; + mes "\"You should have seen your face. Really, mortals can be so funny.\""; + next; + mes "\"Ok, I'll show you the birdbrained womans memories if you bring me " + @ROTTENRAGS_AMOUNT + " Rotten Rags. And an Orange Cake.\""; + set @state, 2; + callsub S_Update_Mask; + close; + +L_Reid: + mes "[Golbenez]"; + mes "\"So, do you have the " + @ROTTENRAGS_AMOUNT + " Rotten Rags I want?\""; + if (countitem("RottenRags") < @ROTTENRAGS_AMOUNT) + menu + "What do you need them for?",L_Why_Stuff, + "I'm working on that.",L_Close; + menu + "Here you go.",-, + "I'm working on that.",L_Close; + if (countitem("OrangeCake") < 1) + goto L_No_Cake; + if (countitem("RottenRags") < @ROTTENRAGS_AMOUNT) + goto L_Betray; + delitem "RottenRags", @ROTTENRAGS_AMOUNT; + delitem "OrangeCake", 1; + getexp @ROTTENRAGS_EXP, 0; + + mes "[Golbenez]"; + mes "\"Very nice. I will show you the womans memories of that night. Come closer.\""; + next; + mes "\"You're hesitating but then take a step towards Golbenez. He grabs your head with his claw-like fingers.\""; + next; + callsub S_Reidsmem; + set @state, 3; + callsub S_Update_Mask; + menu + "Can I see it again?",-, + "Wow, that was interesting.",-, + "Why do you collect such personal memories?",-; + mes "Golbenez takes an amused look at you."; + next; + mes "[Golbenez]"; + mes "\"I'll explain the deal to you. Once you have paid for a memory, you can come and see it again as often as you like. And I collect whatever memory I want to. Mortals can be very amusing.\""; + next; + mes "\"I have more memories you might want to see. Bring me "+ @UNDEADEAR_AMOUNT + " Undead Ears. And a Chocolate Cake.\""; + close; + +L_Hamond: + mes "[Golbenez]"; + mes "\"Ah, mortal. Do you have the " + @UNDEADEAR_AMOUNT + " Undead Ears I want?\""; + if (countitem("UndeadEar") < @UNDEADEAR_AMOUNT) + menu + "I want to see Reids memory again.",L_R_Again, + "What will you do with them?",L_Why_Stuff, + "Not yet.",L_Close; + menu + "I want to see Reids memory again.",L_R_Again, + "I have what you want.",-, + "I'm working on that.",L_Close; + if (countitem("ChocolateCake") < 1) + goto L_No_Cake; + if (countitem("UndeadEar") < @UNDEADEAR_AMOUNT) + goto L_Betray; + delitem "UndeadEar", @UNDEADEAR_AMOUNT; + delitem "ChocolateCake", 1; + getexp @UNDEADEAR_EXP, 0; + mes "[Golbenez]"; + mes "\"Good. I'll show you the memories of the dumb husband now. Come to me.\""; + next; + mes "You step closer to Golbenez and he holds your head again."; + callsub S_Hamondsmem; + set @state, 4; + callsub S_Update_Mask; + mes "[Golbenez]"; + mes "It's really interesting how illogical humans behave."; + next; + mes "\"And how predictable they are. I can see in your eyes that you want to know how this drama went on.\""; + next; + mes "\"Bring me " + @UNDEADEYE_AMOUNT + " Undead Eyes and an Apple Cake.\""; + close; + +L_Savaric: + mes "[Golbenez]"; + mes "\"I hope you are bringing me the " + @UNDEADEYE_AMOUNT + " Undead Eyes I want.\""; + if (countitem("UndeadEye") < @UNDEADEYE_AMOUNT) + menu + "I want to see Reids memory again.",L_R_Again, + "I want to see Hamonds memory again.",L_H_Again, + "I really wonder what you do with the stuff I bring you.",L_Why_Stuff, + "They're hard to get. I'm still working on that.",L_Close; + menu + "I want to see Reids memory again.",L_R_Again, + "I want to see Hamonds memory again.",L_H_Again, + "I got what you want.",-, + "I'm working on that.",L_Close; + if (countitem("AppleCake") < 1) + goto L_No_Cake; + if (countitem("UndeadEye") < @UNDEADEYE_AMOUNT) + goto L_Betray; + delitem "UndeadEye", @UNDEADEYE_AMOUNT; + delitem "AppleCake", 1; + getexp @UNDEADEYE_EXP, 0; + mes "[Golbenez]"; + mes "\"Very Good. Now I'll show you the pitiful mages memory.\""; + next; + mes "He holds your head and everything grows black again."; + callsub S_Savaricsmem; + set @state, 5; + callsub S_Update_Mask; + mes "[Golbenez]"; + mes "\"Humans can be so amusing!\""; + menu + "YOU CRUEL MONSTER!",-, + "I agree. What a bunch of idiots.",-; + mes "Golbenez smiles"; + mes "[Golbenez]"; + mes "\"Oh, thank you.\""; + close; + +L_All: + if (@lover == 6) goto L_Negotiate; + mes "[Golbenez]"; + mes "\"Did you come back to see the memories again?\""; + menu + "I want to see Reids memory again.",L_R_Again, + "I want to see Hamonds memory again.",L_H_Again, + "I want to see Savarics memory again.",L_S_Again, + "Nevermind.",L_Close; + close; + +L_Negotiate: + mes "Golbenez eyes are glowing greedily"; + mes "[Golbenez]"; + mes "\"Did you come back to see the memories again? Or are you going to offer me another deal?\""; + menu + "I want Savarics soul back.",-, + "I want to see Reids memory again.",L_R_Again, + "I want to see Hamonds memory again.",L_H_Again, + "I want to see Savarics memory again.",L_S_Again, + "Nevermind.",L_Close; + + mes "[Golbenez]"; + mes "\"Savarics soul, yes. It is a pretty nice soul, you know. From a mage... no, even better... from a loving mage. It is valuable.\""; + next; + mes "\"Why do you think it would be easy to get it back? Do you have anything of equal worth to offer?\""; + next; + menu + "What about another cake?",L_Cake, + "I'm not sure. What do you want?",-, + "No.",L_Close; + + mes "[Golbenez]"; + mes "\"Bring me a soul of at least equal power to the mage. I don't care where you get it.\""; + set @state, 6; + callsub S_Update_Mask; + close; + +L_Soul: + mes "[Golbenez]"; + mes "\"So, did you get a soul for me?\""; +L_Soul_Try: + if (countitem("JackOSoul") < 1) + menu + "I'll go and get one.",L_Close; + menu + "What about this Jack O Soul?",-, + "I'll go and try to find a soul.",L_Close; + + if (countitem("JackOSoul") < 1) goto L_Betray; + delitem "JackOSoul", 1; + set @soul, rand(50); + if (@soul == 0) goto L_Soul_Success; + mes "[Golbenez]"; + mes "\"No, this one isn't as powerful as the mage. Bring me another one of them.\""; + goto L_Soul_Try; + +L_Soul_Success: + mes "Golbenez suddenly gets excited."; + mes "[Golbenez]"; + mes "\"Yes! This one is full of energy.\""; + next; + mes "\"So be it, mortal. I'll release Savarics soul in exchange for this one.\""; + set @state, 7; + callsub S_Update_Mask; + close; + +L_Done: + mes "[Golbenez]"; + mes "\"I hope you enjoyed your little detective game. I certainly did.\""; + close; + +L_Cake: + mes "Golbenez laughs."; + mes "[Golbenez]"; + mes "\"That's why I like you - also you're a human, you have a nice sense of humor.\""; + close; + +L_S_Again: + callsub S_Savaricsmem; + mes "[Golbenez]"; + mes "\"What a fool he was, even for a human.\""; + close; + +L_R_Again: + callsub S_Reidsmem; + mes "\"This memory seems to be exciting to you. Interesting.\""; + close; + +L_H_Again: + callsub S_Hamondsmem; + mes "[Golbenez]"; + mes "\"Humans can be so stupid, can't they?\""; + close; + +L_Horns: + mes "Golbenez bursts out with laughter."; + next; + mes "[Golbenez]"; + mes "\"Mortals! They never stop surprising me.\""; + close; + +L_Why_Stuff: + mes "[Golbenez]"; + mes "\"That is not your concern.\""; + close; + +L_Betray: + mes "[Golbenez]"; + mes "\"I'm warning you, mortal. Don't try to betray me!\""; + close; + +L_No_Cake: + mes "[Golbenez]"; + mes "\"Fool! You forgot my cake!\""; + close; + +L_Close: + close; + +S_Reidsmem: + mes "[Golbenez]"; + mes "\"I'll send her memories into your brain now. Don't collapse or do something similarly foolish.\""; + next; + mes "Everything turns black. Then, slowly, you see something. You're standing outside and watching an alive-looking Hamond ride away on a carriage drawn by a mouboo.\""; + next; + mes "\"You turn back and enter a nice looking building. It seems to be the inn."; + next; + mes "Obviously you are watching Reids memories out of her eyes. You're getting excited. Or is it Reid who feels excited? You're not sure."; + next; + mes "You-Reid walks up the stairs and stops in front of the door you recognize as Savarics room. You get a twisted feeling, something between desire, guilt and despair."; + next; + mes "It seems you're not only seeing Reids memories but also feeling them!"; + next; + mes "Reid turns away from Savarics door and walks to her rooms quickly. She is shivering. You feel her heart pounding."; + next; + mes "She enters the room and pulls the red dress you already recognize from her ghost out of a chest and changes her clothes. Her heart is pounding even faster."; + next; + mes "She sits down on the bed holding her head in her hands."; + next; + mes "[Reid]"; + mes "\"This is wrong...\""; + next; + mes "Then she stands up and returns to Savarics door. She is hesitating again. Suddenly the door opens, Savaric standing there, smiling."; + next; + mes "[Savaric]"; + mes "\"I was hoping you would come.\""; + next; + mes "He reaches out his hands and you feel Reid getting dizzy."; + next; + mes "You enter his room together. There is only one candle on the table, so the light is dimmed."; + next; + mes "[Reid]"; + mes "\"I- we- Savaric- this is not right- we shouldn't do this.\""; + next; + mes "[Savaric]"; + mes "\"But you came. Sh, don't worry. Let me hold you.\""; + next; + mes "Savaric puts his arms around Reid and lead her to the bed. You feel a flush of sexual arousal."; + next; + mes "He starts to caress Reids face with his lips while his hands slip her dress from her shoulders."; + next; + mes "Reids feelings are like a firestorm and it's hard for you to concentrate on what is happening."; + next; + mes "Savaric touches her body and - you suddenly stand in front of Golbenez again, wobbling around and then fall to the ground."; + next; + mes "[Golbenez]"; + mes "\"I told you not to collapse!\""; + next; + mes "\"It seems Reids feelings were too strong for you to withstand.\""; + next; + mes "Golbenez grins."; + next; + mes "[Golbenez]"; + mes "\"But I guess you can imagine what followed.\""; + next; + return; + +S_Hamondsmem: + mes "The darkness vanishes and you see the back of a mouboo pulling the carriage you're sitting on. Or better to say, Hamond is sitting on."; + next; + mes "You feel very very nervous and worried."; + next; + mes "[Hamond]"; + mes "\"I shouldn't leave her alone with that debaucher. But she loves me. She won't give in to such a dandy. I believe in her. I trust her.\""; + next; + mes "The carriage reaches a river, but it seems the bridge is damaged. A group of people is standing at the riverside. There is one little boat, taking the people across one by one."; + next; + mes "You feel a great surge of relief growing in Hamonds chest."; + next; + mes "He shakes the reins and gets his carriage turned around. Obviously this is a great excuse for him to return to Reid at once."; + next; + mes "When he returns to the inn, sunset is already near. He tells the stableboy to take care of the mouboo and carriage, then rushes up the stairs heading to his and Reids rooms. You can feel his heart pounding."; + next; + mes "He rips the door open and the room is empty. A cold feeling grows in his chest. He turns around and sees Reid standing in front of him, wearing her best dress. The red one which makes her look so beautiful - you feel a sharp sting in Hamonds heart."; + next; + mes "The dress is crumpled and seems to be put on in haste. Her hair is in total chaos on her head."; + next; + mes "[Reid]"; + mes "\"Hamond! What are you doing here? Why are you already back?\""; + next; + mes "You feel a burning rage growing in Hamond."; + mes "[Hamond]"; + mes "\"You're not happy to see me, are you? Would you prefer me to run this inn for you but not bother you about your cockish behavior?!\""; + next; + mes "The shocked and painful but guilty look on Reids face fills Hamond with a strange mixture of pain and gratification."; + next; + mes "He grabs her arm, pulls her into the room and slams the door shut behind them. You see a fearful look on Reids face."; + next; + mes "[Reid]"; + mes "\"Hamond! Please, calm down!\""; + next; + mes "The feeling of broken trust and disappoinment seems to drive you..Hamond..crazy."; + next; + mes "Hamond slaps her across the face."; + next; + mes "[Hamond]"; + mes "\"You are MY WIFE! I'll teach you what this means!\""; + next; + mes "As Hamond grabs Reid roughly and holds her tight, you can smell her sweat and fear, but under that is the smell of another man! Hamonds vision goes red."; + next; + mes "[Hamond]"; + mes "\"You dirty slut! I did everything for you!\""; + next; + mes "Reid is struggling wildly to get out of Hamonds hold. She is surprisingly strong and both are falling against the table."; + next; + mes "The next thing you see is a teapot smashing into Hamonds face. He stumbles back."; + next; + mes "You see Reid running to the door, where she pauses and has a look back. Then she runs out of the room."; + next; + mes "Her face was drowned with tears, her lips bloody and her eye was already turning black."; + next; + mes "You feel shock and regret."; + mes "[Hamond]"; + mes "\"What did I do? Reid... How could I ever hurt you?\""; + next; + mes "Your sight turns black and with your next blink you're standing in front of Golbenez again."; + next; + return; + +S_Savaricsmem: + mes "As you gain your eyesight again, you find yourself bustling back and forth in Savarics room."; + next; + mes "The mixture of feelings you sense is very confusing. Worry, guilt, craving and below all that a deep feeling of luck and satisfaction."; + next; + mes "Then you hear steps outside the room. Savaric turns to the door quickly, then Reid breaks into the room."; + next; + mes "She looks totally tattered, her dress is ripped, her lips are bleeding, she has a black eye and she is sobbing uncontrollably. It takes Savaric less than a second to reach her and put his arms around her carefully."; + next; + mes "You feel a deep, cold anger."; + next; + mes "[Savaric]"; + mes "\"Reid, my love, what did he do to you? Please come and lay down.\""; + next; + mes "Savaric leads Reid to his bed and covers her gently. Then he holds and rocks her until she falls asleep. You notice Savaric is only wearing his underpants."; + next; + mes "After Reids breathing has calmed down and her oppressed face looks peaceful again, he stands up and his cold burning anger comes back."; + next; + mes "[Savaric]"; + mes "\"I won't let him get away with that!\""; + next; + mes "Savaric pulls some things out of a chest and puts them on the table. He lights some candles and begins to mix together some powders and fluids. You can feel his concentration, but below that also a great anger which restrains you from clear thought."; + next; + mes "Savaric seems to be ready with his magic ingredients and takes what he mixed together. You feel rising power inside of you. The moment you think you can't stand it anymore, the tension disappears and a purple light fills the room for a moment."; + next; + mes "Golbenez is standing in front of you"; + next; + mes "[Golbenez]"; + mes "\"Mortal! It was very rude of you to force me to this place with that spell - are you aware of the power you are playing around with?!\""; + next; + mes "Fear is rising inside of you, but also excitement and a feeling of power."; + next; + mes "[Savaric]"; + mes "\"I called you to get rid of the person who did this to this adorable woman.\""; + mes "He points at Reid"; + next; + mes "[Savaric]"; + mes "\"Tell me your charge.\""; + next; + mes "Golbenez' behavior changes immediately and he suddenly seems much friendlier."; + next; + mes "[Golbenez]"; + mes "\"Ah, you're offering me a deal. That's something else. Let me see. I can free her from all pain and anything or anyone causing her trouble.\""; + next; + mes "You feel Savarics heart pounding."; + mes "[Savaric]"; + mes "\"Yes. That's what I want. I want her to be safe from any harm.\""; + next; + mes "Golbenez' face turns into a smile."; + mes "[Golbenez]"; + mes "\"This requires some effort. It will have a remarkable price. I want your soul in exchange.\""; + next; + mes "The feeling of power disappears and is replaced with uncertainty."; + mes "[Savaric]"; + mes "\"My - soul? Can't it be something else?\""; + next; + mes "[Golbenez]"; + mes "\"Think about what you get! This woman will never feel any pain again!\""; + next; + mes "Savarics hesitation vanishes."; + mes "[Golbenez]"; + mes "\"So be it. Take my soul and prevent Reid from feeling pain ever again.\""; + next; + mes "Golbenez' smile changes to an ugly grin of malice. He reaches out to Savaric and seems to pull something out of him. Suddenly, you feel very weak and empty."; + next; + mes "In the next moment, you're laying on the ground and see Golbenez raising his arms. You sense an unbelievable magic force - what is he doing?"; + next; + mes "Undead are entering the room and one of them steps to the bed and breaks Reid neck with a quick movement. A dark and black feeling of despair is rising inside of you."; + next; + mes "[Savaric]"; + mes "\"NO!! What are you doing?\""; + next; + mes "[Golbenez]"; + mes "\"She will never feel pain anymore. Just like everyone else in this inn - besides you, foolish mortal.\""; + next; + mes "Golbenez leaves the room and you feel Savaric giving in to his pain. He is laying on the floor and trying to understand what he did."; + next; + mes "After a few moments of only feeling his suffering, Savaric finally manages to stand up again. He can't stand to see Reids dead body anymore and stumbles out of the room."; + next; + mes "But what you can see in the rest of the inn isn't able to ease the suffering you're feeling. The undead have slaughtered every person in the inn, leaving only Savaric alive."; + next; + mes "Savaric seems stunned by shock. He slowly returns to his room and kneels in front of the bed, taking Reids hand."; + next; + mes "[Savaric]"; + mes "\"Reid - I'm so sorry. My haughtiness was greater than my skills.\""; + next; + mes "The numb feeling gives way to a new feeling of determination."; + next; + mes "Savaric pulls a rope out of the chest beside the bed."; + mes "[Savaric]"; + mes "\"Now there's only one thing left for me to do.\""; + next; + mes "Your vision turns black again and you're standing in front of Golbenez."; + return; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; +} diff --git a/world/map/npc/027-2/gy_inn_shops.txt b/world/map/npc/027-2/gy_inn_shops.txt new file mode 100644 index 00000000..a90d4301 --- /dev/null +++ b/world/map/npc/027-2/gy_inn_shops.txt @@ -0,0 +1,35 @@ +// chef: function, +// barmaid: function, +// shopkeeper: multiples and function, +// magic undead shop: function, +// chief barman: function, +// receptionist: function, +// banker: function + + +027-2.gat,75,22,0 shop Chef 300,784:-1,785:-1,786:-1,787:-1 +027-2.gat,90,36,0 shop Estrilda 301,788:-1,789:-1,790:-1 +027-2.gat,93,22,0 shop Umfrey 302,1282:-1,1281:-1 +027-2.gat,56,99,0 shop Leofwin 304,501:-1,502:-1,518:100,566:2000,567:-1,568:-1,613:500,631:1000,740:-1,772:-1,773:-1,774:-1 +027-2.gat,106,22,0 shop Edwin 309,784:-1,785:-1,786:-1,787:-1,788:-1,789:-1,790:-1 + +// Inn +027-2.gat,107,39,0 script Barbara Grey 320,{ + set @npcname$, "Barbara Grey"; + set @cost, 1000; + + mes "[" + @npcname$ + "]"; + mes "\"Don't be shy darling."; + mes "\"Come on in and have a nice long ... long slumber ..."; + next; + callfunc "Inn"; +} + +// Bank and Storage +027-2.gat,88,22,0 script J.P. Morbid 321,{ + callfunc "ClearVariables"; + set @npcname$, "J.P. Morbid"; + callfunc "Banker"; + close; +} + diff --git a/world/map/npc/027-2/headless_man.txt b/world/map/npc/027-2/headless_man.txt new file mode 100644 index 00000000..5e7454ca --- /dev/null +++ b/world/map/npc/027-2/headless_man.txt @@ -0,0 +1,208 @@ +// author: TheKandiman, input from Jenalya and Pjotr Orial +// simple quest for headless man in gy inn +// state 0: first contact +// state 1: quest accepted +// state 2: items delivered, return for reward and followup story +// state 3: quest completed + +027-2.gat,22,76,0 script Thurstan 318,{ + + if (Sex == 0) set @madamsir$, "Madam"; + if (Sex == 1) set @madamsir$, "Sir"; + + set @Graveyard_Inn_MASK, NIBBLE_6_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_6_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + set @Wisp_Powder, 50; + set @Polt_Powder, 50; + set @Spec_Powder, 50; + set @Iron_Pot, 50; + set @Conc_Pot, 30; + set @Red_Dye, 50; + set @Yellow_Dye, 50; + set @LB_Dye, 50; + + set @Glue_Exp, 50000; + + if (@state >= 3) goto L_Final; + if (@state == 2) goto L_Quest_finished; + if (@state == 1) goto L_Quest_progress; + + mes "You see a man, propped up against the foot of the bed."; + mes "In his hand, he is holding what you assume to be his own head."; + next; + mes "You jump back a bit, startled, as the head starts talking to you!"; + mes "It's a little strange watching him talk, but it's better than looking at what's left of his neck."; + next; + if (baselevel < 85) goto L_greet; + mes "[Headless Man]"; + mes "\"Hello " + @madamsir$ + ". My name is Thurstan. Could I ask your assistance with something? I seem to be in a spot of difficulty.\""; + menu + "I'll listen, just keep that thing from dripping on me.", L_Quest_ask, + "Ack, a bloody talking head! Gross, no way!", L_Quest_close; + +L_greet: + + mes "[Headless Man]"; + mes "\"Greetings " + @madamsir$ + "! Do you have any duck tape?\""; + close; + +L_Quest_ask: + + mes "[Thurstan]"; + mes "\"A little while ago there was a patron visiting the inn...I can't remember his name now. He noticed this predicament I am in and offered to help me. He told me that he was an alchemist and that he had a recipe for an adhesive that would keep my head where it's supposed to be. Unfortunately, he wasn't able to stay long enough to gather all the ingredients for the spell, so he gave me the recipe instead. However, it's rather hard to gather things when I have to carry it around all day.\""; + next; + mes "[Thurstan]"; + mes "\"I have a list of items and how many of each are needed. Would you mind gathering them for me?\""; + menu + "Lay it on me, Mr. Noggin!", L_Quest_start, + "Sorry, I'm kinda busy with, you know, living.", L_Quest_no; + +L_Quest_close: + + close; + +L_Quest_start: + + mes "[Thurstan]"; + mes "\"Great! I will need the following things.\""; + mes "\"" + @Wisp_Powder + " Wisp Powder,\""; + mes "\"" + @Polt_Powder + " Poltergeist Powder,\""; + mes "\"" + @Spec_Powder + " Spectre Powder,\""; + mes "\"" + @Iron_Pot + " Iron Potion,\""; + mes "\"" + @Conc_Pot + " Concentration Potion,\""; + mes "\"" + @Red_Dye + " vials of Red Dye,\""; + mes "\"" + @Yellow_Dye + " vials of Yellow Dye,\""; + mes "\"and...\""; + mes "\"" + @LB_Dye + " vials of Light Blue Dye,\""; + next; + mes "[Thurstan]"; + mes "\"My friend also said that I should use a metal bowl instead of a wooden one. I don't have one and I think a cauldron from the kitchen would be too big. Perhaps we could use an Infantry Helmet to serve that task.\""; + next; + mes "[Thurstan]"; + mes "\"I know it probably doesn't seem like that much to you, but it is a really big deal for me. I will try to find something to compensate you for your efforts.\""; + set @state, 1; + callsub S_Update_Mask; + close; + +L_Quest_no: + + mes "[Thurstan]"; + mes "\"Very well. Just don't come looking to me when your own head falls off!\""; + close; + +L_Quest_progress: + + mes "[Thurstan]"; + mes "Have you managed to find those items yet?\""; + menu + "Yes, here you go!", L_Quest_check, + "What was I supposed to get again?", L_Quest_items, + "No, I'm still working on it.", L_Quest_close; + +L_Quest_check: + + if (countitem("WispPowder") < @Wisp_Powder || + countitem("PoltergeistPowder") < @Polt_Powder || + countitem("SpectrePowder") < @Spec_Powder || + countitem("IronPotion") < @Iron_Pot || + countitem("ConcentrationPotion") < @Conc_Pot || + countitem("RedDye") < @Red_Dye || + countitem("YellowDye") < @Yellow_Dye || + countitem("LightBlueDye") < @LB_Dye || + countitem("InfantryHelmet") < 1) goto L_Quest_notenough; + + delitem "WispPowder", @Wisp_Powder; + delitem "PoltergeistPowder", @Polt_Powder; + delitem "SpectrePowder", @Spec_Powder; + delitem "IronPotion", @Iron_Pot; + delitem "ConcentrationPotion", @Conc_Pot; + delitem "RedDye", @Red_Dye; + delitem "YellowDye", @Yellow_Dye; + delitem "LightBlueDye", @LB_Dye; + delitem "InfantryHelmet", 1; + getexp @Glue_Exp, 0; + mes "[Thurstan]"; + mes "\"Excellent, excellent!\""; + mes ""; + mes "Thurstan takes your ingredients and seperates them into little piles according to some complex formula he is reading, seemingly from the tops of his shoes."; + next; + mes "[Thurstan]"; + mes "\"Now if I could prevail upon you to mix the ingredients according to the instructions I have here, I would be greatly indebted.\""; + next; + mes "You mix the powders together in the Infantry bowl, adding potions and dyes as instructed. Gradually, the concoction starts to get tacky and takes on a hue similar to Thurstan's skin."; + mes "You can see him starting to get excited beside you..."; + next; + mes "[Thurstan]"; + mes "\"Oh this is perfect! I'll be back in action in no time!\""; + next; + mes "Thurstan covers the base of his neck with a thick coat of the glue using his free hand. He then lifts his head in both hands, places it on the layer of adhesive, and makes some minor adjustments to the position. He mutters an incantation that you can't make out and the wound across his neck seems to fade away."; + misceffect sfx_magic_transmute; + next; + mes "Thurstan is practically jumping for joy now."; + mes ""; + mes "[Thurstan]"; + mes "\"Thank you so much! That is such a weight on my shoulders! Now that I have some mobility back, let me see what I can do to repay you. Would you mind coming back in a few minutes?\""; + set @state, 2; + callsub S_Update_Mask; + close; + +L_Quest_notenough: + + mes "Thurstan quickly looks through the items you've brought."; + mes "[Thurstan]"; + mes "\"It seems you are missing a few things. Please come back once you have everything on the list.\""; + close; + +L_Quest_items: + + mes "[Thurstan]"; + mes "\"" + @Wisp_Powder + " Wisp Powder,\""; + mes "\"" + @Polt_Powder + " Poltergeist Powder,\""; + mes "\"" + @Spec_Powder + " Spectre Powder,\""; + mes "\"" + @Iron_Pot + " Iron Potion,\""; + mes "\"" + @Conc_Pot + " Concentration Potion,\""; + mes "\"" + @Red_Dye + " vials of Red Dye,\""; + mes "\"" + @Yellow_Dye + " vials of Yellow Dye,\""; + mes "\"" + @LB_Dye + " vials of Light Blue Dye,\""; + mes "\"We'll also need 1 Infantry Helmet to use as a bowl for mixing everything together.\""; + close; + +L_Quest_finished: + + mes "[Thurstan]"; + mes "\"Thank you for all your help.\""; + next; + mes "[Thurstan]"; + mes "\"It worked well and the bond seemed to be holding for a while. Then I started feeling a strange tingling in my neck. I suppose that was the adhesive starting to dissolve. I was leaned over my trunk digging around for something appropriate to give you..Aaaand once again my head left it's proper place.\""; + next; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + mes "[Thurstan]"; + mes "\"Please take this for your efforts. I got it in payment of some work I did protecting the pinkie population from a terrible scourge some time ago.\""; + getitem "pinkiehelmet", 1; + set @state, 3; + callsub S_Update_Mask; + close; + +L_Full_Inv: + mes "[Thurstan]"; + mes "\"I'd like to give you something for your efforts, but you're carrying too much stuff.\""; + close; + +L_Final: + + mes "[Thurstan]"; + mes "\"I guess I will need to find another way to re-attach my cranium. If you come across any good alchemists who might be able to help, please let me know.\""; + close; + +S_Update_Mask: + + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; + +} diff --git a/world/map/npc/027-2/husband.txt b/world/map/npc/027-2/husband.txt new file mode 100644 index 00000000..fef2bafd --- /dev/null +++ b/world/map/npc/027-2/husband.txt @@ -0,0 +1,327 @@ +// author: Jenalya +// love triangle quest, involved npcs: Reid's Ghost, Hamond, Savaric, Aldred, Golbenez +// state 0: if baselevel >= 85, he asks for something to cool the drinks (ice cubes) +// state 1: can be asked about the ring. needs @ICE_CUBE_AMOUNT ice cubes, then asks for bones and skulls. +// state 2: wants @BONE_AMOUNT and @SKULL_AMOUNT bones and skulls +// state 3: can be asked about the ring. needs @woman > 5 to be asked about savaric, tells, if crying child quest is completed +// state 4: if @golbanez < 5, can be told about the memories, then asks the player to bring @RUBY_AMOUNT rubies to reid +// state 5: waiting +// state 6: is set in reid, gives as reward a special bowler hat +// state 7: done + +027-2.gat,22,84,0 script Hamond 319,{ + + set @Graveyard_Inn_MASK, NIBBLE_3_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_3_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + set @Graveyard_Inn_Woman_MASK, NIBBLE_0_MASK; + set @Graveyard_Inn_Woman_SHIFT, NIBBLE_0_SHIFT; + + set @woman, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Woman_MASK) >> @Graveyard_Inn_Woman_SHIFT); + + set @Graveyard_Inn_Kid_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_Kid_SHIFT, NIBBLE_2_SHIFT; + + set @kidstate, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Kid_MASK) >> @Graveyard_Inn_Kid_SHIFT); + + set @ICE_CUBE_AMOUNT, 100; + set @ICE_CUBE_EXP, 75000; + set @BONE_AMOUNT, 100; + set @SKULL_AMOUNT, 75; + set @BONE_EXP, 100000; + set @RUBY_AMOUNT, 50; // caution, this value needs to be the same as in the innkeepers script! + + if (@state >= 7) goto L_Thanks; + if (@state == 6) goto L_Apologize; + if (@state == 5) goto L_Waiting; + if (@state == 4) goto L_News; + if (@state == 3) goto L_Brought_Bones; + if (@state == 2) goto L_Check_Bones; + if (@state == 1) goto L_Ice_Cube; + + mes "[Pale Man]"; + mes "\"Hello, I hope you're enjoying your time in Reid's Inn. My name is Hamond, and I'm running this inn together with my beautiful wife Reid. If there is anything I can do for you, please let me know.\""; + if (baselevel < 85) goto L_Close; + next; + menu + "I'd like to know why all the people in here are dead.",-, + "Are you feeling well? You look very pale... In fact, deathly pale.",-, + "Thank you, but I'm fine.", L_Close; + + mes "Hamond seems very confused. Then he notices the grey color of his hands and begins to shake his head in panic."; + mes "[Hamond]"; + mes "\"WHAT IS THIS?\""; + next; + mes "Because of the fast movement of his head, it hinges back in his neck along a cut in his throat.. a deep cut you didn't notice before."; + next; + mes "You're trying hard not to run away screaming. Instead, you grab his hair and pull his head back into place."; + next; + mes "Hamond blinks a few times, with a puzzled look on his face."; + mes "[Hamond]"; + mes "\"That was uncomfortable! I guess you are right. I am dead. Weird.\""; + next; + mes "\"How can I be dead if I am walking around and talking? This is very strange. \""; + next; + mes "\"But nevertheless, I will continue to run this inn and do my best to make all our patrons happy and satisfied - be they alive or dead.\""; + next; + menu + "Can I help with that?", -; + mes "[Hamond]"; + mes "\"Help me? Normally I would never ask you for this, but actually, I do need something to cool the drinks. Maybe you can find something.\""; + + set @state, 1; + callsub S_Update_Mask; + + close; + +L_Ice_Cube: + mes "[Hamond]"; + mes "\"Hello my friend! Good to see you again. Did you find something to cool the drinks?\""; + next; + + if ((@kidstate == 4) && countitem("IceCube") > 0) + menu + "Maybe this never melting Ice Cube?", L_Check_Ice, + "I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "I'm still searching.", L_Close; + + if (@kidstate == 4) + menu + "I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "I'm still searching.", L_Close; + + if (countitem("IceCube") > 0) + menu + "Maybe this never melting Ice Cube?", L_Check_Ice, + "I'm still searching.", L_Close; + + mes "\"You didn't? Too bad.\""; + close; + +L_Check_Ice: + if (countitem("IceCube") < @ICE_CUBE_AMOUNT) + goto L_Not_Enough_Cubes; + delitem "IceCube", @ICE_CUBE_AMOUNT; + + getexp @ICE_CUBE_EXP, 0; + + set @state, 2; + callsub S_Update_Mask; + + mes "[Hamond]"; + mes "\"Yes, wonderful! That's exactly what I need.\""; + next; + mes "\"I put all my effort in making this inn a well running place for my beloved Reid.\""; + next; + mes "\"You know, she had a very hard childhood.\""; + next; + mes "\"Her parents were the former owners of the inn. But they had some problems and the inn wasn't running well.\""; + next; + mes "\"Also they died very early and Reid was so lonely and sad. She is such a wonderful woman, I'd do anything for her.\""; + next; + mes "He mumbles the next sentence as if to himself."; + next; + mes "\"And I won't let a wannabe mage take her away from me...\""; + next; + menu + "What do you mean?",-; + mes "[Hamond]"; + mes "\"Nevermind, nevermind. I'd like to ask you for another favor, if I might.\""; + next; + mes "\"A patron asked for - uhm, bones. He said he needed to replace some of his bones, which were damaged in a scuffle with mortals.\""; + next; + mes "\"I know, this is a bit strange - I'm still getting used to being dead. But a patron's wish is a patron's wish!\""; + next; + mes "\"Can you bring me a huge amount of bones and skulls? This way I can fulfill that peculiar wish and make another patron very happy!\""; + close; + +L_Check_Bones: + mes "[Hamond]"; + mes "\"Welcome back! Let me see what you have.\""; + if ((countitem("Bone") < @BONE_AMOUNT) || (countitem("Skull") < @SKULL_AMOUNT)) + goto L_Not_Enough_B; + delitem "Bone", @BONE_AMOUNT; + delitem "Skull", @SKULL_AMOUNT; + + getexp @BONE_EXP, 0; + + set @state, 3; + callsub S_Update_Mask; + +L_Brought_Bones: + mes "[Hamond]"; + mes "\"Thanks for your help! Now I'll be able to satisfy another strange request from one of our patrons.\""; + next; + + if ((@kidstate == 4) && (@woman > 5)) + menu + "Would you tell me about this mage named Savaric?", L_Savaric, + "I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "You're welcome.", L_Close; + + if (@kidstate == 4) + menu + "I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "You're welcome.", L_Close; + + if (@woman > 5) + menu + "Would you tell me about this mage named Savaric?", L_Savaric, + "You're welcome.",-; + mes "[Hamond]"; + mes "\"Please make yourself at home.\""; + + close; + +L_Savaric: + mes "Hamond's face turns into an ugly grimace."; + mes "[Hamond]"; + mes "\"That cheeky egomaniac - \""; + next; + + if ((Sex == 0) && (@kidstate < 7)) goto L_Woman; + if ((Sex == 1) && (@kidstate < 7)) goto L_Man; + mes "\"Well, I have been thinking about you. You seem to be a very helpful and wise person. Even my son told me good things about you, making a long speech about how great you are and your ability to comprehend and deal with delicate matters. I wonder how he reached that conclusion... But anyway, I'll tell you about Savaric.\""; + next; + +L_Jealousy: + mes "[Hamond]"; + mes "\"Savaric calls himself the first apprentice of a great wizard and seems to hold his head very high because of that. Pah, that snooty-nosed little upstart.\""; + next; + mes "\"Don't get me wrong, usually I'm a very open minded man, everyone can live their life as ever they like. But I never saw a wizard do anything good. They're in their books and ancient riddles and speaking with demons and whatever else they might come up with.\""; + next; + mes "\"But do they care for normal people? I've never seen that. And not only that! This Savaric guy seems to think it is fun to play games with my wife.\""; + next; + mes "Hamond seems to nearly burst with anger."; + next; + mes "\"I guess, they think I don't see what they are doing! But they are flirting all the time, my poor Reid seems unable to have a straight thought anymore.\""; + next; + mes "\"I already thought about throwing him out of the inn - but he is a patron! I can't be rude to a patron.\""; + next; + mes "\"Ah, this is annoying.\""; + set @state, 4; + callsub S_Update_Mask; + close; + +L_Man: + mes "[Hamond]"; + mes "\"You're a man - I think you would understand what is happening to me.\""; + mes "\"But, to be honest, I think I'd only be able to talk about such a complicated matter if I am sure I am sharing my feelings with a good, wise and understanding person. No offense, it is just that I barely know you...\""; + close; + +L_Woman: + mes "[Hamond]"; + mes "\"Hrm - I don't think you'll understand. It is a problem between men.\""; + next; + mes "\"And, to be honest, I'd only be able to talk about such a complicated matter if I am sure I am sharing my feelings with a good, wise and understanding person. No offense, it is just that I barely know you...\""; + close; + +L_Ring: + mes "[Hamond]"; + mes "\"Well.. this is just a cheap ring. It is very popular with the young kids, especially the magic students.\""; + next; + mes "\"They say the ring increases 'magic attack' if you add a sapphire gem to it... But, in fact, I think these kids are delusional. Magic, pah.\""; + next; + mes "\"Anyway, I remember you could easily find one of these in a lot of small shops in town. I am pretty sure that whoever lost it won't bother coming all the way back to get it.\""; + set @kidstate, 5; + callsub S_Update_Mask_Kid; + close; + +L_News: + mes "[Hamond]"; + mes "\"Ah, dear friend. How are you?\""; + if (@golbanez < 5) + menu + "I'm enjoying myself.",L_Close; + menu + "I'm enjoying myself.",L_Close, + "I found out what happened to you and this place.",-; + + mes "[Hamond]"; + mes "\"You did? Amazing! Please tell me.\""; + next; + mes "You explain to him how you came here, the results of your research and what Golbanez showed to you."; + next; + mes "[Hamond]"; + mes "\"WHAT? This is just crazy! But - you've shown me that you're trustworthy. This must be the truth.\""; + next; + mes "\"But still, it is hard to believe - I can't imagine I would ever hurt Reid and that she - that she would cheat on me.\""; + next; + mes "\"How did this come about? What did I do wrong? I should have shown her my love more. I should have protected her from the allurements of that sneaky mage. And I - I should have never ever hurt her.\""; + next; + mes "Hamond seems about to break down."; + menu + "Maybe it was just fate.",-, + "You got very upset, don't blame yourself",-, + "You're right. You were very violent. How could you do that if you love her?",-; + + mes "[Hamond]"; + mes "\"I- I need to apologize.\""; + next; + mes "\"" + strcharinfo(0) + "! Can you help me once more? Please get " + @RUBY_AMOUNT + " Rubies and bring them to her as a symbol of my love and my remorse.\""; + set @state, 5; + callsub S_Update_Mask; + close; + +L_Waiting: + mes "[Hamond]"; + mes "\"Did you bring Reid the " + @RUBY_AMOUNT + " Rubies?\""; + close; + +L_Apologize: + mes "[Hamond]"; + mes "\"I thank you! Reid came to me to talk about what happened.\""; + next; + mes "\"We talked about all the stuff that happened. It's hard for me, but I accepted her feelings for that mage. I mean - we are dead! And we have to stay in this place together for the rest of eternity! This is just perverted.\""; + next; + mes "\"But whatever, we need to get along with each other someway and I won't be the one who makes this difficult.\""; + next; + mes "\"And frankly, it gives me a bitter satisfaction that they long for each other but can't touch each other.\""; + next; + mes "\"However, you are a great friend and did a lot for me. I want you to have this.\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + getitem "BowlerHatBrown", 1; + set @state, 7; + callsub S_Update_Mask; + close; + +L_Thanks: + mes "[Hamond]"; + mes "\"Good to see you, my friend! The inn is running well and I'm getting used to being dead.\""; + close; + +L_Not_Enough_B: + if (countitem("Bone") < @BONE_AMOUNT) + mes "\"I need more Bones than you have with you right now.\""; + if (countitem("Skull") < @SKULL_AMOUNT) + mes "\"Maybe you should come back with more Skulls than you have now. I don't think it is enough.\""; + close; + +L_Not_Enough_Cubes: + mes "[Hamond]"; + mes "\"Yes, they look good! But I think I need more of them. Maybe " + @ICE_CUBE_AMOUNT + "?\""; + close; + +L_Full_Inv: + mes "[Hamond]"; + mes "\"You have a really full backpack, haven't you? Come back when you have some room in there.\""; + close; + +L_Close: + close; + +S_Update_Mask_Kid: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Kid_MASK)) + | (@kidstate << @Graveyard_Inn_Kid_SHIFT); + return; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; +} diff --git a/world/map/npc/027-2/innkeeper.txt b/world/map/npc/027-2/innkeeper.txt new file mode 100644 index 00000000..a8cd3778 --- /dev/null +++ b/world/map/npc/027-2/innkeeper.txt @@ -0,0 +1,438 @@ +// author: Jenalya +// love triangle quest, involved npcs: Reid's Ghost, Hamond, Savaric, Aldred, Golbenez +// state 0: first talk +// state 1: if baselevel >= 85 player can ask about the inn and dead +// state 2: reid knows now she's dead, can be asked about the ring +// state 3: can be asked about ring, player offered help to find out what happened, she wants something to represent her sadness (frozen yeti tears) +// state 4: can be asked about ring, can be asked about her life +// state 5: if crying child quest is completed she tells about savaric, and her rooms on the first floor can be entered now to read her diary +// state 6: tells the player to read her diary +// state 7: set in diary, if player has seen all memories (@golbanez < 5), can tell her about it +// state 8: can bring rubies or diamonds, if hamond and savaric told so, set their state +// state 9: can bring rubies or diamonds, if hamond and savaric told so, set their state +// state 10: she spoke with hamond and savaric, gives reward mylarin dust (needed for a crafting quest in thermin) +// state 11: done, can ask about mylarin dust again + +027-2.gat,104,39,0 script Reid's Ghost 315,{ + + set @Graveyard_Inn_MASK, NIBBLE_0_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + set @Graveyard_Inn_Lover_MASK, NIBBLE_1_MASK; + set @Graveyard_Inn_Lover_SHIFT, NIBBLE_1_SHIFT; + + set @lover, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Lover_MASK) >> @Graveyard_Inn_Lover_SHIFT); + + set @Graveyard_Inn_Kid_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_Kid_SHIFT, NIBBLE_2_SHIFT; + + set @kidstate, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Kid_MASK) >> @Graveyard_Inn_Kid_SHIFT); + + set @Graveyard_Inn_Husband_MASK, NIBBLE_3_MASK; + set @Graveyard_Inn_Husband_SHIFT, NIBBLE_3_SHIFT; + + set @husband, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Husband_MASK) >> @Graveyard_Inn_Husband_SHIFT); + + set @Graveyard_Inn_Golbanez_MASK, NIBBLE_4_MASK; + set @Graveyard_Inn_Golbanez_SHIFT, NIBBLE_4_SHIFT; + + set @golbanez, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Golbanez_MASK) >> @Graveyard_Inn_Golbanez_SHIFT); + + set @YETI_TEAR_AMOUNT, 30; + set @YETI_TEAR_EXP, 100000; + set @DIAMOND_AMOUNT, 20; // caution, this value needs to be the same as in the lovers script! + set @RUBY_AMOUNT, 50; // caution, this value needs to be the same as in the husbands script! + + if (@state >= 11) goto L_Happy; + if (@state == 10) goto L_Thanks; + if ((@state == 8) || (@state == 9)) goto L_Sorry; + if (@state == 7) goto L_Savaric; + if (@state == 6) goto L_Read_Diary; + if (@state == 5) goto L_Check_Kid; + if (@state == 4) goto L_Ask_Life; + if (@state == 3) goto L_Bring_Tears; + if (@state == 2) goto L_Offer_Help2; + if (@state == 1) goto L_After_Welcome; + + mes "You see a dead woman lying on the floor and something that appears to be her ghost floating above her dead body."; + next; + mes "[Ghost]"; + mes "\"He- I - What - Oh -\""; + mes "The womans ghost seems to be confused."; + next; + mes "[Ghost]"; + mes "Oh, I'm sorry. Welcome to Reid's Inn. My name is Reid, I am the innkeeper of this wonderful place of leisure. Please enjoy your visit here!"; + next; + + set @state, 1; + callsub S_Update_Mask; + + goto L_Ask_Dead; + +L_After_Welcome: + mes "[Reid's Ghost]"; + mes "\"Please enjoy yourself!\""; + if (baselevel < 85) goto L_Close; + +L_Ask_Dead: + if (baselevel < 85) goto L_Close; + + menu + "What happened to you?", - , + "Thank you, I'll surely enjoy my visit.", L_Close; + + mes "[Reid's Ghost]"; + mes "\"What happened to me? What do you mean?\""; + menu + "Ahm, you don't look very well - actually, you look dead.",-, + "You don't seem to be in the best condition.",-, + "You are dead!",-; + + mes "Reid looks down at her body and turns even more pale, if this is possible."; + next; + mes "[Reid's Ghost]"; + mes "\"OH?\""; + next; + + menu + "I'm sorry. I didn't know you weren't aware of that.",-, + "Yes - do you understand my question now?",-, + "Shall I help you to find out what happened to you?", L_Offer_Help1; + + mes "[Reid's Ghost]"; + mes "\"I'm dead? But why? And why am I still here?\""; + next; + mes "She stares into space and doesn't seem to notice you anymore."; + set @state, 2; + callsub S_Update_Mask; + close; + +L_Offer_Help2: + mes "Reid's Ghost is still staring into space."; + + if (@kidstate == 5) + menu + "Shall I help you to find out what happened to you?", L_Offer_Help1, + "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "I don't want to bother you.", L_Close; +L_Skip1: + menu + "Shall I help you to find out what happened to you?", -, + "I don't want to bother you.", L_Close; + +L_Offer_Help1: + mes "\"I.. I don't know you. Why should you help me?\""; + next; + mes "\"Bring me proof that you are serious. My life seems to have ended in a terrible and sad way, I can see it very clearly. If you want to help me, please bring me something that represents this immeasurable sadness I am feeling!\""; + + set @state, 3; + callsub S_Update_Mask; + close; + +L_Bring_Tears: + mes "[Reid's Ghost]"; + mes "\"Did you find something that can represent my sadness?\""; + next; + + if ((@kidstate == 5) && countitem("FrozenYetiTear") > 0) + menu + "I found this frozen tear to represent your sadness.", L_Check_Tears, + "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "I'm still searching.", L_Close; + + if (@kidstate == 5) + menu + "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "I'm still searching.", L_Close; + + if (countitem("FrozenYetiTear") > 0) + menu + "I found this frozen tear to represent your sadness.", L_Check_Tears, + "I'm still searching.", L_Close; + + mes "\"You didn't? It seems you're not serious with your offer to help me.\""; + close; + +L_Check_Tears: + if (countitem("FrozenYetiTear") < @YETI_TEAR_AMOUNT) + goto L_Not_Enough_Tears; + delitem "FrozenYetiTear", @YETI_TEAR_AMOUNT; + + getexp @YETI_TEAR_EXP, 0; + + set @state, 4; + callsub S_Update_Mask; + + mes "[Reid's Ghost]"; + mes "\"These tears.. how they shimmer in the candle light. Yes, it seems you are serious about your offer. I think maybe you have the sensibility to help me find out the real meaning behind this terrible feeling.\""; + next; +L_Ask_Life: + mes "[Reid's Ghost]"; + mes "\"But how do you plan to help me?\""; + next; + + if (@kidstate == 5) + menu + "Please tell me about your life. Maybe this will give us a clue about what happened.",L_Skip2, + "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring, + "I need to think about that.", L_Close; +L_Skip2: + menu + "Please tell me about your life. Maybe this will give us a clue about what happened.",-, + "I need to think about that.", L_Close; + + mes "[Reid's Ghost]"; + mes "\"About my life? Well, ok.\""; + next; + mes "\"I'm the owner of this inn. I inherited it from my parents, who ran it while I was a child.\""; + next; + mes "\"My father - he was a very joyful man. But one day, when I was just ten years old, he had an accident while carrying a barrel of beer.\""; + next; + mes "\"The barrel smashed his legs and he wasn't able to walk anymore. He got very despondent about that and started to drink.\""; + next; + mes "\"My mother and I didn't know how to cheer him up, and he wouldn't listen to us. My mother tried her best to keep the inn running and I tried my best to help her, even though I was still a child.\""; + next; + mes "\"But a few years later, my mother lost her will to go on and the inn slowly went down the drain. Everything was dirty and we had less and less patrons.\""; + next; + mes "\"I don't blame my mother. She loved my father so much, she couldn't stand to see what was happening to him. When he died because of his drinking, she totally lost her will to live and just lay in bed and followed him.\""; + next; + mes "Reid seems to be tortured by her memories."; + next; + mes "\"That was a very hard time.\""; + + menu + "Yes, yes, but what about your life shortly before you died?",-, + "I can imagine. I'm very sorry for you",-; + + mes "She doesn't seem to pay much attention to what you say."; + next; + mes "\"But Hamond, my friend since I was a child, helped me in those bad times. We built up the inn again and we - we married.\""; + next; + mes "\"He was so kind and my only light in those dark times. And our little son Aldred gave me back my joy in life.\""; + next; + mes "\"Everything was peaceful and I thought I had found my place. But one day -\""; + next; + + set @state, 5; + callsub S_Update_Mask; + +L_Check_Kid: + + if (@kidstate == 5) + menu + "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring; + + if ((Sex == 1) && (@kidstate < 7)) goto L_Man; + if ((Sex == 0) && (@kidstate < 7)) goto L_Woman; + + mes "\"What I'm going to tell you is very personal, but your acts have shown me that you're a person I can trust. You kindly asked me about that ring you have found... and also, even my son, who is always so reserved with strangers, came to me and spent a long time telling me a lot of nice things about you. So I will tell you about my sad love.\""; + next; + +L_Lovestory: + mes "[Reid's Ghost]"; + mes "\"It began as a completely normal day. We were taking care of our overnight guests and preparing the inn for the evening rush.\""; + next; + mes "\"But that day, a very special patron checked in. His name was Savaric, and he was a student of magic. He came from far away to check some rumors about a legendary mana seed.\""; + next; + mes "Reid's Ghost has a completely enchanted look on her face."; + next; + mes "\"He really made me feel alive - when he was near, I was feeling like I never felt before. I started to search for reasons to be near him - I told myself that I liked him just because he was interesting, coming from so far away and being a mage.\""; + next; + mes "\"But I was lying to myself.\""; + next; + mes "\"I - oh, it is really hard to talk about this. Maybe - yes, I could let you read my diary. I'll give you the key to our rooms.\""; + next; + mes "She pulls a key out of her pocket as transparent as herself. As you try to grab it, your fingers just go through it."; + next; + mes "[Reid's Ghost]"; + mes "\"I keep forgetting! Please take the key out of my pocket.\""; + mes "She is pointing at her dead body with a sad look on her face. You take the key."; + next; + mes "[Reid's Ghost]"; + mes "\"This is the key to our personal room, it is located at the very end of the corridor upstairs. You will find my diary in the bookshelf, hidden behind a book with poems. Hamond doesn't like poems.\""; + next; + mes "\"Please go and read it.\""; + + set @state, 6; + callsub S_Update_Mask; + close; + +L_Read_Diary: + mes "[Reid's Ghost]"; + mes "\"Please go into my room and read the diary. You will find my diary in the bookshelf, hidden behind a book with poems.\""; + close; + +L_Savaric: + mes "[Reid's Ghost]"; + mes "\"Now you know about my recent past and... and my twisted feelings.\""; + next; + menu + "Yes, I feel very sorry for you.",-, + "Savaric seems to be a really hot guy, making you so compliant.",L_Tease; + + mes "[Reid's Ghost]"; + mes "\"Oh, thank you.\""; + if (@golbanez < 5) + menu + "But I still didn't find out what happened. I'll return when I have news.",L_Close; + menu + "But I still didn't find out what happened. I'll return when I have news.",L_Close, + "I found out what happened to you and this place. I'll tell you.",-; + + mes "You explain to her about Golbanez, Savaric and the memories you have seen."; + next; + mes "[Reid's Ghost]"; + mes "\"Oh, I always knew we weren't doing the right thing! But how could we have known it would end like this?\""; + next; + mes "\"I would never have expected Hamond to beat me - and Savaric... I trusted him with my life... And he carelessly wasted it. Mine and everyone else in the inn.\""; + next; + mes "\"I'm feeling hurt. And confused. Both Hamond and Savaric turned out not to be the persons I believed them to be.\""; + set @state, 8; + callsub S_Update_Mask; + close; + +L_Sorry: + mes "[Reid's Ghost]"; + mes "\"Welcome back.\""; + if ((@lover == 4) && (countitem("GemRawWhite") >= @DIAMOND_AMOUNT) && (countitem("GemRawRed") >= @RUBY_AMOUNT) && (@husband == 5)) + menu + "Savaric asked me to give you something.",L_Diamond, + "Hamond sent me to bring you this.",L_Ruby, + "Nevermind.",-; + if (@lover == 4 && (countitem("GemRawWhite") >= @DIAMOND_AMOUNT)) + menu + "Savaric asked me to give you something.",L_Diamond, + "Nevermind.",-; + if (@husband == 5 && (countitem("GemRawRed") >= @RUBY_AMOUNT)) + menu + "Hamond sent me to bring you this.",L_Ruby, + "Nevermind.",-; + close; + +L_Diamond: + if (countitem("GemRawWhite") < @DIAMOND_AMOUNT) goto L_Kidding; + delitem "GemRawWhite", @DIAMOND_AMOUNT; + mes "You explain how Savaric feels and what the diamonds mean."; + next; + mes "[Reid's Ghost]"; + mes "\"Oh Savaric. I just can't be angry at him. Thanks for your help. I'll go to talk with him.\""; + set @lover, 5; + callsub S_Update_Mask_Lover; + set @state, @state + 1; + callsub S_Update_Mask; + close; + +L_Ruby: + if (countitem("GemRawRed") < @RUBY_AMOUNT) goto L_Kidding; + delitem "GemRawRed", @RUBY_AMOUNT; + mes "You tell her about Hamonds feelings."; + next; + mes "[Reid's Ghost]"; + mes "\"I need to talk to him. Thanks for bringing me this.\""; + set @husband, 6; + callsub S_Update_Mask_Husband; + set @state, @state + 1; + callsub S_Update_Mask; + close; + +L_Kidding: + mes "[Reid's Ghost]"; + mes "\"Are you kidding? You don't have the items you are talking about. This is not funny.\""; + +L_Tease: + mes "[Reid's Ghost]"; + mes "\"Don't be mean! I never felt like that before.\""; + close; + +L_Thanks: + mes "[Reid's Ghost]"; + mes "\"I'm so glad, now I know what happened and spoke to both Savaric and Hamond. Thank you so much. Please take this.\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + getitem "MylarinDust", 1; + set @state, 11; + callsub S_Update_Mask; + next; +L_Mylarin: + mes "[Reid's Ghost]"; + mes "\"This is called mylarin dust. My mother gave it to me when my father had his accident. She said it is very valuable.\""; + next; + mes "\"I'm not sure what it is used for, but I remember her saying something about some special crafting tradition which uses it to make really strong armor.\""; + next; + mes "\"Maybe you should try to find someone who can use it.\""; + close; + +L_Happy: + mes "[Reid's Ghost]"; + mes "\"Thank you for all you've done.\""; + menu + "Can you tell me again about the powder you gave me?",L_Mylarin, + "I'm glad I could help.",-; + close; + +L_Not_Enough_Tears: + mes "[Reid's Ghost]"; + set @tears, countitem("FrozenYetiTear"); + if (@tears == 1) + mes "\"This is beautiful! But one of them isn't enough to represent my sadness.\""; + if (@tears > 1) + mes "\"This is beautiful! But " + @tears + " of them aren't enough to represent my sadness.\""; + close; + +L_Man: + mes "[Reid's Ghost]"; + mes "\"What I have to tell is very personal. You're a man - I'm not sure if I want to tell you. I know you helped me already and showed me you are a sensitive man, but I barely know you. I am sorry, but I have to think a little bit more. Maybe later, when I know you better, I can tell you more about it. \""; + close; + +L_Woman: + mes "[Reid's Ghost]"; + mes "\"What I have to tell you is something very personal. You are a woman like me - I'm sure you would understand.\""; + next; + mes "\"But I'm not sure if I want to tell you. I know you helped me already and showed me you are a sensitive woman, but I barely know you. I am sorry, but I have to think a little bit more. Maybe later, when I know you better, I can tell you more about it. \""; + close; + +L_Ring: + mes "[Reid's Ghost]"; + mes "\"Oh, this - I - it's mine. It was a present from a very precious person.\""; + next; + mes "She reaches out to take the ring, but it just go through her fingers. She looks sad."; + next; + mes "\"Ah, I forgot again. It pains me not being able to wear it. Please, take it with you, I don't want it anymore. It hurts too much.\""; + set @kidstate, 6; + callsub S_Update_Mask_Kid; + close; + +L_Full_Inv: + mes "[Reid's Ghost]"; + mes "\"Dear, you're carrying so much stuff, you can't take my present. Come back later to take it.\""; + close; + +L_Close: + close; + +S_Update_Mask_Kid: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Kid_MASK)) + | (@kidstate << @Graveyard_Inn_Kid_SHIFT); + return; + +S_Update_Mask_Husband: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Husband_MASK)) + | (@husband << @Graveyard_Inn_Husband_SHIFT); + return; + +S_Update_Mask_Lover: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Lover_MASK)) + | (@lover << @Graveyard_Inn_Lover_SHIFT); + return; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; +} diff --git a/world/map/npc/027-2/lover.txt b/world/map/npc/027-2/lover.txt new file mode 100644 index 00000000..70fe1dc8 --- /dev/null +++ b/world/map/npc/027-2/lover.txt @@ -0,0 +1,285 @@ +// author: Jenalya +// love triangle quest, involved npcs: Reid's Ghost, Hamond, Savaric, Aldred, Golbenez +// state 0: if baselevel >= 85, tells he want dark crystals +// state 1: needs @CRYSTAL_AMOUNT dark crystals to go on, tells the player to search the inn for source of magic (Golbenez) +// state 2: if the player has talked to Golbenez, he tells you to negotiate with him to find out what happened +// state 3: when player has seen all memories (@golbanez < 5), telling Savaric what happened. he asks the player to bring reid @DIAMOND_AMOUNT diamonds +// state 4: waiting for reid +// state 5: is set in reid, he thanks for help and asks to negotiate with golbanez for his soul +// state 6: waiting for youl, if @golbanez >= 7 got it, giving sorcerer robe +// state 7: done + +027-2.gat,43,73,0 script Savaric 317,{ + + set @Graveyard_Inn_MASK, NIBBLE_1_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_1_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + set @Graveyard_Inn_Woman_MASK, NIBBLE_0_MASK; + set @Graveyard_Inn_Woman_SHIFT, NIBBLE_0_SHIFT; + + set @woman, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Woman_MASK) >> @Graveyard_Inn_Woman_SHIFT); + + set @Graveyard_Inn_Golbenez_MASK, NIBBLE_4_MASK; + set @Graveyard_Inn_Golbenez_SHIFT, NIBBLE_4_SHIFT; + + set @golbanez, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Golbenez_MASK) >> @Graveyard_Inn_Golbenez_SHIFT); + + set @CRYSTAL_AMOUNT, 500; + set @CRYSTAL_EXP, 200000; + set @CRYSTAL_EXTRA_EXP, 100; + set @CRYSTAL_MAX, 2000; + set @DIAMOND_AMOUNT, 20; // caution, this value needs to be the same as in the innkeepers script! + + if (@state >= 7) goto L_Have_Soul; + if (@state == 6) goto L_Want_Soul; + if (@state == 5) goto L_Apologize; + if (@state == 4) goto L_Waiting; + if (@state == 3) goto L_Golb; + if (@state == 2) goto L_News; + if (@state == 1) goto L_Crystals; + + mes "You see a dead man hanging. This place is creepy!"; + next; + if (baselevel < 85) goto L_Close; + mes "Suddenly the man opens his eyes and looks at you."; + next; + mes "[Hanged Man]"; + mes "\"Oh, hello. Nice to see you - I seem to be dead, but I don't know why and why I'm still consciousness. This is very interesting.\""; + menu + "INTERESTING? Are you crazy?",-; + mes "[Hanged Man]"; + mes "\"Well, as you mention it, it is quite annoying and uncomfortable. Would you mind helping me down to the floor?\""; + next; + mes "You take a step towards him, but some invisible force holds you back."; + next; + mes "[Hanged Man]"; + mes "\"Oh, someone is holding you back with magic! I sense a really dark and mighty power. What has happened!?\""; + next; + mes "\"Can I ask you for a favor? Can you bring me lots of Dark Crystals? You might need to ask a dark mage for it. I want to try to break the barrier.\""; + next; + mes "\"I'll need... well, at least " + @CRYSTAL_AMOUNT + ". But if you have more, I can use extras!\""; + set @state, 1; + callsub S_Update_Mask; + close; + +L_Crystals: + mes "[Hanged Man]"; + mes "\"Ah, you're back! Did you get the Dark Crystals?\""; + + if (countitem("DarkCrystal") == 0) + menu + "Not yet.", L_Close; + + if (countitem("DarkCrystal") < @CRYSTAL_AMOUNT) + goto L_Not_Enough_Crystals; + + delitem "DarkCrystal", @CRYSTAL_AMOUNT; + getexp @CRYSTAL_EXP, 0; + next; + mes "\"Oh, I can feel them! Please lay them down on the floor.\""; + next; + mes "You lay "+ @CRYSTAL_AMOUNT + " dark crystals down on the floor and step back, nervously expecting the coming."; + next; + if (countitem("DarkCrystal") == 0) goto L_Skip; + mes "[Hanged Man]"; + mes "\"You have more of them, haven't you? It will work better if you give them to me too.\""; + menu + "Ok, here you go.",-, + "I prefer to keep them.",L_Skip; + set @crystal, countitem("DarkCrystal"); + if (@crystal > @CRYSTAL_MAX) + set @crystal, @CRYSTAL_MAX; + delitem "DarkCrystal", @crystal; + getexp @crystal*@CRYSTAL_EXTRA_EXP, 0; +L_Skip: + mes "[Hanged Man]"; + mes "\"Well, let's start now.\""; + next; + mes "The hanged man seems very concentrated now, which looks absurd with him hanging there."; + next; + mes "The dark crystals start to glow and buzz. You take another step back."; + next; + mes "The buzzing gets louder and louder, so you can't hear a word the hanged man is saying now."; + next; + set hp, 5; + mes "The crystals explode and hit you!"; + next; + mes "You fall down on the floor and blink frantically to regain your eyesight."; + next; + mes "[Hanged Man]"; + mes "\"Hello? You're ok? I'm sorry, something went wrong. It seems, not only is there a magical barrier, but also my manaflow is blocked. I don't know if this is because I'm dead or part of the barrier spell.\""; + next; + mes "\"I never was dead before, so I can't be sure. But I was able to access my magic - it just got out of control at the critical moment.\""; + next; + mes "\"This is fascinating!\""; + menu + "Ok, you are crazy!",-, + "Yes, it is very fascinating to be blown up!",-, + "I NEARLY DIED! AND YOU THINK THIS IS FASCINATING?!",-; + mes "[Hanged Man]"; + mes "\"I sometimes forget the fact that not everybody is fascinated by the riddles of magic. Please forgive me.\""; + next; + mes "\"And I even didn't introduce myself! I am very sorry for my rude behavior!\""; + next; + mes "\"My name is Savaric, first apprentice of the Great Demon Summoner Ymbert.\""; + next; + mes "\"If you can forgive me my behaviour, may I ask you for another favor? Can you please search for someone or something in this inn that could be the source of this dark magic?\""; + set @state, 2; + callsub S_Update_Mask; + close; + +L_News: + mes "[Savaric]"; + mes "\"Welcome back. Did you find a possible source for the dark magic?\""; + if ((@woman < 6) && (@golbanez == 0)) + menu + "Not yet, I'm still searching.",L_Close; + + if ((@woman < 6) && (@golbanez > 0)) + menu + "Yes, let me tell you.",L_Golbenez, + "I don't think so.",L_Close; + + if ((@woman >= 6) && (@golbanez == 0)) + menu + "Can you tell me about your relationship to Reid?",L_Reid, + "Not yet, I'm still searching.",L_Close; + + if ((@woman >= 6) && (@golbanez >= 0)) + menu + "Can you tell me about your relationship to Reid?",L_Reid, + "Yes, let me tell you.",L_Golbenez, + "I don't think so.",L_Close; + +L_Golbenez: + mes "You explain how you came to the inn and what Golbenez said to you."; + next; + mes "[Savaric]"; + mes "\"This... this is very disturbing news. Playground he said? Mh.. \""; + next; + mes "\"Savaric seems to be completely absorbed in his thoughts.\""; + menu + "Hello? Are you still there?",-, + "Excuse me, I don't want to interrupt you, but can you explain to me what's going on? I'm confused",-, + "Hey! I'm talking with you!",-; + mes "Savaric winces."; + next; + mes "\"Oh, right - I was just thinking. It makes me feel uncomfortable to hear about Golbenez being involved in this.\""; + next; + mes "\"I told you I'm the apprentice of a demon summoner, remember? Well, this includes learning about the astral beings in this world.\""; + next; + mes "\"And Golbenez - he is a very powerful being, a Demi-God, with a very questionable sense of humor. He was worshipped by a group of cultists some hundred years ago - uhm, some hundred years ago from my lifetime, I mean.\""; + next; + mes "\"But most of his adherents died when he thought it would be funny to test their loyality by sending them on a journey over the sea to a paradise island he promised them - of course, there was no such island.\""; + next; + mes "\"Maybe now you understand what I mean about a questionable sense of humor.\""; + next; + mes "\"But on the other hand, he can grant great power to those who are capable of dealing with him and who offer him enough for his service. Trying to do that would be a risky undertaking in any case.\""; + next; + mes "\"He told you this inn was one of his favorite playgrounds - so it seems he was playing one of his evil games with the people in this inn. And now, he resurrected our memories to this parody of life!\""; + next; + mes "\"" + strcharinfo(0) + "! I need your help again! Please return to Golbenez and try to get out of him what was happening here. But be careful when negotiating.. he will demand a service in return.\""; + set @state, 3; + callsub S_Update_Mask; + close; + +L_Golb: + mes "[Savaric]"; + mes "\"Good to see you back my friend. What did you find out?\""; + if (@golbanez < 5) + menu + "I'm still working on doing all the stuff Golbanez wants me to do.",L_Close; + menu + "Now I know what happened. I'll tell you.",-, + "I'm sorry to tell you, but this was all your fault.",-; + + mes "You tell Savaric about what Golbenez showed to you."; + next; + mes "[Savaric]"; + mes "\"I.. I can't believe.. My master told me, I need to be careful because of my temper - but I never thought it would lead me to make such a terrible mistake. Oh, Reid - and all the people in the inn! What have I done?!\""; + next; + mes "He seems pained by his guilt."; + next; + mes "[Savaric]"; + mes "\"" + strcharinfo(0) + ", please, can you go to Reid and tell her about what I've done? And then ask her if she will ever be able to forgive me?\""; + next; + mes "\"But wait. It is not enough just to ask for forgiveness. Please, can you bring her " + @DIAMOND_AMOUNT + " Diamonds? They symbolize my pure feelings for her.\""; + set @state, 4; + callsub S_Update_Mask; + close; + +L_Waiting: + mes "[Savaric]"; + mes "\"Have you already brought the Diamonds to Reid?\""; + close; + +L_Apologize: + mes "[Savaric]"; + mes "\"Oh thank you! I thank you so much! Reid came here to talk to me.\""; + next; + mes "\"She forgave me! I'm so happy!\""; + next; + mes "\"You did so much for me, can I ask you for one last favor?\""; + next; + mes "\"Golbenez took my soul and I want it back. You were very clever with how you negotiated with him so far. Could you get my soul back for me?\""; + set @state, 6; + callsub S_Update_Mask; + close; + +L_Want_Soul: + if (@golbanez >= 7) goto L_Soul; + mes "[Savaric]"; + mes "\"Welcome back! Are you still working on getting my soul back?\""; + menu + "I'm doing my best.",-, + "Yes, but it isn't easy.",-; + + mes "[Savaric]"; + mes "\"Thank you so much! I'm counting on you!\""; + close; + +L_Soul: + mes "[Savaric]"; + mes "\"My soul came back! Oh thank you!\""; + next; + mes "\"Please take this as a symbol of my gratitude.\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + getitem "SorcererRobeRed", 1; + set @state, 7; + callsub S_Update_Mask; + mes "\"This is what mages and their apprentices wore when I lived. It is white because I wasn't a master yet.\""; + next; + mes "\"But I guess the old traditions have changed since then.\""; + close; + +L_Have_Soul: + mes "[Savaric]"; + mes "\"I'll be in your debt forever. Thank you so much.\""; + close; + +L_Reid: + mes "[Savaric]"; + mes "\"Relationship? Well, she is the innkeeper of this inn and I'm a patron. There is nothing more to say about this.\""; + close; + +L_Not_Enough_Crystals: + mes "It seems you managed to get some, but not enough. Can you bring me more?"; + close; + +L_Full_Inv: + mes "[Savaric]"; + mes "\"Oh, you can't carry anything more. Come back when you can take it.\""; + close; + +L_Close: + close; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; +} diff --git a/world/map/npc/027-2/testnpcs.txt b/world/map/npc/027-2/testnpcs.txt new file mode 100644 index 00000000..57dc1f7b --- /dev/null +++ b/world/map/npc/027-2/testnpcs.txt @@ -0,0 +1,145 @@ +027-2.gat,80,34,0 script Lovers 303,{ + mes "You see a man and a woman holding each other very tight."; + next; + mes "They are kissing and whispering things to each other you can't hear."; + next; + mes "Now the woman giggles. They don't notice you."; + next; + mes "Maybe it's better not to bother them."; + close; +} + +//027-2.gat,110,30,0 script Debug 305,{ + set @Graveyard_Inn_Woman_MASK, NIBBLE_0_MASK; + set @Graveyard_Inn_Woman_SHIFT, NIBBLE_0_SHIFT; + + set @woman, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Woman_MASK) >> @Graveyard_Inn_Woman_SHIFT); + + set @Graveyard_Inn_Lover_MASK, NIBBLE_1_MASK; + set @Graveyard_Inn_Lover_SHIFT, NIBBLE_1_SHIFT; + + set @Lover, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Lover_MASK) >> @Graveyard_Inn_Lover_SHIFT); + + set @Graveyard_Inn_Child_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_Child_SHIFT, NIBBLE_2_SHIFT; + + set @Child, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Child_MASK) >> @Graveyard_Inn_Child_SHIFT); + + set @Graveyard_Inn_Husband_MASK, NIBBLE_3_MASK; + set @Graveyard_Inn_Husband_SHIFT, NIBBLE_3_SHIFT; + + set @Husband, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Husband_MASK) >> @Graveyard_Inn_Husband_SHIFT); + + set @Graveyard_Inn_Golb_MASK, NIBBLE_4_MASK; + set @Graveyard_Inn_Golb_SHIFT, NIBBLE_4_SHIFT; + + set @Golb, ((QUEST_Graveyard_Inn & @Graveyard_Inn_Golb_MASK) >> @Graveyard_Inn_Golb_SHIFT); + + mes "debug for the lovetriangle quest"; + menu + "reset all",-, + "reset reid " + @woman,L_Reid, + "reset lover " + @Lover,L_Lover, + "reset child " + @Child,L_Child, + "reset husband " + @Husband,L_Husband, + "reset golbanez " + @Golb,L_Golb, + "leave", L_Close; + +set QUEST_Graveyard_Inn, 0; +close; +L_Reid: + set @woman, 0; + callsub S_Update_Mask_Woman; + close; +L_Lover: + set @Lover, 0; + callsub S_Update_Mask_Lover; + close; +L_Child: + set @Child, 0; + callsub S_Update_Mask_Child; + close; +L_Husband: + set @Husband, 0; + callsub S_Update_Mask_Husband; + close; +L_Golb: + set @Golb, 0; + callsub S_Update_Mask_Golb; + close; +L_Close: + close; + +S_Update_Mask_Golb: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Golb_MASK)) + | (@Golb << @Graveyard_Inn_Golb_SHIFT); + return; + +S_Update_Mask_Husband: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Husband_MASK)) + | (@Husband << @Graveyard_Inn_Husband_SHIFT); + return; + +S_Update_Mask_Child: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Child_MASK)) + | (@Child << @Graveyard_Inn_Child_SHIFT); + return; + +S_Update_Mask_Lover: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Lover_MASK)) + | (@Lover << @Graveyard_Inn_Lover_SHIFT); + return; + +S_Update_Mask_Woman: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Woman_MASK)) + | (@woman << @Graveyard_Inn_Woman_SHIFT); + return; +} + +027-2.gat,75,29,0 script Archibald 306,{ +// the broken grammar is intentional + mes "[Archibald]"; + mes "\"Me need to prepare the food. Me helping the chef cook.\""; + next; + mes "\"Person doesn't disturb me when me is making the food\""; + close; +} + +027-2.gat,77,40,0 script Darnel 308,{ + set @drunker, rand(4); + if (@drunker == 0) goto L_0; + if (@drunker == 1) goto L_1; + if (@drunker == 2) goto L_2; + if (@drunker == 3) goto L_3; + end; +L_0: + mes "[Darnel]"; + mes "\"zzzZZZzzz...\""; + close; +L_1: + mes "[Darnel]"; + mes "\"Ish that a Zzombee?...\""; + close; +L_2: + mes "[Darnel]"; + mes "\"Auuu... Hiccup... Don't byte mee... \""; + close; +L_3: + mes "[Darnel]"; + mes "\"Moar Bearr...Pleash!\""; + close; +} + +027-2.gat,110,23,0 script Nigel 312,{ + mes "[Nigel]"; + mes "\"Ohh... My head is killing me! I have to stop " + + "drinking too much or I will lose my job... But " + + "being a waiter... oh I can't resist a drink or two!\""; + close; +} + diff --git a/world/map/npc/027-2/werewolf.txt b/world/map/npc/027-2/werewolf.txt new file mode 100644 index 00000000..87d93173 --- /dev/null +++ b/world/map/npc/027-2/werewolf.txt @@ -0,0 +1,158 @@ +027-2.gat,118,23,0 script Wolfgang 305,{ + set @Graveyard_Inn_MASK, NIBBLE_5_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_5_SHIFT; + + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + + set @ANIMALBONES_AMOUNT, 30; + set @ANIMALBONES_EXP, 40000; + set @money, 1000; + + if (@state > 1) goto L_Happy; + if (@state == 1) goto L_Bones; + + mes "[Wolfgang]"; + mes "\"What a nice place here, isn't it?\""; + next; + mes "\"Just the stuff they call 'food' in here is awful, bah.\""; + if (baselevel < 80) goto L_Close; + next; + mes "\"I like bones from big animals, the best would be with some raw flesh on it. But just the bones are fine too.\""; + next; + mes "\"Can you bring me " + @ANIMALBONES_AMOUNT + " of them?\""; + set @state, 1; + callsub S_Update_Mask; + close; + +L_Bones: + mes "[Wolfgang]"; + mes "\"Do you have " + @ANIMALBONES_AMOUNT + " bones of an animal for me?\""; + next; + if ((countitem("Bone") > 0) && (countitem("AnimalBones") >= @ANIMALBONES_AMOUNT)) + menu + "Yes, here they are.",L_Bring, + "What about this normal bone?",L_Human, + "Not yet.",L_Close; + if (countitem("Bone") > 0) + menu + "What about this normal bone?",L_Human, + "Not yet.",L_Close; + if (countitem("AnimalBones") >= @ANIMALBONES_AMOUNT) + menu + "Yes, here they are.",L_Bring, + "Not yet.",L_Close; + menu + "Not yet.",-; + close; + +L_Bring: + if (countitem("AnimalBones") < @ANIMALBONES_AMOUNT) + goto L_Not_Enough; + delitem "AnimalBones", @ANIMALBONES_AMOUNT; + getexp @ANIMALBONES_EXP, 0; + mes "[Wolfgang]"; + mes "\"Ah! Wonderful! Thank you.\""; + set @state, 2; + callsub S_Update_Mask; + close; + +L_Human: + mes "[Wolfgang]"; + mes "\"What?! That's a humans bone! I don't eat humans. That brings only trouble.\""; + next; + mes "\"Besides, from that I heard, they taste bad.\""; + close; + +L_Not_Enough: + mes "[Wolfgang]"; + mes "\"Are you trying to kid me? I can count.\""; + close; + +L_Happy: + mes "You see the werewolf happily crunching the bones you brought him."; + mes "[Wolfgang]"; + mes "\"Delicious. Thanks again.\""; + next; + mes "\"By the way... would you be interested in a little round of blackjack?\""; + mes "He pulls a deck of cards out of his pocket."; + next; + mes "[Wolfgang]"; + mes "\"You will need " + @money + " GP.\""; + menu + "Sure, why not?",L_Game, + "No, thanks.",-; + close; + +//The game mechanics is copied from casino.txt +L_Game: + if(zeny < @money) goto L_No_Money; + mes "[Wolfgang]"; + mes "\"Very nice. Let's start.\""; + mes "He shuffles the cards."; + next; + set zeny, zeny - @money; + set @croupier, rand(0, 4); + set @croupier, @croupier + 17; + set @player, rand(4, 21); + mes "\"You got " + @player + " with your cards."; + if(@player == 21) goto L_End; + mes "Do you want another card?\""; + next; + + menu + "Yes.", L_Another, + "No.", L_End; + +L_Another: + set @tempace, rand(2, 11); + if (@tempace == 11) goto L_Ace; + set @player, @player + @tempace; + if (@player > 21) goto L_Lost; + if (@player == 21) goto L_End; + mes "\"You got " + @player + " with your cards."; + mes "Do you want another card?\""; + next; + + menu + "Yes", L_Another, + "No", L_End; +L_End: + if (@player <= @croupier) goto L_Lost; + mes "\"You won! Hrm, here is your money.\""; + set zeny, zeny + (3 * @money); + close; + +L_No_Money: + mes "\"You need at least " + @money + " GP.\""; + close; + +L_Lost: + mes "[Wolfgang]"; + mes "\"Fine! I won!"; + mes "You got " + @player + " with your cards."; + mes "I had " + @croupier + ".\""; + close; + +L_Ace: + set @player, @player + 11; + if (@player > 21) set @player, @player - 10; + if (@player > 21) goto L_Lost; + if (@player == 21) goto L_End; + mes "You got " + @player + " with your cards."; + mes "Do you want another card?"; + next; + + menu + "Yes", L_Another, + "No", L_End; + close; + +L_Close: + close; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; +} diff --git a/world/map/npc/027-3/_import.txt b/world/map/npc/027-3/_import.txt new file mode 100644 index 00000000..96b4da1a --- /dev/null +++ b/world/map/npc/027-3/_import.txt @@ -0,0 +1,8 @@ +// Map 027-3: Crypt +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 027-3.gat +npc: npc/027-3/_mobs.txt +npc: npc/027-3/_warps.txt +npc: npc/027-3/caskets.txt +npc: npc/027-3/entrance.txt +npc: npc/027-3/mapflags.txt diff --git a/world/map/npc/027-3/_mobs.txt b/world/map/npc/027-3/_mobs.txt new file mode 100644 index 00000000..11df5c67 --- /dev/null +++ b/world/map/npc/027-3/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Crypt mobs + + + +027-3.gat,0,0,0 script Mob027-3 -1,{ + end; +} diff --git a/world/map/npc/027-3/_warps.txt b/world/map/npc/027-3/_warps.txt new file mode 100644 index 00000000..50380b5d --- /dev/null +++ b/world/map/npc/027-3/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Crypt warps + +027-3.gat,127,44 warp toCryptLevel2 1,-1,027-4.gat,37,21 diff --git a/world/map/npc/027-3/caskets.txt b/world/map/npc/027-3/caskets.txt new file mode 100644 index 00000000..2a3bf043 --- /dev/null +++ b/world/map/npc/027-3/caskets.txt @@ -0,0 +1,7 @@ +// Casket monster traps and key puzzle. +027-3.gat,40,35,0 script #casket1 127,1,1{ + heal 3,0; + specialeffect 301; + specialeffect 302; + end; +}
\ No newline at end of file diff --git a/world/map/npc/027-3/entrance.txt b/world/map/npc/027-3/entrance.txt new file mode 100644 index 00000000..62bd93d7 --- /dev/null +++ b/world/map/npc/027-3/entrance.txt @@ -0,0 +1,41 @@ +// Effects for opening and closing the gate. Also set it so no new player can't be warped in once the gate is opened. + +027-3.gat,40,57,0 script #gatecontrol 127,2,1{ + mes "Once you pass this point I cannot warp anyone else to help. " + + "Are you sure you are ready to go?"; + menu + "Let's go",L_BEGIN, + "No thank you",-; + warp "027-3.gat",40,60; + close; + +L_BEGIN: + disablenpc "#closedgate"; + initnpctimer; + specialeffect 300; + // add stop alacrius warp flag to temp globals + close; + +OnTimer2000: + enablenpc "#opengate"; + disablenpc "#gatecontrol"; + end; +} + +027-3.gat,40,59,0 script #closedgate 322,{ + end; +} +027-3.gat,40,59,0 script #opengate 323,{ + end; +} + + +// Effects for the exit. + +027-3.gat,40,78,0 script #cryptexit2 127,3,3{ + mes "Unfortunately, once I bring you to this time pocket" + + "you cannot leave through its normal exit." + + "The only way to get out is to defeat the reaper" + + "or die..."; + close; +} diff --git a/world/map/npc/027-3/mapflags.txt b/world/map/npc/027-3/mapflags.txt new file mode 100644 index 00000000..5f9c091d --- /dev/null +++ b/world/map/npc/027-3/mapflags.txt @@ -0,0 +1 @@ +027-3.gat mapflag nosave 027-2,107,31; diff --git a/world/map/npc/027-4/_import.txt b/world/map/npc/027-4/_import.txt new file mode 100644 index 00000000..d5638404 --- /dev/null +++ b/world/map/npc/027-4/_import.txt @@ -0,0 +1,7 @@ +// Map 027-4: Inner Chamber +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 027-4.gat +npc: npc/027-4/_mobs.txt +npc: npc/027-4/_warps.txt +npc: npc/027-4/mapflags.txt +npc: npc/027-4/reaper_script.txt diff --git a/world/map/npc/027-4/_mobs.txt b/world/map/npc/027-4/_mobs.txt new file mode 100644 index 00000000..26dbe342 --- /dev/null +++ b/world/map/npc/027-4/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Inner Chamber mobs + + + +027-4.gat,0,0,0 script Mob027-4 -1,{ + end; +} diff --git a/world/map/npc/027-4/_warps.txt b/world/map/npc/027-4/_warps.txt new file mode 100644 index 00000000..4611509a --- /dev/null +++ b/world/map/npc/027-4/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Inner Chamber warps + +027-4.gat,37,19 warp toCryptLevel1 1,-1,027-3.gat,127,42 diff --git a/world/map/npc/027-4/mapflags.txt b/world/map/npc/027-4/mapflags.txt new file mode 100644 index 00000000..1784cd64 --- /dev/null +++ b/world/map/npc/027-4/mapflags.txt @@ -0,0 +1 @@ +027-4.gat mapflag nosave 027-2,107,31; diff --git a/world/map/npc/027-4/reaper_script.txt b/world/map/npc/027-4/reaper_script.txt new file mode 100644 index 00000000..2f218f0d --- /dev/null +++ b/world/map/npc/027-4/reaper_script.txt @@ -0,0 +1,15 @@ +// The scripts associated with the reaper mob summoned by Alacrius in the 027-2 + +027-4.gat,0,0,0 script Reaper -1,{ +OnDead: + mes "you won!"; + mapwarp "027-4.gat", "027-2.gat",104,41; + close; + +OnPCDieEvent: + // summon a zombie and give a message and sfx + end; +OnAvenged: + // tell players your fallen comrad has been avenged + end; +}
\ No newline at end of file diff --git a/world/map/npc/028-1/Portal.txt b/world/map/npc/028-1/Portal.txt new file mode 100644 index 00000000..ff7cea7f --- /dev/null +++ b/world/map/npc/028-1/Portal.txt @@ -0,0 +1,131 @@ +028-1.gat,63,68,0 script Portal#_M 127,{ + +if (isin("028-1.gat",59,64,67,70)) goto L_Main; + +mes "There is something there, but you aren't quite close enough to see exactly what it is."; +close; + +L_Main: + +mes "[Portal]"; +mes ""; +mes "A strange field hovers about waist high above the ground."; +next; +mes "[Portal]"; +mes ""; +mes "You sense a feeling of familiarity radiating out from it."; +mes ""; +mes "It looks just wide enough to jump through."; +next; +mes "[Portal]"; +mes ""; +mes "You're not quite sure if there will be a way to return once you enter, though."; +next; +mes "[Portal]"; +mes ""; +mes "What do you do?"; +menu "Jump through, without looking back.", L_No_Hesitation, + "Take one more look around.", L_Look, + "Leave it alone.", -; + +close; + +L_No_Hesitation: +mes "There has been quite enough of this harsh place. You jump through without hesitation..."; +next; +mes "...and fall, and fall..."; +next; +mes "Dizzying colors whirl around you. You collapse."; +savepoint "009-1", 52, 39; +itemheal -hp -1, 0; +close; + +L_Look: +mes "[Portal]"; +mes ""; +mes "There was a lot here. You don't know where it came from, or quite how you ended up here."; +if ((Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) goto L_Full_Helped; +if ((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK) goto L_Somewhat_Helped; +if ((Easter_2010_QuestState >> E10_FLAG_KNOWS_DOCTOR_SHIFT) & E10_FLAG_KNOWS_DOCTOR) goto L_Met; + +if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK) goto L_Unknown_Defeat; + +mes "Come to think of it, there is still quite a lot you're not sure about. There was talk about something big, but you must have missed it... whatever it was, it seems gone now."; +goto L_Post_Look; + + +L_Full_Helped: +if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK) goto L_Full_Helped_Defeat; +mes "Your assistance was helpful, you know that much. If only you could have faced the darkness that plagued this world more directly..."; +goto L_Post_Look; + +L_Full_Helped_Defeat: +mes "You know you have done everything that you could have. Your determination will have surely meant the world will be restored, once more."; +goto L_Post_Look; + +L_Somewhat_Helped: +if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK) goto L_Somewhat_Helped_Defeat; +mes "You feel your help was not for nothing, though you can't quite shake the feeling there was still something more to do."; +goto L_Post_Look; + +L_Somewhat_Helped_Defeat: +mes "Your help was not for nothing. Your destruction of evil would surely help heal this world!"; +goto L_Post_Look; + +L_Met: +if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK) goto L_Met_Defeat; +mes "While you only met the Doctor briefly, he seemed to think there was something wrong. If only there was a way you could have helped, somehow."; +goto L_Post_Look; + +L_Met_Defeat: +mes "Striking down that evil, dark, figure would surely make a difference. While you only met the Doctor briefly, he seemed to think there was something wrong... with any luck, this defeat would be, at the very least, a significant setback."; +goto L_Post_Look; + +L_Unknown_Defeat: +mes "Striking down that evil, dark, figure would surely make a difference. You just wish you knew what that was about... if only there had been someone that could have explained it all."; +goto L_Post_Look; + +L_Post_Look: +next; +mes "What do you do?"; +menu "Jump through", L_Jump, + "Leave it alone", -; + +close; + +L_Jump: +mes "[Portal]"; +mes ""; +mes "A tingling sensation surrounds you as you enter."; +next; +mes "[Portal]"; +mes ""; +mes "Inside, your senses seem heightened, sharpened..."; +next; +mes "[Portal]"; +mes ""; +mes "You can detect many entities all around you, yet you are not quite sure how."; +next; +mes "[Portal]"; +mes ""; +mes "Colors swirl around you. There is a sensation of great speed, of great power, of energy..."; +next; +mes "[Portal]"; +mes ""; +mes "A tearing motion. The blobs of color skew, and stretch into long thin lines... and somehow, a taste of peanuts."; +next; +mes "[Portal]"; +mes ""; +mes "A mass of green and yellow, moving at high speed... or perhaps it is you who is moving?"; +next; +mes "[Portal]"; +mes ""; +mes "Whichever it is, one of you slows just as you begin to recognise some details..."; +warp "009-1.gat", 52, 39; +savepoint "009-1", 52, 39; +mes "[Home]"; +mes ""; +mes "You land softly. It is good to be home..."; +close; + +} diff --git a/world/map/npc/028-1/_import.txt b/world/map/npc/028-1/_import.txt new file mode 100644 index 00000000..1cfec48c --- /dev/null +++ b/world/map/npc/028-1/_import.txt @@ -0,0 +1,6 @@ +// Map 028-1: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 028-1.gat +npc: npc/028-1/Portal.txt +npc: npc/028-1/_mobs.txt +npc: npc/028-1/_warps.txt diff --git a/world/map/npc/028-1/_mobs.txt b/world/map/npc/028-1/_mobs.txt new file mode 100644 index 00000000..a71093ad --- /dev/null +++ b/world/map/npc/028-1/_mobs.txt @@ -0,0 +1,60 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + +028-1.gat,115,72,27,25 monster SpikyMushrooms 1019,18,20000,600,Mob028-1::On1019 +028-1.gat,83,69,25,19 monster Bat 1017,18,100000,1200,Mob028-1::On1017 +028-1.gat,93,33,48,32 monster Wisp 1040,8,200000,15000,Mob028-1::On1040 +028-1.gat,93,33,46,34 monster Spectre 1042,8,200000,15000,Mob028-1::On1042 +028-1.gat,93,33,44,36 monster Poltergeist 1047,8,200000,15000,Mob028-1::On1047 +028-1.gat,35,64,38,9 monster Sea Slime 1033,18,100000,1200,Mob028-1::On1033 +028-1.gat,45,75,22,10 monster Sea Slime 1033,18,100000,1200,Mob028-1::On1033 +028-1.gat,23,101,1,1 monster Squirrel 1038,1,300000,50000,Mob028-1::On1038 +028-1.gat,68,95,71,18 monster Wisp 1040,8,200000,15000,Mob028-1::On1040 +028-1.gat,76,100,93,16 monster Spectre 1042,8,200000,15000,Mob028-1::On1042 +028-1.gat,104,114,61,14 monster Poltergeist 1047,8,200000,15000,Mob028-1::On1047 +028-1.gat,54,42,1,1 monster Fallen 1045,1,700000,300000,Mob028-1::On1045 + + +028-1.gat,0,0,0 script Mob028-1 -1,{ +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + +On1040: + set @mobID, 1040; + callfunc "MobPoints"; + break; + +On1042: + set @mobID, 1042; + callfunc "MobPoints"; + break; + +On1045: + set @mobID, 1045; + callfunc "MobPoints"; + break; + +On1047: + set @mobID, 1047; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/028-1/_warps.txt b/world/map/npc/028-1/_warps.txt new file mode 100644 index 00000000..1d7ccba9 --- /dev/null +++ b/world/map/npc/028-1/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +028-1.gat,114,122 warp To028-3 -1,-1,028-3.gat,33,78 diff --git a/world/map/npc/028-3/_import.txt b/world/map/npc/028-3/_import.txt new file mode 100644 index 00000000..bb8dd79e --- /dev/null +++ b/world/map/npc/028-3/_import.txt @@ -0,0 +1,5 @@ +// Map 028-3: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 028-3.gat +npc: npc/028-3/_mobs.txt +npc: npc/028-3/_warps.txt diff --git a/world/map/npc/028-3/_mobs.txt b/world/map/npc/028-3/_mobs.txt new file mode 100644 index 00000000..a5dec284 --- /dev/null +++ b/world/map/npc/028-3/_mobs.txt @@ -0,0 +1,27 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + +028-3.gat,51,49,22,15 monster Silkworm 1035,10,0,3000,Mob028-3::On1035 +028-3.gat,43,35,1,1 monster EvilMushroom 1013,3,40000,5000,Mob028-3::On1013 +028-3.gat,27,31,1,1 monster EvilMushroom 1013,3,40000,5000,Mob028-3::On1013 +028-3.gat,50,49,61,60 monster Bat 1017,10,60000,10000,Mob028-3::On1017 + + +028-3.gat,0,0,0 script Mob028-3 -1,{ +On1013: + set @mobID, 1013; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1035: + set @mobID, 1035; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/028-3/_warps.txt b/world/map/npc/028-3/_warps.txt new file mode 100644 index 00000000..62972083 --- /dev/null +++ b/world/map/npc/028-3/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +028-3.gat,33,78 warp To028-1 -1,-1,028-1.gat,114,122 diff --git a/world/map/npc/029-1/_import.txt b/world/map/npc/029-1/_import.txt new file mode 100644 index 00000000..5c1410b0 --- /dev/null +++ b/world/map/npc/029-1/_import.txt @@ -0,0 +1,7 @@ +// Map 029-1: Candor +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 029-1.gat +npc: npc/029-1/_mobs.txt +npc: npc/029-1/_warps.txt +npc: npc/029-1/barrier.txt +npc: npc/029-1/dock.txt diff --git a/world/map/npc/029-1/_mobs.txt b/world/map/npc/029-1/_mobs.txt new file mode 100644 index 00000000..7fdf044c --- /dev/null +++ b/world/map/npc/029-1/_mobs.txt @@ -0,0 +1,44 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Candor mobs + +029-1.gat,68,64,11,13 monster Evil Mushrooms 1013,4,20000,60000,Mob029-1::On1013 +029-1.gat,31,32,12,13 monster Squirrel 1038,3,30000,60000,Mob029-1::On1038 +029-1.gat,46,48,4,1 monster Clover Patch 1037,1,10000,120000,Mob029-1::On1037 +029-1.gat,36,59,22,20 monster Spiky Mushroom 1019,5,10000,30000,Mob029-1::On1019 +029-1.gat,53,35,17,17 monster Bats 1017,4,25000,30000,Mob029-1::On1017 +029-1.gat,59,51,13,9 monster Log heads 1025,2,25000,30000,Mob029-1::On1025 + + +029-1.gat,0,0,0 script Mob029-1 -1,{ +On1013: + set @mobID, 1013; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1019: + set @mobID, 1019; + callfunc "MobPoints"; + break; + +On1025: + set @mobID, 1025; + callfunc "MobPoints"; + break; + +On1037: + set @mobID, 1037; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/029-1/_warps.txt b/world/map/npc/029-1/_warps.txt new file mode 100644 index 00000000..ffe9c2d6 --- /dev/null +++ b/world/map/npc/029-1/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Candor warps + diff --git a/world/map/npc/029-1/barrier.txt b/world/map/npc/029-1/barrier.txt new file mode 100644 index 00000000..fe51dadc --- /dev/null +++ b/world/map/npc/029-1/barrier.txt @@ -0,0 +1,8 @@ +029-1.gat,53,36,0 script #CandorBarrier 127,1,1,{ + if ($@FIGHT_CAVE_STATUS == 1) goto L_Block; + warp "029-3.gat", 46, 23; + end; + + L_Block: + message strcharinfo(0), "Some force seems to be blocking you from entering."; +} diff --git a/world/map/npc/029-1/dock.txt b/world/map/npc/029-1/dock.txt new file mode 100644 index 00000000..76cc8a16 --- /dev/null +++ b/world/map/npc/029-1/dock.txt @@ -0,0 +1,6 @@ +// The ferry dock + +029-1.gat,22,37,0 script #candordock 127,2,1,{ + set @loc, DOCK_candor; + callfunc "Ferry"; +} diff --git a/world/map/npc/029-3/_import.txt b/world/map/npc/029-3/_import.txt new file mode 100644 index 00000000..e8ca1dac --- /dev/null +++ b/world/map/npc/029-3/_import.txt @@ -0,0 +1,8 @@ +// Map 029-3: Fight Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 029-3.gat +npc: npc/029-3/_mobs.txt +npc: npc/029-3/_warps.txt +npc: npc/029-3/barrier.txt +npc: npc/029-3/mapflags.txt +npc: npc/029-3/parua.txt diff --git a/world/map/npc/029-3/_mobs.txt b/world/map/npc/029-3/_mobs.txt new file mode 100644 index 00000000..4e3b4282 --- /dev/null +++ b/world/map/npc/029-3/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Fight Cave mobs + + + +029-3.gat,0,0,0 script Mob029-3 -1,{ + end; +} diff --git a/world/map/npc/029-3/_warps.txt b/world/map/npc/029-3/_warps.txt new file mode 100644 index 00000000..42f13dee --- /dev/null +++ b/world/map/npc/029-3/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Fight Cave warps + diff --git a/world/map/npc/029-3/barrier.txt b/world/map/npc/029-3/barrier.txt new file mode 100644 index 00000000..23b37ea3 --- /dev/null +++ b/world/map/npc/029-3/barrier.txt @@ -0,0 +1,8 @@ +029-3.gat,45,20,0 script #FightCaveBarrier 127,1,1,{ + if ($@FIGHT_CAVE_STATUS == 1) goto L_Block; + warp "029-1.gat", 54, 39; + end; + + L_Block: + message strcharinfo(0), "Some force seems to be blocking you from exiting."; +} diff --git a/world/map/npc/029-3/mapflags.txt b/world/map/npc/029-3/mapflags.txt new file mode 100644 index 00000000..845a0f01 --- /dev/null +++ b/world/map/npc/029-3/mapflags.txt @@ -0,0 +1 @@ +029-3.gat mapflag nosave 029-1,55,38; diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt new file mode 100644 index 00000000..cfc269fe --- /dev/null +++ b/world/map/npc/029-3/parua.txt @@ -0,0 +1,254 @@ +// Parua's fight +029-3.gat,50,25,0 script Parua 183,{ + if ($@FIGHT_CAVE_STATUS == 1) goto L_Enjoy; + if ($@FIGHT_CAVE_STATUS >= 2) goto L_Wait; + mes "[Parua]"; + mes "\"Hello.\""; + next; + mes "[Parua]"; + mes "\"Do you dare challenge the power that sleeps here?\""; + menu "No, I'll let it sleep.", L_Exit, + "Ha! What's the worst it could do?", -; + mes "[Parua]"; + mes "\"Very well, for a fee of 20,000 GP, I will awaken that power.\""; + menu "No, what a ripoff!", L_Exit, + "Fine, here you go.", -; + if ($@FIGHT_CAVE_STATUS == 1) goto L_AlreadyStarted; + if (zeny >= 20000 + 3000) goto L_CallPlayers; + +L_Paying: + if (getareausers("029-3.gat", 20, 20, 70, 60) < 5) goto L_NotEnoughPlayers; + if (zeny < 20000) goto L_NotEnough; + set zeny, zeny - 20000; + +L_StartFight: + if (getareausers("029-3.gat", 20, 20, 70, 60) < 5) goto L_NotEnoughPlayers; + npctalk "Let the battle begin!"; + set $@FIGHT_CAVE_STATUS, 1; + set $@FIGHT_CAVE_LEVEL, 1; + set $@FIGHT_CAVE_PLAYER_COUNT, getareausers("029-3.gat", 20, 20, 70, 60); + startnpctimer; + goto L_Exit; + +L_CallPlayers: + mes "[Parua]"; + mes "\"Good... Your money will be very useful. I can awaken this power right now, if you want, or, for an additional fee of 3,000 GP, I can help you gather some of your friends to help you in this battle. What will it be?\""; + menu "We are OK. Just do it!", L_Paying, + "I will accept your help.", -; + + mes "[Parua]"; + mes "\"OK, I can make up to 3 announcements to the people of this world, letting them know that you are about to challenge the powers that sleep in this cave! If you want the fight to start in 5 minutes, I will make one announcement, if it is 15 minutes, I will make 2 announcements, and if it is to start in 30 minutes, it will be 3 announcements.\""; + next; + mes "\"But be careful! If there aren't at least five people here at the time of the fight, your money will be lost.\""; + next; + mes "\"So, when should it start?\""; + menu "In 5 minutes.", -, + "In 15 minutes.", -, + "In 30 minutes.", -, + "I don't want to wait. Let's start it now!", L_Paying; + + if ($@FIGHT_CAVE_STATUS >= 2) close; + if (getareausers("029-3.gat", 20, 20, 70, 60) < 5) goto L_NotEnoughPlayers; + if (zeny < 20000 + 3000) goto L_NotEnough_Announce; + set zeny, zeny - (20000 + 3000); + set $@SPONSOR$, strcharinfo(0); + set $@FIGHT_CAVE_STATUS, $@FIGHT_CAVE_STATUS + (@menu + 2); + if ($@FIGHT_CAVE_STATUS == 3) set $@ANNOUNCE_TIME, gettimetick(2) + 300; + if ($@FIGHT_CAVE_STATUS == 4) set $@ANNOUNCE_TIME, gettimetick(2) + 900; + if ($@FIGHT_CAVE_STATUS >= 5) set $@ANNOUNCE_TIME, gettimetick(2) + 1800; + startnpctimer; + close; + +L_Enjoy: + mes "[Parua]"; + mes "\"Enjoy the fight!\""; + goto L_Exit; + +L_Wait: + set @seconds, ($@ANNOUNCE_TIME - gettimetick(2)); + mes "[Parua]"; + if (@seconds/60 == 0) mes "\"Be Patient... The fight will start in " + @seconds + " seconds.\""; + if (@seconds/60 > 0) mes "\"Be Patient... The fight will start in " + @seconds/60 + " minute(s).\""; + goto L_Exit; + +L_NotEnough: + mes "[Parua]"; + mes "\"Seems you can't meet my fee.\""; + goto L_Exit; + +L_NotEnough_Announce: + mes "[Parua]"; + mes "\"Seems you can't meet the announcement fee.\""; + goto L_Exit; + +L_AlreadyStarted: + mes "[Parua]"; + mes "\"Seems your friend already paid me.\""; + goto L_Exit; + +L_NotEnoughPlayers: + if ($@FIGHT_CAVE_STATUS == 2) goto L_CleanUp_Announcement; + mes "[Parua]"; + mes "\"Maybe you should bring some friends with you; this will get messy.\""; + mes "He takes a moment to calculate. \"You'll probably need at least...five people, including yourself.\""; + goto L_Exit; + +L_Exit: + close; + end; + +// Fight logic +OnTimer5000: + setnpctimer 0; + if ($@FIGHT_CAVE_STATUS == 1) goto L_CaveLogic; + if ($@FIGHT_CAVE_STATUS >= 2) goto L_GlobalAnnounce; + +L_Return_1: + set $@FIGHT_CAVE_PLAYER_COUNT, 0; + areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::onTick"; + end; + +L_CaveLogic: + set $@FIGHT_CAVE_ROUND_PEN, $@FIGHT_CAVE_PLAYER_COUNT; + if ($@FIGHT_CAVE_ROUND_PEN > 60) set $@FIGHT_CAVE_ROUND_PEN, 60; + if ($@FIGHT_CAVE_PLAYER_COUNT <= 0) goto L_CleanUp; + set $@FIGHT_CAVE_ROUND_TIMER, $@FIGHT_CAVE_ROUND_TIMER + 5; // Advance 5 seconds + if (mobcount("029-3.gat", "Parua::onPetDeath") <= 0) goto L_NextRound; + if ($@FIGHT_CAVE_ROUND_TIMER + $@FIGHT_CAVE_ROUND_PEN >= 120) goto L_NextRound; + goto L_Return_1; + +L_NextRound: + set $@FIGHT_CAVE_ROUND_TIMER, 0; + + set $@FIGHT_CAVE_TEMP_UP, ($@FIGHT_CAVE_LEVEL / 10); + if ($@FIGHT_CAVE_TEMP_UP > 100) set $@FIGHT_CAVE_TEMP_UP, 100; + + set $@FIGHT_CAVE_LEVEL, $@FIGHT_CAVE_LEVEL + $@FIGHT_CAVE_PLAYER_COUNT + $@FIGHT_CAVE_TEMP_UP; + if ($@FIGHT_CAVE_LEVEL >= 2200) goto L_CleanUp; + set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_LEVEL; + + if ($@FIGHT_CAVE_LAST + 30 < $@FIGHT_CAVE_LEVEL) goto L_Announce; +L_Return_2: + mapannounce "029-3.gat", "Parua: The next round (level " + $@FIGHT_CAVE_LEVEL + ") is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0; + + set $@MOB_1_SUMMON, 0; + set $@MOB_2_SUMMON, 0; + set $@MOB_3_SUMMON, 0; + set $@MOB_4_SUMMON, 0; + set $@MOB_5_SUMMON, 0; + set $@MOB_6_SUMMON, 0; +L_Summon: + if ($@FIGHT_CAVE_POINTS >= 243 && $@MOB_1_SUMMON < 2) goto L_MOB1; + if ($@FIGHT_CAVE_POINTS >= 81 && $@MOB_2_SUMMON < 6) goto L_MOB2; + if ($@FIGHT_CAVE_POINTS >= 27 && $@MOB_3_SUMMON < 5) goto L_MOB3; + if ($@FIGHT_CAVE_POINTS >= 9 && $@MOB_4_SUMMON < 7) goto L_MOB4; + if ($@FIGHT_CAVE_POINTS >= 3 && $@MOB_5_SUMMON < 10) goto L_MOB5; + if ($@FIGHT_CAVE_POINTS >= 1 && $@MOB_6_SUMMON < 12) goto L_MOB6; + goto L_Return_1; + +L_Announce: + mapannounce "029-1.gat", "Parua: The next round (level " + $@FIGHT_CAVE_LEVEL + ") is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0; + set $@FIGHT_CAVE_LAST, $@FIGHT_CAVE_LAST + 30; + goto L_Return_2; + +L_GlobalAnnounce: + if ($@FIGHT_CAVE_STATUS == 3) goto L_Five_Minutes; + if ($@FIGHT_CAVE_STATUS == 4) goto L_Fifteen_Minutes; + if ($@FIGHT_CAVE_STATUS >= 5) goto L_Thirty_Minutes; + if (gettimetick(2) >= $@ANNOUNCE_TIME) goto L_StartFight; + end; + +L_Five_Minutes: + if ($@ANNOUNCE_TIME - gettimetick(2) > 300) end; + announce "Parua: " + $@SPONSOR$ + " invites everyone to a challenge against the powers that sleep in Candor. It is almost time! The fight will start in 5 minutes and, at the moment, there are only " + getareausers("029-3.gat", 20, 20, 70, 60) + " fighter(s) in the cave.", 0; + set $@FIGHT_CAVE_STATUS, 2; + end; + +L_Fifteen_Minutes: + if ($@ANNOUNCE_TIME - gettimetick(2) > 900) end; + announce "Parua: " + $@SPONSOR$ + " invites everyone to a challenge against the powers that sleep in Candor. You still have time to prepare yourself for this fight, since it will only start in 15 minutes. Right now, there are " + getareausers("029-3.gat", 20, 20, 70, 60) + " fighter(s) in the cave.", 0; + set $@FIGHT_CAVE_STATUS, 3; + end; + +L_Thirty_Minutes: + announce "Parua: " + $@SPONSOR$ + " invites everyone to a challenge against the powers that sleep in Candor. The fight will start in 30 minutes, so prepare yourself and call your friends. At the moment there are " + getareausers("029-3.gat", 20, 20, 70, 60) + " fighter(s) in the cave.", 0; + set $@FIGHT_CAVE_STATUS, 4; + end; + +L_MOB1: + set $@MOB_1_SUMMON, $@MOB_1_SUMMON + 1; + set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 243; + areamonster "029-3.gat", 20, 20, 70, 60, "", 1022, 1, "Parua::onPetDeath"; + goto L_Summon; + +L_MOB2: + set $@MOB_2_SUMMON, $@MOB_2_SUMMON + 1; + set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 81; + areamonster "029-3.gat", 20, 20, 70, 60, "", 1045, 1, "Parua::onPetDeath"; + goto L_Summon; + +L_MOB3: + set $@MOB_3_SUMMON, $@MOB_3_SUMMON + 1; + set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 27; + areamonster "029-3.gat", 20, 20, 70, 60, "", 1024, 1, "Parua::onPetDeath"; + goto L_Summon; + +L_MOB4: + set $@MOB_4_SUMMON, $@MOB_4_SUMMON + 1; + set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 9; + areamonster "029-3.gat", 20, 20, 70, 60, "", 1043, 1, "Parua::onPetDeath"; + goto L_Summon; + +L_MOB5: + set $@MOB_5_SUMMON, $@MOB_5_SUMMON + 1; + set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 3; + areamonster "029-3.gat", 20, 20, 70, 60, "", 1010, 1, "Parua::onPetDeath"; + goto L_Summon; + +L_MOB6: + set $@MOB_6_SUMMON, $@MOB_6_SUMMON + 1; + set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 1; + areamonster "029-3.gat", 20, 20, 70, 60, "", 1008, 1, "Parua::onPetDeath"; + goto L_Summon; + +// Called on each player once every 5 seconds +onTick: + if (isdead(0)) end; + set $@FIGHT_CAVE_PLAYER_COUNT, $@FIGHT_CAVE_PLAYER_COUNT + 1; + end; + +onPetDeath: + end; + +onInit: + initnpctimer; + stopnpctimer; +L_CleanUp: + npctalk "Game Over"; + mapannounce "029-1.gat", "Parua: The dungeon is now ready for its next victims.", 0; + areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::onReward"; + set $@FIGHT_CAVE_STATUS, 0; + set $@FIGHT_CAVE_PLAYER_COUNT, 0; + set $@FIGHT_CAVE_LEVEL, 1; + set $@FIGHT_CAVE_ROUND_TIMER, 0; + killmonster "029-3.gat", "Parua::onPetDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleanUp_Announcement: + npctalk $@SPONSOR$ + " lost the money invested in the fight, since there are less than 5 players in the cave"; + set $@SPONSOR$, ""; + set $@ANNOUNCE_TIME, 0; + set $@FIGHT_CAVE_STATUS, 0; + stopnpctimer; + setnpctimer 0; + end; + +onReward: + if (isdead(0)) end; + set BOSS_POINTS, BOSS_POINTS + 100; + message strcharinfo(0), "You gain 100 Boss Points giving you a total of " + BOSS_POINTS; + end; + +} diff --git a/world/map/npc/030-1/_import.txt b/world/map/npc/030-1/_import.txt new file mode 100644 index 00000000..d8cabe5d --- /dev/null +++ b/world/map/npc/030-1/_import.txt @@ -0,0 +1,5 @@ +// Map 030-1: Snow field +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 030-1.gat +npc: npc/030-1/_mobs.txt +npc: npc/030-1/_warps.txt diff --git a/world/map/npc/030-1/_mobs.txt b/world/map/npc/030-1/_mobs.txt new file mode 100644 index 00000000..830b17e4 --- /dev/null +++ b/world/map/npc/030-1/_mobs.txt @@ -0,0 +1,26 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field mobs + +030-1.gat,78,55,66,70 monster Santa Slime 1015,5,100000,30000,Mob030-1::On1015 +030-1.gat,84,57,66,70 monster Squirrel 1038,10,100000,30000,Mob030-1::On1038 +030-1.gat,84,57,66,70 monster Fluffy 1020,15,100000,30000,Mob030-1::On1020 + + +030-1.gat,0,0,0 script Mob030-1 -1,{ +On1015: + set @mobID, 1015; + callfunc "MobPoints"; + break; + +On1020: + set @mobID, 1020; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/030-1/_warps.txt b/world/map/npc/030-1/_warps.txt new file mode 100644 index 00000000..1a4e7582 --- /dev/null +++ b/world/map/npc/030-1/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field warps + +030-1.gat,61,28 warp toSnowfield 0,-1,019-1.gat,61,100 diff --git a/world/map/npc/031-1/_import.txt b/world/map/npc/031-1/_import.txt new file mode 100644 index 00000000..f525795e --- /dev/null +++ b/world/map/npc/031-1/_import.txt @@ -0,0 +1,8 @@ +// Map 031-1: NivalisPort +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 031-1.gat +npc: npc/031-1/_mobs.txt +npc: npc/031-1/_warps.txt +npc: npc/031-1/angelaOutside.txt +npc: npc/031-1/frozenbeard.txt +npc: npc/031-1/house.txt diff --git a/world/map/npc/031-1/_mobs.txt b/world/map/npc/031-1/_mobs.txt new file mode 100644 index 00000000..2d799801 --- /dev/null +++ b/world/map/npc/031-1/_mobs.txt @@ -0,0 +1,26 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// NivalisPort mobs + +031-1.gat,75,72,86,110 monster Santa Slime 1015,5,100000,30000,Mob031-1::On1015 +031-1.gat,89,74,86,110 monster Squirrel 1038,10,100000,30000,Mob031-1::On1038 +031-1.gat,89,74,86,110 monster Fluffy 1020,15,100000,30000,Mob031-1::On1020 + + +031-1.gat,0,0,0 script Mob031-1 -1,{ +On1015: + set @mobID, 1015; + callfunc "MobPoints"; + break; + +On1020: + set @mobID, 1020; + callfunc "MobPoints"; + break; + +On1038: + set @mobID, 1038; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/031-1/_warps.txt b/world/map/npc/031-1/_warps.txt new file mode 100644 index 00000000..9ca21459 --- /dev/null +++ b/world/map/npc/031-1/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// NivalisPort warps + +031-1.gat,37,55 warp toNivalis -1,-1,020-1.gat,106,55 +031-1.gat,76,24 warp toLabyrinth -1,-1,031-3.gat,212,298 diff --git a/world/map/npc/031-1/angelaOutside.txt b/world/map/npc/031-1/angelaOutside.txt new file mode 100644 index 00000000..3df9daa9 --- /dev/null +++ b/world/map/npc/031-1/angelaOutside.txt @@ -0,0 +1,116 @@ +// author: Jenalya +// reviewed by: +// state0: Angela is to upset to tell you anything, needs a concentration potion +// state1: got the mission to save Cindy +// state2 and state3: Cindy is saved Angela invites you to visit them for giving a reward +// state greater than 3: Angela invites and asks you to bring present boxes + +031-1.gat,79,24,0 script Angela 195, { + + set @Q_Nivalis_state_MASK, NIBBLE_5_MASK; + set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT; + + set @rescue_Cindy, ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT); + + if (@rescue_Cindy > 3) goto L_Please_Visit_Again; + if (@rescue_Cindy > 1) goto L_Please_Visit; + if (@rescue_Cindy == 1) goto L_Please_Help; + + mes "[Angela]"; + mes "\"Please, I need help! My little daughter!\""; + next; + mes "\"It's terrible, oh my dear child!\""; + next; + + if (countitem("ConcentrationPotion") > 0 && baselevel > 69) goto L_Menu_Potion; + + menu + "\"Please calm down and tell me what happened.\"", L_Whining, + "Leave", -; + close; + +L_Whining: + mes "[Angela]"; + mes "\"My poor little daughter, please! Oh no, oh no...\""; + next; + mes "\"We need to do something! My poor little Cindy! My cute little girl!\""; + next; + mes "\"It's so terrible, how could that happen? Please, I need help, it's so terrible.\""; + next; + mes "\"Those awful filthy monsters - terrible!\""; + next; + mes "\"Oh Cindy, my little Cindy - oh no...\""; + next; + mes "\"Please help, we need to do something!\""; + next; + mes "\"It's so terrible, my poor cute little Cindy...\""; + next; + mes "\"Oh, when I think what might happen to her right now!\""; + next; + mes "\"She is crying and sobbing.\""; + next; + mes "\"It seems she is too upset to tell you anything helpful. If she would just calm down and concentrate a bit...\""; + close; + +L_Menu_Potion: + menu + "\"Please calm down and tell me what happened.\"", L_Whining, + "Give her a concentration potion.", L_Calm_Down, + "Leave", -; + close; + +L_Calm_Down: + if (countitem("ConcentrationPotion") == 0) goto L_No_Potion; + delitem "ConcentrationPotion", 1; + mes "She drinks the concentration potions and calms down."; + mes "[Angela]"; + mes "\"Thank you, this was helpful.\""; + next; + mes "\"My daughter Cindy and I were on our way to Santa, to bring him some presents. Many people here in Nivalis are helping Santa with his business.\""; + next; + mes "\"When we passed the entrance of this cave, a pack of Yetis came out of there. It's disturbing, because usually they are very shy.\""; + next; + mes "\"We tried to run away, but there were too many of them. They took my poor little Cindy and all the presents with them.\""; + next; + mes "\"Oh my poor little girl. I'm so worried - what might they do with her? Oh no!\""; + next; + mes "\"You look like an adventurer! Please, can you go in that cave and rescue my little Cindy? I beg you for help!\""; + set @rescue_Cindy, 1; + callsub S_Update_Mask; + close; + +L_No_Potion: + mes "You don't have a concentration potion."; + close; + +L_Please_Help: + mes "[Angela]"; + mes "\"Please go in that cave and rescue my daughter!\""; + close; + +L_Please_Visit: + mes "[Angela]"; + mes "\"Thank you so much for rescuing my beloved Cindy. Please come to visit us in our house at the beach.\""; + next; + mes "\"My husband is an adventurer like you, and I want to give you something he got on his travels to show my gratitude.\""; + close; + +L_Please_Visit_Again: + mes "[Angela]"; + mes "\"Hello! You are welcome to visit us in our house at the beach everytime. Cindy loves to see you!\""; + next; + mes "\"If you have found any present boxes the Yetis took away, please bring them to our house. Usually, the Yetis are very shy... their behavior is a bit odd.\""; + close; + +S_Update_Mask: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_Nivalis_state_MASK)) + | (@rescue_Cindy << @Q_Nivalis_state_SHIFT); + return; +} + + + + + + diff --git a/world/map/npc/031-1/frozenbeard.txt b/world/map/npc/031-1/frozenbeard.txt new file mode 100644 index 00000000..4f871554 --- /dev/null +++ b/world/map/npc/031-1/frozenbeard.txt @@ -0,0 +1,29 @@ +// + +031-1.gat,97,115,0 script Frozenbeard 138,{ + + mes "[Frozenbeard]"; + mes "\"Arrr mate! There is no dock here, so I had to row boat from my ship! I am pioneering and mapping the trade route between here and Argaes, around the Hurnscald area. I'll hail my shipmates to send a boat and we'll sail out to Argaes, be there in no time, but it will cost you a fee. 500 gold pieces. What do you say?"; + menu + "Sure. (500 GP)", L_Frozenbeard_Argaes, + "Not right now.", L_Frozenbeard_Stay; + close; + +L_Frozenbeard_Argaes: + if (zeny < 500) goto L_NoMoney; + mes "[Frozenbeard]"; + mes "\"Pleasant Journeys!\""; + set zeny, zeny-500; + warp "008-1.gat",137,64; + close; + +L_Frozenbeard_Stay: + mes "[Frozenbeard]"; + mes "\"Suit yourself. Feel free to come out here anytime, I am really busy making sure these routes are accurate.\""; + close; + +L_NoMoney: + mes "[Frozenbeard]"; + mes "\"You need more money. I'll wait here while you get some.\""; + close; +} diff --git a/world/map/npc/031-1/house.txt b/world/map/npc/031-1/house.txt new file mode 100644 index 00000000..d9714ef5 --- /dev/null +++ b/world/map/npc/031-1/house.txt @@ -0,0 +1,18 @@ +// here is based on the queststatus for the rescue Cindy quest, if the player can enter +// player can enter, if Cindy is already saved and the player has been invited, quest status > 2 +// author: Jenalya + +031-1.gat,95,80,0 script #Door 127,1,1,{ + set @Q_Nivalis_state_MASK, NIBBLE_5_MASK; + set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT; + + set @rescue_Cindy, ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT); + + if (@rescue_Cindy > 2) goto L_Warp; + message strcharinfo(0), "The door is locked."; + close; + +L_Warp: + warp "031-2.gat", 23, 28; + end; +} diff --git a/world/map/npc/031-2/_import.txt b/world/map/npc/031-2/_import.txt new file mode 100644 index 00000000..39d9ffce --- /dev/null +++ b/world/map/npc/031-2/_import.txt @@ -0,0 +1,7 @@ +// Map 031-2: Angela's House +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 031-2.gat +npc: npc/031-2/_mobs.txt +npc: npc/031-2/_warps.txt +npc: npc/031-2/angelaHouse.txt +npc: npc/031-2/cindyHouse.txt diff --git a/world/map/npc/031-2/_mobs.txt b/world/map/npc/031-2/_mobs.txt new file mode 100644 index 00000000..196d0da7 --- /dev/null +++ b/world/map/npc/031-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Angela's House mobs + + + +031-2.gat,0,0,0 script Mob031-2 -1,{ + end; +} diff --git a/world/map/npc/031-2/_warps.txt b/world/map/npc/031-2/_warps.txt new file mode 100644 index 00000000..e56544d2 --- /dev/null +++ b/world/map/npc/031-2/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Angela's House warps + +031-2.gat,23,30 warp door -1,-1,031-1.gat,95,82 diff --git a/world/map/npc/031-2/angelaHouse.txt b/world/map/npc/031-2/angelaHouse.txt new file mode 100644 index 00000000..488f600a --- /dev/null +++ b/world/map/npc/031-2/angelaHouse.txt @@ -0,0 +1,113 @@ +// author: Jenalya +// reviewed by: +// state0, 1, 2: you shouldn't be able to come here +// state3: it's your first visit, you can choose a reward +// state4: you can do daily quests with white and yellow presents boxes +// + +031-2.gat,29,28,0 script Angela 196, { + + set @Q_Nivalis_state_MASK, NIBBLE_5_MASK; + set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT; + + set @rescue_Cindy, ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT); + + if (@rescue_Cindy == 4) goto L_Hello_Again; + if (@rescue_Cindy == 3) goto L_Reward; + + mes "..."; + close; + +L_Reward: + mes "[Angela]"; + mes "\"Hello " + strcharinfo(0) + ", thank you again. I'm so glad Cindy is back home safe.\""; + next; + mes "\"As I told you, my husband is an adventurer. He is on one of his travels, so he couldn't rescue Cindy himself.\""; + next; + mes "\"I want to give you one of his treasures. Beside all the junk he brings, there are some very valuable things.\""; + next; + mes "\"This item is called the Rock Knife. When you wield it, you feel as robust as a rock.\""; + + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + + getitem "RockKnife", 1; + + set @rescue_Cindy, 4; + callsub S_Update_Mask; + + next; + mes "\"I hope this will be useful for you.\""; + next; + mes "\"I am so glad Cindy is safe. But there is still another problem. The Yetis took away all the white and yellow present boxes we wanted to bring to Santa!\""; + next; + mes "\"Usually, Yetis are very shy - I wonder why they did that. There is something strange going on.\""; + next; + mes "\"May I ask you for help again? I'll give you a small reward for every 3 boxes of one color you bring me.\""; + close; + +L_Full_Inv: + mes "\"Oh, it seems you carry so much stuff - I will keep it for you until you can take it.\""; + close; + +L_Hello_Again: + mes "[Angela]"; + mes "\"Hello! Good to see you again. Please warm yourself.\""; + next; + menu + "I just wanted to say hello.",-, + "I have some yellow present boxes.",L_Yellow, + "I have some white present boxes.",L_White; + close; + +L_Yellow: + set @dq_level, 70; + set @dq_cost, 32; + set @dq_count, 3; + set @dq_name$, "YellowPresentBox"; + set @dq_friendly_name$, "yellow present box"; + set @dq_money, 5300; + set @dq_exp, 1300; + + callfunc "DailyQuest"; + + next; + + if (@dq_return ==4) mes "\"Santa will be glad to have them back.\""; + close; + +L_White: + set @dq_level, 80; + set @dq_cost, 64; + set @dq_count, 3; + set @dq_name$, "WhitePresentBox"; + set @dq_friendly_name$, "white present box"; + set @dq_money, 10800; + set @dq_exp, 2800; + + callfunc "DailyQuest"; + + next; + + if (@dq_return ==4) mes "\"You are a great help!\""; + close; + +S_Update_Mask: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_Nivalis_state_MASK)) + | (@rescue_Cindy << @Q_Nivalis_state_SHIFT); + return; +} + + + + + + + + + + + + + diff --git a/world/map/npc/031-2/cindyHouse.txt b/world/map/npc/031-2/cindyHouse.txt new file mode 100644 index 00000000..97aa2bb9 --- /dev/null +++ b/world/map/npc/031-2/cindyHouse.txt @@ -0,0 +1,64 @@ +// author: Jenalya +// reviewed by: +// state0,1,2: you shouldn't be able to reach this place +// state3 and greater: Cindy is saved, she says one of some random phrases +// + +031-2.gat,27,26,0 script Cindy 197, { + + set @Q_Nivalis_state_MASK, NIBBLE_5_MASK; + set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT; + + set @rescue_Cindy, ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT); + + if (@rescue_Cindy > 2) goto L_Happy_Random; + + mes "..."; + close; + +L_Happy_Random: + getinventorylist; + set @candy, rand(50); + if (@inventorylist_count < 100 && @candy == 42) goto L_Candy; + + setarray @quote_Cindy$, "Thank you so much for rescuing me!", + "My mother made really tasty cookies yesterday. But I already ate them all...", + "I want to go ice skating tomorrow. That will be fun!", + "I wonder when Daddy will come home next time. He always brings exciting stuff!", + strcharinfo(0) + "! You're my hero!", + "My mother is so upset about the Yetis - they are very very shy usually. You have to be lucky to see one. I wonder what's wrong with them.", + "When I'm a little older, I want to travel like you and my father. I want to see every place on the world!", + "Did you ever meet Santa? He's very kind! He always gives me some candy when we go to see him.", + strcharinfo(0) + ", you are sooo strong! Amazing! But my dad is strong too!"; + set @random, rand(9); + if (@random != 5) emotion 3; + set @quote$, "\"" + @quote_Cindy$[@random] + "\""; + mes "[Cindy]"; + mes @quote$; + close; + +L_Candy: + mes "[Cindy]"; + mes "\"Santa gave me some candy! Please, take that!\""; + getitem "Candy", 1; + close; + +S_Update_Mask: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_Nivalis_state_MASK)) + | (@rescue_Cindy << @Q_Nivalis_state_SHIFT); + return; +} + + + + + + + + + + + + + diff --git a/world/map/npc/031-3/_import.txt b/world/map/npc/031-3/_import.txt new file mode 100644 index 00000000..2cb30906 --- /dev/null +++ b/world/map/npc/031-3/_import.txt @@ -0,0 +1,6 @@ +// Map 031-3: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 031-3.gat +npc: npc/031-3/_mobs.txt +npc: npc/031-3/_warps.txt +npc: npc/031-3/labyrinth.txt diff --git a/world/map/npc/031-3/_mobs.txt b/world/map/npc/031-3/_mobs.txt new file mode 100644 index 00000000..106d0063 --- /dev/null +++ b/world/map/npc/031-3/_mobs.txt @@ -0,0 +1,99 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + +031-3.gat,39,276,42,16 monster Santa Slime 1015,5,100000,30000,Mob031-3::On1015 +031-3.gat,230,279,25,26 monster IceGoblin 1058,5,100000,30000,Mob031-3::On1058 +031-3.gat,195,277,25,26 monster IceGoblin 1058,3,100000,30000,Mob031-3::On1058 +031-3.gat,213,282,66,43 monster Bat 1017,5,100000,30000,Mob031-3::On1017 +031-3.gat,37,213,27,23 monster yeti 1072,2,100000,30000,Mob031-3::On1072 +031-3.gat,35,212,27,23 monster bat 1017,11,100000,30000,Mob031-3::On1017 +031-3.gat,38,147,44,68 monster Moggun 1061,19,100000,30000,Mob031-3::On1061 +031-3.gat,97,261,42,22 monster Moggun 1061,5,100000,30000,Mob031-3::On1061 +031-3.gat,97,291,42,22 monster Moggun 1061,5,100000,30000,Mob031-3::On1061 +031-3.gat,36,148,64,43 monster bat 1017,11,100000,30000,Mob031-3::On1017 +031-3.gat,97,277,22,42 monster bat 1017,11,100000,30000,Mob031-3::On1017 +031-3.gat,148,282,22,42 monster bat 1017,11,100000,30000,Mob031-3::On1017 +031-3.gat,142,266,29,16 monster Santa Slime 1015,3,100000,30000,Mob031-3::On1015 +031-3.gat,145,293,25,26 monster IceGoblin 1058,6,100000,30000,Mob031-3::On1058 +031-3.gat,144,216,29,44 monster iceelement 1071,2,100000,30000,Mob031-3::On1071 +031-3.gat,98,214,39,44 monster iceelement 1071,2,100000,30000,Mob031-3::On1071 +031-3.gat,99,214,25,26 monster IceGoblin 1058,3,100000,30000,Mob031-3::On1058 +031-3.gat,198,144,29,53 monster IceGoblin 1058,4,100000,30000,Mob031-3::On1058 +031-3.gat,97,291,42,22 monster Moggun 1061,5,100000,30000,Mob031-3::On1061 +031-3.gat,142,266,29,16 monster Santa Slime 1015,3,100000,30000,Mob031-3::On1015 +031-3.gat,283,286,33,30 monster Santa Slime 1015,3,100000,30000,Mob031-3::On1015 +031-3.gat,278,282,33,14 monster IceGoblin 1058,5,100000,30000,Mob031-3::On1058 +031-3.gat,278,282,33,14 monster IceGoblin 1058,5,100000,30000,Mob031-3::On1058 +031-3.gat,98,214,39,44 monster iceelement 1071,2,100000,30000,Mob031-3::On1071 +031-3.gat,285,218,8,75 monster iceelement 1071,2,100000,30000,Mob031-3::On1071 +031-3.gat,283,217,41,64 monster Bat 1017,15,100000,30000,Mob031-3::On1017 +031-3.gat,282,237,63,20 monster Moggun 1061,3,100000,30000,Mob031-3::On1061 +031-3.gat,282,196,62,16 monster Moggun 1061,3,100000,30000,Mob031-3::On1061 +031-3.gat,229,226,27,34 monster yeti 1072,3,100000,30000,Mob031-3::On1072 +031-3.gat,230,227,12,42 monster IceGoblin 1058,5,100000,30000,Mob031-3::On1058 +031-3.gat,209,199,12,17 monster yeti 1072,2,100000,30000,Mob031-3::On1072 +031-3.gat,193,216,12,17 monster yeti 1072,1,100000,30000,Mob031-3::On1072 +031-3.gat,213,282,66,43 monster Bat 1017,5,100000,30000,Mob031-3::On1017 +031-3.gat,213,282,66,43 monster Bat 1017,5,100000,30000,Mob031-3::On1017 +031-3.gat,199,200,45,14 monster Bat 1017,13,100000,30000,Mob031-3::On1017 +031-3.gat,209,199,12,17 monster yeti 1072,2,100000,30000,Mob031-3::On1072 +031-3.gat,144,216,29,44 monster iceelement 1071,2,100000,30000,Mob031-3::On1071 +031-3.gat,234,141,18,19 monster yeti 1072,2,100000,30000,Mob031-3::On1072 +031-3.gat,282,196,62,16 monster Moggun 1061,3,100000,30000,Mob031-3::On1061 +031-3.gat,212,159,62,16 monster Moggun 1061,7,100000,30000,Mob031-3::On1061 +031-3.gat,212,159,62,16 monster Moggun 1061,7,100000,30000,Mob031-3::On1061 +031-3.gat,212,130,62,16 monster Moggun 1061,7,100000,30000,Mob031-3::On1061 +031-3.gat,284,143,40,48 monster Moggun 1061,7,100000,30000,Mob031-3::On1061 +031-3.gat,283,84,36,31 monster Bat 1017,15,100000,30000,Mob031-3::On1017 +031-3.gat,283,84,36,31 monster Bat 1017,15,100000,30000,Mob031-3::On1017 +031-3.gat,274,81,15,32 monster yeti 1072,2,100000,30000,Mob031-3::On1072 +031-3.gat,40,53,44,68 monster Moggun 1061,10,100000,30000,Mob031-3::On1061 +031-3.gat,120,160,85,30 monster yeti 1072,4,100000,30000,Mob031-3::On1072 +031-3.gat,120,131,82,24 monster yeti 1072,8,100000,30000,Mob031-3::On1072 +031-3.gat,107,130,25,26 monster IceGoblin 1058,6,100000,30000,Mob031-3::On1058 +031-3.gat,145,160,25,24 monster IceGoblin 1058,6,100000,30000,Mob031-3::On1058 +031-3.gat,94,167,25,24 monster IceGoblin 1058,6,100000,30000,Mob031-3::On1058 +031-3.gat,282,37,31,28 monster iceelement 1071,5,100000,30000,Mob031-3::On1071 +031-3.gat,213,36,64,32 monster iceelement 1071,5,100000,30000,Mob031-3::On1071 +031-3.gat,228,83,31,28 monster iceelement 1071,3,100000,30000,Mob031-3::On1071 +031-3.gat,283,138,15,13 monster iceelement 1071,1,100000,30000,Mob031-3::On1071 +031-3.gat,198,83,31,28 monster iceelement 1071,3,100000,30000,Mob031-3::On1071 +031-3.gat,214,75,25,26 monster IceGoblin 1058,3,100000,30000,Mob031-3::On1058 +031-3.gat,217,37,66,43 monster Bat 1017,10,100000,30000,Mob031-3::On1017 +031-3.gat,39,52,64,56 monster Bat 1017,5,100000,30000,Mob031-3::On1017 +031-3.gat,38,277,64,56 monster Bat 1017,10,100000,30000,Mob031-3::On1017 + + +031-3.gat,0,0,0 script Mob031-3 -1,{ +On1015: + set @mobID, 1015; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1058: + set @mobID, 1058; + callfunc "MobPoints"; + break; + +On1061: + set @mobID, 1061; + callfunc "MobPoints"; + break; + +On1071: + set @mobID, 1071; + callfunc "MobPoints"; + break; + +On1072: + set @mobID, 1072; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/031-3/_warps.txt b/world/map/npc/031-3/_warps.txt new file mode 100644 index 00000000..520c7242 --- /dev/null +++ b/world/map/npc/031-3/_warps.txt @@ -0,0 +1,50 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +031-3.gat,212,300 warp toOutside -1,-1,031-1.gat,76,26 +031-3.gat,205,264 warp toCave -1,-1,031-3.gat,149,261 +031-3.gat,149,259 warp toCave -1,-1,031-3.gat,205,266 +031-3.gat,225,282 warp toCave -1,-1,031-3.gat,274,299 +031-3.gat,274,300 warp toCave -1,-1,031-3.gat,225,283 +031-3.gat,283,271 warp toCave -1,-1,031-3.gat,269,244 +031-3.gat,269,245 warp toCave -1,-1,031-3.gat,283,272 +031-3.gat,148,150 warp toCave -1,-1,031-3.gat,128,134 +031-3.gat,139,258 warp toCave -1,-1,031-3.gat,155,196 +031-3.gat,155,195 warp toCave -1,-1,031-3.gat,139,259 +031-3.gat,142,301 warp toCave -1,-1,031-3.gat,97,298 +031-3.gat,97,301 warp toCave -1,-1,031-3.gat,142,298 +031-3.gat,135,196 warp toCave -1,-1,031-3.gat,106,231 +031-3.gat,106,232 warp toCave -1,-1,031-3.gat,135,197 +031-3.gat,286,190 warp toCave -1,-1,031-3.gat,227,241 +031-3.gat,227,242 warp toCave -1,-1,031-3.gat,286,191 +031-3.gat,236,211 warp toCave -1,-1,031-3.gat,187,227 +031-3.gat,187,228 warp toCave -1,-1,031-3.gat,236,212 +031-3.gat,94,254 warp toCave -1,-1,031-3.gat,54,253 +031-3.gat,54,250 warp toCave -1,-1,031-3.gat,94,257 +031-3.gat,103,199 warp toCave -1,-1,031-3.gat,52,175 +031-3.gat,52,177 warp toCave -1,-1,031-3.gat,103,201 +031-3.gat,212,193 warp toCave -1,-1,031-3.gat,207,165 +031-3.gat,207,168 warp toCave -1,-1,031-3.gat,212,195 +031-3.gat,235,167 warp toCave -1,-1,031-3.gat,195,124 +031-3.gat,195,122 warp toCave -1,-1,031-3.gat,235,165 +031-3.gat,296,97 warp toCave -1,-1,031-3.gat,292,125 +031-3.gat,292,123 warp toCave -1,-1,031-3.gat,296,95 +031-3.gat,289,164 warp toCave -1,-1,031-3.gat,228,123 +031-3.gat,228,121 warp toCave -1,-1,031-3.gat,289,162 +031-3.gat,24,157 warp toCave -1,-1,031-3.gat,31,142 +031-3.gat,31,144 warp toCave -1,-1,031-3.gat,24,159 +031-3.gat,36,249 warp toCave -1,-1,031-3.gat,35,224 +031-3.gat,35,226 warp toCave -1,-1,031-3.gat,36,251 +031-3.gat,34,25 warp toCave -1,-1,031-3.gat,281,25 +031-3.gat,281,22 warp toCave -1,-1,031-3.gat,34,28 +031-3.gat,283,48 warp toCave -1,-1,031-3.gat,275,74 +031-3.gat,275,73 warp toCave -1,-1,031-3.gat,283,47 +031-3.gat,26,178 warp toCave -1,-1,031-3.gat,36,202 +031-3.gat,36,200 warp toCave -1,-1,031-3.gat,26,176 +031-3.gat,91,125 warp toCave -1,-1,031-3.gat,36,78 +031-3.gat,36,80 warp toCave -1,-1,031-3.gat,91,127 +031-3.gat,52,78 warp toCave -1,-1,031-3.gat,192,72 +031-3.gat,192,70 warp toCave -1,-1,031-3.gat,52,76 +031-3.gat,128,135 warp toCave -1,-1,031-3.gat,148,152 +031-3.gat,232,93 warp toCave -1,-1,031-3.gat,200,47 +031-3.gat,200,50 warp toCave -1,-1,031-3.gat,232,90 diff --git a/world/map/npc/031-3/labyrinth.txt b/world/map/npc/031-3/labyrinth.txt new file mode 100644 index 00000000..feef9c1d --- /dev/null +++ b/world/map/npc/031-3/labyrinth.txt @@ -0,0 +1,18 @@ +//################################################################################# +//# +//# Conditional warp for yeti cave +//# +//# Authors: Jenalya +//# +//# reviewed by: +//# +//################################################################################# + +031-3.gat,46,24,0 script #YetiBarrier 127,1,1,{ +if ($@FIGHT_YETI_STATUS == 1) goto L_Blocked; + warp "031-4.gat", 40, 69; + end; +L_Blocked: + message strcharinfo(0), "A force field seems to be blocking you from entering."; + end; +} diff --git a/world/map/npc/031-4/_import.txt b/world/map/npc/031-4/_import.txt new file mode 100644 index 00000000..87eec449 --- /dev/null +++ b/world/map/npc/031-4/_import.txt @@ -0,0 +1,8 @@ +// Map 031-4: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 031-4.gat +npc: npc/031-4/_mobs.txt +npc: npc/031-4/_warps.txt +npc: npc/031-4/barrier.txt +npc: npc/031-4/cindyCave.txt +npc: npc/031-4/mapflags.txt diff --git a/world/map/npc/031-4/_mobs.txt b/world/map/npc/031-4/_mobs.txt new file mode 100644 index 00000000..d1ce9b7c --- /dev/null +++ b/world/map/npc/031-4/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + + + +031-4.gat,0,0,0 script Mob031-4 -1,{ + end; +} diff --git a/world/map/npc/031-4/_warps.txt b/world/map/npc/031-4/_warps.txt new file mode 100644 index 00000000..d1984dbc --- /dev/null +++ b/world/map/npc/031-4/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + diff --git a/world/map/npc/031-4/barrier.txt b/world/map/npc/031-4/barrier.txt new file mode 100644 index 00000000..e8b4a5ac --- /dev/null +++ b/world/map/npc/031-4/barrier.txt @@ -0,0 +1,8 @@ +031-4.gat,40,71,0 script #YetiBarrier 127,1,1,{ + if ($@FIGHT_YETI_STATUS == 1) goto L_Block; + warp "031-3.gat", 46, 27; + end; +L_Block: + message strcharinfo(0), "A force field seems to be blocking you from exiting."; + end; +} diff --git a/world/map/npc/031-4/cindyCave.txt b/world/map/npc/031-4/cindyCave.txt new file mode 100644 index 00000000..223aa80b --- /dev/null +++ b/world/map/npc/031-4/cindyCave.txt @@ -0,0 +1,256 @@ +// author: Jenalya +// reviewed by: +// state0: Cindy is totally scared and does nothing helpful +// state1: you are able to open the cage +// state2: Cindy is saved, she gives you a reward (wizard hat or wooden staff) +// state3: and greater: Cindy is saved, she asks you to visit them + +031-4.gat,42,42,0 script Cindy 198, { + if ($@FIGHT_YETI_STATUS != 0) goto L_Yeti; + + set @KEYS_AMOUNT, 10; + + set @Q_Nivalis_state_MASK, NIBBLE_5_MASK; + set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT; + + set @rescue_Cindy, ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT); + + if (Sex == 0) set @title$, "Misses"; + if (Sex == 1) set @title$, "Mister"; + + if (@rescue_Cindy >= 3) goto L_Please_Visit; + if (@rescue_Cindy == 2) goto L_Reward; + if (@rescue_Cindy == 1) goto L_Please_Help; + + mes "There is a little girl in a cage. As you come near, she starts to shiver and back off from you as far as she can in that small cage."; + next; + mes "You don't know what to do."; + close; + +L_Please_Help: + mes "There is a little girl in a cage. As you come near, she starts to shiver and back off from you as far as she can in that small cage."; + next; + menu + "Hello Cindy, I'm here to save you.", - ; + mes "Cindy doesn't look so scared anymore."; + next; + mes "[Cindy]"; + mes "\"Hello, dear " + @title$ + " adventurer. Did my mother send you?\""; + next; + mes "\"It's so cold in here! Can you please open the cage?\""; + next; + mes "\"But be careful. If the Yetis hear you, they will come!\""; + menu + "Try to open the cage", L_Try_Cage, + "Leave", -; + close; + +L_Try_Cage: + if (baselevel < 70) goto L_To_Weak; + if (countitem("TreasureKey") < @KEYS_AMOUNT) goto L_Not_Enough_Keys; + delitem "TreasureKey", @KEYS_AMOUNT; + mes "As you try to open the door of the cage, there is a loud squeaking noise."; + next; + mes "You get an uncomfortable feeling and Cindy starts to shiver."; + next; + mes "\"Oh no, the Yetis...\""; + if ($@FIGHT_YETI_STATUS != 0) goto L_Yeti; + + // initialize fight + set $@FIGHT_YETI_STATUS, 1; + set $@FIGHT_YETI_WAVE, 0; + set $@YETI_COUNT, 1; + set $@FIGHT_YETI_PLAYER_COUNT, getareausers("031-4.gat", 0, 0, 95, 91); + // this yeti is spawned because of some timing problems + // without it, the first and second wave start nearly the same time + areamonster "031-4.gat", 0, 0, 95, 91, "", 1072, 1, "Cindy::onPetDeath"; + + startnpctimer; + goto L_Exit; + +L_Exit: + close; + +L_Yeti: + mes "[Cindy]"; + mes "\"Watch out, the Yetis!\""; + close; + +L_Reward: + mes "[Cindy]"; + mes "\"You are a hero! All these strong monsters!\""; + next; + mes "\"I've found this thing in the cave - it looks valuable. I want you to have it.\""; + next; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + + set @reward, rand(15); + if (@reward < 10) goto L_Wizard_Hat; + getitem "WoodenStaff", 1; + set @rescue_Cindy, 3; + callsub S_Update_Mask; + goto L_Visit; + +L_Wizard_Hat: + // get a wizard hat in one of the ten colors - no white + setarray @wizardhats, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209; + getitem @wizardhats[@reward], 1; + set @rescue_Cindy, 3; + callsub S_Update_Mask; + +L_Visit: + mes "\"Thank you so much; please come to my home. It's the house at the beach.\""; + next; + mes "\"I'm sure my mother wants to thank you as well.\""; + close; + +L_Please_Visit: + mes "[Cindy]"; + mes "\"Thank you, thank you! You're a hero! Please come home with me to our house at the beach!\""; + close; + +L_To_Weak: + mes "You try to open the cage, but it's stuck. It seems you're too weak!"; + close; + +L_Not_Enough_Keys: + mes "You don't have enough keys to open the cage."; + close; + +L_Full_Inv: + mes "\"Oh, it seems you carry so much stuff - I will keep it for you until you can take it.\""; + close; + +// Fight logic attached to npc +OnTimer5000: + setnpctimer 0; + if ($@FIGHT_YETI_STATUS != 0) goto L_CaveLogic; +L_Return_1: + set $@FIGHT_YETI_PLAYER_COUNT, 0; + areatimer "031-4.gat", 0, 0, 95, 91, 10, "Cindy::onTick"; + end; + +L_CaveLogic: + set $@FIGHT_YETI_ROUND_PEN, $@FIGHT_YETI_PLAYER_COUNT; + if ($@FIGHT_YETI_ROUND_PEN > 60) set $@FIGHT_YETI_ROUND_PEN, 60; + if ($@FIGHT_YETI_PLAYER_COUNT <= 0) goto L_CleanUp; + set $@FIGHT_YETI_ROUND_TIMER, $@FIGHT_YETI_ROUND_TIMER + 5; // Advance 5 seconds + if (mobcount("031-4.gat", "Cindy::onPetDeath") <= 0) goto L_NextWave; + if ($@FIGHT_YETI_ROUND_TIMER + $@FIGHT_YETI_ROUND_PEN >= 120) goto L_NextWave; + goto L_Return_1; + +L_NextWave: + set $@FIGHT_YETI_ROUND_TIMER, 0; + set $@FIGHT_YETI_WAVE, $@FIGHT_YETI_WAVE + 1; + if ($@FIGHT_YETI_WAVE > 10 && $@YETI_COUNT == 0) goto L_CleanUp; + if ($@FIGHT_YETI_WAVE > 10 && $@FIGHT_YETI_WAVE < 22) goto L_Return_1; + if ($@FIGHT_YETI_WAVE > 22) + areamonster "031-4.gat", 0, 0, 95, 91, "", 1072, $@FIGHT_YETI_WAVE*2 + $@FIGHT_YETI_PLAYER_COUNT*5, "Cindy::onPetDeath"; + if ($@FIGHT_YETI_WAVE > 22) + set $@YETI_COUNT, $@YETI_COUNT + $@FIGHT_YETI_WAVE*2 + $@FIGHT_YETI_PLAYER_COUNT*5; + set $@FIGHT_YETI_NUMBER, (1 + (1 * $@FIGHT_YETI_WAVE) + (2 * $@FIGHT_YETI_PLAYER_COUNT))/4; + set $@YETI_COUNT, $@YETI_COUNT + $@FIGHT_YETI_NUMBER; + + areamonster "031-4.gat", 0, 0, 95, 91, "", 1072, $@FIGHT_YETI_NUMBER, "Cindy::onPetDeath"; + + if ($@FIGHT_YETI_WAVE == 1) + mapannounce "031-4.gat", "Cindy: Yetis!", 0; + if ($@FIGHT_YETI_WAVE == 2) + mapannounce "031-4.gat", "Cindy: Watch out!", 0; + if ($@FIGHT_YETI_WAVE == 3) + mapannounce "031-4.gat", "Cindy: More of them are coming!", 0; + if ($@FIGHT_YETI_WAVE == 4) + mapannounce "031-4.gat", "Cindy: Be careful! More of them!", 0; + if ($@FIGHT_YETI_WAVE == 5) + mapannounce "031-4.gat", "Cindy: Attention! There is another bunch of them!", 0; + if ($@FIGHT_YETI_WAVE == 6) + mapannounce "031-4.gat", "Cindy: Hang on! More of them!", 0; + if ($@FIGHT_YETI_WAVE == 7) + mapannounce "031-4.gat", "Cindy: More Yetis! Will this never end?", 0; + if ($@FIGHT_YETI_WAVE == 8) + mapannounce "031-4.gat", "Cindy: There are coming more and more!", 0; + if ($@FIGHT_YETI_WAVE == 9) + mapannounce "031-4.gat", "Cindy: Watch your back! There are so many of them!", 0; + if ($@FIGHT_YETI_WAVE == 10) + mapannounce "031-4.gat", "Cindy: This seems to be their final attack! I believe in you!", 0; + + if ($@FIGHT_YETI_WAVE == 1) + mapannounce "031-3.gat", "Cindy: Yetis!", 0; + if ($@FIGHT_YETI_WAVE == 2) + mapannounce "031-3.gat", "Cindy: Watch out!", 0; + if ($@FIGHT_YETI_WAVE == 3) + mapannounce "031-3.gat", "Cindy: More of them are coming!", 0; + if ($@FIGHT_YETI_WAVE == 4) + mapannounce "031-3.gat", "Cindy: Be careful! More of them!", 0; + if ($@FIGHT_YETI_WAVE == 5) + mapannounce "031-3.gat", "Cindy: Attention! There is another bunch of them!", 0; + if ($@FIGHT_YETI_WAVE == 6) + mapannounce "031-3.gat", "Cindy: Hang on! More of them!", 0; + if ($@FIGHT_YETI_WAVE == 7) + mapannounce "031-3.gat", "Cindy: More Yetis! Will this never end?", 0; + if ($@FIGHT_YETI_WAVE == 8) + mapannounce "031-3.gat", "Cindy: There are coming more and more!", 0; + if ($@FIGHT_YETI_WAVE == 9) + mapannounce "031-3.gat", "Cindy: Watch your back! There are so many of them!", 0; + if ($@FIGHT_YETI_WAVE == 10) + mapannounce "031-3.gat", "Cindy: This seems to be their final attack! I believe in you!", 0; + + goto L_Return_1; + +// Called on each player once every 5 seconds +onTick: + if (isdead(0)) end; + set $@FIGHT_YETI_PLAYER_COUNT, $@FIGHT_YETI_PLAYER_COUNT + 1; + end; + +onPetDeath: + set $@YETI_COUNT, $@YETI_COUNT - 1; + end; + +onInit: + initnpctimer; + stopnpctimer; +L_CleanUp: + areatimer "031-4.gat", 0, 0, 95, 91, 10, "Cindy::onReward"; + set $@FIGHT_YETI_STATUS, 0; + set $@FIGHT_YETI_PLAYER_COUNT, 0; + set $@FIGHT_YETI_WAVE, 1; + set $@FIGHT_YETI_ROUND_TIMER, 0; + killmonster "031-4.gat", "Cindy::onPetDeath"; + stopnpctimer; + setnpctimer 0; + end; + +onReward: + if (isdead(0)) end; + set @bonus, (baselevel/2); + set DailyQuestBonus, DailyQuestBonus + @bonus; + message strcharinfo(0), "You feel a temporary rush of power and zest for action. " + @bonus + " daily bonus gained." ; + if (@rescue_Cindy != 1 ) goto L_No_Progress; + set @rescue_Cindy, 2; + callsub S_Update_Mask; + message strcharinfo(0), "Cindy looks relieved and as if she wants to talk with you."; +L_No_Progress: + end; + +///////// +S_Update_Mask: + set QUEST_Nivalis_state, + (QUEST_Nivalis_state & ~(@Q_Nivalis_state_MASK)) + | (@rescue_Cindy << @Q_Nivalis_state_SHIFT); + return; +} + + + + + + + + + + + + + diff --git a/world/map/npc/031-4/mapflags.txt b/world/map/npc/031-4/mapflags.txt new file mode 100644 index 00000000..9e4e8f6b --- /dev/null +++ b/world/map/npc/031-4/mapflags.txt @@ -0,0 +1 @@ +031-4.gat mapflag nosave 031-3,46,26; diff --git a/world/map/npc/032-1/_import.txt b/world/map/npc/032-1/_import.txt new file mode 100644 index 00000000..939f1d9c --- /dev/null +++ b/world/map/npc/032-1/_import.txt @@ -0,0 +1,6 @@ +// Map 032-1: Outback +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 032-1.gat +npc: npc/032-1/_mobs.txt +npc: npc/032-1/_warps.txt +npc: npc/032-1/miriam.txt diff --git a/world/map/npc/032-1/_mobs.txt b/world/map/npc/032-1/_mobs.txt new file mode 100644 index 00000000..54ab94bc --- /dev/null +++ b/world/map/npc/032-1/_mobs.txt @@ -0,0 +1,23 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Outback mobs + +032-1.gat,47,64,27,15 monster BlackScorpion 1009,5,30000,100000,Mob032-1::On1009 +032-1.gat,24,72,27,24 monster BlackScorpion 1009,5,30000,100000,Mob032-1::On1009 +032-1.gat,24,48,25,21 monster BlackScorpion 1009,5,30000,100000,Mob032-1::On1009 +032-1.gat,57,44,23,18 monster Snake 1010,13,30000,100000,Mob032-1::On1010 +032-1.gat,77,76,34,27 monster Snake 1010,13,30000,100000,Mob032-1::On1010 + + +032-1.gat,0,0,0 script Mob032-1 -1,{ +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1010: + set @mobID, 1010; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/032-1/_warps.txt b/world/map/npc/032-1/_warps.txt new file mode 100644 index 00000000..96d039cf --- /dev/null +++ b/world/map/npc/032-1/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Outback warps + +032-1.gat,64,52 warp ToCave -1,-1,032-3.gat,56,59 diff --git a/world/map/npc/032-1/miriam.txt b/world/map/npc/032-1/miriam.txt new file mode 100644 index 00000000..b6dac559 --- /dev/null +++ b/world/map/npc/032-1/miriam.txt @@ -0,0 +1,300 @@ +//############################################# +// author: alastrim, PjotrOrial +//############################################# +// This npc teaches you the speed skill. +// used variables: +// QUEST_MIRIAM: +// 0 either fully completed the quests in here, or not started. +// 1 you said the wrong words, she is insulted. (so you excuse and goto 2) +// 2 waiting for the ingredients +// 3 you brought the needed stuff. if you meet other criteria (baselevel, agi) you will be taught the skill +// 4 you have met the criteria of 3, but declined to take the speed test. +// 5 you tried the quest but you failed +// QUEST_MIRIAM_start +// a time in ticks. This is only !=0 if you started running to pachua. +// QUEST_MIRIAM_run +// when you reach pachua, he stores the difference of start and arrival in here. +//############################################# +// after you gained the speed skill, all variables are reset to zero. +//############################################# + +032-1.gat,55,20,0 script Miriam 175,{ + + if (getskilllv(SKILL_SPEED)) goto L_fast; + if (getequipid(equip_torso) < 0) goto L_naked; + if (QUEST_MIRIAM == 0) goto L_intro; + if (QUEST_MIRIAM == 1) goto L_ask1; + if (QUEST_MIRIAM == 2) goto L_ask2; + if (QUEST_MIRIAM == 3) goto L_teach; + if (QUEST_MIRIAM == 4) goto L_testoffer; + if (QUEST_MIRIAM_run != 0) goto L_checktime; + if (QUEST_MIRIAM_start != 0) goto L_wasting; + if (QUEST_MIRIAM == 5) goto L_testoffer; + +L_intro: + mes "You see a woman sitting in the hot sand with eyes wide open... But she does not seem to be looking at something in particular..."; + next; + menu + "Ehr... Hi, my name is " +strcharinfo(0)+ ". Are you OK?",-; + next; + mes "[Miriam]"; + mes "\"..."; + next; + menu + "Hello?",-; + next; + mes "[Miriam]"; + mes "\"Yes, I am. Why? Do you think I am not OK? I am OK. You interrupted my meditation. Now I will need hours to calm down and stay quiet! Yes, yes, I know, I'm a fast talker!\""; + next; + mes "\"In fact, I am fast in everything I do! I can kill a Mountain Snake before it even starts to think about attacking me! Yes my friend, in a battle, speed is power!"; + next; + menu + "Wow! Very impressi...",-; + mes "[Miriam]"; + mes "\"Yes, yes, I know. But if there is one thing I am NOT good at, it is meditation! My master said I need to meditate, but... Ohh! So difficult to stay quiet! And when you FINALLY do, someone INTERRUPTS you, asking if you are 'OK'...\""; + next; + menu + "Oh, I am sorry! I didn't know you were meditating...",-; + mes "[Miriam]"; + mes "\"You are really sorry? Ok, but that is not enough... I need you to do something for me. As you can imagine, I will need a lot of time to concentrate and get back to the state I was when you interrupted me.\""; + next; + mes "\"But the problem is that I wasn't expecting to be here for so long, so I will need some food and something to drink.\""; + next; + mes "\"So, if you really want to prove that you are sorry, bring me 5 Concentration Potions and 10 Snake Tongues.\""; + next; + menu + "Ok, but those potions will not help with your mental concent...",-, + "Sorry, but I can't help you right now.",L_canthelp; + mes "[Miriam]"; + mes "\"ah, ah, ah... I know what I am doing! Now run and get what I asked.\""; + set QUEST_MIRIAM, 2; + close; + + +L_canthelp: + mes "[Miriam]"; + mes "\"Oh, really? So you better pray to not need my help in the future!\""; + set QUEST_MIRIAM, 1; + close; + +L_canthelp2: + mes "[Miriam]"; + mes "\"...\""; + next; + mes "\"...\""; + next; + mes "\"Well, if you don't have time to help, at least don't make things difficult for me!\""; + close; + +L_ask1: + mes "[Miriam]"; + mes "\"So, you are back... have you changed your mind about my request?\""; + next; + menu + "Yes, I will get what you want!",-, + "No, I have no time right now.",L_canthelp2; + set QUEST_MIRIAM, 2; + mes "\"Good. So, run and get it!\""; + close; + +L_ask2: + mes "[Miriam]"; + mes "\"Did you get what I asked for?\""; + next; + menu + "Yes, here it is!",L_getitems, + "What was that again?", L_ask3, + "No, not yet.",-; + mes "\"So please hurry up!\""; + close; + +L_ask3: + mes "[Miriam]"; + mes "\"You have a small mind, haven't you? I am meditating here and I asked you to bring me stuff, so I can concentrate better.\""; + next; + mes "\"And stop asking such silly questions in the future.\""; + next; + mes "\"So, if you really want to help me now, bring me 5 Concentration Potions and 10 Snake Tongues.\""; + close; + +L_getitems: + if (countitem("SnakeTongue") < 10 || countitem("ConcentrationPotion") < 5) goto L_notenough; + delitem "SnakeTongue", 10; + delitem "ConcentrationPotion", 5; + set QUEST_MIRIAM, 3; + mes "[Miriam]"; + mes "\"Good job! Now I have enough food to stay in this desert for days!\""; + next; + mes "\"Now, since you helped me, maybe I can teach you a basic skill, but only if you prove yourself to be a fast runner! Come back and talk to me when you think you are prepared to learn.\""; + close; + + +L_notenough: + mes "[Miriam]"; + mes "\"Hey, you don't have all that I asked. Come back when you have everything.\""; + close; + +L_teach: + mes "[Miriam]"; + mes "\"Hmm... do you think you can learn the special Speed skill?\""; + next; + menu + "Yes, I am prepared...", -, + "I am already fast.", L_notfast; + + set @agi, readparam(bAgi); + set @torso$, getitemname(getequipid(equip_torso)); + set @weight, MaxWeight/Weight; + if (@weight < 3) goto L_heavyweight; + if (@agi < 60) goto L_slow; + if (baselevel < 60) goto L_lowlevel; + if (countitem("SteelShield") > 0 || countitem("WarlordHelmet") > 0 || countitem("CrusadeHelmet") > 0 || countitem("WarlordPlate") > 0 || countitem("KnightsHelmet") > 0 || countitem("InfantryHelmet") > 0 || countitem("ChainmailShirt") > 0) goto L_heavymetal; + goto L_offer; + +L_heavyweight: + mes "[Miriam]"; + mes "\"Wow... Why do you bring so many things with you? You must be carrying more than one third of your own weight! I won't teach you unless you get rid of some stuff... \""; + close; + +L_heavymetal: + mes "[Miriam]"; + mes "\"Hmm... I see... You want to be one of those lazy slow warriors... wasting all their strength carrying kilos of metal clothes... Why does no one see the great advantages of a beautiful, flexible, lightweight armor nowadays?\""; + next; + mes "\"Come back here when you get rid of this junk...\""; + close; + +L_slow: + mes "[Miriam]"; + mes "Oh, wait, wait... " +@agi+ " Agility? Are you serious? What do you do with all your Character points? Put them all to 'Strength'? Really... I don't even want to know... Come back here when you have a decent character points distribution!\""; + close; + +L_lowlevel: + mes "[Miriam]"; + mes "\"Come back here when you are old enough. I even wonder how you could get here so unexperienced as you are.\""; + close; + +L_offer: + mes "[Miriam]"; + mes "\"Hmm! You look great in these clothes! They look very comfortable too... And it seems like you are not carrying too much weight.\""; + next; + if (!(getskilllv(SKILL_POOL))) goto L_noskill; + menu + "Yes, I look really good in this " +@torso$+ ".",-; + mes "[Miriam]"; + mes "\"I see. I like the way you distributed your Character Points too... " +@agi+ " points to Agility! You really know how to prepare yourself for a good fight!\""; + next; + mes "\"Well... Even if you have a potential to be a good fighter, moving the way you do will not help. You need to be fast to avoid the monsters. \""; + next; + mes "\"So, if you pass a small test I can teach you a skill that will increase your walking speed! You will not be as fast as I am, but I am sure it will be useful.\""; + next; + menu + "I'm in! What kind of test is it?",-, + "I don't think I need more speed right now",L_giveup; + +L_test: + mes "[Miriam]"; + mes "\"Great! The test is simple. You need to run as fast as you can from the place where I am sitting to the mountains and talk to Pachua, the chief. When you get there and talk to Pachua, he will send a special smoke signal to me, so I can know how much time it took for you to get there.\""; + next; + mes "\"If you make it in a good time, I will teach you the special speeding skill. If not, you can always try again. So, are you ready?\""; + next; + menu + "Yes, let's do it!",-, + "No, I need to stretch my muscles first!",L_stretch; + + close2; + message strcharinfo(0), "Miriam quickly grabs your arm and pull you to the place where she is sitting."; + // Warp the player to the place where the NPC is defined, so he can't cheat. + warp "032-1.gat",55,21; + npctalk "Run " +strcharinfo(0)+ ", run!"; + set QUEST_MIRIAM, 5; + set QUEST_MIRIAM_start, gettimetick(1); + set QUEST_MIRIAM_cheat, 0; + end; + +L_naked: + mes "[Miriam]"; + mes "\"Hmmm?! Please put on some clothes before talking to me.\""; + close; + +L_notfast: + mes "[Miriam]"; + mes "\"Hah! If you think so...\""; + close; + +L_noskill: + mes "[Miriam]"; + mes "\"For a person like you, I could even teach a useful skill! Too bad you don't have the basic abillities to learn it...\""; + close; + +L_giveup: + mes "[Miriam]"; + mes "\"Oh, that is too bad... But if you change your mind, come back!\""; + set QUEST_MIRIAM, 4; + close; + +L_testoffer: + mes "[Miriam]"; + mes "\"Are you ready for the test now?\""; + next; + menu + "Yes!",L_test, + "Not yet.",-; + close; + +L_warning: + mes "[Miriam]"; + mes "\"I know very well what you tried to do. I will not teach you the speed skill if you keep trying this kind of trick!\""; + next; + goto L_testoffer; + +L_stretch: + mes "[Miriam]"; + mes "\"Ok. Good idea... Stretching exercises can increase your flexibility and even prevent injuries!\""; + set QUEST_MIRIAM, 4; + close; + +L_wasting: + mes "[Miriam]"; + mes "\"Don't waste your time talking to me! RUN and talk to Pachua!\""; + close; + +L_checktime: + if (QUEST_MIRIAM_cheat != 0) goto L_warning; + if (QUEST_MIRIAM_run > 210) goto L_tryagain; + if (QUEST_MIRIAM_run <= 210) goto L_goodjob; + +L_tryagain: + mes "[Miriam]"; + mes "\"You needed " + QUEST_MIRIAM_run + " seconds to reach Pachua. It is not enough.\""; + set QUEST_MIRIAM_run, 0; + close; + +L_goodjob: + mes "[Miriam]"; + mes "\"Great job! You needed " + QUEST_MIRIAM_run + " seconds to reach Pachua. Very impressive for a person like you.\""; + next; + mes "\"Now I need you to relax. Do NOT move. This teaching process can be painful sometimes.\""; + next; + mes "Miriam stares into your eyes and starts to scream some strange words very close to your ears."; + next; + mes "You feel dizzy and as soon as you move your head and look to the ground, Miriam pushes you hard, sending you meters away from her."; + close2; + warp "032-1.gat",55,22; + // free all used player variables. This can be done, since there is a conditional on the speedskill at the beginning. + set QUEST_MIRIAM_start, 0; + set QUEST_MIRIAM_run, 0; + set QUEST_MIRIAM, 0; + message strcharinfo(0), "[You gain 2500 experience points]"; + message strcharinfo(0), "[You learned Speed Skill]"; + setskill SKILL_SPEED, 1; + getexp 2500, 0; + set QUEST_MIRIAM_cheat, 0; // reset just in case it is still set. + close; + +L_fast: + mes "[Miriam]"; + mes "\"I hope you make a good use of your new skill... Take care!\""; + set QUEST_MIRIAM_cheat, 0; // reset just in case it is still set. + close; + +} diff --git a/world/map/npc/032-3/_import.txt b/world/map/npc/032-3/_import.txt new file mode 100644 index 00000000..67304eae --- /dev/null +++ b/world/map/npc/032-3/_import.txt @@ -0,0 +1,5 @@ +// Map 032-3: Cave +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 032-3.gat +npc: npc/032-3/_mobs.txt +npc: npc/032-3/_warps.txt diff --git a/world/map/npc/032-3/_mobs.txt b/world/map/npc/032-3/_mobs.txt new file mode 100644 index 00000000..0e5fc998 --- /dev/null +++ b/world/map/npc/032-3/_mobs.txt @@ -0,0 +1,63 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave mobs + +032-3.gat,90,44,9,10 monster Sceleton 1043,3,30000,100000,Mob032-3::On1043 +032-3.gat,44,23,29,22 monster MountainSnake 1026,7,30000,100000,Mob032-3::On1026 +032-3.gat,125,46,35,75 monster MountainSnake 1010,13,30000,100000,Mob032-3::On1010 +032-3.gat,80,44,9,10 monster BlackScorpion 1009,5,30000,100000,Mob032-3::On1009 +032-3.gat,85,33,9,10 monster Spider 1012,5,30000,100000,Mob032-3::On1012 +032-3.gat,83,18,37,9 monster Archant 1060,8,30000,100000,Mob032-3::On1060 +032-3.gat,78,76,24,21 monster Archant 1060,8,30000,100000,Mob032-3::On1060 +032-3.gat,25,76,24,21 monster YellowSlime 1007,11,300000,1000000,Mob032-3::On1007 +032-3.gat,46,51,34,18 monster CaveMaggot 1056,11,30000,100000,Mob032-3::On1056 +032-3.gat,0,0,0,0 monster Bat 1017,25,30000,100000,Mob032-3::On1017 + + +032-3.gat,0,0,0 script Mob032-3 -1,{ +On1007: + set @mobID, 1007; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1010: + set @mobID, 1010; + callfunc "MobPoints"; + break; + +On1012: + set @mobID, 1012; + callfunc "MobPoints"; + break; + +On1017: + set @mobID, 1017; + callfunc "MobPoints"; + break; + +On1026: + set @mobID, 1026; + callfunc "MobPoints"; + break; + +On1043: + set @mobID, 1043; + callfunc "MobPoints"; + break; + +On1056: + set @mobID, 1056; + callfunc "MobPoints"; + break; + +On1060: + set @mobID, 1060; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/032-3/_warps.txt b/world/map/npc/032-3/_warps.txt new file mode 100644 index 00000000..e84a8da2 --- /dev/null +++ b/world/map/npc/032-3/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Cave warps + +032-3.gat,128,33 warp ToDesert -1,-1,006-1.gat,30,124 +032-3.gat,56,61 warp toDesert -1,-1,032-1.gat,64,53 diff --git a/world/map/npc/033-1/_import.txt b/world/map/npc/033-1/_import.txt new file mode 100644 index 00000000..32de0cb4 --- /dev/null +++ b/world/map/npc/033-1/_import.txt @@ -0,0 +1,5 @@ +// Map 033-1: Snow field +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 033-1.gat +npc: npc/033-1/_mobs.txt +npc: npc/033-1/_warps.txt diff --git a/world/map/npc/033-1/_mobs.txt b/world/map/npc/033-1/_mobs.txt new file mode 100644 index 00000000..61a53305 --- /dev/null +++ b/world/map/npc/033-1/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field mobs + + + +033-1.gat,0,0,0 script Mob033-1 -1,{ + end; +} diff --git a/world/map/npc/033-1/_warps.txt b/world/map/npc/033-1/_warps.txt new file mode 100644 index 00000000..37bdd507 --- /dev/null +++ b/world/map/npc/033-1/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field warps + diff --git a/world/map/npc/034-1/_import.txt b/world/map/npc/034-1/_import.txt new file mode 100644 index 00000000..e4b39026 --- /dev/null +++ b/world/map/npc/034-1/_import.txt @@ -0,0 +1,5 @@ +// Map 034-1: Snow field +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 034-1.gat +npc: npc/034-1/_mobs.txt +npc: npc/034-1/_warps.txt diff --git a/world/map/npc/034-1/_mobs.txt b/world/map/npc/034-1/_mobs.txt new file mode 100644 index 00000000..50d15f66 --- /dev/null +++ b/world/map/npc/034-1/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field mobs + + + +034-1.gat,0,0,0 script Mob034-1 -1,{ + end; +} diff --git a/world/map/npc/034-1/_warps.txt b/world/map/npc/034-1/_warps.txt new file mode 100644 index 00000000..37bdd507 --- /dev/null +++ b/world/map/npc/034-1/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Snow field warps + diff --git a/world/map/npc/041-1/_import.txt b/world/map/npc/041-1/_import.txt new file mode 100644 index 00000000..54c7edd1 --- /dev/null +++ b/world/map/npc/041-1/_import.txt @@ -0,0 +1,6 @@ +// Map 041-1: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 041-1.gat +npc: npc/041-1/_mobs.txt +npc: npc/041-1/_warps.txt +npc: npc/041-1/tutorial.txt diff --git a/world/map/npc/041-1/_mobs.txt b/world/map/npc/041-1/_mobs.txt new file mode 100644 index 00000000..227677aa --- /dev/null +++ b/world/map/npc/041-1/_mobs.txt @@ -0,0 +1,39 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + +041-1.gat,56,55,18,9 monster Scorpion 1003,3,100000,30000,Mob041-1::On1003 +041-1.gat,76,67,18,9 monster Scorpion 1003,3,100000,30000,Mob041-1::On1003 +041-1.gat,75,84,18,9 monster Scorpion 1003,3,100000,30000,Mob041-1::On1003 +041-1.gat,36,34,13,20 monster Scorpion 1003,3,100000,30000,Mob041-1::On1003 +041-1.gat,30,30,10,48 monster Sea Slime 1033,3,100000,30000,Mob041-1::On1033 +041-1.gat,34,13,10,9 monster Scorpion 1003,3,100000,30000,Mob041-1::On1003 +041-1.gat,35,7,3,2 monster Black Scorpion 1009,1,100000,30000,Mob041-1::On1009 +041-1.gat,41,49,3,2 monster Black Scorpion 1009,1,100000,30000,Mob041-1::On1009 +041-1.gat,70,75,21,9 monster Black Scorpion 1009,1,100000,30000,Mob041-1::On1009 +041-1.gat,75,57,18,9 monster Red Scorpion 1004,3,100000,30000,Mob041-1::On1004 +041-1.gat,58,64,18,9 monster Red Scorpion 1004,3,100000,30000,Mob041-1::On1004 + + +041-1.gat,0,0,0 script Mob041-1 -1,{ +On1003: + set @mobID, 1003; + callfunc "MobPoints"; + break; + +On1004: + set @mobID, 1004; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + + end; +} diff --git a/world/map/npc/041-1/_warps.txt b/world/map/npc/041-1/_warps.txt new file mode 100644 index 00000000..a7e06dc7 --- /dev/null +++ b/world/map/npc/041-1/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +041-1.gat,76,95 warp to004-1 1,-1,004-1.gat,68,20 diff --git a/world/map/npc/041-1/tutorial.txt b/world/map/npc/041-1/tutorial.txt new file mode 100644 index 00000000..866bc145 --- /dev/null +++ b/world/map/npc/041-1/tutorial.txt @@ -0,0 +1,9 @@ +// This file is part of the Tutorial +// Author: Jenalya +// if you enter the tutorial area, it is set to be already done + +041-1.gat,33,5,0 script #tutorial 127,1,0{ + set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + warp "042-1.gat", 17, 80; + end; +} diff --git a/world/map/npc/042-1/_import.txt b/world/map/npc/042-1/_import.txt new file mode 100644 index 00000000..98b8f3ab --- /dev/null +++ b/world/map/npc/042-1/_import.txt @@ -0,0 +1,9 @@ +// Map 042-1: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 042-1.gat +npc: npc/042-1/_mobs.txt +npc: npc/042-1/_warps.txt +npc: npc/042-1/hasan.txt +npc: npc/042-1/kaan.txt +npc: npc/042-1/malik.txt +npc: npc/042-1/valon.txt diff --git a/world/map/npc/042-1/_mobs.txt b/world/map/npc/042-1/_mobs.txt new file mode 100644 index 00000000..b5f58646 --- /dev/null +++ b/world/map/npc/042-1/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + + + +042-1.gat,0,0,0 script Mob042-1 -1,{ + end; +} diff --git a/world/map/npc/042-1/_warps.txt b/world/map/npc/042-1/_warps.txt new file mode 100644 index 00000000..1b24105f --- /dev/null +++ b/world/map/npc/042-1/_warps.txt @@ -0,0 +1,7 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +042-1.gat,87,76 warp toStorehouse -1,-1,042-2.gat,44,91 +042-1.gat,77,76 warp toStorehouse -1,-1,042-2.gat,22,91 +042-1.gat,62,62 warp toInside -1,-1,042-2.gat,29,60 +042-1.gat,37,56 warp toInside -1,-1,042-2.gat,44,29 diff --git a/world/map/npc/042-1/hasan.txt b/world/map/npc/042-1/hasan.txt new file mode 100644 index 00000000..fc0bf6fd --- /dev/null +++ b/world/map/npc/042-1/hasan.txt @@ -0,0 +1,259 @@ +// This file is part of the Tutorial +// Authors: Jenalya, alastrim + +042-1.gat,111,68,0 script Hasan 189,{ + + set @toll, 10000; + set @x, getx(0); + set @y, gety(0); + + if ($@scorp) goto L_Fear; + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; + if ( (@y < 64)&&(@x < 110) || (@x < 107) ) goto L_Cliff_Up; + if (hasan == 4) goto L_Thank; + if (hasan == 3) goto L_Trick; + if (hasan > 0) goto L_Toll; + + mes "[Unfriendly Guy]"; + mes "\"Hey! You can't pass here.\""; + next; + menu + "Why not?",-, + "Who says that?",-; + mes "[Unfriendly Guy]"; + mes "\"I, Hasan the Mighty, have decided to put a toll on this path.\""; + next; +L_Toll: + mes "[Hasan]"; + mes "\"Give me " + @toll + "GP, and I may let you pass.\""; + if (hasan == 0) + set hasan, 1; + next; + if (zeny >= @toll) + menu + "Ok, here you go.",L_Pay, + "What? I don't have that much money!",L_NoPay, + "We'll see if you can stop me!",L_Fight; + menu + "What? I don't have that much money!",L_NoPay, + "We'll see if you can stop me!",L_Fight; + close; + +L_NoPay: + mes "[Hasan]"; + mes "\"That's not my problem. You have to stay here then.\""; + close; + +L_Fight: + mes "He laughs derisively."; + mes "[Hasan]"; + mes "\"Do you really think you can beat me?\""; + mes "He pulls out a nasty looking dagger and stabs it in your direction."; + set hp, 1; + mes "That hurt! You begin to think searching for a different solution might be healthier."; + close; + +L_Pay: + if (zeny < @toll) + goto L_Cheat; + set zeny, zeny - @toll; + mes "He grins gloatingly."; + mes "[Hasan]"; + mes "\"Very well. You may pass.\""; + set hasan, 0; + set kaan, 0; + set sorfina, 0; + set tanisha, 0; + set maggot, 0; + set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + close; + +L_Cheat: + mes "[Hasan]"; + mes "\"Don't you dare try to cheat me!\""; + close; + +L_Trick: + mes "[Hasan]"; + mes "\"Are you going to pay now? " + @toll + "GP, and I may let you pass.\""; + next; + menu + "I don't have that much money!",L_NoPay, + "No. (Scratch your head.)",-; + if ($@scorp == 1) goto L_Wait; + mes "While you're scratching your head, you see Kaan coming nearer to the cliff above you."; + close2; + monster "042-1.gat",110,70,"Scorpion",1003,1, "Hasan::onScorpionDeath"; + set $@ScorpionFighter$, strcharinfo(0); + set $@scorp, 1; + set $@ScorpDeath, PC_DIE_COUNTER; + startnpctimer; + end; + +L_Thank: + mes "[Hasan]"; + mes "\"You - you saved me!"; + mes "I tried to take your money and you saved me!\""; + next; + mes "\"Hey, you're a really cool person."; + mes "I mean, the way you finished that ghastly scorpion!"; + mes "Amazing!\""; + next; + mes "\"Let me tell you a secret: Cool persons are allowed to pass for free."; + mes "And you can have my Sharp Knife.\""; + getitem "SharpKnife", 1; + next; + set hasan, 0; + set kaan, 0; + set sorfina, 0; + set tanisha, 0; + set maggot, 0; + set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + mes "\"You want to go to the bazaar, right? Shall I bring you there?\""; + next; + menu + "Sure, thanks.",-, + "I'll try to find the way myself.",L_Explore, + "Could you just tell me the way?",L_Directions; + warp "001-1.gat", 44, 40; + close; + +L_Explore: + mes "[Hasan]"; + mes "\"Alright. Take care!\""; + close; + +L_Directions: + mes "[Hasan]"; + mes "\"Ok, when you leave here follow the road past the docks until you reach the old city gates.\""; + next; + mes "\"Pass through them and at the crossway, just go west and then south until you reach some other gateway.\""; + next; + mes "\"Behind it there is the bazaar of Tulimshar.\""; + close; + +L_Fear: + mes "[Hasan]"; + mes "\"Sc-sc-sco-scorpion!\""; + mes "He seems close to tears."; + close; + +L_Tut_Done: + mes "[Hasan]"; + if (baselevel >= 40) + mes "\"Welcome to the suburbs of Tulimshar. I wonder what an experienced adventurer like you is doing here.\""; + if (baselevel < 40) + mes "\"Bah, nothing interesting is happening here.\""; + close; + +L_Distance: + mes "There is a person off in the distance. He doesn't seem to notice you, maybe you should go closer."; + close; + +L_Cliff_Up: + mes "You see a guy in shabby clothes when you look down the cliff."; + close; + +L_SummonAgain: + message strcharinfo(0), "Kaan is mad at you for your interference! He walks over to the edge of the cliff and throws a rock on top of your head, then lets another scorpion run just near Hasan!"; + percentheal -100, 0; + attachrid(getcharid(3,$@ScorpionFighter$)); + message strcharinfo(0), "Kaan: \"Just go while he is distracted and no one is interfering!\""; + monster "042-1.gat",110,70,"Scorpion",1003,1, "Hasan::onScorpionDeath"; + end; + +L_Clean: + killmonster "042-1.gat", "Hasan::onScorpionDeath"; + set $@ScorpionTimer, 0; + set $@scorp, 0; + stopnpctimer; + setnpctimer 0; + if (isloggedin(getcharid(3,$@ScorpionFighter$))==0) end; + attachrid(getcharid(3,$@ScorpionFighter$)); + if (PC_DIE_COUNTER > $@ScorpDeath) goto L_MessageDeath; + message strcharinfo(0), "Hasan, with his eyes almost closed, trembling with fear, runs toward the scorpion and stabs it with all his strength! Seems like you took too long and the plan didn't work this time."; + warp "042-1.gat", 112, 64; + message strcharinfo(0), "Hasan: \"Hey you! I told you you cannot pass!\""; + set $@ScorpionFighter$, ""; + end; + +L_MessageDeath: + message strcharinfo(0), "Ouch... I should be more careful when fighting these monsters."; + end; + +L_Wait: + mes "There is a scorpion near Hasan already. I think Kaan is helping someone else... Maybe I should try the plan later."; + close; + +OnTimer5000: + if(isloggedin(getcharid(3,$@ScorpionFighter$))==0) goto L_Clean; + set $@ScorpionTimer, $@ScorpionTimer + 5; + if ($@ScorpionTimer >= 300) goto L_Clean; + attachrid(getcharid(3,$@ScorpionFighter$)); + if (PC_DIE_COUNTER > $@ScorpDeath) goto L_Clean; + setnpctimer 0; + end; + +onScorpionDeath: + if (strcharinfo(0) != $@ScorpionFighter$) goto L_SummonAgain; + set $@scorp, 0; + if (hasan != 3) + close; + set hasan, 4; + message strcharinfo(0), "You saved Hasan."; + set $@ScorpionTimer, 0; + set $@ScorpionFighter$, ""; + stopnpctimer; + setnpctimer 0; + end; + +OnInit: + initnpctimer; + stopnpctimer; + +} + +042-1.gat,111,68,0 script #Toll 45,2,2,{ + + end; + +OnTouch: + if ($@scorp && $@ScorpionFighter$ == strcharinfo(0)) + end; + if ((FLAGS & FLAG_TUTORIAL_DONE) || (hasan == 4)) + end; + if ($@scorp && $@ScorpionFighter$ != strcharinfo(0)) + goto L_Scared; + +L_Normal: + warp "042-1.gat", 112, 64; + message strcharinfo(0), "Hasan: \"Stop!\""; + end; + +L_Scared: + warp "042-1.gat", 112, 64; + message strcharinfo(0), "Hasan seems to be completely irrational. He waves his sharp knife in the air with his eyes closed and scratches you. Maybe you shouldn't get too close or you are going to get hurt."; + percentheal -10, 0; + end; + +} + +042-1.gat,117,76,0 script #barrier 45,0,2{ + end; +OnTouch: + if (FLAGS & FLAG_TUTORIAL_DONE) + goto L_Tut; + warp "042-1.gat", 115, 76; + if ($@scorp && $@ScorpionFighter$ == strcharinfo(0)) + message strcharinfo(0), "Hasan: \" " + strcharinfo(0) + "! Please help me!\""; + if ($@scorp && $@ScorpionFighter$ != strcharinfo(0)) + message strcharinfo(0), "Hasan: \"Hey! Stop right there!\""; + if (!$@scorp && hasan == 4) + message strcharinfo(0), "Hasan: \"Please wait a moment!\""; + end; +L_Tut: + warp "022-1.gat", 23, 38; + end; + + +} diff --git a/world/map/npc/042-1/kaan.txt b/world/map/npc/042-1/kaan.txt new file mode 100644 index 00000000..6b9e34ca --- /dev/null +++ b/world/map/npc/042-1/kaan.txt @@ -0,0 +1,159 @@ +// This file is part of the Tutorial +// Author: Jenalya + +042-1.gat,106,70,0 script Kaan 160,{ + + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; + if (hasan == 4) goto L_Hasan_Saved; + if ($@ScorpionFighter$ == strcharinfo(0)) goto L_Run; + if (kaan == 4) goto L_Plan; + if (kaan == 3) goto L_Trick; + if (kaan == 2) goto L_Out; + if (kaan == 1) goto L_Tanisha; + + mes "[Young Man]"; + mes "\"You're the person Tanisha brought here, right?"; + mes "My name is Kaan, I'm her brother.\""; + next; + mes "\"She was babbling at me about it all the morning until I sent her to take care of the maggots in the storehouse.\""; + next; + mes "Kaan grins mischieviously."; + mes "[Kaan]"; + mes "\"She hates maggots.\""; + next; + mes "\"Maybe you should go and see her...she was really upset about what happened to you.\""; + set kaan, 1; + if (tanisha >= 3) + goto L_Tanisha2; + close; + +L_Tanisha2: + menu + "I already did and helped her with the maggots.",L_Tanisha3, + "I talked to her, and she's done with the maggots.",L_Tanisha3; + +L_Tanisha: + mes "[Kaan]"; + mes "\"Did you already talk to Tanisha?\""; + if (tanisha < 3) + close; + next; + menu + "Yes, I helped her with the maggots.",-, + "Yeah, and she's done with the maggots.",-; +L_Tanisha3: + mes "[Kaan]"; + mes "\"Ah, that is good news."; + mes "You know, we have a lot of problems with bugs here.\""; + next; + mes "\"If we don't watch out the maggots will eat all of our stocks."; + mes "And the desert is crawling with scorpions."; + mes "They also come here and you need to watch out not to step on them.\""; + next; + mes "\"But I took care of that problem.\""; + mes "He looks very proud."; + next; + mes "\"I build this fence to keep them out.\""; + next; + menu + "Impressive! Just a bit... skewed.",-, + "Wow, it looks very - ahm, unconventional.",-; + mes "[Kaan]"; + mes "\"Well, it keeps the scorpions out. That's all that matters.\""; + next; + mes "\"Are you going to visit Tulimshar?"; + mes "The bazaar there is a wondeful place! Traders, entertainers, adventurers - it's very exciting.\""; + next; + mes "\"And Ian the trainer is hanging around there often. You should talk to him, he's a smart guy.\""; + set kaan, 2; + if (hasan) + menu + "A guy named Hasan won't let me enter Tulimshar.",L_Hasan, + "Thanks for the advice.",L_Close; + close; + +L_Out: + mes "[Kaan]"; + mes "\"Hello! How are you? Did you already visit Tulimshar?\""; + next; + if (hasan) + menu + "A guy named Hasan won't let me enter Tulimshar.",L_Hasan, + "Not yet.",L_Close; + menu + "Not yet.",L_Close; + close; + +L_Hasan: + mes "[Kaan]"; + mes "\"Hasan! That's crazy. He becomes more cheeky with every day."; + mes "I'd like to help you, but - I won't risk an open confrontation with him.\""; + next; + mes "\"Sometimes he just freaks out and then he's dangerous."; + mes "We should think about some kind of trick. Ah, if only I knew his weak point.\""; + next; + mes "\"He might listen to one of the adult men, but they're all off to work in Tulimshar during the day.\""; + set kaan, 3; + next; +L_Trick: + mes "[Kaan]"; + mes "\"Do you have any idea what Hasans weakness could be?"; + if (hasan < 2) + close; + next; + menu + "He's afraid of scorpions.",-, + "No idea.",L_Close; + mes "[Kaan]"; + mes "\"Scorpions?! Right! How could I forget?"; + mes "When he was a child, he nearly died because he fell into a scorpion nest.\""; + next; +L_Explain: + mes "\"Ok, then here's the plan:"; + mes "I will catch one of the scorpions that's coming to the fence from the desert.\""; + next; + mes "\"You'll go to Hasan and give me a sign when you're ready."; + mes "Lets say the sign is that you're scratching your head."; + mes "I'll watch you from this point.\""; + next; + mes "\"When you give me the sign, I'll throw the scorpion down on him."; + mes "While he's distracted with the scorpion, you can pass.\""; + next; + mes "\"How's that? We can start as soon as you're ready.\""; + if (kaan == 3) + set kaan, 4; + set hasan, 3; + close; + +L_Plan: + mes "[Kaan]"; + mes "\"I'm ready. Just give me the sign when you're down there."; + mes "Or do you want me to explain the plan again?\""; + next; + menu + "Yes please.",L_Explain, + "No, everything's alright.",-; + close; + +L_Hasan_Saved: + mes "[Kaan]"; + mes "\"I told you to pass when he's distracted, not to fight the scorpion!"; + mes "But maybe Hasan is thankful now?\""; + next; + mes "\"Why don't you talk to him again and see what he says.\""; + close; + +L_Tut_Done: + mes "[Kaan]"; + mes "\"Hi there. I hope you enjoy your time in Tulimshar."; + mes "Hasan can be a real troublemaker, but it seems like he has calmed down for now.\""; + close; + +L_Run: + mes "[Kaan]"; + mes "\"He's distracted! What are you waiting for?\""; + close; + +L_Close: + close; +} diff --git a/world/map/npc/042-1/malik.txt b/world/map/npc/042-1/malik.txt new file mode 100644 index 00000000..389d3233 --- /dev/null +++ b/world/map/npc/042-1/malik.txt @@ -0,0 +1,21 @@ +042-1.gat,105,60,0 script Malik 162,{ + + menu + "Reset",-, + "Test Scorpion Fight", L_Scorp, + "close",L_Close; + set hasan, 0; + set kaan, 0; + set sorfina, 0; + set tanisha, 0; + set maggot, 0; + set FLAGS, FLAGS & ~FLAG_TUTORIAL_DONE; +L_Close: + close; + +L_Scorp: + set sorfina, 4; + set kaan, 4; + set hasan, 3; + close; +} diff --git a/world/map/npc/042-1/valon.txt b/world/map/npc/042-1/valon.txt new file mode 100644 index 00000000..7ebd6971 --- /dev/null +++ b/world/map/npc/042-1/valon.txt @@ -0,0 +1,38 @@ +// This file is part of the Tutorial +// Author: Jenalya + +042-1.gat,17,82,0 script Valon 156,1,0{ + + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; + + mes "[Valon]"; + mes "\"Hello!"; + mes "You're looking for adventures, right?\""; + next; + mes "\"But you shouldn't underestimate this desert, it is dangerous.\""; + next; + mes "\"It's crawling with scorpions, and the heat has overcome men tougher than you are.\""; + next; + mes "\"If you really want to challenge the desert go to Tulimshar first to prepare yourself.\""; + close; + +L_Tut_Done: + mes "[Valon]"; + mes "\"Hello!"; + mes "You're an adventurer, right?\""; + next; + mes "\"Be careful in the desert.\""; + close; + +OnTouch: + if (FLAGS & FLAG_TUTORIAL_DONE) + goto L_Tut; + warp "042-1.gat", 17, 81; + mes "[Valon]"; + mes "\"The desert is merciless."; + mes "I can't let you leave like this.\""; + close; +L_Tut: + warp "041-1.gat", 33, 8; + end; +} diff --git a/world/map/npc/042-2/_import.txt b/world/map/npc/042-2/_import.txt new file mode 100644 index 00000000..604c82cd --- /dev/null +++ b/world/map/npc/042-2/_import.txt @@ -0,0 +1,8 @@ +// Map 042-2: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 042-2.gat +npc: npc/042-2/_mobs.txt +npc: npc/042-2/_warps.txt +npc: npc/042-2/mapflags.txt +npc: npc/042-2/sorfina.txt +npc: npc/042-2/tanisha.txt diff --git a/world/map/npc/042-2/_mobs.txt b/world/map/npc/042-2/_mobs.txt new file mode 100644 index 00000000..3a980e8f --- /dev/null +++ b/world/map/npc/042-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + + + +042-2.gat,0,0,0 script Mob042-2 -1,{ + end; +} diff --git a/world/map/npc/042-2/_warps.txt b/world/map/npc/042-2/_warps.txt new file mode 100644 index 00000000..8b3c666c --- /dev/null +++ b/world/map/npc/042-2/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + +042-2.gat,29,62 warp toOutside -1,-1,042-1.gat,62,64 +042-2.gat,22,93 warp toOutside -1,-1,042-1.gat,77,78 +042-2.gat,44,93 warp toOutside -1,-1,042-1.gat,87,78 diff --git a/world/map/npc/042-2/mapflags.txt b/world/map/npc/042-2/mapflags.txt new file mode 100644 index 00000000..c9f5cc23 --- /dev/null +++ b/world/map/npc/042-2/mapflags.txt @@ -0,0 +1 @@ +042-2.gat mapflag nosave 042-2,26,26; diff --git a/world/map/npc/042-2/sorfina.txt b/world/map/npc/042-2/sorfina.txt new file mode 100644 index 00000000..53596b32 --- /dev/null +++ b/world/map/npc/042-2/sorfina.txt @@ -0,0 +1,289 @@ +// This file is part of the Tutorial +// Author: Jenalya + +042-2.gat,28,26,0 script Sorfina 154,4,4{ + + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Again; + if (sorfina == 4) goto L_Again; + if (sorfina == 3) goto L_Clothes; + if (sorfina == 2) goto L_Chest; + if (sorfina == 1) goto L_Carpet; + + callfunc "GameRules"; +L_Start: + mes "You open your eyes."; + mes ""; + mes "[Old Woman]"; + mes "\"Ah, you woke up. It seems you collapsed after you left the boat that brought you to Tulimshar."; + mes "A group of ragtags immediately took advantage of that and stole all your stuff!\""; + next; + mes "\"My little granddaughter Tanisha saw that, but couldn't do anything to stop them."; + mes "She hurried to get someone to help. It was too late to catch the thieves, but at least the helpers brought you here to recover.\""; + next; + mes "\"We're in the suburbs of Tulimshar here and this area of the town is full of shady people, so I don't think there's a chance to get your stuff back.\""; + mes "She has a sad look on her face, but then she shakes her head and smiles."; + next; + mes "[Old Woman]"; + mes "\"Did you come here to look for a job? Many young people come to Tulimshar for this reason.\""; + next; + mes "\"I can tell you some useful things, if you want to hear."; + mes "Oh, and by the way my name is Sorfina.\""; + next; + menu + "That would be great!",L_Tut, + "No, thanks. I already know how things are going.",L_SkipTut; + +L_Tut: + mes "[Server]"; + mes "The explanations in this tutorial are based on the official client version 0.5.2"; + mes "If you're using another client, settings and controls may be different."; + next; + mes "She smiles at you."; + mes "[Sorfina]"; + mes "\"A wise decision.\""; + next; + mes "\"You still look rather shaky."; + mes "You're not used to the hot weather, right?\""; + next; +L_Carpet: + mes "\"Try to take a few steps and walk to that red carpet over there."; + mes "Just use the arrow keys or click on the place you want to go to.\""; + if (!sorfina) + set sorfina, 1; + close; + +L_Chest: + mes "[Sorfina]"; + mes "\"In that chest there is a shirt you can have.\""; + next; + mes "\"To interact with things in your environment or talk to NPCs you can either click on it or press N to focus and T to talk/activate.\""; + next; + mes "\"Now get the shirt out of the chest.\""; + close; + +L_Naked: + mes "\"Press F3 or click on the Inventory button in the bar at the upper right corner to open your bag.\""; + next; + mes "\"Once we stop talking, click on the shirt and press the equip button.\""; + next; + mes "\"Talk to me again after you get dressed. You can either click on me, or press N to focus on me and T to talk.\""; + close; + +L_Clothes: + if (getequipid(equip_torso) < 0) goto L_Naked; + mes "[Sorfina]"; + mes "\"That's much better, don't you think?\""; + next; + mes "\"I think this will help you a bit. To get more informations, press the button Setup and look at the controls on the Keyboard tab. You can also change them as you like."; + mes "Talk to me again if you want me to explain more things.\""; + next; + mes "\"Now you should go to see my granddaughter, she is very worried. She's in the storehouse, that's the second building southeast from here.\""; + next; + mes "\"Oh, and if you're looking for work, you should talk to Aidan when you go to Tulimshar. They're giving rewards for monster hunting."; + mes "You can find him near the south gate. Good luck.\""; + set sorfina, 4; + close; + +L_Again: + mes "[Sorfina]"; + mes "\"Make yourself at home! Do you have any questions?\""; + next; + if (hasan) + menu + "A guy named Hasan won't let me enter Tulimshar.",L_Hasan, + "Yes, could you explain again about...",L_Explain, + "No, thanks.",L_Close; + menu + "Yes, could you explain about...",L_Explain, + "No, thanks.",L_Close; + close; + +L_Explain: + menu + "... walking?",L_Walk, + "... talking?",L_Talk, + "... the inventory and items?",L_Items, + "... shortcuts?",L_Shortcut, + "... what to do in Tulimshar?",L_Aidan, + "... nevermind.",L_Close; + close; + +L_Walk: + mes "[Sorfina]"; + mes "\"You can use the arrow keys to walk around."; + mes "Or just click on the place you want to go to."; + mes "But this only works if that place is reachable and walkable.\""; + close; + +L_Talk: + mes "[Sorfina]"; + mes "\"If you want to talk to a normal person, you can click at him or her."; + mes "Or you can press N to focus on the nearest person and then press T to talk.\""; + next; + mes "\"If you want to talk to other adventurers, press Enter to open your chat window."; + mes "Then type your message and press Enter to send.\""; + next; + mes "\"You may want to talk privately to another adventurer sometimes. In that case you can whisper."; + mes "After pressing Enter type '/whisper [name] [message]'."; + mes "Or you can right click on someone and choose the whisper option.\""; + next; + mes "\"Press F7 to show and hide your chat window.\""; + close; + +L_Items: + mes "[Sorfina]"; + mes "\"There are three types of items."; + mes "They can be Consumables, Equipment or Miscellaneous.\""; + next; + mes "\"Consumable items such as Potions, can be used only once."; + mes "After use, they will disappear from your inventory."; + mes "There are some rare items that can be used but don't get consumed."; + next; + mes "\"Equipment items like Armors, Weapons, Accessories can be equipped for fashionable purposes or to raise your status.\""; + next; + mes "\"Miscellaneous items such as maggot slime, can be used in creating other items, or just to trade and sell.\""; + next; + mes "\"Press F3 to open your inventory."; + mes "When placing your cursor over an item there, you can see a box with some informations about that item.\""; + next; + mes "\"To use or equip an item, select it by clicking on it."; + mes "Then press Use or Equip.\""; + close; + +L_Shortcut: + mes "[Sorfina]"; + mes "\"Press F8 or click the Shortcut button in the bar at the upper right to open your shortcut window.\""; + next; + mes "\"You can select the item you want to put on a shortcut with your mouse and then click on the position in the shortcut window you want to place it.\""; + next; + mes "\"Now you can use or equip/unequip it by pressing the number of the shortcut.\""; + close; + +L_Aidan: + mes "[Sorfina]"; + mes "\"I suggest to go to the bazaar near the south gate."; + mes "We're in the north of Tulimshar here, so you have to walk across the town.\""; + next; + mes "\"When you leave this area to the Southeast, you'll come to the docks."; + mes "Follow the street to the south to pass the old town gates.\""; + next; + mes "\"Turn West at the next intersection. You'll pass by the gates of Tulimshar's famos magic school there."; + mes "Just follow the street to the south and you'll reach the bazaar.\""; + next; + mes "\"I heard Aidan is looking for brave adventurers, you might want to talk to him."; + mes "Usually the bazaar is bustling with activity, there are many people who can help. "; + mes "Talk to everybody. You can never tell when they might know something useful.\""; + close; + +L_Hasan: + mes "[Sorfina]"; + mes "\"Ah, Hasan. He's causing trouble again?\""; + mes "She shakes her head."; + next; + mes "[Sorfina]"; + mes "\This guy has been a plague ever since he could walk. He's always causing trouble.\""; + next; + mes "\"And his father... Well, one day his father thought he should teach Hasan a lesson.\""; + next; + mes "\"He took him into the desert and then left him there!"; + mes "Hasan was only seven years old!\""; + next; + mes "\"I never understood how someone could do something like that to a child, even if it's a rascal like Hasan.\""; + next; + mes "\"Anyway, Hasan tried to find his way back home, but stumbled into a nest of scorpions!\""; + mes "She shakes her head."; + next; + mes "\"If Valon hadn't have come along that moment, Hasan would have died that day.\""; + next; + mes "\"However, the scorpions poison caused a bad fever and once Hasan had recovered from that, he was even more malicious than before.\""; + mes "She sighs."; + if (hasan == 1) + set hasan, 2; + close; + +L_SkipTut: + mes "[Sorfina]"; + mes "\"Really? You seem quite unexperienced. Listening to some advice won't hurt.\""; + next; + menu + "Thinking about it twice... please tell me.",L_Tut, + "Yeah, but thanks for the offer. Bye.",-; + mes "[Sorfina]"; + mes "\"Alright, if you say so. But take at least this."; + set hasan, 0; + set kaan, 0; + set sorfina, 0; + set tanisha, 0; + set maggot, 0; + set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + getitem "Knife", 1; + getitem "CottonShirt", 1; + mes "Good luck.\""; + close; + +L_Close: + close; + +OnTouch: + if (TUT_var != 0) close; + callfunc "GameRules"; + goto L_Start; + close; +} + +042-2.gat,33,27,0 script #Carpet 45,1,1{ + end; +OnTouch: + if (sorfina != 1) + end; + mes "[Sorfina]"; + mes "\"Very good! I'm glad you're recovering."; + mes "Now you should get dressed again.\""; + next; + mes "Sorfina unlocks the chest behind her."; + next; + mes "[Sorfina]"; + mes "\"In that chest there is a shirt you can have.\""; + next; + mes "\"To interact with things in your environment or talk to NPCs you can either click on it or press N to focus and T to talk/activate.\""; + next; + mes "\"Now get the shirt out of the chest.\""; + set sorfina, 2; + close; +} + +042-2.gat,27,23,0 script Chest 111,{ + + if (sorfina > 2) goto L_Empty; + if (sorfina == 2) goto L_Shirt; + + mes "The chest is locked."; + close; +L_Shirt: + mes "You take a simple Cotton Shirt out of the chest."; + getitem "CottonShirt", 1; + next; + mes "[Sorfina]"; + mes "\"Great! Now you can equip it.\""; + next; + mes "\"You can open your inventory by pressing F3 or clicking on the 'Inventory' button in the bar at the upper right corner.\""; + next; + mes "\"After we finish talking, click on the shirt and press the equip button.\""; + set sorfina, 3; + close; + +L_Empty: + mes "The chest is empty."; + close; +} + +042-2.gat,44,31,0 script #DoorOut 45,0,0{ + end; +OnTouch: + if ((sorfina < 4) && !(FLAGS & FLAG_TUTORIAL_DONE)) goto L_Block; + warp "042-1.gat", 37, 57; + end; +L_Block: + message strcharinfo(0), "Sorfina: Wait a moment! You're not ready to leave."; + end; +} diff --git a/world/map/npc/042-2/tanisha.txt b/world/map/npc/042-2/tanisha.txt new file mode 100644 index 00000000..3ed5c6bc --- /dev/null +++ b/world/map/npc/042-2/tanisha.txt @@ -0,0 +1,275 @@ +// This file is part of the Tutorial +// Authors: Jenalya, alastrim + +042-2.gat,37,90,0 script Tanisha 114,{ + + set @playerlimit, 4; + + if ((getx(0) > 29) && (getx(0) < 37) && (gety(0) > 84) && (gety(0) < 90)) goto L_Fighting; + + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; + if (tanisha == 4) goto L_Again; + if (tanisha == 3) goto L_Stats; + if (tanisha == 2) goto L_Fail; + if (tanisha == 1) goto L_Maggots; + + mes "[Tanisha]"; + mes "\"Hey! You're up again!\""; + emotion 3; + next; + mes "\"Are you feeling better?\""; + next; + menu + "Yes, thank you.",-, + "Yeah, but all my stuff is gone.",-; + mes "[Tanisha]"; + mes "\"I'm glad you're feeling better. It was really bad luck what happened to you."; + mes "Hey, I have an idea.\""; + next; +L_Maggots: + set tanisha, 1; + mes "\"There are some maggots eating the goods and I'm supposed to get rid of them."; + mes "But they're so yucky!\""; + next; + mes "\"If you kill them, I'll give you my knife."; + mes "What do you say?\""; + next; + menu + "Sure!",-, + "That's your job.",L_Close; + mes "[Tanisha]"; + mes "\"Wonderful!\""; + if ($@TUT_MAGGOT >= @playerlimit) + goto L_Crowded; + set $@TUT_MAGGOT, $@TUT_MAGGOT + 1; + getitem "Knife", 1; + next; +L_Fight_Again: + mes "\"Ok, listen what to do."; + mes "Equip the knife and kill the maggots.\""; + next; + mes "\"Press A to focus on a monster. With X you can focus and start attacking the same time."; + mes "But it also works to click on the monster with your mouse.\""; + next; + mes "\"If you press the left Shift button, you can abort your attack.\""; + next; + mes "\"Maggots aren't aggressive, so they won't harm you until you attack them first. Take them out one by one.\""; + next; + mes "\"Sometimes dead monsters leave some useful things. You can pick them up by pressing Z or clicking on the items with your mouse.\""; + set tanisha, 2; + set @maggot, 0; + set @time, 0; + close2; + warp "042-2.gat", 33, 87; + +L_Summon: + monster "042-2.gat", getx(0), gety(0), "", 1002, 1, "Tanisha::onMaggotDeath"; + startnpctimer; + end; + +L_Stats: + mes "[Tanisha]"; + mes "\"That was great! Like a professional exterminator!\""; + next; + mes "\"And it seems you became stronger and more experienced."; + mes "That means you got some status points which you can use to increase your abilities.\""; + next; + mes "\"Press F2 or click the Status button in the bar at the upper right to see your status window. There you can distribute your points on six different properties.\""; + next; +L_StatsRe: + mes "\"Strength makes you hit harder and you can carry more weight.\""; + next; + mes "\"Agility increases your attack speed and your ability to dodge attacks.\""; + next; + mes "\"Vitality gives you more hit points and more defense against physical attacks.\""; + next; + mes "\"Intelligence is useful for magic attack and defense.\""; + next; + mes "\"Dexterity is needed to hit monsters. It's also very important for the damage if you use a ranged weapon.\""; + next; + mes "\"Luck gives you the chance to do critical hits and lowers the chance to receive a critical hit from your opponent.\""; + next; + mes "\"Think about how you want to play before assigning the points.\""; + next; + mes "Also I heard rumors about a strange guy lurking around in the desert south of Tulimshar who can help you to forget your abilities!\""; + mes "Tanisha looks at you with wide opened eyes."; + next; + mes "[Tanisha]"; + mes "\"But I doubt he'd do that without a service in return.\""; + + if (tanisha == 3) goto L_Advice; + close; + +L_Advice: + next; + mes "[Tanisha]"; + mes "\"When you go to Tulimshar, you should see Bernard. He can make a delicious soup!"; + mes "Good luck!\""; + emotion 3; + if (tanisha == 3) + set tanisha, 4; + close; + +L_Again: + mes "[Tanisha]"; + mes "\"Hi there! Is everything alright? Do you have questions?\""; + next; + if (hasan) + menu + "A guy named Hasan won't let me enter Tulimshar.",L_Hasan, + "Yes, could you explain again about...",L_Explain, + "No, thanks.",L_Close; + menu + "Yes, could you explain again about...",L_Explain, + "No, thanks.",L_Close; + close; + +L_Explain: + menu + "... how to fight?",L_Fight, + "... monsters?",L_Mob, + "... status points?",L_StatsRe, + "... what to do in Tulimshar?",L_Advice, + "... nevermind.",L_Close; + +L_Fight: + mes "[Tanisha]"; + mes "\"Press A to focus on a monster. With X you can focus and attack."; + mes "But it also works to click on the monster with your mouse.\""; + next; + mes "\"If you press the left Shift button, you can abort your attack.\""; + next; + mes "\"Sometimes dead monsters leave some useful things. You can pick them up with pressing Z or clicking on the items with your mouse.\""; + next; + mes "\"If you feel exhausted from battle you can sit down by pressing S to recover faster.\""; + close; + +L_Mob: + mes "[Tanisha]"; + mes "\"I don't know much about monsters, I'm just a little girl. But I know a few things."; + mes "There are several types of monsters...Aggressive, Neutral, and Assistants.\""; + next; + mes "\"Aggressive monsters will attack you as soon as they see you.\""; + next; + mes "\"Neutral monsters are peaceful until they get attacked.\""; + next; + mes "\"Assistants are monsters who help each other.\""; + close; + +L_Hasan: + mes "[Tanisha]"; + mes "\"Bah, Hasan. He's a jerk. But he's very strong.\""; + next; + mes "\"The only thing he's afraid of are scorpions."; + mes "I'm not sure why, some bad experience when he was a child."; + mes "That was before I was born.\""; + if (hasan == 1) + set hasan, 2; + close; + +L_Tut_Done: + mes "[Tanisha]"; + mes "\"These yucky maggots! They're eating our goods!"; + mes "No matter how many of them you kill, they always come back.\""; + mes "She sighs."; + next; + mes "[Tanisha]"; + mes "\"Do you have any questions?\""; + menu + "Yes, could you explain about...",L_Explain, + "No, thanks.",L_Close; + close; + +L_Crowded: + mes "[Tanisha]"; + mes "\"That's great! But..."; + mes "it seems a little crowded in there.\""; + next; + mes "\"Let's wait a short while.\""; + close; + +L_Sleep: + warp "042-2.gat", 36, 90; + mes "[Tanisha]"; + mes "\"What are you doing in there?"; + mes "Sleeping?"; + mes "Come back when you're serious.\""; + set @maggot, 0; + set @time, 0; + if ($@TUT_MAGGOT > 0) + set $@TUT_MAGGOT, $@TUT_MAGGOT - 1; + if ($@TUT_MAGGOT == 0) stopnpctimer; + if ($@TUT_MAGGOT == 0) setnpctimer 0; + close; + +L_Fail: + mes "Tanisha seems to be trying hard to supress laughter."; + mes "[Tanisha]"; + mes "\"The maggots defeated you.\""; + next; + mes "She bursts out with laughter."; + mes "[Tanisha]"; + mes "\"Oops, I'm sorry. It's just too funny."; + mes "Do you want to try it again?\""; + next; + menu + "Sure!",-, + "No, I need a rest.",L_Close; + if ($@TUT_MAGGOT >= @playerlimit) + goto L_Crowded; + goto L_Fight_Again; + set $@TUT_MAGGOT, $@TUT_MAGGOT + 1; + close; + +L_Fighting: + message strcharinfo(0), "Tanisha: I believe in you!"; + end; + +OnTimer1000: + setnpctimer 0; + if (getareausers("042-2.gat", 29, 85, 36, 90) < 1) + goto L_CleanUp; + areatimer "042-2.gat", 30, 85, 36, 89, 10, "Tanisha::onTick"; + end; + +L_CleanUp: + killmonster "042-2.gat", "Tanisha::onMaggotDeath"; + set $@TUT_MAGGOT, 0; + stopnpctimer; + setnpctimer 0; + end; + +onTick: + set @time, @time + 1; + if (@time > 300) + goto L_Sleep; + if (isdead(0)) end; + if (hp > 20) + goto L_NoHeal; + heal MaxHp, 0; + message strcharinfo(0), "Tanisha: You're doing good!"; +L_NoHeal: + if (@maggot < 5) + end; + warp "042-2.gat", 36, 90; + set tanisha, 3; + set @maggot, 0; + set @time, 0; + if ($@TUT_MAGGOT > 0) + set $@TUT_MAGGOT, $@TUT_MAGGOT - 1; + if ($@TUT_MAGGOT == 0) stopnpctimer; + if ($@TUT_MAGGOT == 0) setnpctimer 0; + close; + +onMaggotDeath: + if (@maggot == 1) message strcharinfo(0), "Tanisha: Aaahhhh... another one! It will crawl up your legs!"; + if (@maggot == 2) message strcharinfo(0), "Tanisha: Ohh... Irrhk... Eeeeww... They just appear from nowhere!"; + if (@maggot == 3) message strcharinfo(0), "Tanisha: Yuck... I think I am getting sick."; + if ((getx(0) > 29) && (getx(0) < 37) && (gety(0) > 84) && (gety(0) < 90)) set @maggot, @maggot + 1; + if (@maggot < 5 && (getx(0) <= 29) || (getx(0) >= 37) || (gety(0) <= 84) || (gety(0) >= 90)) monster "042-2.gat", 33, 87, "", 1002, 1, "Tanisha::onMaggotDeath"; + if (@maggot < 5 && (getx(0) > 29) && (getx(0) < 37) && (gety(0) > 84) && (gety(0) < 90)) monster "042-2.gat", getx(0), gety(0), "", 1002, 1, "Tanisha::onMaggotDeath"; + end; + +L_Close: + close; +} diff --git a/world/map/npc/_import.txt b/world/map/npc/_import.txt new file mode 100644 index 00000000..f6da80e5 --- /dev/null +++ b/world/map/npc/_import.txt @@ -0,0 +1,83 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. + +import: npc/001-1/_import.txt +import: npc/001-2/_import.txt +import: npc/001-3/_import.txt +import: npc/001-4/_import.txt +import: npc/002-1/_import.txt +import: npc/002-3/_import.txt +import: npc/002-4/_import.txt +import: npc/003-1/_import.txt +import: npc/003-2/_import.txt +import: npc/004-1/_import.txt +import: npc/004-2/_import.txt +import: npc/005-1/_import.txt +import: npc/005-3/_import.txt +import: npc/005-4/_import.txt +import: npc/006-1/_import.txt +import: npc/006-3/_import.txt +import: npc/007-1/_import.txt +import: npc/008-1/_import.txt +import: npc/009-1/_import.txt +import: npc/009-2/_import.txt +import: npc/009-3/_import.txt +import: npc/009-4/_import.txt +import: npc/010-1/_import.txt +import: npc/010-2/_import.txt +import: npc/011-1/_import.txt +import: npc/011-3/_import.txt +import: npc/011-4/_import.txt +import: npc/011-5/_import.txt +import: npc/011-6/_import.txt +import: npc/012-1/_import.txt +import: npc/012-3/_import.txt +import: npc/012-4/_import.txt +import: npc/013-1/_import.txt +import: npc/013-2/_import.txt +import: npc/013-3/_import.txt +import: npc/014-1/_import.txt +import: npc/014-3/_import.txt +import: npc/015-1/_import.txt +import: npc/015-3/_import.txt +import: npc/016-1/_import.txt +import: npc/017-1/_import.txt +import: npc/017-2/_import.txt +import: npc/017-9/_import.txt +import: npc/018-1/_import.txt +import: npc/018-2/_import.txt +import: npc/018-3/_import.txt +import: npc/019-1/_import.txt +import: npc/019-3/_import.txt +import: npc/020-1/_import.txt +import: npc/020-2/_import.txt +import: npc/020-3/_import.txt +import: npc/021-1/_import.txt +import: npc/021-2/_import.txt +import: npc/022-1/_import.txt +import: npc/024-1/_import.txt +import: npc/024-2/_import.txt +import: npc/025-1/_import.txt +import: npc/025-3/_import.txt +import: npc/025-4/_import.txt +import: npc/026-1/_import.txt +import: npc/027-1/_import.txt +import: npc/027-2/_import.txt +import: npc/027-3/_import.txt +import: npc/027-4/_import.txt +import: npc/028-1/_import.txt +import: npc/028-3/_import.txt +import: npc/029-1/_import.txt +import: npc/029-3/_import.txt +import: npc/030-1/_import.txt +import: npc/031-1/_import.txt +import: npc/031-2/_import.txt +import: npc/031-3/_import.txt +import: npc/031-4/_import.txt +import: npc/032-1/_import.txt +import: npc/032-3/_import.txt +import: npc/033-1/_import.txt +import: npc/034-1/_import.txt +import: npc/041-1/_import.txt +import: npc/042-1/_import.txt +import: npc/042-2/_import.txt +import: npc/botcheck/_import.txt diff --git a/world/map/npc/botcheck/_import.txt b/world/map/npc/botcheck/_import.txt new file mode 100644 index 00000000..8c1b3663 --- /dev/null +++ b/world/map/npc/botcheck/_import.txt @@ -0,0 +1,5 @@ +// Map botcheck: +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: botcheck.gat +npc: npc/botcheck/_mobs.txt +npc: npc/botcheck/_warps.txt diff --git a/world/map/npc/botcheck/_mobs.txt b/world/map/npc/botcheck/_mobs.txt new file mode 100644 index 00000000..c54ee2ac --- /dev/null +++ b/world/map/npc/botcheck/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// mobs + + + +botcheck.gat,0,0,0 script Mobbotcheck -1,{ + end; +} diff --git a/world/map/npc/botcheck/_warps.txt b/world/map/npc/botcheck/_warps.txt new file mode 100644 index 00000000..605abadf --- /dev/null +++ b/world/map/npc/botcheck/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// warps + diff --git a/world/map/npc/debugroom_Woodland_mining_camp/_import.txt b/world/map/npc/debugroom_Woodland_mining_camp/_import.txt new file mode 100644 index 00000000..1a0603ae --- /dev/null +++ b/world/map/npc/debugroom_Woodland_mining_camp/_import.txt @@ -0,0 +1,3 @@ +map: debugroom.gat +npc: npc/debugroom_Woodland_mining_camp/_mobs.txt +npc: npc/debugroom_Woodland_mining_camp/_warps.txt diff --git a/world/map/npc/debugroom_Woodland_mining_camp/_mobs.txt b/world/map/npc/debugroom_Woodland_mining_camp/_mobs.txt new file mode 100644 index 00000000..f9413155 --- /dev/null +++ b/world/map/npc/debugroom_Woodland_mining_camp/_mobs.txt @@ -0,0 +1,7 @@ +// debugroom Woodland mining camp mobs + + + +debugroom.gat,0,0,0 script Mobdebugroom -1,{ + end; +} diff --git a/world/map/npc/debugroom_Woodland_mining_camp/_warps.txt b/world/map/npc/debugroom_Woodland_mining_camp/_warps.txt new file mode 100644 index 00000000..6980cf8e --- /dev/null +++ b/world/map/npc/debugroom_Woodland_mining_camp/_warps.txt @@ -0,0 +1,2 @@ +// debugroom Woodland mining camp warps + diff --git a/world/map/npc/doc/magic b/world/map/npc/doc/magic new file mode 100644 index 00000000..3e5863e0 --- /dev/null +++ b/world/map/npc/doc/magic @@ -0,0 +1,23 @@ +Nibble use: +--------------- +== QUEST_MAGIC + N0, N1: Auldsbel + N2: druid tree quest, mouboo quest (shared) + N3: Sagatha unhappiness counter + N4, N5: Sagatha + N6, N7: Swords +== QUEST_MAGIC2 + N0: Evil Earth Spirit + N1: Elanore + N2: Wyara + N3: Elanore subquests (Cure Kadiya) + N4-N7: may be messy at this point + +The various magic scripts pack their status into these variables. +Locally, they use `@Q_status' to maintain the state, and use a function +`S_update_var' to update it. This is all re-using the same code, setting +the `@Q_MASK' and `@Q_SHIFT' variables appropriately. + + There are a few exceptions (such as the Kadiya quest) wherein +a separate helper function sets a dedicated local variable, or some hackery +in Auldsbel wherein we read stati directly, merely to enable certain options.
\ No newline at end of file diff --git a/world/map/npc/easter/2008/monsters.txt b/world/map/npc/easter/2008/monsters.txt new file mode 100644 index 00000000..d886f519 --- /dev/null +++ b/world/map/npc/easter/2008/monsters.txt @@ -0,0 +1,15 @@ +002-2.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +002-3.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +001-1.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +002-4.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +005-1.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +011-1.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +019-1.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +020-3.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +010-2.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +003-1.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +007-1.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +011-4.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +008-1.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +010-2.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0 +05-3.gat,0,0,0,0 monster EasterFluffy 1027,1,0,0,0
\ No newline at end of file diff --git a/world/map/npc/easter/2008/npc.txt b/world/map/npc/easter/2008/npc.txt new file mode 100644 index 00000000..e93e27a2 --- /dev/null +++ b/world/map/npc/easter/2008/npc.txt @@ -0,0 +1,49 @@ +001-1.gat,40,40,6 script EasterBunny 139,{ + if (QUEST_Easter08_state > 0) goto L_Finished; + + mes "[Easter Bunny]"; + mes "Hi handsome! Happy Easter to you."; + next; + + set @cond, 0; + if (countitem(1208) > 0) set @cond, @cond + 1; + if (countitem(1209) > 0) set @cond, @cond + 1; + if (countitem(1210) > 0) set @cond, @cond + 1; + if (countitem(1211) > 0) set @cond, @cond + 1; + if (countitem(1212) > 0) set @cond, @cond + 1; + if (countitem(1213) > 0) set @cond, @cond + 1; + + if (@cond == 6) goto L_Give; + + L_Message: + mes "[Easter Bunny]"; + mes "Do you want to take part in the big easter egg hunt?"; + mes ""; + mes "There are fluffys all around the world with their magic easter eggs."; + mes "When you catch them and collect 6 different kinds of eggs I will"; + mes "give you a special prize!"; + if (@cond > 0) mes "You already have found "+@cond+" different eggs!"; + close; + + L_Give: + delitem 1208, 1; + delitem 1209, 1; + delitem 1210, 1; + delitem 1211, 1; + delitem 1212, 1; + delitem 1213, 1; + mes "[Easter Bunny]"; + mes "Here is your prize:"; + mes "The official easter 2008 headgear!"; + mes "Have fun!"; + getitem 1214, 1; + set QUEST_Easter08_state, 1; + close; + + L_Finished: + mes "[Easter Bunny]"; + mes "You already completed the quest."; + mes "But maybe you would like to help others complete it, too?"; + close; + +}
\ No newline at end of file diff --git a/world/map/npc/easter/2009/bunny.txt b/world/map/npc/easter/2009/bunny.txt new file mode 100644 index 00000000..62644f23 --- /dev/null +++ b/world/map/npc/easter/2009/bunny.txt @@ -0,0 +1,89 @@ +// The Easter Bunny + +007-1.gat,32,30, 0 script Easter Bunny 173,{ + callfunc "ClearVariables"; + if (QUEST_Easter09 == 1) goto L_CheckEggs; + if (QUEST_Easter09 == 2) goto L_Done; + + mes "[Easter Bunny]"; + mes "Oh dear! Oh dear! I shall be too late!"; + next; + + menu + "What do you mean?", -, + "Goodbye then.", close; + + mes "[Easter Bunny]"; + mes "It's already Easter and I haven't hid a single Easter egg yet. And the worst part is, they already started searching for the eggs. What am I going to do? I seriously need a miracle. I mean, there are so many people searching and I haven't even begun yet. What am I going to do?"; + next; + + menu + "Maybe I can help.", -, + "I'll leave you to it then.", close; + + mes "[Easter Bunny]"; + mes "It's hopeless, you can't help me, it's to late!"; + next; + + menu + "I'm sure they haven't searched everywhere. What about that stone over there?", -, + "You're probably right.", close; + + mes "[Easter Bunny]"; + mes "Maybe you're right. Here, go hide these 10 Easter eggs for me."; + + getitem "EasterEgg", 10; + set QUEST_Easter09, 1; + + close; + +L_CheckEggs: + set @count, 0; + set @temp, QUEST_Easter09_slots; + set @i, 0; + +L_CheckEggs_Loop: + if (@temp & 1) set @count, @count + 1; + set @i, @i + 1; + if (@i == 31) goto L_CheckEggs_Continue; + set @temp, @temp >> 1; + goto L_CheckEggs_Loop; + +L_CheckEggs_Continue: + if (@count > 10) goto L_ManyEggs; + if (@count == 10) goto L_EnoughEggs; + mes "[Easter Bunny]"; + mes "Please place " + (10 - @count) + " more eggs!"; + + set @temp, 10 - @count - countitem("EasterEgg"); + + if (@temp > 0) goto L_GiveMoreEggs; + close; + +L_GiveMoreEggs: + mes "[Easter Bunny]"; + mes "What happened to " + @temp + " of your eggs?"; + next; + + mes "[Easter Bunny]"; + mes "Never mind that. Take these and get them placed!"; + getitem "EasterEgg", @temp; + close; + +L_ManyEggs: + mes "[Easter Bunny]"; + mes "How did you manage to place more eggs than I gave you?"; + next; + +L_EnoughEggs: + mes "[Easter Bunny]"; + mes "Thanks! I'm saved. Now I don't need to be scared anymore. And I just came with the great plan to hide myself under a paper bag. Oh well, maybe you can use it."; + getitem "PaperBagHelm", 1; + set QUEST_Easter09, 2; + close; + +L_Done: + mes "[Easter Bunny]"; + mes "Thank you for placing those eggs for me!"; + close; +} diff --git a/world/map/npc/easter/2009/object.txt b/world/map/npc/easter/2009/object.txt new file mode 100644 index 00000000..263321aa --- /dev/null +++ b/world/map/npc/easter/2009/object.txt @@ -0,0 +1,407 @@ +// + +function script Easter2009Object { + if (@action == 1) goto L_TryPlace; + + set @result, $Easter2009 >> @object; + set @result, @result & 1; + + if (@result == 1) goto L_GiveEgg; + return; + +L_GiveEgg: + set $Easter2009, $Easter2009 & ~(1 << @object); + getitem "EasterEgg", 1; + return; + +L_TryPlace: + set @has, QUEST_Easter09_slots >> @object; + set @has, @has & 1; + + if (@has == 1) goto L_AlreadyPlaced; + + set @has, $Easter2009 >> @object; + set @has, @has & 1; + + if (@has == 0) goto L_DoPlace; + set @result, 0; + return; + +L_DoPlace: + if (countitem("EasterEgg") > 0) goto L_DoPlace_Finish; + + mes "You don't have any eggs to place!"; + close; + +L_DoPlace_Finish: + delitem "EasterEgg", 1; + set @has, 1 << @object; + set QUEST_Easter09_slots, QUEST_Easter09_slots | @has; + set $Easter2009, $Easter2009 | @has; + set @result, 1; + return; + +L_AlreadyPlaced: + set @result, 2; + return; +} + +function script Easter2009Rock { + if (QUEST_Easter09 == 1) goto L_PlaceEgg; + mes "Do you want to examine this rock?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 0; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Found; + mes "There is nothing strange about this rock."; + close; + +L_Found: + mes "You found an egg under the rock."; + close; + +L_PlaceEgg: + mes "Do you want to put an egg under this rock?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 1; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Placed; + if (@result == 2) goto L_AlreadyPlaced; + mes "Strange, there is already an egg under this rock."; + close; + +L_Placed: + mes "You placed an egg under the rock."; + close; + +L_AlreadyPlaced: + mes "You already placed an egg under this rock!"; + close; +} + +function script Easter2009Tree { + if (QUEST_Easter09 == 1) goto L_PlaceEgg; + mes "Do you want to examine this tree?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 0; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Found; + mes "There is nothing strange about this tree."; + close; + +L_Found: + mes "You found an egg in the tree."; + close; + +L_PlaceEgg: + mes "Do you want to put an egg in this tree?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 1; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Placed; + if (@result == 2) goto L_AlreadyPlaced; + mes "Strange, there is already an egg in this tree."; + close; + +L_Placed: + mes "You placed an egg in the tree."; + close; + +L_AlreadyPlaced: + mes "You already placed an egg in this tree!"; + close; +} + +function script Easter2009Flower { + if (QUEST_Easter09 == 1) goto L_PlaceEgg; + mes "Do you want to examine these flowers?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 0; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Found; + mes "There is nothing strange about these flowers."; + close; + +L_Found: + mes "You found an egg among the flowers."; + close; + +L_PlaceEgg: + mes "Do you want to hide an egg with these flowers?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 1; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Placed; + if (@result == 2) goto L_AlreadyPlaced; + mes "Strange, there is already an egg here."; + close; + +L_Placed: + mes "You placed an egg with the flowers."; + close; + +L_AlreadyPlaced: + mes "You already placed an egg among these flowers!"; + close; +} + +function script Easter2009Pot { + if (QUEST_Easter09 == 1) goto L_PlaceEgg; + mes "Do you want to examine this pot?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 0; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Found; + mes "There is nothing strange about this pot."; + close; + +L_Found: + mes "You found an egg in the pot."; + close; + +L_PlaceEgg: + mes "Do you want to put an egg in this pot?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 1; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Placed; + if (@result == 2) goto L_AlreadyPlaced; + mes "Strange, there is already an egg in this pot."; + close; + +L_Placed: + mes "You placed an egg in the pot."; + close; + +L_AlreadyPlaced: + mes "You already placed an egg in this pot!"; + close; +} + +function script Easter2009Sign { + if (QUEST_Easter09 == 1) goto L_PlaceEgg; + mes "Do you want to examine this sign?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 0; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Found; + mes "There is nothing strange about this sign."; + close; + +L_Found: + mes "You found an egg near the sign."; + close; + +L_PlaceEgg: + mes "Do you want to put an egg near this sign?"; + next; + menu + "Yes", -, + "No", close; + + set @action, 1; + callfunc "Easter2009Object"; + if (@result == 1) goto L_Placed; + if (@result == 2) goto L_AlreadyPlaced; + mes "Strange, there is already an egg near this sign."; + close; + +L_Placed: + mes "You placed an egg near the sign."; + close; + +L_AlreadyPlaced: + mes "You already placed an egg near this sign!"; + close; +} + +007-1.gat,126,63,0 script Rock 127,{ + set @object, 0; + callfunc "Easter2009Rock"; +} + +009-1.gat,66,33,0 script Pot 127,{ + set @object, 1; + callfunc "Easter2009Pot"; +} + +009-1.gat,93,52,0 script Tree 127,{ + set @object, 2; + callfunc "Easter2009Tree"; +} + +007-1.gat,37,22,0 script Flowers 127,{ + set @object, 3; + callfunc "Easter2009Flower"; +} + +008-1.gat,38,32,0 script Tree 127,{ + set @object, 4; + callfunc "Easter2009Tree"; +} + +008-1.gat,43,21,0 script Flowers 127,{ + set @object, 5; + callfunc "Easter2009Flower"; +} + +018-1.gat,121,88,0 script Tree 127,{ + set @object, 6; + callfunc "Easter2009Tree"; +} + +010-1.gat,103,73,0 script Flowers 127,{ + set @object, 7; + callfunc "Easter2009Flower"; +} + +010-1.gat,31,45,0 script Rock 127,{ + set @object, 8; + callfunc "Easter2009Rock"; +} + +011-1.gat,83,39,0 script Pot 127,{ + set @object, 9; + callfunc "Easter2009Pot"; +} + +011-1.gat,33,78,0 script Tree 127,{ + set @object, 10; + callfunc "Easter2009Tree"; +} + +018-1.gat,64,98,0 script Rock 127,{ + set @object, 11; + callfunc "Easter2009Rock"; +} + +012-1.gat,88,122,0 script Flowers 127,{ + set @object, 12; + callfunc "Easter2009Flower"; +} + +012-1.gat,97,32,0 script Rock 127,{ + set @object, 13; + callfunc "Easter2009Rock"; +} + +012-1.gat,153,101,0 script Tree 127,{ + set @object, 14; + callfunc "Easter2009Tree"; +} + +013-1.gat,118,92,0 script Rock 127,{ + set @object, 15; + callfunc "Easter2009Rock"; +} + +013-1.gat,104,36,0 script Flowers 127,{ + set @object, 16; + callfunc "Easter2009Flower"; +} + +014-1.gat,100,37,0 script Flowers 127,{ + set @object, 17; + callfunc "Easter2009Flower"; +} + +014-1.gat,38,102,0 script Tree 127,{ + set @object, 18; + callfunc "Easter2009Tree"; +} + +014-1.gat,54,50,0 script Sign 127,{ + set @object, 19; + callfunc "Easter2009Sign"; +} + +015-1.gat,59,97,0 script Rock 127,{ + set @object, 20; + callfunc "Easter2009Rock"; +} + +015-1.gat,29,25,0 script Flowers 127,{ + set @object, 21; + callfunc "Easter2009Flower"; +} + +016-1.gat,83,54,0 script Pot 127,{ + set @object, 22; + callfunc "Easter2009Pot"; +} + +016-1.gat,62,83,0 script Sign 127,{ + set @object, 23; + callfunc "Easter2009Sign"; +} + +016-1.gat,20,51,0 script Tree 127,{ + set @object, 24; + callfunc "Easter2009Tree"; +} + +017-1.gat,77,32,0 script Sign 127,{ + set @object, 25; + callfunc "Easter2009Sign"; +} + +017-1.gat,104,90,0 script Tree 127,{ + set @object, 26; + callfunc "Easter2009Tree"; +} + +017-1.gat,37,76,0 script Flowers 127,{ + set @object, 27; + callfunc "Easter2009Flower"; +} + +009-1.gat,29,48,0 script Flowers 127,{ + set @object, 28; + callfunc "Easter2009Flower"; +} + +010-1.gat,127,99,0 script Tree 127,{ + set @object, 29; + callfunc "Easter2009Tree"; +} + +011-1.gat,34,95,0 script Rock 127,{ + set @object, 30; + callfunc "Easter2009Rock"; +} diff --git a/world/map/npc/easter/2010/Blocker.txt b/world/map/npc/easter/2010/Blocker.txt new file mode 100644 index 00000000..8b3aa120 --- /dev/null +++ b/world/map/npc/easter/2010/Blocker.txt @@ -0,0 +1,13 @@ +028-1.gat,114,121,0 script #28Barrier#_M 127,1,1{ + end; +OnTouch: + if (($Easter_2010_Npc_State2 >> E10_BARRIER_SHIFT) & E10_BARRIER_MASK == E10_BARRIER_ACTIVE) goto L_block; + + warp "028-3.gat", 33, 76; + end; + +L_block: + message strcharinfo(0), "There is some strange field around this opening. You cannot see any possible way to bypass it."; + end; + +} diff --git a/world/map/npc/easter/2010/Doctor.txt b/world/map/npc/easter/2010/Doctor.txt new file mode 100644 index 00000000..78097fd6 --- /dev/null +++ b/world/map/npc/easter/2010/Doctor.txt @@ -0,0 +1,509 @@ +// Doctor 1, at the big tree. + +028-1.gat,21,105,0 script Doctor#who1 184,{ + // States here + callsub S_Helped_Count; + if (@Easter_2010_helper >= 2 && !((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) + goto L_MidReward; + if (@Easter_2010_helper == 4 && !((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK)) + goto L_Defeat_Invader; + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Ready_Optional; + +// ====================== +// === First location === +// ====================== + +L_At_Tree: + // Checks for if the player has already helped the doctor, either here or elsewhere, go here. + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_TREE_SHIFT) & E10_FLAG_HELPED_DOCTOR_TREE_MASK == E10_FLAG_HELPED_DOCTOR_TREE) + goto L_At_Tree_Helped; + + if ((Easter_2010_QuestState >> E10_FLAG_KNOWS_DOCTOR_SHIFT) & E10_FLAG_KNOWS_DOCTOR_MASK == E10_FLAG_KNOWS_DOCTOR) + goto L_At_Tree_Knows_Doctor; + // Fallthrough, reaction to a player that is completely new. + + setarray @responses$, "\"This tree, I'm sure it's - \"The man looks up distractedly.\" Oh, hello. Can't talk now, I'm afraid, this world needs my help...\"", "He looks up, confused. \"Withering... why is this world dying? Perhaps--er, who are you? You'll have to excuse me, I'm a little preoccupied with this tree...\"", "\"What-what? I mean, sorry, hello! Can't quite talk, a bit busy trying to save this world.\" He seems to be deep in thought, brandishing what looks to be a small tool near the tree.", "\"You there! Do you realise what's happening here? This world is dying, much like a human would, perhaps. Nevertheless...\""; // Not many responses are needed here, since init only happens one per player. + callsub S_Update_Knows; + next; + if (countitem("LifeStone") > 0) + goto L_has_lifestone; + close; + +L_At_Tree_Knows_Doctor: + // More responses than the initial here, and need to be more of a hint. + setarray @responses$, "\"I just don't know what's wrong. My analysis tells me this tree is important, but I don't seem to have the right tool...\"", "A distinct... whirring noise sounds from the device the Doctor wields. \"You see this tree? Right here, this one! There's something amiss here, perhaps beyond my expertise.\"", "\"Yes, yes, all evidence points to this tree. \"He leans in for a closer look. \"Brilliant! No! Um... that's not right.\"", "He withdraws what appear to be glasses from his pocket and puts them on, peering intently at the tree.", "\"Mm-hmm, yes! Do you see what's wrong with this tree? No?\" He sounds somewhat dejected, but still determined. \"Well, neither do I, I'm afraid.\"", "The Doctor turns with a look of panic on his face, gesturing for you to stop talking. He turns back to the tree, muttering \"some way to heal...\""; + callsub S_Dialogue_Knows; + next; + + if (countitem("LifeStone") > 0) + goto L_has_lifestone; + mes "[Doctor]"; + mes ""; + mes "\"I'm trying to understand something, but it's got me quite confused, I'm afraid. I need something to assist me... something to counter the death...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Unfortunately, I really can't think of anything to use. Please leave me alone while I think.\""; + next; + menu "Okay...", -, + "Actually, I just want to go home. Can you help?", L_Warning; + close; + +L_has_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"I'm busy right now, I'm afraid I - what's that thing you've got there?\""; + next; + goto L_spotted_lifestone; + +L_spotted_lifestone: + menu + "That? That's just a Life Stone. Basic level one magic item.", L_want_lifestone, + "Sorry, I'm not interested in talking right now.", -; + close; + +L_want_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"A Life Stone? It is not of this world... and it's just what I need! Where did you get it?\""; + next; + menu + "I made it myself!", L_made_lifestone, + "Elanore the Healer made it for me.", L_elanore_lifestone, + "I bought it off someone.", L_bought_lifestone, + "What? You expect me to remember where I get every single lifestone?", L_expect_lifestone; + close; + +L_made_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"You made it? But then you... you must be from elsewhere as well! How did you get here?\""; + next; + menu + "A mysterious old woman gave me a flower, and then I appeared here.", L_woman_lifestone, + "I died.", L_dead_lifestone, + "I think I've told you enough for now...", -; + close; + +L_elanore_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Elanore the Healer... I have not heard of her, but she must be a powerful being indeed. But there are more pressing matters - will you lend me this... 'Life Stone'?\""; + next; + menu + "Yeah, whatever.", L_offer_lifestone, + "I'm not giving you my stuff!", -; + close; + +L_bought_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"And you could afford it? Something as powerful as this must be worth a fortune.\""; + next; + menu + "Actually, it was only 100 GP.", L_cheap_lifestone, + "Yeah, well, I got a few million in the bank.", L_rich_lifestone, + "Powerful? I thought it just did minor healing.", L_powerful_lifestone; + close; + +L_expect_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Well, I suppose so. I need something like this, however... I must be sure it has not been tainted with darkness. If you don't remember where you got it, it's no use to me.\""; + close; + +L_woman_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"An old woman gave you - ? Well, never mind that. This 'Life Stone'... I think I need it. Will you lend it to me?\""; + next; + menu + "Sure.", L_offer_lifestone, + "Sorry, I need it.", -; + close; + +L_dead_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"So... you're dead? Then maybe this world is some kind of... afterlife to yours?\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"But if this world is dying, how can it be an afterlife? That doesn't make sense...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Unless you were already dead, and you've been reincarnated...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"But surely you wouldn't be able to make a powerful thing like this... this 'Life Stone' in a world for the dead?\""; + mes "\"But since you are here, and you do have this Life Stone - can I borrow it? I think I may need it, and quite soon.\""; + next; + menu + "Yes, take it.", L_offer_lifestone, + "No, I need it.", -; + close; + +L_cheap_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Then that was a bargain, my friend. This must surely be worth thousands! And I'm afraid I'm going to have to ask you if I may borrow it.\""; + next; + menu + "Yeah, you can.", L_offer_lifestone, + "Nope, sorry.", -; + close; + +L_rich_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Ah! I'm afraid I expected you to be poor... being the warrior type, I mean. Well... I'm going to need this Life Stone. It's quite important. Might I purchase it from you?\""; + next; + menu + "Indeed. That will be 50,000 GP, please.", L_expensive_lifestone, + "Better. You can have it for free!", L_offer_lifestone, + "No. It's mine.", -; + close; + +L_powerful_lifestone: + if (getskilllv(SKILL_MAGIC)) goto L_hasmagic_lifestone; + mes "[Doctor]"; + mes ""; + mes "\"It contains a strange power which I have never detected before... and I think I can use it. Can I borrow it off you?\""; + next; + menu + "Yeah, if you want.", L_offer_lifestone, + "Er... no. My powerful rock! Ha!", -; + close; + +L_hasmagic_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"It contains a strange power which I have never detected before... except... in you. You have this power in you!\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Anyway... this stone, this Life Stone, can I borrow it?\""; + next; + menu + "Sure. Here you are.", L_offer_lifestone, + "Tell me more about this power.", L_power_lifestone, + "No.", -; + close; + +L_power_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"There's nothing I can really tell you. I just know it's there, I don't know what it is. Can I borrow the Stone?\""; + next; + menu + "Yeah, sure.", L_offer_lifestone, + "No.", -; + close; + +L_help_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Just the boost I needed... hm? No, that's all for now, thank you. Is there anything *you* need?\""; + next; + menu "I might have some questions later, if you'll be here...", -, + "Thank you for the offer, really, but I'm fine.", -; + mes "[Doctor]"; + mes ""; + mes "\"Well, I'll still be gathering information myself, so perhaps we'll cross paths again.\""; + close; + +L_expensive_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Oh, excuse me. I'm not sure about your currency, but I don't think I can cover that right now. Please let me know if you change your mind.\""; + close; + +L_only_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Yes... uh, well, I suppose if you wanted I could pay you for it. Let me see now...\""; + next; + mes "\"Here we are! It's all I've got on me at the moment, I'm afraid.\""; + getitem "StrangeCoin", 1; + next; + menu + "Is there anything else you need?", L_help_lifestone, + "Alright then. Bye!", -; + close; + +L_offer_lifestone: + if (countitem("LifeStone") < 1) + goto L_lost_lifestone; + + delitem "LifeStone", 1; + callsub S_Update_Helped; + + if (countitem("LifeStone") == 0) + goto L_one_lifestone; + + mes "[Doctor]"; + mes ""; + mes "\"Wonderful! What a spot of luck it was you coming here with this. You don't know how much you deserve thanks.\""; + mes "He takes your lifestone and places it into a curious device, then waves the device up and down the tree. It makes a number of beeping sounds, and the Doctor seems happy."; + next; + goto L_given_lifestone; + +L_one_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Wonderful! What a spot of luck it was you coming here with this. You don't know how much you deserve thanks.\""; + mes "He takes your lifestone and places it into a curious device, then waves the device up and down the tree. It makes a number of beeping sounds, and the Doctor seems happy."; + next; + menu + "Is there anything else you need?", L_help_lifestone, + "That was the only one I had, I'm glad it helped.", L_only_lifestone, + "Alright then. Bye!", -; + close; + +L_lost_lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Brilliant! Fantastic! This will surely help... Wait, I thought you had a lifestone for me? Well, maybe you can come by again when you do.\""; + close; + +L_given_lifestone: + menu + "Is there anything else you need?", L_help_lifestone, + "Alright then. Bye!", -; + close; + +L_At_Tree_Helped: + mes "[Doctor]"; + mes ""; + mes "\"Fantastic! Your help with this tree is much appreciated. I believe we are that much closer to solving this mystery.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"I suspect there is still much to do. Please feel free to look around, there might be more information to gather elsewhere.\""; + next; + menu "Okay, I'll see you around!", -, + "Actually, I'd like to go home now. Any chance you could help?", L_Warning; + close; + +// =================================================================== +// Helper portions, duplicated in each script for want of time, sorry. +// =================================================================== + +// The player has defeated the invader and helped enough times. +L_Return_Ready_Optional: + if (!(~(Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK) || ((Easter_2010_QuestState >> E10_HELPED_DOCTOR_TREE_SHIFT) & E10_HELPED_DOCTOR_TREE_MASK)) + goto L_Return_Ready; + + // Player can help one more time, if so desired. + mes "[Doctor]"; + mes ""; + mes "\"Well... this has been quite an adventure, hasn't it? I'd say it's about timey--er, time for me to go, but I think I can stick around for a little while longer to tie up some loose ends for myself.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Oh, did you want to help again?\""; + next; + menu "Sure, that sounds good", L_At_Tree, + "Hm, I can't right now, but maybe later.", L_Return_Ready, + "I was looking for a way to go home.", L_Return_Capable, + "No, sorry, I don't think so.", L_Return_Ready; + close; + +// Player has done "everything" to do in this world, just talking to the Doctor. +L_Return_Ready: + set @parting$, "!"; + if (strcharinfo(0) == "Alonso" || strcharinfo(0) == "AlOnS") set @parting$, ", Alonso!"; + mes "[Doctor]"; + mes ""; + mes "\"Well, you have been absolutely brilliant! Brilliant! Very impressive.\" He smiles kindly and shakes your hand. \"It has been a pleasure. Now for the next adventure. Allons-y" + @parting$ + "\""; + close; + +L_Defeat_Invader: + mes "[Doctor]"; + mes ""; + mes "\"Ah-ha! It's nice to see you again. How goes the battle?\""; + next; + menu "I'm having a hard time, actually. I'd like to go home...", -, + "Regrouping now for the next encounter, actually.", L_Encourage; + goto L_Warning; + +L_Encourage: + mes "[Doctor]"; + mes ""; + mes "\"Oh, well, I think you'll prevail in the end! If you'll excuse me, I still have some things to see to.\""; + close; + +L_MidReward: + if (((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) close; + mes "[Doctor]"; + mes ""; + mes "\"Fantastic! You have really been quite helpful.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Er, now that I think about it, perhaps I have something you'd be interested in.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"While visiting another dimension--hm, as a matter of fact, it was quite like this one. But their choices in the past seem to have differed from the ones here...\""; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor reflects on his words. \"Interesting how things turn out. Well, I now have a lot of these Valentine's Glasses, if you'd like a pair.\""; + next; + getinventorylist; + if (@inventorylist_count == 100) + goto L_MidReward_NoRoom; + mes "[Doctor]"; + mes ""; + mes "He hands you the glasses."; + mes "\"They're not too brainy, or suited for detecting background radiation, but they are charming.\""; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_MID_REWARD_MASK << E10_FLAG_MID_REWARD_SHIFT) | (E10_FLAG_MID_REWARD << E10_FLAG_MID_REWARD_SHIFT); + getitem E10_MIDREWARD_ID, 1; + close; + +L_MidReward_NoRoom: + mes "[Doctor]"; + mes ""; + mes "\"Oh, I don't think you have room for these. Well, I suppose I'll hold on to them for now.\""; + close; + +// Warning about the potential perils ahead, but the player must still want to abort the quest. +L_Warning: + mes "[Doctor]"; + mes ""; + mes "\"There is no doubt in my mind that what awaits us is both powerful and dangerous, to say the least.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"If this... destruction, this disregard for life isn't an indication, what is?\""; + mes "He takes a moment, searching your face."; + next; + mes "[Doctor]"; + mes ""; + if (((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"I do appreciate your help thus far, really. And I did look forward to working with you again in putting an end to this devastation.\""; + if (!((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"Despite the danger, I think pressing on would certainly be a brave choice.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"But if you were to leave now, I'm afraid it would be impossible to return...\""; + mes "He pauses again. \"There is still time for you to turn back now, while it's relatively easy.\""; + next; + menu "N-no, I-I think I will continue... Yes, I'm ready!", -, + "Now that you mention it, maybe I'd better leave now while I can.", L_Turn_Back, + "Um, could I have a minute to think it over?", -; + close; + +L_Turn_Back: + mes "[Doctor]"; + mes ""; + mes "\"You really want to turn back now?\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"I don't think there's any shame in going back. Quite the contrary. You're brave for even being here.\""; + mes "He hesitates ever so slightly, choosing his words. \"I just wanted to make sure you were certain about your decision.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Once you've left, I don't see how you'll be able to return.\""; + next; + menu "On second thought, perhaps I will stick around.", -, + "No, no, I'm quite sure I want to leave.", L_Really_Return; + close; + +// The player definitely wants to go back, and there's no returning. +L_Really_Return: + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Capable; + mes "[Doctor]"; + mes ""; + mes "\"If that is what you want, then consider it done. And good luck.\""; + next; + goto L_Return_Player; + +L_Return_Player: + callsub S_Helped_Count; + if (countitem("DarkPetal") == 0 && @Easter_2010_helper < 3) goto L_Difficult_Return; + set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_RETURNED << E10_STATE_ROSE_SHIFT); + if (@Easter_2010_helper < 3) + delitem "DarkPetal", 1; + savepoint "009-1", 52, 40; + warp "009-1", 0, 0; + close; + +L_Difficult_Return: + mes "[Doctor]"; + mes ""; + mes "\"Hm... you don't seem to have the thing that brought you here, that petal, that I could have used to send you back... assuming you really do want to give up.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Others have been able to battle some darkness directly, which might serve as a substitute.\""; + mes "\"You could still help me here and elsewhere if you want to try to get this done once and for all, but if you want to go early you will need to fight, somehow.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Though there are others helping, too. No doubt that soon enough, you'll be able to go anyway...\""; + close; + +L_Return_Capable: + mes "[Doctor]"; + mes ""; + mes "\"Hm. Oh, it looks like you've learned how to travel between these worlds on your own. Don't you remember the way?\""; + next; + menu "Oh, you're right! It was a spell, um..." + getspellinvocation("world-shift") + " was the name!", -; + mes "[Doctor]"; + mes ""; + mes "\"Excellent! Though I suspect its effects will work best when you are closer to where you started.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"When you came to this world, where did you end up? I trust that is your origin.\""; + close; + +S_Dialogue_Knows: + mes "[Doctor]"; + mes ""; + mes "\"Oh, hello again... hm...\""; + next; + mes "[Doctor]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + return; + +S_Update_Knows: + // Working "name" for when he hasn't introduced himself (can be changed). + mes "[Mysterious Man]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + next; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_KNOWS_DOCTOR_MASK << E10_FLAG_KNOWS_DOCTOR_SHIFT) | (E10_FLAG_KNOWS_DOCTOR << E10_FLAG_KNOWS_DOCTOR_SHIFT); + mes "[Doctor]"; + mes ""; + mes "\"Oh, excuse me,\" he gestures. \"I'm the Doctor.\""; + return; + +S_Update_Helped: + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_HELPED_DOCTOR_TREE_MASK << E10_FLAG_HELPED_DOCTOR_TREE_SHIFT) | (E10_FLAG_HELPED_DOCTOR_TREE << E10_FLAG_HELPED_DOCTOR_TREE_SHIFT); + callsub S_Helped_Count; + if (@Easter_2010_helper == 3) set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_ROSE_COMPLETE << E10_STATE_ROSE_SHIFT); + return; + +S_Helped_Count: + set @Easter_2010_helper, 0; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_TREE_SHIFT) & E10_FLAG_HELPED_DOCTOR_TREE_MASK == E10_FLAG_HELPED_DOCTOR_TREE) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT) & E10_FLAG_HELPED_DOCTOR_ISLAND_MASK == E10_FLAG_HELPED_DOCTOR_ISLAND) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_STONES_SHIFT) & E10_FLAG_HELPED_DOCTOR_STONES_MASK == E10_FLAG_HELPED_DOCTOR_STONES) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT) & E10_FLAG_HELPED_DOCTOR_FRUIT_MASK == E10_FLAG_HELPED_DOCTOR_FRUIT) + set @Easter_2010_helper, @Easter_2010_helper + 1; + return; +} diff --git a/world/map/npc/easter/2010/Doctor2.txt b/world/map/npc/easter/2010/Doctor2.txt new file mode 100644 index 00000000..1a4b9f36 --- /dev/null +++ b/world/map/npc/easter/2010/Doctor2.txt @@ -0,0 +1,661 @@ +// Doctor 2, at the island. + +028-1.gat,83,34,0 script Doctor#who2 184,{ +// States here + callsub S_Helped_Count; + if (@Easter_2010_helper >= 2 && !((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) + goto L_MidReward; + if (@Easter_2010_helper == 4 && !((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK)) + goto L_Defeat_Invader; + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Ready_Optional; + +// ======================= +// === Second location === +// ======================= + +L_At_Island: + // Checks for if the player has already helped the doctor, either here or elsewhere, go here. + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT) & E10_FLAG_HELPED_DOCTOR_ISLAND_MASK == E10_FLAG_HELPED_DOCTOR_ISLAND) + goto L_At_Island_Helped; + + if ((Easter_2010_QuestState >> E10_FLAG_KNOWS_DOCTOR_SHIFT) & E10_FLAG_KNOWS_DOCTOR_MASK == E10_FLAG_KNOWS_DOCTOR) + goto L_At_Island_Knows_Doctor; + + setarray @responses$, "\"Odd spheres of energy floating about... Interesting. The decay is very severe here...\" He looks over, as if only now noticing your presence. \"Excuse me, how do you do? Don't mean to be rude, just lost in thought...\"", "There's a man in glasses, scanning the area carefully. \"There are more trees affected than I had thought.\" He extends his hand, waving a small device around carefully.", "\"Well, so what does that mea--oh, sorry! Please don't mind me, but right now I'm trying to figure out why this world is dying.\"", "A somewhat oddly dressed man turns about. Suddenly, he speaks up, \"No, no, something's definitely wrong. Explain it? Well... it's complicated.\""; + callsub S_Update_Knows; + close; + +L_At_Island_Knows_Doctor: + setarray @responses$, "\"Oi! What killed these trees...\" He takes a moment, studying carefully. \"And this open area--there don't seem to be any creatures around. Interesting.", + "\"Hm, do you know anything about those spheres of energy?\" The device he's holding glows briefly. \"Well, that's what I thought. If you'll excuse me for a moment.\" He adjusts his glasses and continues his work.", + "\"There's the other, big tree... Then there are these trees, and... glowing orbs. Some... force is slowly destroying this world.\" The Doctor finishes his thought and continues pacing.", + "The Doctor takes out the same strange device, anticipating a question and responding. \"Oh, this, it's good for everything. Right now I'm looking for what might be controlling these blobs of light; they don't seem to be moving on their own.\"", + "\"I know there is some other agent at work here. I don't quite know what it is yet, but... Well, if you have any information that could help, please do share.\""; + + callsub S_Dialogue_Knows; + next; + +L_At_Island_Menu: + setarray @menuitems$, "", "", "", "", ""; + set @c, 0; + + set @menuitems$[@c], "What's going on here? It looks like everything is dying! The trees are dead and decaying, the grass is weak and easily crushed, and the animals are gone!"; + set @menuid[@c], E10_ISLAND_MENU_DEATH_AWE; + set @c, @c + 1; + + set @menuitems$[@c], "There's an eerie sort of silence about this place, don't you think? ... Er, what was that?! ... It doesn't seem all that safe here..."; + set @menuid[@c], E10_ISLAND_MENU_SCARED; + set @c, @c + 1; + + set @menuitems$[@c], "The orbs of light flying about? Wisps. And you know, they do seem to be behaving strangely, or as much is possible given the circumstances. You think there's a reason for that?"; + set @menuid[@c], E10_ISLAND_MENU_WISPS; + set @c, @c + 1; + + + if (!(Easter_2010_QuestState & (E10_FLAG_HELPED_DOCTOR_TREE << E10_FLAG_HELPED_DOCTOR_TREE_SHIFT))) goto L_post_tree_help; + set @menuitems$[@c], "This place looks dead... do you need any more lifestones?"; + set @menuid[@c], E10_ISLAND_MENU_OFFER_LIFESTONE; + set @c, @c + 1; + +L_post_tree_help: + menu + @menuitems$[0], -, + @menuitems$[1], -, + @menuitems$[2], -, + @menuitems$[3], -, + @menuitems$[4], -, + "I'm actually more interested in going home.", L_Warning; + + set @menu, @menu -1; + if (@menu >= @c) close; + if (@menuid[@menu] == E10_ISLAND_MENU_DEATH_AWE) goto L_At_Island_Death_Awe; + if (@menuid[@menu] == E10_ISLAND_MENU_SCARED) goto L_At_Island_Scared; + if (@menuid[@menu] == E10_ISLAND_MENU_WISPS) goto L_At_Island_Wisps; + if (@menuid[@menu] == E10_ISLAND_MENU_OFFER_LIFESTONE) goto L_At_Island_Offer_Lifestone; + close; + +L_At_Island_Death_Awe: + mes "[Doctor]"; + mes ""; + mes "\"Yes, yes. For most, death can't be avoided, but this...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"So much death, and so quickly, even. It doesn't seem quite natural, does it?\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Take a look at this, won't you?\""; + next; + menu "I'm not sure, what am I looking for exactly?", -; + mes "[Doctor]"; + mes ""; + mes "\"Ah, you don't see it? Well, these glasses of mine--well, here, take a look\""; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor takes off his red-blue glasses and holds them up. You peer through and examine the surroundings."; + next; + menu "I... don't see anything unusual, sorry.", -, + "Oh, something about the grass?", L_At_Island_Grass, + "Er, what exactly do these glasses do?", L_At_Island_Glasses, + "Oh, so the... the um... that?", -, + "Right, of course, that is... very... interesting?", -, + "Could you hold that thought? I need to check on something else first.", -; + close; + +L_At_Island_Grass: + mes "[Doctor]"; + mes ""; + mes "The Doctor pauses, examining the ground. \"Now that you mention it...\" He holds up a blade of grass between his fingers. \"There is a sort of strange texture about it, perhaps slightly grating.\""; + next; + menu "Yes, I had noticed that, too. Do you think it's relevant?", L_At_Island_Explain, + "Hm, now that I think about it, it doesn't seem all too different from my own world's.", L_At_Island_Explain, + "Do you think it's a result of all the death here?", L_At_Island_Explain, + "Oh, excuse me for just a second.", -; + close; + +L_At_Island_Glasses: + mes "[Doctor]"; + mes ""; + mes "\"Well, I had suspected that what may have been causing damage to this world was in fact from another universe.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"So you can think of these glasses as the means to identifying when something or someone has gone through the Void.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Here, let me show you.\" The Doctor turns the glasses so you can view him and moves around."; + next; + menu "Oh, wow. There's a sort of... grainy effect about you. Like particles?", -; + mes "[Doctor]"; + mes ""; + mes "\"Yes, stuff from the Void. I saw something earlier, but nothing now. Strange.\""; + close; + +L_At_Island_Explain: + mes "[Doctor]"; + mes ""; + mes "\"Well, from the other things I've seen here, I wouldn't couldn't say so definitively, but it's possible.\""; + next; + mes "Your eyes follow the Doctor as he begins to pace. He pauses to continue his thought."; + next; + mes "[Doctor]"; + mes ""; + if ((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK) + goto L_At_Island_Theory; + mes "\"Well, it's interesting. I'll have to take a closer look.\""; + close; + +L_At_Island_Theory: + mes "[Doctor]"; + mes ""; + mes "\"Based on what we had uncovered before, I think some force is exerting its will on those glowing entities.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"How it all ties together is what I'm still trying to figure out.\" He adjusts his glasses again."; + next; + menu "It is very strange, can't argue there.", -, + "I have faith in you.", -, + "What if--oh, are you thinking about something?", L_At_Island_Knows_Doctor, + "Yes, that is an interesting idea. I will think it over for a bit.", -; + close; + +L_At_Island_Scared: + mes "[Doctor]"; + mes ""; + mes "\"Ahh, feeling a bit anxious are we? I don't blame you, chap, it is a bit unnerving here.\" The Doctor continues to analyze the environment with his various instruments, apparently lost in thought."; + next; + mes "[Doctor]"; + mes ""; + mes "\"It's really quite strange... the levels of electromagnetic energy in the area seem to be spiking regularly, almost in time with the movements of these glowing blobs.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Judging from these readouts, it would seem that either some force is acting upon these orbs of light, or they are in fact creating a sporadic magnetic field.\""; + next; + menu "What? I'm just really, really scared!", L_At_Island_Terror, + "Electromagnetic what now?", L_At_Island_Magnetic, + "I've got to get out of here!", L_At_Island_Terror, + "Um, uh, I... gotta run... to some place more safe.", L_At_Island_Terror; + close; + +L_At_Island_Terror: + mes "[Doctor]"; + mes ""; + if (baselevel == 99) + mes "\"Really? Out of those I've detected here, I would have thought you'd be among the most skilled.\""; + if (baselevel >= 90 && baselevel <= 98) + mes "\"Er, um? I'm so sorry, I had assumed you were more than capable for this sort of thing."; + if (baselevel >= 70 && baselevel <= 89) + mes "\"Please excuse me, but I had sensed you were stronger than that.\""; + if (baselevel >= 50 && baselevel <= 69) + mes "\"Ah... well, I have seen others here, too. Perhaps you could work together?\""; + if (baselevel <= 49) + mes "\"Don't lose hope, you're not alone in all this. We'll get through it.\""; + next; + menu "I don't know what to say...", -, + "Yes, yes, you're absolutely right!", L_At_Island_Calm, + "I-I need a moment to think.", -; + close; + +L_At_Island_Magnetic: + mes "[Doctor]"; + mes ""; + mes "\"Well, haven't you noticed the strange behaviour of those blobs of light?\""; + next; + menu "Um, strange doesn't even begin to cover this world.", -, + "Sure, I can never find enough stuff after fighting them.", L_At_Island_Loot, + "Other than the fact that they wish to kill me?", L_At_Island_Wisps, + "Blobs? I hadn't noticed anything.",L_At_Island_Knows_Doctor; + close; + +L_At_Island_Calm: + mes "[Doctor]"; + mes ""; + mes "\"There, isn't that better?\" He smiles warmly. \"Now, I was thinking--\""; + next; + menu "Sorry to interrupt, but...", L_At_Island_Menu, + "*I* was thin--oh, thought you were pausing. Sorry, please continue.", L_At_Island_Theory, + "Sorry, I need another moment to regain my composure.", -; + close; + +L_At_Island_Loot: + mes "[Doctor]"; + mes ""; + mes "He seems confused. \"Find enough stuff? I'm not sure I could help you there, but perhaps someone else can?\""; + close; + +L_At_Island_Wisps: + mes "[Doctor]"; + mes ""; + mes "\"I'm glad you asked! You see, the behaviour of these creatures doesn't appear to be very natural at all; the elephant in the room if you will.\" The Doctor pauses temporarily to check his instruments again."; + next; + menu "Well, they are normally very peaceful; they'll only attack if you attack them.", -; + mes "[Doctor]"; + mes ""; + mes "\"Interesting! I've seen them attack with no discernable provocation. This is quite ominous. \""; + next; + mes "[Doctor]"; + mes ""; + mes "\If it didn't sound so mad, I'd postulate that something is controlling these things... some malevolent force or entity.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Oh, sorry, what do you think?\""; + next; + menu "That doesn't seem quite right, to be honest.", -, + "Now that you mention it, I had some ideas.", L_At_Island_Ideas, + "Malevolent? Where did you get that idea?", -, + "Instruments? They seem quite versatile.", L_At_Island_Devices, + "That's a lot for me to take in right now. Excuse me.", -; + close; + +L_At_Island_Ideas: + menu "Strange behaviour comes up with magic in my world, like agitating creatures to do harm.", L_At_Island_Magic, + "Maybe something or someone is summoning them?", L_At_Island_Summon, + "Could it be possible they're not from this place, either?", L_At_Island_Void, + "Maybe this sounds crazy, but... could these be the remains of all the entities that have died?", L_At_Island_Spirits, + "I don't understand time all that well, but perhaps the wisps indicate a rip... in the fabric?", L_At_Island_Time, + "Er, how embarrassing. I seem to have forgotten what I was going to say.", -; + close; + +L_At_Island_Devices: + mes "[Doctor]"; + mes ""; + mes "\"Hm? Oh, ha-ha, like this?\" The Doctor points out one of the instruments."; + next; + mes "[Doctor]"; + mes ""; + mes "\"They are very useful, yes! Fantastic, even. Proved invaluable in so many circumstances.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Yes. Well, then.\" He continues his analysis, putting something away, almost in anticipation of your next question."; + close; + +L_At_Island_Magic: + mes "[Doctor]"; + mes ""; + mes "\"Magic, you say? Yes, I have been hearing about that from others, too.\""; + mes "The Doctor looks off into the distance."; + next; + menu "Erm? Hello?", -; + mes "[Doctor]"; + mes ""; + mes "\"Still here, just wondering. So you say it's possible to aggravate creatures where you come from?\""; + next; + menu "Yes, within a certain radius of the caster, it is possible.", -; + mes "[Doctor]"; + mes ""; + mes "\"Really? Ha-ha! I knew it. Tell me more, could you? Anything particular about the practice of magic in your world?\""; + next; + menu "Well... it is possible to follow a darker path, so to speak, when it comes to practicing magic.", L_At_Island_Dark, + "Hm. Not sure if it's relevant, but I have often suspected an unknown evil in my own world.", L_At_Island_Dark, + "Even the 'good' practicioners seem to exhibit malicious behaviour at times.", L_At_Island_Evil, + "I don't know much more than that, I'm afraid.", -; + close; + +L_At_Island_Summon: + mes "[Doctor]"; + mes ""; + mes "\"Summoning them? Via some sort of magic, presumably, or do you mean by other means?\""; + next; + menu "Yes, with magic, I think. The creatures can be aggravated, even.", L_At_Island_Magic, + "Other means? I never thought of that. Could you explain?", L_At_Island_Void, + "On second thought, I've lost my train of thought.", -; + close; + +L_At_Island_Void: + mes "[Doctor]"; + mes ""; + mes "\"Sure, it is a distinct possibility.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"The Void, or otherwise this sort of, empty space between universes.\""; + mes "\"It might be easier to think about the universes as being stacked on top of one another, though can't quite say there's an up or a down about the Void.\""; + close; + +L_At_Island_Spirits: + mes "[Doctor]"; + mes ""; + mes "\"Sort of like spirits?\" Or are you suggesting that these blobs are the collective energy lost upon death?\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Um, I'm not sure what to make of that.\""; + close; + +L_At_Island_Time: + mes "[Doctor]"; + mes "\"Time, did you say?\" He takes a moment. \"Well, it's more like a big ball--it's probably not what you think. But you know? I have detected temporal abnormalities here.\""; + close; + +L_At_Island_Dark: + mes "[Doctor]"; + mes ""; + mes "\"Your home isn't all that safe? Are there regular patrols, or is there a shortage of help?\""; + next; + menu "I forgot what we were talking about. Something about the wisps?", L_At_Island_Wisps, + "Well, either way, I can't quite compare that to this... sinister atmosphere.", -, + "It--wait, a shortage? Well...", L_At_Island_Help; + mes "[Doctor]"; + mes ""; + mes "\"That feeling does pervade this world. A darkness that wishes to smother and extinguish all in its path.\""; + next; + menu "Maybe a poison was unleashed, and it's what's causing the death, and the erratic behaviour?", -, + "So, could the behaviour of these wisps be explained by magic?", -, + "Could we start over? I was trying to recall what you said--hello?", L_At_Island_Knows_Doctor, + "Well, the effects, though widespread, seem to be more severe at times.", L_At_Island_Evil; + mes "[Doctor]"; + mes ""; + mes "\"A very valid idea. Hm...\""; + close; + +L_At_Island_Evil: + mes "[Doctor]"; + mes ""; + mes "\"Yes, sadly that does seem to be the case at times. I feel we've almost solved at least this mystery. Just... definitively, what would you say is going on here?\""; + next; + setarray @menuitems$, + "I think the wisps are drawn to those that have died, like... me? And when they become aggravated they end up destroying more of the world.", + "In order to escape, the beings that have died and ended up here are forced to... fight?", + "An evil force placed a curse on all of us, dooming us to fight here, pitted against one another in pointless battle--for all eternity!", + "The trees are dead as a result of the fighting, and the wisps are angry spirits looking for revenge?", + "This world is in disarray, subject to chaos, and ultimately, utter destruction. Those, like me, have been given an opportunity, a choice--to put an end to this, to drive out the evil stench that plagues this land.", + "Unlike me, the old woman that led me here was not without hidden motives. So, she planted a way to bring me here, and in doing so, eliminated the ones that could foil her plans.", + "When I died and came here, my soul was fragmented, and part of it manifested as the tormented wisps here now?", + "You do seem rather odd, using those alien devices. I think you're to blame for what's happened here!", + "Something, or someone, perhaps, walks this world, appearing from the shadows. With it come misery and pain. But it is up to us to rid this world of its blight.", + "There is an intermittent, evil presence in this world. When it arrives it brings about more destruction, resulting in these dead trees. Then, at the whim of its madness, it uses magic to incite the wisps to attack and be unwilling accomplices."; + setarray @submenu$, "", "", "", ""; + setarray @submenuindex, 0, 0, 0, 0; + set @c, 0; + +L_island_end_menu_loop: + set @index, rand(getarraysize(@menuitems$)); + set @i, 0; + if (@c == 0) goto L_island_post_menu_loop_sub; +L_island_end_menu_loop_sub: + if (@submenu$[@i] == @menuitems$[@index]) goto L_island_end_menu_loop; + set @i, @i + 1; + if (@i < @c) goto L_island_end_menu_loop_sub; +L_island_post_menu_loop_sub: + set @submenu$[@i], @menuitems$[@index]; + set @submenuindex[@i], @index; + set @c, @c + 1; + if (@c < 4) goto L_island_end_menu_loop; + + menu @submenu$[0], -, + @submenu$[1], -, + @submenu$[2], -, + @submenu$[3], -; + set @menu, @menu - 1; + if (@menu >= 4 || @menu < 0) goto L_island_oo_range; + if (@submenuindex[@menu] == 8 || @submenuindex[@menu] == 9) + goto L_At_Island_Resolve; + +L_island_oo_range: + mes "[Doctor]"; + mes ""; + mes "\"Ah, I'm sorry, but that doesn't seem to fit with what we know. Perhaps we should give this some more thought.\""; + close; + +L_At_Island_Help: + menu "Yes, help is probably needed, but I hadn't really considered my own role...", -, + "Perhaps, but it's not really my problem.", -; + mes "[Doctor]"; + mes ""; + mes "\"Just as you are helping here, I believe that if it is what you desire, you can find a suitable way to help elsewhere, too.\""; + close; + +L_At_Island_Resolve: + callsub S_Update_Helped; + mes "[Doctor]"; + mes ""; + mes "\"Ha-ha, that's it! Brilliant!\" He shakes your hand enthusiastically. \"I knew you could do it! You don't know how much your help means!\""; + close; + +L_At_Island_Offer_Lifestone: + mes "[Doctor]"; + mes ""; + mes "\"Hm, no, while I appreciate your generosity, I don't think that will be necessary.\""; + mes "He looks off into the distance. \"Strange things...\""; + close; + +L_At_Island_Helped: + mes "[Doctor]"; + mes ""; + mes "The Doctor smiles. \"A disturbing force is devastating this world. But with your help I think we're well on our way. Indeed.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Well, I won't keep you, still rather busy. Should probably survey some other regions, too.\" The Doctor's words trail off as he returns to thought."; + next; + menu "Okay, I'll see you around!", -, + "Actually, I'd like to go home now. Any chance you could help?", L_Warning; + close; + +// =================================================================== +// Helper portions, duplicated in each script for want of time, sorry. +// =================================================================== + +// The player has defeated the invader and helped enough times. +L_Return_Ready_Optional: + if (!(~(Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK) || ((Easter_2010_QuestState >> E10_HELPED_DOCTOR_ISLAND_SHIFT) & E10_HELPED_DOCTOR_ISLAND_MASK)) + goto L_Return_Ready; + + // Player can help one more time, if so desired. + mes "[Doctor]"; + mes ""; + mes "\"Well... this has been quite an adventure, hasn't it? I'd say it's about timey--er, time for me to go, but I think I can stick around for a little while longer to tie up some loose ends for myself.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Oh, did you want to help again?\""; + next; + menu "Sure, that sounds good", L_At_Island, + "Hm, I can't right now, but maybe later.", L_Return_Ready, + "I was looking for a way to go home.", L_Return_Capable, + "No, sorry, I don't think so.", L_Return_Ready; + close; + +// Player has done "everything" to do in this world, just talking to the Doctor. +L_Return_Ready: + set @parting$, "!"; + if (strcharinfo(0) == "Alonso" || strcharinfo(0) == "AlOnS") set @parting$, ", Alonso!"; + mes "[Doctor]"; + mes ""; + mes "\"Well, you have been absolutely brilliant! Brilliant! Very impressive.\" He smiles kindly and shakes your hand. \"It has been a pleasure. Now for the next adventure. Allons-y" + @parting$ + "\""; + close; + +L_Defeat_Invader: + mes "[Doctor]"; + mes ""; + mes "\"Ah-ha! It's nice to see you again. How goes the battle?\""; + next; + menu "I'm having a hard time, actually. I'd like to go home...", -, + "Regrouping now for the next encounter, actually.", L_Encourage; + goto L_Warning; + +L_Encourage: + mes "[Doctor]"; + mes ""; + mes "\"Oh, well, I think you'll prevail in the end! If you'll excuse me, I still have some things to see to.\""; + close; + +L_MidReward: + if (((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) close; + mes "[Doctor]"; + mes ""; + mes "\"Fantastic! You have really been quite helpful.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Er, now that I think about it, perhaps I have something you'd be interested in.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"While visiting another dimension--hm, as a matter of fact, it was quite like this one. But their choices in the past seem to have differed from the ones here...\""; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor reflects on his words. \"Interesting how things turn out. Well, I now have a lot of these Valentine's Glasses, if you'd like a pair.\""; + next; + getinventorylist; + if (@inventorylist_count == 100) + goto L_MidReward_NoRoom; + mes "[Doctor]"; + mes ""; + mes "He hands you the glasses."; + mes "\"They're not too brainy, or suited for detecting background radiation, but they are charming.\""; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_MID_REWARD_MASK << E10_FLAG_MID_REWARD_SHIFT) | (E10_FLAG_MID_REWARD << E10_FLAG_MID_REWARD_SHIFT); + getitem E10_MIDREWARD_ID, 1; + close; + +L_MidReward_NoRoom: + mes "[Doctor]"; + mes ""; + mes "\"Oh, I don't think you have room for these. Well, I suppose I'll hold on to them for now.\""; + close; + +// Warning about the potential perils ahead, but the player must still want to abort the quest. +L_Warning: + mes "[Doctor]"; + mes ""; + mes "\"There is no doubt in my mind that what awaits us is both powerful and dangerous, to say the least.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"If this... destruction, this disregard for life isn't an indication, what is?\""; + mes "He takes a moment, searching your face."; + next; + mes "[Doctor]"; + mes ""; + if (((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"I do appreciate your help thus far, really. And I did look forward to working with you again in putting an end to this devastation.\""; + if (!((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"Despite the danger, I think pressing on would certainly be a brave choice.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"But if you were to leave now, I'm afraid it would be impossible to return...\""; + mes "He pauses again. \"There is still time for you to turn back now, while it's relatively easy.\""; + next; + menu "N-no, I-I think I will continue... Yes, I'm ready!", -, + "Now that you mention it, maybe I'd better leave now while I can.", L_Turn_Back, + "Um, could I have a minute to think it over?", -; + close; + +L_Turn_Back: + mes "[Doctor]"; + mes ""; + mes "\"You really want to turn back now?\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"I don't think there's any shame in going back. Quite the contrary. You're brave for even being here.\""; + mes "He hesitates ever so slightly, choosing his words. \"I just wanted to make sure you were certain about your decision.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Once you've left, I don't see how you'll be able to return.\""; + next; + menu "On second thought, perhaps I will stick around.", -, + "No, no, I'm quite sure I want to leave.", L_Really_Return; + close; + +// The player definitely wants to go back, and there's no returning. +L_Really_Return: + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Capable; + mes "[Doctor]"; + mes ""; + mes "\"If that is what you want, then consider it done. And good luck.\""; + next; + goto L_Return_Player; + +L_Return_Player: + callsub S_Helped_Count; + if (countitem("DarkPetal") == 0 && @Easter_2010_helper < 3) goto L_Difficult_Return; + set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_RETURNED << E10_STATE_ROSE_SHIFT); + if (@Easter_2010_helper < 3) + delitem "DarkPetal", 1; + savepoint "009-1", 52, 40; + warp "009-1", 0, 0; + close; + +L_Difficult_Return: + mes "[Doctor]"; + mes ""; + mes "\"Hm... you don't seem to have the thing that brought you here, that petal, that I could have used to send you back... assuming you really do want to give up.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Others have been able to battle some darkness directly, which might serve as a substitute.\""; + mes "\"You could still help me here and elsewhere if you want to try to get this done once and for all, but if you want to go early you will need to fight, somehow.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Though there are others helping, too. No doubt that soon enough, you'll be able to go anyway...\""; + close; + +L_Return_Capable: + mes "[Doctor]"; + mes ""; + mes "\"Hm. Oh, it looks like you've learned how to travel between these worlds on your own. Don't you remember the way?\""; + next; + menu "Oh, you're right! It was a spell, um..." + getspellinvocation("world-shift") + " was the name!", -; + mes "[Doctor]"; + mes ""; + mes "\"Excellent! Though I suspect its effects will work best when you are closer to where you started.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"When you came to this world, where did you end up? I trust that is your origin.\""; + close; + +S_Dialogue_Knows: + mes "[Doctor]"; + mes ""; + mes "\"Oh, hello again... hm...\""; + next; + mes "[Doctor]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + return; + +S_Update_Knows: + // Working "name" for when he hasn't introduced himself (can be changed). + mes "[Mysterious Man]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + next; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_KNOWS_DOCTOR_MASK << E10_FLAG_KNOWS_DOCTOR_SHIFT) | (E10_FLAG_KNOWS_DOCTOR << E10_FLAG_KNOWS_DOCTOR_SHIFT); + mes "[Doctor]"; + mes ""; + mes "\"Oh, excuse me,\" he gestures. \"I'm the Doctor.\""; + return; + +S_Update_Helped: + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_HELPED_DOCTOR_ISLAND_MASK << E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT) | (E10_FLAG_HELPED_DOCTOR_ISLAND << E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT); + callsub S_Helped_Count; + if (@Easter_2010_helper == 3) set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_ROSE_COMPLETE << E10_STATE_ROSE_SHIFT); + return; + +S_Helped_Count: + set @Easter_2010_helper, 0; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_TREE_SHIFT) & E10_FLAG_HELPED_DOCTOR_TREE_MASK == E10_FLAG_HELPED_DOCTOR_TREE) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT) & E10_FLAG_HELPED_DOCTOR_ISLAND_MASK == E10_FLAG_HELPED_DOCTOR_ISLAND) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_STONES_SHIFT) & E10_FLAG_HELPED_DOCTOR_STONES_MASK == E10_FLAG_HELPED_DOCTOR_STONES) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT) & E10_FLAG_HELPED_DOCTOR_FRUIT_MASK == E10_FLAG_HELPED_DOCTOR_FRUIT) + set @Easter_2010_helper, @Easter_2010_helper + 1; + return; +} diff --git a/world/map/npc/easter/2010/Doctor3.txt b/world/map/npc/easter/2010/Doctor3.txt new file mode 100644 index 00000000..e0ee86bd --- /dev/null +++ b/world/map/npc/easter/2010/Doctor3.txt @@ -0,0 +1,586 @@ +// Doctor 3, at the stones. + +028-1.gat,65,95,0 script Doctor#who3 184,{ + // States here + callsub S_Helped_Count; + if (@Easter_2010_helper >= 2 && !((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) + goto L_MidReward; + if (@Easter_2010_helper == 4 && !((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK)) + goto L_Defeat_Invader; + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Ready_Optional; + +// ======================= +// === Third location === +// ======================= + +L_At_Stones: + // Checks for if the player has already helped the doctor, either here or elsewhere, go here. + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_STONES_SHIFT) & E10_FLAG_HELPED_DOCTOR_STONES_MASK == E10_FLAG_HELPED_DOCTOR_STONES) + goto L_At_Stones_Helped; + + if ((Easter_2010_QuestState >> E10_FLAG_KNOWS_DOCTOR_SHIFT) & E10_FLAG_KNOWS_DOCTOR_MASK == E10_FLAG_KNOWS_DOCTOR) + goto L_At_Stones_Knows_Doctor; + + setarray @responses$, "\"There's something definitely unsettling about this region. Do you sense it, too?\" His acknowledgement comes suddenly and as a surprise. Something whirs and beeps as he continues, \"Oh, yes, this very spot.\"", "\"An abnormality! Yes, yes, here! Here! No, not quite imperceptible, but we must exercise caution, wouldn't you agree?\"", "\"The mysterious man paces from side to side, quickly taking notice. \"Um, I would be careful around here if I were you. I'm detecting something very powerful nearby.\"", "\"Er, that's interesting. Do you see this? It's remarkable, really. Terrifying all the same, but remarkable. Still not quite sure what makes *this* spot special.\""; + callsub S_Update_Knows; + close; + +L_At_Stones_Knows_Doctor: + setarray @responses$, "\"So from what I've gathered, this area here is somehow involved. See the stones? Yes, right there. The readings suggest it's something very, very strong.\"", "The Doctor takes a closer look at the stones on the ground. \"Interesting, don't you think?\" He waves the small device about as it beeps. \"Perhaps I'm missing something.\"", "\"If I had a, um... well, I don't know what it is. Yet. But what I do know is that there's a dark, disturbing presence here.\"", "\"Hm. The readings here were the highest.\" You take a second to look around as the Doctor continues. \"Ah, yes! I will likely be needing something... maybe similar in nature to this evil presence?\"", "\"Shouldn't get too close there. Ah, yes, be careful there. An evil consumes the life os this world, and my analysis led me to this area.\"", "\"Well, you don't see that every day, do you? Er, well, it's not that strange for me, I think. If I am correct, some agent is at work here, behind the scenes. For now, if you think of anything that might help, please let me know.\""; + callsub S_Dialogue_Knows; + next; + +L_At_Stones_Menu: + mes "[Doctor]"; + mes ""; + mes "\"This place... there's something, I'm not sure what. But I know there's something... something dark!\""; + next; + menu + "Wow! How can you tell?", L_stones_light, + "Do you need any more help?", L_stones_offer, + "Er, pardon me? Did you hear what I said?", L_At_Stones_Pardon, + "Actually, I was hoping you could help me leave this world.", L_Warning, + "Good luck with that.", -; + close; + +L_At_Stones_Pardon: + mes "[Doctor]"; + mes ""; + mes "\"H'm, what? Oh, hello...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"But this...\" - the man waves a strange, beeping device in the air - \"surely that must mean... oh? You're still here?\""; + next; + menu + "What's that thing you've got there?", L_stones_device, + "Sure I am. Do you need help with anything?", L_stones_offer, + "I was just leaving.", -; + close; + +L_stones_device: + mes "[Doctor]"; + mes ""; + mes "\"This? Oh, it's just an ordinary megalectrometer. Good model, though.\""; + next; + menu + "I'm intrigued. Do you need any help?", L_stones_offer, + "Megalawhat? I knew you were a crazy!", -; + close; + +L_stones_light: + mes "[Doctor]"; + mes ""; + mes "\"Well, it's obvious.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"The red light on my megalectrometer's come on.\""; + next; + menu + "Uh, okay. So... you need any more help?", L_stones_offer, + "I've got better things to do. Bye.", -; + close; + +// Now comes the confusing part. +L_stones_offer: + setarray @menuitems$, "", "", "", "", "", "", "", "", "", "", "", "", "", ""; + set @c, 0; + + if (countitem("WispPowder") < 1) goto L_stones_wisp; + set @menuitems$[@c], "Wisp Powder?"; + set @menuid[@c], E10_STONES_WISP; + set @c, @c + 1; + +L_stones_wisp: + if (countitem("SpectrePowder") < 1) goto L_stones_spectre; + set @menuitems$[@c], "Spectre Powder?"; + set @menuid[@c], E10_STONES_SPECTRE; + set @c, @c + 1; + +L_stones_spectre: + if (countitem("PoltergeistPowder") < 1) goto L_stones_poltergeist; + set @menuitems$[@c], "Poltergeist Powder?"; + set @menuid[@c], E10_STONES_POLTERGEIST; + set @c, @c + 1; + +L_stones_poltergeist: + if (countitem("DiseasedHeart") < 1) goto L_stones_soul; + set @menuitems$[@c], "A Diseased Heart?"; + set @menuid[@c], E10_STONES_HEART; + set @c, @c + 1; + +L_stones_soul: + if (countitem("JackOSoul") < 1) goto L_stones_heart; + set @menuitems$[@c], "A Jack O Soul?"; + set @menuid[@c], E10_STONES_SOUL; + set @c, @c + 1; + +L_stones_heart: + if (countitem("UndeadEar") < 1) goto L_stones_ear; + set @menuitems$[@c], "An Undead Ear?"; + set @menuid[@c], E10_STONES_EAR; + set @c, @c + 1; + +L_stones_ear: + if (countitem("UndeadEye") < 1) goto L_stones_eye; + set @menuitems$[@c], "An Undead Eye?"; + set @menuid[@c], E10_STONES_EYE; + set @c, @c + 1; + +L_stones_eye: + if (countitem("Bone") < 1) goto L_stones_bone; + set @menuitems$[@c], "A Bone?"; + set @menuid[@c], E10_STONES_BONE; + set @c, @c + 1; + +L_stones_bone: + if (countitem("Skull") < 1) goto L_stones_skull; + set @menuitems$[@c], "A Skull?"; + set @menuid[@c], E10_STONES_SKULL; + set @c, @c + 1; + +L_stones_skull: + if (countitem("DarkCrystal") < 1) goto L_stones_crystal; + set @menuitems$[@c], "A Dark Crystal?"; + set @menuid[@c], E10_STONES_CRYSTAL; + set @c, @c + 1; + +L_stones_crystal: + if (countitem("RottenRags") < 1) goto L_stones_rags; + set @menuitems$[@c], "Rotten Rags?"; + set @menuid[@c], E10_STONES_RAGS; + set @c, @c +1; + +L_stones_rags: + if (countitem("DarkPetal") < 1) goto L_stones_petal; + set @menuitems$[@c], "A Dark Petal?"; + set @menuid[@c], E10_STONES_PETAL; + set @c, @c + 1; + +L_stones_petal: + set @menuitems$[@c], "No, I don't have anything like that."; + set @menuid[@c], E10_STONES_NEVERMIND; + set @c, @c + 1; + + mes "[Doctor]"; + mes ""; + mes "\"I doubt you could help, since you wouldn't have - actually, you might. Coming from another world and all.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"I need something dark. Something connected with death... a deathly item. Sort of thing. Do you have anything of this kind?\""; + next; + menu + @menuitems$[0], -, + @menuitems$[1], -, + @menuitems$[2], -, + @menuitems$[3], -, + @menuitems$[4], -, + @menuitems$[5], -, + @menuitems$[6], -, + @menuitems$[7], -, + @menuitems$[8], -, + @menuitems$[9], -, + @menuitems$[10], -, + @menuitems$[11], -, + @menuitems$[12], -, + @menuitems$[13], -; + + set @menu, @menu -1; + if (@menu >= @c) close; + if (@menuid[@menu] == E10_STONES_WISP) goto L_stones_offer_wisp; + if (@menuid[@menu] == E10_STONES_SPECTRE) goto L_stones_offer_spectre; + if (@menuid[@menu] == E10_STONES_POLTERGEIST) goto L_stones_offer_poltergeist; + if (@menuid[@menu] == E10_STONES_SOUL) goto L_stones_offer_soul; + if (@menuid[@menu] == E10_STONES_HEART) goto L_stones_offer_heart; + if (@menuid[@menu] == E10_STONES_EAR) goto L_stones_offer_ear; + if (@menuid[@menu] == E10_STONES_EYE) goto L_stones_offer_eye; + if (@menuid[@menu] == E10_STONES_BONE) goto L_stones_offer_bone; + if (@menuid[@menu] == E10_STONES_SKULL) goto L_stones_offer_skull; + if (@menuid[@menu] == E10_STONES_CRYSTAL) goto L_stones_offer_crystal; + if (@menuid[@menu] == E10_STONES_RAGS) goto L_stones_offer_rags; + if (@menuid[@menu] == E10_STONES_PETAL) goto L_stones_offer_petal; + if (@menuid[@menu] == E10_STONES_NEVERMIND) goto L_stones_nevermind; + close; + +L_stones_offer_wisp: + if (countitem("WispPowder") < 1) goto L_stones_noitem; + delitem "WispPowder", 1; + goto L_stones_thanks; + +L_stones_offer_spectre: + if (countitem("SpectrePowder") < 1) goto L_stones_noitem; + delitem "SpectrePowder", 1; + goto L_stones_thanks; + +L_stones_offer_poltergeist: + if (countitem("PoltergeistPowder") < 1) goto L_stones_noitem; + delitem "PoltergeistPowder", 1; + goto L_stones_thanks; + +L_stones_offer_soul: + if (countitem("JackOSoul") < 1) goto L_stones_noitem; + delitem "JackOSoul", 1; + goto L_stones_nothanks; + +L_stones_offer_heart: + if (countitem("DiseasedHeart") < 1) goto L_stones_noitem; + delitem "DiseasedHeart", 1; + goto L_stones_thanks; + +L_stones_offer_ear: + if (countitem("UndeadEar") < 1) goto L_stones_noitem; + delitem "UndeadEar", 1; + goto L_stones_thanks; + +L_stones_offer_eye: + if (countitem("UndeadEye") < 1) goto L_stones_noitem; + delitem "UndeadEye", 1; + goto L_stones_thanks; + +L_stones_offer_bone: + if (countitem("Bone") < 1) goto L_stones_noitem; + delitem "Bone", 1; + goto L_stones_thanks; + +L_stones_offer_skull: + if (countitem("Skull") < 1) goto L_stones_noitem; + delitem "Skull", 1; + goto L_stones_thanks; + +L_stones_offer_crystal: + if (countitem("DarkCrystal") < 1) goto L_stones_noitem; + delitem "DarkCrystal", 1; + goto L_stones_thanks; + +L_stones_offer_rags: + if (countitem("RottenRags") < 1) goto L_stones_noitem; + delitem "RottenRags", 1; + goto L_stones_nothanks; + +L_stones_offer_petal: + if (countitem("DarkPetal") < 1) goto L_stones_noitem; + mes "[Doctor]"; + mes ""; + mes "\"Let me examine it... h'm...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Well now... this is quite... impressive.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"I think I've figured out how you came here...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"This item will certainly serve my purposes. However, when it comes time for you to go home, you may find it a little more difficult.\""; + mes "\"Not impossible, but difficult.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Do you want to give it to me anyway?\""; + next; + menu + "I'm a tough guy, I'll still make it home.", L_stones_tough, + "Sorry, I'm a coward. Maybe I've got something else...", L_stones_offer; + close; + +L_stones_nevermind: + mes "[Doctor]"; + mes ""; + mes "\"H'm, well, if you come by anything please let me know!\""; + close; + +L_stones_thanks: + callsub S_Update_Helped; + mes "[Doctor]"; + mes ""; + mes "\"Let me examine it... h'm...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Yes, that should do perfectly! Thank you very much.\""; + next; + menu + "Is there anything else you need?", L_stones_help, + "Yep, that's fine. Bye then!", -; + close; + +L_stones_nothanks: + mes "[Doctor]"; + mes ""; + mes "\"Let me examine it... h'm...\""; + mes "\"No, I'm afraid that won't work. Do you have anything else?\""; + goto L_stones_offer; + +L_stones_noitem: + mes "[Doctor]"; + mes ""; + mes "\"Let me examine it... h'm...\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Wait a minute! You don't even have one of those!\""; + next; + menu + "Well, I did, but I dropped it halfway through the dialogue.", L_stones_dropped, + "Sorry, I thought I did. Let's see what else I have...", L_stones_offer, + "Aha! Got you all excited there!", -; + close; + +L_stones_tough: + mes "[Doctor]"; + mes ""; + mes "\"Well, if you're sure...\""; + next; + menu + "I am! Just take the petal, okay?", L_give_petal, + "Er, actually, I'm not. Maybe I have something else...", L_stones_offer; + close; + +L_give_petal: + if (countitem("DarkPetal") < 1) goto L_stones_noitem; + delitem "DarkPetal", 1; + goto L_stones_thanks; + +L_stones_help: + mes "[Doctor]"; + mes ""; + mes "\"Hmm, that's all for now, thank you. I'm going to have a look around this area, though, and I might need some assistance later on.\""; + close; + +L_At_Stones_Helped: + mes "[Doctor]"; + mes ""; + mes "A smile appears on the Doctor's face. \"You really have done splendidly here.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Will have to see about taking care of these other loose ends, though. Well, I should be getting back to my observations. Please feel free to let me know if you have some new information for me.\""; + next; + menu "Okay, I'll see you around!", -, + "Actually, I'd like to go home now. Any chance you could help?", L_Warning; + close; + +// =================================================================== +// Helper portions, duplicated in each script for want of time, sorry. +// =================================================================== + +// The player has defeated the invader and helped enough times. +L_Return_Ready_Optional: + if (!(~(Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK) || ((Easter_2010_QuestState >> E10_HELPED_DOCTOR_STONES_SHIFT) & E10_HELPED_DOCTOR_STONES_MASK)) + goto L_Return_Ready; + + // Player can help one more time, if so desired. + mes "[Doctor]"; + mes ""; + mes "\"Well... this has been quite an adventure, hasn't it? I'd say it's about timey--er, time for me to go, but I think I can stick around for a little while longer to tie up some loose ends for myself.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Oh, did you want to help again?\""; + next; + menu "Sure, that sounds good", L_At_Stones, + "Hm, I can't right now, but maybe later.", L_Return_Ready, + "I was looking for a way to go home.", L_Return_Capable, + "No, sorry, I don't think so.", L_Return_Ready; + close; + +// Player has done "everything" to do in this world, just talking to the Doctor. +L_Return_Ready: + set @parting$, "!"; + if (strcharinfo(0) == "Alonso" || strcharinfo(0) == "AlOnS") set @parting$, ", Alonso!"; + mes "[Doctor]"; + mes ""; + mes "\"Well, you have been absolutely brilliant! Brilliant! Very impressive.\" He smiles kindly and shakes your hand. \"It has been a pleasure. Now for the next adventure. Allons-y" + @parting$ + "\""; + close; + +L_Defeat_Invader: + mes "[Doctor]"; + mes ""; + mes "\"Ah-ha! It's nice to see you again. How goes the battle?\""; + next; + menu "I'm having a hard time, actually. I'd like to go home...", -, + "Regrouping now for the next encounter, actually.", L_Encourage; + goto L_Warning; + +L_Encourage: + mes "[Doctor]"; + mes ""; + mes "\"Oh, well, I think you'll prevail in the end! If you'll excuse me, I still have some things to see to.\""; + close; + +L_MidReward: + if (((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) close; + mes "[Doctor]"; + mes ""; + mes "\"Fantastic! You have really been quite helpful.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Er, now that I think about it, perhaps I have something you'd be interested in.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"While visiting another dimension--hm, as a matter of fact, it was quite like this one. But their choices in the past seem to have differed from the ones here...\""; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor reflects on his words. \"Interesting how things turn out. Well, I now have a lot of these Valentine's Glasses, if you'd like a pair.\""; + next; + getinventorylist; + if (@inventorylist_count == 100) + goto L_MidReward_NoRoom; + mes "[Doctor]"; + mes ""; + mes "He hands you the glasses."; + mes "\"They're not too brainy, or suited for detecting background radiation, but they are charming.\""; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_MID_REWARD_MASK << E10_FLAG_MID_REWARD_SHIFT) | (E10_FLAG_MID_REWARD << E10_FLAG_MID_REWARD_SHIFT); + getitem E10_MIDREWARD_ID, 1; + close; + +L_MidReward_NoRoom: + mes "[Doctor]"; + mes ""; + mes "\"Oh, I don't think you have room for these. Well, I suppose I'll hold on to them for now.\""; + close; + +// Warning about the potential perils ahead, but the player must still want to abort the quest. +L_Warning: + mes "[Doctor]"; + mes ""; + mes "\"There is no doubt in my mind that what awaits us is both powerful and dangerous, to say the least.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"If this... destruction, this disregard for life isn't an indication, what is?\""; + mes "He takes a moment, searching your face."; + next; + mes "[Doctor]"; + mes ""; + if (((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"I do appreciate your help thus far, really. And I did look forward to working with you again in putting an end to this devastation.\""; + if (!((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"Despite the danger, I think pressing on would certainly be a brave choice.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"But if you were to leave now, I'm afraid it would be impossible to return...\""; + mes "He pauses again. \"There is still time for you to turn back now, while it's relatively easy.\""; + next; + menu "N-no, I-I think I will continue... Yes, I'm ready!", -, + "Now that you mention it, maybe I'd better leave now while I can.", L_Turn_Back, + "Um, could I have a minute to think it over?", -; + close; + +L_Turn_Back: + mes "[Doctor]"; + mes ""; + mes "\"You really want to turn back now?\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"I don't think there's any shame in going back. Quite the contrary. You're brave for even being here.\""; + mes "He hesitates ever so slightly, choosing his words. \"I just wanted to make sure you were certain about your decision.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Once you've left, I don't see how you'll be able to return.\""; + next; + menu "On second thought, perhaps I will stick around.", -, + "No, no, I'm quite sure I want to leave.", L_Really_Return; + close; + +// The player definitely wants to go back, and there's no returning. +L_Really_Return: + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Capable; + mes "[Doctor]"; + mes ""; + mes "\"If that is what you want, then consider it done. And good luck.\""; + next; + goto L_Return_Player; + +L_Return_Player: + callsub S_Helped_Count; + if (countitem("DarkPetal") == 0 && @Easter_2010_helper < 3) goto L_Difficult_Return; + set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_RETURNED << E10_STATE_ROSE_SHIFT); + if (@Easter_2010_helper < 3) + delitem "DarkPetal", 1; + savepoint "009-1", 52, 40; + warp "009-1", 0, 0; + close; + +L_Difficult_Return: + mes "[Doctor]"; + mes ""; + mes "\"Hm... you don't seem to have the thing that brought you here, that petal, that I could have used to send you back... assuming you really do want to give up.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Others have been able to battle some darkness directly, which might serve as a substitute.\""; + mes "\"You could still help me here and elsewhere if you want to try to get this done once and for all, but if you want to go early you will need to fight, somehow.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Though there are others helping, too. No doubt that soon enough, you'll be able to go anyway...\""; + close; + +L_Return_Capable: + mes "[Doctor]"; + mes ""; + mes "\"Hm. Oh, it looks like you've learned how to travel between these worlds on your own. Don't you remember the way?\""; + next; + menu "Oh, you're right! It was a spell, um..." + getspellinvocation("world-shift") + " was the name!", -; + mes "[Doctor]"; + mes ""; + mes "\"Excellent! Though I suspect its effects will work best when you are closer to where you started.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"When you came to this world, where did you end up? I trust that is your origin.\""; + close; + +S_Dialogue_Knows: + mes "[Doctor]"; + mes ""; + mes "\"Oh, hello again... hm...\""; + next; + mes "[Doctor]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + return; + +S_Update_Knows: + // Working "name" for when he hasn't introduced himself (can be changed). + mes "[Mysterious Man]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + next; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_KNOWS_DOCTOR_MASK << E10_FLAG_KNOWS_DOCTOR_SHIFT) | (E10_FLAG_KNOWS_DOCTOR << E10_FLAG_KNOWS_DOCTOR_SHIFT); + mes "[Doctor]"; + mes ""; + mes "\"Oh, excuse me,\" he gestures. \"I'm the Doctor.\""; + return; + +S_Update_Helped: + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_HELPED_DOCTOR_STONES_MASK << E10_FLAG_HELPED_DOCTOR_STONES_SHIFT) | (E10_FLAG_HELPED_DOCTOR_STONES << E10_FLAG_HELPED_DOCTOR_STONES_SHIFT); + callsub S_Helped_Count; + if (@Easter_2010_helper == 3) set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_ROSE_COMPLETE << E10_STATE_ROSE_SHIFT); + return; + +S_Helped_Count: + set @Easter_2010_helper, 0; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_TREE_SHIFT) & E10_FLAG_HELPED_DOCTOR_TREE_MASK == E10_FLAG_HELPED_DOCTOR_TREE) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT) & E10_FLAG_HELPED_DOCTOR_ISLAND_MASK == E10_FLAG_HELPED_DOCTOR_ISLAND) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_STONES_SHIFT) & E10_FLAG_HELPED_DOCTOR_STONES_MASK == E10_FLAG_HELPED_DOCTOR_STONES) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT) & E10_FLAG_HELPED_DOCTOR_FRUIT_MASK == E10_FLAG_HELPED_DOCTOR_FRUIT) + set @Easter_2010_helper, @Easter_2010_helper + 1; + return; +} diff --git a/world/map/npc/easter/2010/Doctor4.txt b/world/map/npc/easter/2010/Doctor4.txt new file mode 100644 index 00000000..dcbe7481 --- /dev/null +++ b/world/map/npc/easter/2010/Doctor4.txt @@ -0,0 +1,784 @@ +// Doctor 4, at the fruit trees. + +028-1.gat,116,69,0 script Doctor#who4 184,{ + // States here + callsub S_Helped_Count; + if (@Easter_2010_helper >= 2 && !((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) + goto L_MidReward; + if (@Easter_2010_helper == 4 && !((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK)) + goto L_Defeat_Invader; + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Ready_Optional; + +// ======================= +// === Fourth location === +// ======================= + +//From Freeyorp on IRC: +//The fourth position is the only position with any serious sign of life - there are quite a lot of living trees there, packed quite densely +//In the middle of this area, atop cliffs overlooking water, is a fruit tree + +L_At_Fruit: + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT) & E10_FLAG_HELPED_DOCTOR_FRUIT_MASK == E10_FLAG_HELPED_DOCTOR_FRUIT) + goto L_At_Fruit_Helped; + if ((Easter_2010_QuestState >> E10_FLAG_KNOWS_DOCTOR_SHIFT) & E10_FLAG_KNOWS_DOCTOR_MASK == E10_FLAG_KNOWS_DOCTOR) + goto L_At_Fruit_Known; + + setarray @responses$, "\"This tree... it bears remarkable signs of life for such a dead world...\"", "\"But this red light here in conjunction with the blue... that means it must be...\"", "\"Oh dear! Pressed the wrong dratted button again. I wish they'd make them just a little larger...\"", "\"But why so alive? It's surprising to find something that isn't long dead...\""; + + callsub S_Update_Knows; + close; + +L_At_Fruit_Known: + setarray @responses$, "\"Hmm...\" He pauses. \"Ah, hello there. Could you help with a few things for a bit? Might be a bit dangerous, though...\"", + "\"Hello again. Mind helping out again for a bit?\"", + "He wanders around, apparently lost in thought. \"Hm. Are you able to help with something? Er, but just so that you know, it could be dangerous...\"", + "\"Ah, it's you. Thanks for your help back there, by the way. There is something else, though it might be a bit dangerous, that I need help with if you don't mind?\""; + set @i, rand(getarraysize(@responses$) >> 1) << 1; + if ((Easter_2010_QuestState >> E10_DOCTOR_HELP_STATES_SHIFT) & E10_DOCTOR_HELP_STATES_MASK) set @i, @i + 1; + mes @responses$[@i]; + next; + +L_lens_main_menu: + menu "What do I need to do?", L_lens_minigame_explain, + "Dangerous?", L_lens_minigame_dangers, + "Let's start!", L_lens_loop_init, + "I'm just looking to leave this world. Can you help?", L_Warning, + "Actually, I'd rather not...", -; + close; + +L_lens_minigame_explain: + mes "[Doctor]"; + mes ""; + mes "\"I need a special sort of lens, one that might be used to detect what's going on around here.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"To do this, I'll need a special concoction... but I'll need an extra set of hands, and some dark crystal - they seem to match the dark presence here quite nicely.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"We'll probably need other items as well, to get the concoction to the right state. Hm...\""; + next; + mes "[Doctor]"; + mes ""; + if (countitem("Pearl") < 1) mes "\"If you get some solid, shiny object that could be used in the mix, that would help. A lot.\""; + if (countitem("Pearl") > 0) mes "\"Your pearl there would be great in the mix, as such things help in removing color. Though adding too much would make the wrong kind of texture, and also make it difficult to see through...\""; + if (countitem("IronPotion") < 1) mes "\"From what I've heard about potions from your world, one of them would be excellent at removing an unwanted presence while we make this. I can't remember the name right now, but I think it was orange...\""; + if (countitem("IronPotion") > 0) mes "\"That orange potion there... an Iron Potion, isn't it? It looks like a fairly thick brew, but something that strong should be useful for getting rid of this presence if it gets too much.\""; + if (countitem("ConcentrationPotion") < 1) mes "\"If you could find some potion to refine the concoction, that should be quite useful.\""; + if (countitem("ConcentrationPotion") > 0) mes "\"That purple potion there... a Concentration Potion, you say? That's closer to the sort of texture we're looking for, but it might draw the attention of that presence...\""; + if (countitem("SlowPoisonPotion") < 1) mes "\"And any other potion you can think of, really. I just make it up as I go along, most of the time.\""; + if (countitem("SlowPoisonPotion") > 0) mes "\"Ah, a potion to slow the effects of poison? Interesting, interesting, perhaps something like that could also protect our mix from this evil influence.\""; + if (countitem("BottleOfWater") < 1) mes "\"Though you don't seem to have any water... there is water all around in this place, but whenever I try to do anything with it, things never work. I think it might be tainted here. Maybe there are other things from your world that could help?\""; + if (countitem("BottleOfWater") > 0) mes "\"Ah, water. That will be fantastic for getting rid of unwanted coloration and make the mixture clearer, but of course, too much of it and we'll lose the properties that I was looking for in the first place...\""; + next; + goto L_lens_main_menu; + +L_lens_minigame_dangers: + mes "[Doctor]"; + mes ""; + mes "\"Well. There's some sort of malign force around here, and the things I want to do will probably draw its attention.\""; + next; + goto L_lens_main_menu; + +// ##### Initialise the minigame. ##### + +L_lens_loop_init: + + // Insert sanity checks here + if (countitem("DarkCrystal") < 1) goto L_lens_no_crystal; + + set @MAX_LENS_CRYSTAL_ENERGY_INCREASE, 70; + + // Texture: + setarray @textures$, "finely powdered", "thick", "slightly thick", "slightly thin", "thin"; + set @textureID, rand(3); + + // Coloration is more interesting. 1 for red, 2 for blue, 4 for yellow. So 7 has everything, 0 is clear. + setarray @tints$, "clear", "red", "blue", "purple", "yellow", "orange", "green", "dark"; + set @tintID, rand(7); + + // Opacity, final explicitly displayed value + setarray @opacities$, "opaque", "moderately opaque", "moderately transparent", "transparent"; + set @opacityID, rand(2); + + set @crystalEnergy, rand(rand(@MAX_LENS_CRYSTAL_ENERGY_INCREASE) + 1); // Yes, things _can_ go wrong right from the start. + set @dilution, 4; + set @rounds, 0; // Things go spectacularly wrong as time goes on. + set @damage, 0; // When this hits 4, game over. + + mes "The Doctor places the dark crystal in a small metal container. Looking away, and shielding his face with one hand, he uses a small thin metallic device to emit a sharp, piecing sound, shattering the dark crystal."; + delitem "DarkCrystal", 1; + mes "There is a cloud of smoke, and purple flames leap from the container."; + next; + +// ---------------------- +// ===== Main loop. ===== +// ---------------------- + +L_lens_loop_main: + set @retloc, 0; + set @oldtextureID, @textureID; + set @oldtintID, @tintID; + set @oldopacityID, @opacityID; + + mes "[Lens concoction]"; + mes ""; + mes "The concoction is currently a " + @textures$[@textureID] + ", " + @tints$[@tintID] + " " + @opacities$[@opacityID] + " concoction."; + set @mod, 0; + if (rand(@crystalEnergy) / 3 + rand(@crystalEnergy >> 1) > 30) set @mod, 1; + if (@mod == 1) mes "The Doctor seems uneasy. \"We seem to have drawn the attention of something. Be careful...\""; + next; + +L_lens_loop_menu: + set @LENS_CHOICE_PEARL, 0; + set @LENS_CHOICE_IRON_POTION, 1; + set @LENS_CHOICE_CONC_POTION, 2; + set @LENS_CHOICE_SLOW_POISON_POTION, 3; + set @LENS_CHOICE_WATER, 4; + set @LENS_CHOICE_WAIT, 5; + set @LENS_CHOICE_DISCARD, 6; + + setarray @lensmenu$, "", "", "", "", "", "", ""; + set @lensmenuiter, 0; + + if (countitem("Pearl") < 1) goto L_lens_loop_post_pearl_choice; + + set @lensmenu$[@lensmenuiter], "Pearl"; + set @lensmenuID[@lensmenuiter], @LENS_CHOICE_PEARL; + set @lensmenuiter, @lensmenuiter + 1; + +L_lens_loop_post_pearl_choice: + if (countitem("IronPotion") < 1) goto L_lens_loop_post_iron_potion_choice; + + set @lensmenu$[@lensmenuiter], "Iron potion"; + set @lensmenuID[@lensmenuiter], @LENS_CHOICE_IRON_POTION; + set @lensmenuiter, @lensmenuiter + 1; + +L_lens_loop_post_iron_potion_choice: + if (countitem("ConcentrationPotion") < 1) goto L_lens_loop_post_conc_potion_choice; + + set @lensmenu$[@lensmenuiter], "Concentration potion"; + set @lensmenuID[@lensmenuiter], @LENS_CHOICE_CONC_POTION; + set @lensmenuiter, @lensmenuiter + 1; + +L_lens_loop_post_conc_potion_choice: + if (countitem("SlowPoisonPotion") < 1) goto L_lens_loop_post_slow_poison_potion_choice; + + set @lensmenu$[@lensmenuiter], "Slow poison potion"; + set @lensmenuID[@lensmenuiter], @LENS_CHOICE_SLOW_POISON_POTION; + set @lensmenuiter, @lensmenuiter + 1; + +L_lens_loop_post_slow_poison_potion_choice: + if (countitem("BottleOfWater") < 1) goto L_lens_loop_post_water_choice; + + set @lensmenu$[@lensmenuiter], "Bottle of Water"; + set @lensmenuID[@lensmenuiter], @LENS_CHOICE_WATER; + set @lensmenuiter, @lensmenuiter + 1; + +L_lens_loop_post_water_choice: + set @lensmenu$[@lensmenuiter], "Wait for a moment"; + set @lensmenuID[@lensmenuiter], @LENS_CHOICE_WAIT; + set @lensmenuiter, @lensmenuiter + 1; + + set @lensmenu$[@lensmenuiter], "Discard the brew"; + set @lensmenuID[@lensmenuiter], @LENS_CHOICE_DISCARD; + set @lensmenuiter, @lensmenuiter + 1; + + menu @lensmenu$[0], -, + @lensmenu$[1], -, + @lensmenu$[2], -, + @lensmenu$[3], -, + @lensmenu$[4], -, + @lensmenu$[5], -, + @lensmenu$[6], -; + + set @menu, @menu - 1; + set @pcmod, 0; + if (@menu >= @lensmenuiter) goto L_lens_loop_menu_invalid; + + if (@lensmenuID[@menu] == @LENS_CHOICE_PEARL) goto L_lens_pc_use_pearl; // set @pcmod, rand(2); + if (@lensmenuID[@menu] == @LENS_CHOICE_IRON_POTION) goto L_lens_pc_use_ironpot; + if (@lensmenuID[@menu] == @LENS_CHOICE_CONC_POTION) goto L_lens_pc_use_concpot; + if (@lensmenuID[@menu] == @LENS_CHOICE_SLOW_POISON_POTION) goto L_lens_pc_use_slowpoisonpot; + if (@lensmenuID[@menu] == @LENS_CHOICE_WATER) goto L_lens_pc_use_water; + if (@lensmenuID[@menu] == @LENS_CHOICE_WAIT) set @pcmod, 6; + if (@lensmenuID[@menu] == @LENS_CHOICE_DISCARD) goto L_lens_discard_confirm; + +L_lens_loop_automodify: + set @rounds, @rounds + 1; + if (@crystalEnergy < 0) set @crystalEnergy, 0; + set @inc, rand(rand(@MAX_LENS_CRYSTAL_ENERGY_INCREASE / (1+(@crystalEnergy >> 2))) + 1); + if (!(@pcmod & 1)) set @crystalEnergy, @crystalEnergy + @MAX_LENS_CRYSTAL_ENERGY_INCREASE * @inc / (2 + @inc); + set @crystalEnergy, @crystalEnergy - rand(rand(@MAX_LENS_CRYSTAL_ENERGY_INCREASE) + 1); + if (@crystalEnergy < 0) set @crystalEnergy, 0; + set @effects, rand(20 + rand(40 + @crystalEnergy)); + + if (!(@effects & 1)) goto L_lens_loop_automodify_post_texture; + +// --- Automatically modify the texture --- + if (@textureID == 0) set @retloc, 1; + if (@textureID == 0) goto L_lens_auto_alter_texture_dry; +L_lens_loop_automodify_ret: + set @mod, rand(3); + if (@mod == 1) goto L_lens_loop_post_automods; + set @textureID, @textureID - 1 + @mod; + goto L_lens_loop_automodify_post_texture; + +L_lens_loop_automodify_post_texture: + if (@effects & 2) goto L_lens_auto_alter_color; +L_lens_loop_auto_post_color: + if (@effects & 4) goto L_lens_auto_alter_transparency; +L_lens_loop_auto_post_transparency: + if (@effects > 50) goto L_lens_warp_pc_hair; +L_lens_loop_auto_post_warp_hair: + if (@effects > @crystalEnergy) goto L_lens_autofix_texture; +L_lens_loop_auto_post_fix_texture: + set @temp, 0; + if (!(@effects < 65 && rand(@dilution) < 2 && (@effects & 7))) set @temp, 1; + if (@temp == 1) set @retloc, 2; + if (@temp == 1) goto L_lens_drydamage; +L_lens_loop_auto_post_drydamage: + set @temp, 0; + if ((@effects + @crystalEnergy / 3 > 85 || (@textureID == 0 && rand(@effects + @crystalEnergy) > 30)) && (!(@pcmod & 1) || @pcmod & 2)) set @temp, 1; + if (@temp == 1) set @retloc, 3; + if (@temp == 1) goto L_lens_directdamage; + set @temp, 0; + +L_lens_loop_post_automods: + if (@oldtintID & (@tintID ^ @oldtintID)) mes "The mixture becomes less " + @tints$[@oldtintID & (@tintID ^ @oldtintID)] + ", changing to a " + @tints$[@oldtintID & ~(@oldtintID & (@tintID ^ @oldtintID))] + " tint."; + if (@tintID & (@tintID ^ @oldtintID)) mes "The mixture becomes more " + @tints$[@tintID & (@tintID ^ @oldtintID)] + ", changing to a " + @tints$[@tintID] + " tint."; + if (@textureID == @oldtextureID) goto L_lens_nochange_texture; + if (@textureID < 0) set @textureID, 0; + if (@textureID > 4) set @textureID, 4; + if (@oldtextureID == 0) mes "The powder becomes more fluid, changing into a " + @textures$[@textureID] + " concoction."; + if (@oldtextureID > @textureID) mes "The concoction thickens, changing into a " + @textures$[@textureID] + " concoction."; + if (@oldtextureID < @textureID && !(@oldtextureID == 0)) mes "The concoction thins, changing into a " + @textures$[@textureID] + " concoction."; + +L_lens_nochange_texture: + if (@oldopacityID > @opacityID) mes "The concoction becomes more opaque."; + if (@oldopacityID < @opacityID) mes "The concoction becomes more transparent."; + +L_lens_loop_check: + // Check to whether you finished here + if ((@textureID == 3 || @textureID == 2) && @tintID == 0 && @opacityID == 0 && @rounds < 3) goto L_lens_early; + if ((@textureID == 3 || @textureID == 2) && @tintID == 0 && @opacityID == 0) goto L_lens_complete; + if (@textureID == 0 && (@rounds + 36) / (@dilution + 5) > 4) goto L_lens_dry_destroyed; + if ((@damage > 3 && @crystalEnergy > 80) || (@damage > 2 && @crystalEnergy > 80 && @textureID == 0)) goto L_lens_violently_destroyed; + next; + goto L_lens_loop_main; + +L_lens_early: + mes "[Doctor]"; + mes ""; + mes "\"That's the sort of thing I'm aiming for - too bad that we haven't added enough for it to complete, though.\""; + next; + goto L_lens_loop_main; + +L_lens_discard_confirm: + // Make sure that the player really does want to discard the mix. + mes "[Doctor]"; + mes ""; + if (@mod == 1 && @damage < 2) mes "\"Are you sure? It didn't seem so bad before...\""; + if (@mod == 0 || @damage > 1) mes "\"If you are sure... there's a lot of dark energy around, so that might be the best option...\""; + next; + menu "Yes, get rid of it!", L_lens_really_discard, + "No, on second thoughts, better not...", -; + goto L_lens_loop_menu; + +L_lens_really_discard: + mes "The Doctor takes out a curious glass instrument, and carefully moves it over the mixture. The device takes on a sickly purple hue, and the remnants of the mixture crumbles into nothingness as the light fades into the device."; + close; + +L_lens_loop_menu_invalid: + mes "[Lens concoction]"; + mes "That doesn't seem right, somehow..."; + next; + goto L_lens_loop_menu; + +L_lens_pc_use_pearl: + if (countitem("Pearl") < 1) goto L_lens_pc_use_missing; + delitem "Pearl", 1; + mes "You pass the pearl to the Doctor, who awkwardly takes it with one hand, grinds it into powder with another device, all the while keeping the container firmly in place. After he finishes, you sprinkle the powder evenly over the concoction."; + if (@textureID > 1) set @textureID, @textureID - 1; + if (rand(3 * (@rounds + 6) / (@dilution + 2)) > 0) set @tintID, @tintID & ~1; // Remove red + if (rand(2) > 0) set @tintID, @tintID & ~2; // Remove blue + if (rand(3) > 0) set @tintID, @tintID & ~4; // Remove yellow + if (rand(@opacityID) == 0) set @opacityID, @opacityID + 1; + goto L_lens_loop_automodify; + +L_lens_pc_use_ironpot: + if (countitem("IronPotion") < 1) goto L_lens_pc_use_missing; + delitem "IronPotion", 1; + mes "You pour the iron potion into the mix."; + if (@textureID > 2) set @textureID, @textureID - 1; + if (@textureID == 1 || (@textureID == 0 && rand(2) == 0)) set @textureID, @textureID + 1; + set @tintID, @tintID | 4; + if (rand(3) > 0) set @tintID, @tintID | 1; + set @crystalEnergy, 10 * (@crystalEnergy + 5) >> 4; + goto L_lens_loop_automodify; + +L_lens_pc_use_concpot: + if (countitem("ConcentrationPotion") < 1) goto L_lens_pc_use_missing; + delitem "ConcentrationPotion", 1; + mes "You pour the concentration potion into the mix."; + if (@textureID > 1 && rand(5) <= 2) set @textureID, @textureID - 1; + if (@textureID == 0 && rand(3) > 0) set @textureID, @textureID + 1; + set @pcmod, rand(2); + goto L_lens_loop_automodify; + +L_lens_pc_use_slowpoisonpot: + if (countitem("SlowPoisonPotion") < 1) goto L_lens_pc_use_missing; + delitem "SlowPoisonPotion", 1; + mes "You pour the slow poison potion into the mix."; + if ((@textureID < 4 && @textureID > 0 && rand(5) > 2) || (@textureID == 0 && rand(5))) set @textureID, @textureID + 1; + set @crystalEnergy, @crystalEnergy - rand(rand(10 * (@crystalEnergy + 15) >> 4) + 5); + set @pcmod, 1; + goto L_lens_loop_automodify; + +L_lens_pc_use_water: + if (countitem("BottleOfWater") < 1) goto L_lens_pc_use_missing; + delitem "BottleOfWater", 1; + mes "You empty the bottle of water into the mix."; + if ((@textureID < 4 && @textureID > 0) || (@textureID == 0 && rand(5) < 2)) set @textureID, @textureID + 1; + if (rand(7) < 2) set @tintID, @tintID & ~3; + if (rand(7) < 2) set @tintID, @tintID & ~5; + if (rand(7) < 2) set @tintID, @tintID & ~6; + if (rand(@opacityID + 2) > 1) set @opacityID, @opacityID - 1; + set @pcmod, rand(3); + set @dilution, @dilution + 1; + goto L_lens_loop_automodify; + +L_lens_pc_use_missing: + mes "Odd, you seemed to have it just moments before. Somewhat confused, you go back to consider what to do next."; + next; + goto L_lens_loop_menu; + +// ----------------------------------------------------------------- +// ##### The various automatic subroutines for various effects ##### +// ----------------------------------------------------------------- + +L_lens_auto_alter_color: + set @mod, 1 << rand(3); + if (rand(@crystalEnergy) > 40) set @mod, @mod | 4; + if (@crystalEnergy - rand(@crystalEnergy) < 30) set @mod, @mod | rand(3); + set @tintID, @tintID | @mod; + goto L_lens_loop_auto_post_color; + +L_lens_auto_alter_transparency: + set @mod, rand(3); + if ((@opacityID == 0 && @mod < 1) || (@opacityID == 3 && @mod > 1)) goto L_lens_loop_auto_post_transparency; + if (@mod == 1) goto L_lens_loop_auto_post_transparency; + set @opacityID, @opacityID - 1 + @mod; + if (@mod > 1) mes "The mixture alters, and becomes easier to see through."; + if (@opacityID == 3) mes "The mixture is now completely clear."; + if (@mod < 1) mes "The mixture alters, and becomes harder to see through."; + goto L_lens_loop_auto_post_transparency; + +L_lens_warp_pc_hair: + mes "You feel something around your head change..."; + set @style,rand(6); + set @color,rand(9); + setlook 1,@style+1; + setlook 6,@color; + goto L_lens_loop_auto_post_warp_hair; + +L_lens_autofix_texture: + set @textureID, @textureID + rand(3) - 1; + if (@textureID > 3) set @textureID, @textureID -1; + if (@textureID < 3) set @textureID, @textureID +1; + goto L_lens_loop_auto_post_fix_texture; + +L_lens_directdamage: + mes "A flash of sickly yellow light blinds you, the mixture distorts for a moment, then reappears."; + set @textureID, rand(3); + set @tintID, @tintID | rand(7); + set @opacityID, 0; + + set @mod, 0; + if (rand(readparam(bAgi)) > 30) set @mod, 1; + if (@mod == 1) mes "You barely manage to dive out of the way as the yellow flash sharply hisses through a space which, until a few moments ago, you had occupied..."; + if (@mod == 0) mes "The light burns all around you, with a strong sensation as if you were crushed under a great weight..."; + if (@mod == 0) itemheal readparam(bVit) * readparam(bVit) / 12 - 820, 0; + if (hp < 1) close; + set @mod, 1; + +L_lens_auto_alter_texture_dry: + // If the mix dries up, and too much of the mix was water, then the mixture become damaged. However, the chance that it does dry up decreases with the proportion of water used so far + if (@mod == 0 && rand(2) == 0 && @dilution > 4) set @dilution, @dilution - 1; + if (rand(3) == 0 && @dilution > 5 && rand(@dilution * @dilution) > 12 && (!@pcmod & 1)) goto L_lens_drydamage; + goto L_lens_loop_return_fix; + +L_lens_drydamage: + if (@mod == 0 && @pcmod & 1) goto L_lens_loop_return_fix; + if (@mod == 0) mes "With a flash of purple light, the mixture spontaneously becomes very dry."; + if (@mod == 0 && rand(2) == 0 && @dilution > 5) set @dilution, @dilution / 2; + if (@mod == 0) set @textureID, 0; + +L_lens_damagelens: + if (rand(@damage * @damage) >= 6) goto L_lens_loop_return_fix; + set @damage, @damage + 1; + if (@damage == 1) mes "The container starts vibrating slightly."; + if (@damage == 2) mes "The container begins to shake unsteadily."; + if (@damage == 3 && @textureID == 0) goto L_lens_violently_destroyed; + if (@damage == 3) mes "The container is now shaking violently. The concoction gives off an acrid smell, and dark purple sparks occasionally fly out of the container. He watches you uneasily."; + if (@damage == 4) goto L_lens_violently_destroyed; + goto L_lens_loop_return_fix; + +L_lens_loop_return_fix: + if (@retloc == 0) mes "FATAL ERROR: @retloc undefined in L_lens_loop_return_fix, closing script."; + if (@retloc == 0) close; + // Hacky. + set @temp, 0; + if (@retloc == 1) set @temp, 1; + if (@retloc == 2) set @temp, 2; + if (@retloc == 3) set @temp, 3; + set @retloc, 0; + if (@temp == 0) mes "FATAL ERROR: @retloc out of range in L_lens_loop_return_fix, closing script."; + if (@temp == 0) close; + if (@temp == 1) goto L_lens_loop_automodify_ret; + if (@temp == 2) goto L_lens_loop_auto_post_drydamage; + if (@temp == 3) goto L_lens_loop_post_automods; + +L_lens_no_crystal: + mes "[Doctor]"; + mes ""; + mes "\"Looks like neither of us have a dark crystal. I'll try something else, but if you want to look around for one in the meantime, we could try again later.\""; + close; + +// --------------------------------- +// ##### The possible outcomes ##### +// --------------------------------- + +L_lens_violently_destroyed: + mes "A high pitched whine echoes around you. A series of blinding flashes force you to cover your eyes as the container is sent flying into the air. The grass around where the concoction landed takes on a sickly yellow hue."; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor sighs."; + mes "\"That could have gone better...\""; + next; + mes "The Doctor takes out a curious glass device, and carefully moves it over the tainted grass. Purple and black energies are sucked into the device, and the grass gradually returns to its normal color."; + close; + +L_lens_dry_destroyed: + mes "[Doctor]"; + mes ""; + mes "The Doctor frowns."; + mes ""; + mes "\"It's has become too dry... I fear that the mix has become damaged beyond repair, at least for the purposes I had in mind..."; + mes "I'll do what I can to salvage what is there, but it would be unrealistic to be expect that the end result will be anything other than deeply flawed.\""; + +L_lens_salvage: + mes "[Doctor]"; + mes ""; + mes "The Doctor takes out a vial containing a crystal clear fluid, an oddly shaped bowl, and a curious glass device. He then tips the remnants of the concoction into the bowl, then moves the device counterclockwise around the bowl five times, while pouring the clear fluid into the bowl"; + mes "A weak yellow glow surrounds the device as it moves around the outside of the bowl, and the concoction slowly fuses together as more of the clear fluid is added to it. But the concoction is still very lumpy, and doesn't fit properly within the bowl."; + next; + mes "[Doctor]"; + mes ""; + mes "He mutters distractedly as he moves the device directly over the bowl, then around, twice clockwise then once counterclockwise. \"...all going wrong... shouldn't be yellow...\""; + next; + mes "[Doctor]"; + mes ""; + mes "He then holds the device vertically over the bowl, and takes out a vial of bright red fluid, inverts the device, and mixes the red fluid into the dark purple energy that shoots out of the device into the centre of the remnants."; + mes "The red fluid darkens the energy it comes into contact with, then spreads out over the remnants of the concoction, giving of copious amounts of smoke."; + next; + + mes "[Doctor]"; + mes ""; + mes "After a few moments, he steps back and puts away the vial and the glass device, which is now completely devoid of any color."; + mes "The smoke gradually clears, leaving a perceptively warped lump of glass in the middle."; + + mes "[Doctor]"; + mes ""; + mes "\"You might as well take this.\""; + mes ""; + mes "\"I did what I could, but the lens is still warped beyond use, for me... I'm not sure that there's much that you'll be able to do with that as it is, but perhaps you could find someone that still has a use for it somewhere, or something.\""; + getitem "FlawedLens", 1; + close; + +L_lens_complete: + mes "The Doctor grins broadly."; + next; + mes "[Doctor]"; + mes ""; + mes "\"Yes, yes. That's it, that's just what I need!\""; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor takes out an oddly shaped bowl and a curious glass device. He quickly pours the concoction in, then moves the device over the bowl. A faint blue glow surrounds the bowl as he does so."; + next; + mes "[Doctor]"; + mes ""; + mes "He then moves the device around the edges, twice clockwise then once counterclockwise."; + mes "After this, he holds the device vertically over the bowl. He takes out a vial of bright red fluid, and inverts the device, sending a stream of pure black energy directly downwards into the concoction. He moves with incredible speed as he pours the red fluid evenly over the concoction as the black energy hits the concoction, giving off a tremendous amount of steam."; + next; + mes "[Doctor]"; + mes ""; + mes "He stares at the bowl with intense concentration, then abruptly cuts off the stream of red fluid, despite no visible change in the mixture that you can see through the steam."; + next; + mes "As the steam clears, you see that the concoction has hardened into a single solid shape, smoothly curving outwards, but completely opaque."; + next; + mes "[Doctor]"; + mes ""; + mes "\"Nothing to worry about.. it might be opaque now, but give it a moment to cool down first. Ah, there, it's clearing up nicely now.\""; + mes ""; + mes "He waits a moment, as the lens becomes more and more transparent."; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor carefully picks up the lens and holds it in a small piece of fabric. He turns it over a few times, checking to make sure there aren't any imperfections."; + mes ""; + mes "\"The glass formed perfectly! The lens is done.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"This is just what I needed. You were a great help, thank you!\""; + mes ""; + mes "[You gain 150,000 experience points!]"; + getexp 150000, 0; + callsub S_Update_Helped; + close; + // Yay! + +L_At_Fruit_Helped: + mes "As you approach, you see him looking through a collection of devices."; + next; + mes "There is an odd humming sound, and a blue glow from somewhere."; + next; + mes "[Doctor]"; + mes ""; + mes "\"Oh, hello.\" You notice the sound has stopped. \"Ah, and thanks for the help back there, I should be able to get this done in no time now.\""; + mes "He wanders around, and you can see him do something complicated with yet another of his devices and the lens that you made."; + next; + mes "You can't be quite sure, but this area feels healthier already..."; + next; + mes "[Doctor]"; + mes ""; + mes "\"Brilliant! If there's anything else I will let you know, if that's all right?\""; + next; + menu "Okay, I'll see you around!", -, + "Actually, I'd like to go home now. Any chance you could help?", L_Warning; + close; + +// =================================================================== +// Helper portions, duplicated in each script for want of time, sorry. +// =================================================================== + +// The player has defeated the invader and helped enough times. +L_Return_Ready_Optional: + if (!(~(Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK) || ((Easter_2010_QuestState >> E10_HELPED_DOCTOR_FRUIT_SHIFT) & E10_HELPED_DOCTOR_FRUIT_MASK)) + goto L_Return_Ready; + + // Player can help one more time, if so desired. + mes "[Doctor]"; + mes ""; + mes "\"Well... this has been quite an adventure, hasn't it? I'd say it's about timey--er, time for me to go, but I think I can stick around for a little while longer to tie up some loose ends for myself.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Oh, did you want to help again?\""; + next; + menu "Sure, that sounds good", L_At_Fruit, + "Hm, I can't right now, but maybe later.", L_Return_Ready, + "I was looking for a way to go home.", L_Return_Capable, + "No, sorry, I don't think so.", L_Return_Ready; + close; + +// Player has done "everything" to do in this world, just talking to the Doctor. +L_Return_Ready: + set @parting$, "!"; + if (strcharinfo(0) == "Alonso" || strcharinfo(0) == "AlOnS") set @parting$, ", Alonso!"; + mes "[Doctor]"; + mes ""; + mes "\"Well, you have been absolutely brilliant! Brilliant! Very impressive.\" He smiles kindly and shakes your hand. \"It has been a pleasure. Now for the next adventure. Allons-y" + @parting$ + "\""; + close; + +L_Defeat_Invader: + mes "[Doctor]"; + mes ""; + mes "\"Ah-ha! It's nice to see you again. How goes the battle?\""; + next; + menu "I'm having a hard time, actually. I'd like to go home...", -, + "Regrouping now for the next encounter, actually.", L_Encourage; + goto L_Warning; + +L_Encourage: + mes "[Doctor]"; + mes ""; + mes "\"Oh, well, I think you'll prevail in the end! If you'll excuse me, I still have some things to see to.\""; + close; + +L_MidReward: + if (((Easter_2010_QuestState >> E10_FLAG_MID_REWARD_SHIFT) & E10_FLAG_MID_REWARD_MASK)) close; + mes "[Doctor]"; + mes ""; + mes "\"Fantastic! You have really been quite helpful.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Er, now that I think about it, perhaps I have something you'd be interested in.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"While visiting another dimension--hm, as a matter of fact, it was quite like this one. But their choices in the past seem to have differed from the ones here...\""; + next; + mes "[Doctor]"; + mes ""; + mes "The Doctor reflects on his words. \"Interesting how things turn out. Well, I now have a lot of these Valentine's Glasses, if you'd like a pair.\""; + next; + getinventorylist; + if (@inventorylist_count == 100) + goto L_MidReward_NoRoom; + mes "[Doctor]"; + mes ""; + mes "He hands you the glasses."; + mes "\"They're not too brainy, or suited for detecting background radiation, but they are charming.\""; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_MID_REWARD_MASK << E10_FLAG_MID_REWARD_SHIFT) | (E10_FLAG_MID_REWARD << E10_FLAG_MID_REWARD_SHIFT); + getitem E10_MIDREWARD_ID, 1; + close; + +L_MidReward_NoRoom: + mes "[Doctor]"; + mes ""; + mes "\"Oh, I don't think you have room for these. Well, I suppose I'll hold on to them for now.\""; + close; + +// Warning about the potential perils ahead, but the player must still want to abort the quest. +L_Warning: + mes "[Doctor]"; + mes ""; + mes "\"There is no doubt in my mind that what awaits us is both powerful and dangerous, to say the least.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"If this... destruction, this disregard for life isn't an indication, what is?\""; + mes "He takes a moment, searching your face."; + next; + mes "[Doctor]"; + mes ""; + if (((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"I do appreciate your help thus far, really. And I did look forward to working with you again in putting an end to this devastation.\""; + if (!((Easter_2010_QuestState >> E10_HELPED_DOCTOR_SHIFT) & E10_HELPED_DOCTOR_MASK)) + mes "\"Despite the danger, I think pressing on would certainly be a brave choice.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"But if you were to leave now, I'm afraid it would be impossible to return...\""; + mes "He pauses again. \"There is still time for you to turn back now, while it's relatively easy.\""; + next; + menu "N-no, I-I think I will continue... Yes, I'm ready!", -, + "Now that you mention it, maybe I'd better leave now while I can.", L_Turn_Back, + "Um, could I have a minute to think it over?", -; + close; + +L_Turn_Back: + mes "[Doctor]"; + mes ""; + mes "\"You really want to turn back now?\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"I don't think there's any shame in going back. Quite the contrary. You're brave for even being here.\""; + mes "He hesitates ever so slightly, choosing his words. \"I just wanted to make sure you were certain about your decision.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Once you've left, I don't see how you'll be able to return.\""; + next; + menu "On second thought, perhaps I will stick around.", -, + "No, no, I'm quite sure I want to leave.", L_Really_Return; + close; + +// The player definitely wants to go back, and there's no returning. +L_Really_Return: + if ((Easter_2010_QuestState >> E10_FLAG_RETURN_READY_SHIFT) & E10_FLAG_RETURN_READY_MASK == E10_FLAG_RETURN_READY && (Easter_2010_QuestState >> E10_STATE_ROSE_SHIFT) & E10_STATE_ROSE_MASK == E10_STATE_ROSE_ROSE_COMPLETE) + goto L_Return_Capable; + mes "[Doctor]"; + mes ""; + mes "\"If that is what you want, then consider it done. And good luck.\""; + next; + goto L_Return_Player; + +L_Return_Player: + callsub S_Helped_Count; + if (countitem("DarkPetal") == 0 && @Easter_2010_helper < 3) goto L_Difficult_Return; + set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_RETURNED << E10_STATE_ROSE_SHIFT); + if (@Easter_2010_helper < 3) + delitem "DarkPetal", 1; + savepoint "009-1", 52, 40; + warp "009-1", 0, 0; + close; + +L_Difficult_Return: + mes "[Doctor]"; + mes ""; + mes "\"Hm... you don't seem to have the thing that brought you here, that petal, that I could have used to send you back... assuming you really do want to give up.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Others have been able to battle some darkness directly, which might serve as a substitute.\""; + mes "\"You could still help me here and elsewhere if you want to try to get this done once and for all, but if you want to go early you will need to fight, somehow.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"Though there are others helping, too. No doubt that soon enough, you'll be able to go anyway...\""; + close; + +L_Return_Capable: + mes "[Doctor]"; + mes ""; + mes "\"Hm. Oh, it looks like you've learned how to travel between these worlds on your own. Don't you remember the way?\""; + next; + menu "Oh, you're right! It was a spell, um..." + getspellinvocation("world-shift") + " was the name!", -; + mes "[Doctor]"; + mes ""; + mes "\"Excellent! Though I suspect its effects will work best when you are closer to where you started.\""; + next; + mes "[Doctor]"; + mes ""; + mes "\"When you came to this world, where did you end up? I trust that is your origin.\""; + close; + +S_Dialogue_Knows: + mes "[Doctor]"; + mes ""; + mes "\"Oh, hello again... hm...\""; + next; + mes "[Doctor]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + return; + +S_Update_Knows: + // Working "name" for when he hasn't introduced himself (can be changed). + mes "[Mysterious Man]"; + mes ""; + mes @responses$[rand(getarraysize(@responses$))]; + next; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_KNOWS_DOCTOR_MASK << E10_FLAG_KNOWS_DOCTOR_SHIFT) | (E10_FLAG_KNOWS_DOCTOR << E10_FLAG_KNOWS_DOCTOR_SHIFT); + mes "[Doctor]"; + mes ""; + mes "\"Oh, excuse me,\" he gestures. \"I'm the Doctor.\""; + return; + +S_Update_Helped: + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_FLAG_HELPED_DOCTOR_FRUIT_MASK << E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT) | (E10_FLAG_HELPED_DOCTOR_FRUIT << E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT); + callsub S_Helped_Count; + if (@Easter_2010_helper == 3) set Easter_2010_QuestState, (Easter_2010_QuestState & ~(E10_STATE_ROSE_MASK << E10_STATE_ROSE_SHIFT)) | (E10_STATE_ROSE_ROSE_COMPLETE << E10_STATE_ROSE_SHIFT); + return; + +S_Helped_Count: + set @Easter_2010_helper, 0; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_TREE_SHIFT) & E10_FLAG_HELPED_DOCTOR_TREE_MASK == E10_FLAG_HELPED_DOCTOR_TREE) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_ISLAND_SHIFT) & E10_FLAG_HELPED_DOCTOR_ISLAND_MASK == E10_FLAG_HELPED_DOCTOR_ISLAND) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_STONES_SHIFT) & E10_FLAG_HELPED_DOCTOR_STONES_MASK == E10_FLAG_HELPED_DOCTOR_STONES) + set @Easter_2010_helper, @Easter_2010_helper + 1; + if ((Easter_2010_QuestState >> E10_FLAG_HELPED_DOCTOR_FRUIT_SHIFT) & E10_FLAG_HELPED_DOCTOR_FRUIT_MASK == E10_FLAG_HELPED_DOCTOR_FRUIT) + set @Easter_2010_helper, @Easter_2010_helper + 1; + return; +} diff --git a/world/map/npc/easter/2010/_import.txt b/world/map/npc/easter/2010/_import.txt new file mode 100644 index 00000000..1f543006 --- /dev/null +++ b/world/map/npc/easter/2010/_import.txt @@ -0,0 +1,3 @@ +npc: npc/easter/2010/egg_func.txt +npc: npc/easter/2010/eggs.txt +npc: npc/easter/2010/helper.txt diff --git a/world/map/npc/easter/2010/egg_func.txt b/world/map/npc/easter/2010/egg_func.txt new file mode 100644 index 00000000..9dbf669e --- /dev/null +++ b/world/map/npc/easter/2010/egg_func.txt @@ -0,0 +1,114 @@ +function script Easter2010Loc_Check1 { + set @result, ~Easter_2010_EggState1 & (1 << @obj) & $Easter_2010_Egg_Loc_State1; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State1, $Easter_2010_Egg_Loc_State1 & ~(1 << @obj); + set Easter_2010_EggState1, Easter_2010_EggState1 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check2 { + set @result, ~Easter_2010_EggState2 & (1 << @obj) & $Easter_2010_Egg_Loc_State2; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State2, $Easter_2010_Egg_Loc_State2 & ~(1 << @obj); + set Easter_2010_EggState2, Easter_2010_EggState2 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check3 { + set @result, ~Easter_2010_EggState3 & (1 << @obj) & $Easter_2010_Egg_Loc_State3; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State3, $Easter_2010_Egg_Loc_State3 & ~(1 << @obj); + set Easter_2010_EggState3, Easter_2010_EggState3 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check4 { + set @result, ~Easter_2010_EggState4 & (1 << @obj) & $Easter_2010_Egg_Loc_State4; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State4, $Easter_2010_Egg_Loc_State4 & ~(1 << @obj); + set Easter_2010_EggState4, Easter_2010_EggState4 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check5 { + set @result, ~Easter_2010_EggState5 & (1 << @obj) & $Easter_2010_Egg_Loc_State5; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State5, $Easter_2010_Egg_Loc_State5 & ~(1 << @obj); + set Easter_2010_EggState5, Easter_2010_EggState5 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} diff --git a/world/map/npc/easter/2010/eggs.txt b/world/map/npc/easter/2010/eggs.txt new file mode 100644 index 00000000..0b1af508 --- /dev/null +++ b/world/map/npc/easter/2010/eggs.txt @@ -0,0 +1,946 @@ +// + +007-1.gat,38,22,0 script Flowers 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,40,41,0 script Grass 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,18,71,0 script Stone 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,58,33,0 script Tree 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,36,58,0 script Flowers 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,91,25,0 script Plant 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,66,52,0 script Sign 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,104,33,0 script Tree 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,99,39,0 script Plant 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,125,20,0 script Rock 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,117,33,0 script Plant 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,114,54,0 script Tree 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,97,28,0 script Haystack 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check1"; + if (@result != 0) close; + if ((Easter_2010_QuestState >> E10_LOC_NEEDLE_SHIFT) & E10_LOC_NEEDLE_MASK == ($Easter_2010_Npc_State2 >> E10_NEEDLE_SHIFT) & E10_NEEDLE_MASK && rand(100) == 0) goto L_Needle; + close; + +L_Needle: + getitem "BentNeedle", 1; + set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_LOC_NEEDLE_MASK << E10_LOC_NEEDLE_SHIFT) | (rand(E10_LOC_NEEDLE_MASK) << E10_LOC_NEEDLE_SHIFT); + end; + +OnInit: + initnpctimer; + +OnTimer300000: + set $Easter_2010_Npc_State2, $Easter_2010_Npc_State2 & ~(E10_NEEDLE_MASK << E10_NEEDLE_SHIFT) | (rand(E10_NEEDLE_MASK) << E10_NEEDLE_SHIFT); + setnpctimer 0; +} + +008-1.gat,88,48,0 script Target 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,137,85,0 script Tree 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,46,18,0 script Rocks 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,36,28,0 script Rock 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,44,26,0 script Flowers 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,68,21,0 script Wheat 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,103,27,0 script Scythe 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,128,25,0 script Trees 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,134,39,0 script Flowers 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,134,61,0 script Tree 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,129,77,0 script Flowers 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,121,95,0 script Tree 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,99,91,0 script Tree 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,64,90,0 script Grass 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,46,83,0 script Pond 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,43,64,0 script Tree 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,26,32,0 script Tree 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,25,51,0 script Flowers 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,44,46,0 script Stump 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,36,34,0 script Sign 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,45,25,0 script Tree 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,54,31,0 script Flower pot 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,61,34,0 script Sign 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,67,33,0 script Pots 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,78,34,0 script Sign 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,85,35,0 script Flower pot 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,95,33,0 script Flowers 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,90,27,0 script Bench 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,94,52,0 script Tree 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,82,51,0 script Tree 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,77,45,0 script Barrel 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,62,46,0 script Chimney 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,54,38,0 script Tree 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,67,48,0 script Shelf 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,37,24,0 script Table 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,68,29,0 script Bed 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,94,25,0 script Display 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,123,21,0 script Shelf 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,151,25,0 script Candle 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,57,48,0 script Fireplace 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,62,56,0 script Table 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,101,44,0 script Bed 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,123,44,0 script Plant 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,112,43,0 script Window 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,146,42,0 script Table 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,153,46,0 script Railing 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,18,103,0 script Chair 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,27,97,0 script Shield 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,148,64,0 script Counter 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,177,58,0 script Display 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,184,63,0 script Display 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,148,80,0 script Container 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,143,85,0 script Shelf 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,150,83,0 script Shelf 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,151,88,0 script Bag 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,126,69,0 script Cupboard 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,118,68,0 script Fireplace 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,111,72,0 script Shield 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,103,74,0 script Table 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,24,66,0 script Rock 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,120,84,0 script Rock 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,27,95,0 script Barrel 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,51,34,0 script Sign 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,71,74,0 script Dead Tree 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,48,82,0 script Flowerpot 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,21,97,0 script Water 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,130,45,0 script Grass 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,45,102,0 script Plant 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,38,36,0 script Cave 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,87,33,0 script Oscar's Hat 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,91,37,0 script Lattice 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,97,37,0 script Drain 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,88,66,0 script Bullrushes 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,104,69,0 script Plant 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,112,76,0 script Crevice 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,108,89,0 script Grass 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,83,85,0 script Stump 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,59,92,0 script Sign 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,36,90,0 script Tree 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,50,103,0 script Tree 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,26,89,0 script Stream 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,35,75,0 script Tree 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,48,79,0 script Flowers 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,70,69,0 script Tree 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,100,41,0 script Field 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,89,37,0 script Flower pot 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,77,32,0 script Foundation 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,65,39,0 script Cattails 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,45,35,0 script Plant 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-2.gat,29,29,0 script Torch 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-2.gat,33,51,0 script Water 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-2.gat,39,48,0 script Stalagmite 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,124,137,0 script Tree 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,143,121,0 script Treestump 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,136,72,0 script Treestump 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,110,44,0 script Grass 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,123,115,0 script Island 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,96,129,0 script Rock 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,109,147,0 script Treestump 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,118,98,0 script Waterfall 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,99,110,0 script Rock 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-3.gat,62,141,0 script Torch 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,135,71,0 script Treestump 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,124,23,0 script Flower 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,128,100,0 script Plant 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,41,88,0 script Rock 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,89,28,0 script Rock 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,131,21,0 script Flowers 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,116,48,0 script Treestump 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,62,70,0 script Tree 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,97,92,0 script Tree 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,102,72,0 script Rock 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,61,85,0 script Stump 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,49,66,0 script Stump 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,80,91,0 script Tree 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check4"; + close; +} + +018-1.gat,71,98,0 script Tree 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,63,87,0 script Cattails 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,62,74,0 script Foundation 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,65,78,0 script Firepit 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,94,88,0 script Tree 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,82,67,0 script Plant 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,81,59,0 script Barrel 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,102,73,0 script Tree 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,135,63,0 script Tree 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,131,93,0 script Tree 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,57,26,0 script Flower pot 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,51,20,0 script Shield 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,36,21,0 script Bag 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,33,32,0 script Container 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,25,45,0 script Anvil 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,23,28,0 script Table 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,82,19,0 script Bookcase 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,91,31,0 script Table 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,79,46,0 script Bed 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,116,22,0 script Chair 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,123,19,0 script Mug 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,118,24,0 script Woodpile 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,119,40,0 script Teapot 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,125,49,0 script Corner 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-3.gat,34,22,0 script Skull 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-3.gat,24,32,0 script Stalagmite 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-3.gat,65,30,0 script Torch 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check5"; + close; +} + diff --git a/world/map/npc/easter/2010/helper.txt b/world/map/npc/easter/2010/helper.txt new file mode 100644 index 00000000..2dfccae1 --- /dev/null +++ b/world/map/npc/easter/2010/helper.txt @@ -0,0 +1,15 @@ +028-1.gat,130,47,0 script Control#Helper 127,{ +close; + +OnBarrierEnable: + set $Easter_2010_Npc_State2, ($Easter_2010_Npc_State2 & ~(E10_BARRIER_MASK << E10_BARRIER_SHIFT)) | (E10_BARRIER_ACTIVE << E10_BARRIER_SHIFT); + end; + +OnBarrierDisable: + set $Easter_2010_Npc_State2, ($Easter_2010_Npc_State2 & ~(E10_BARRIER_MASK << E10_BARRIER_SHIFT)) | (E10_BARRIER_OPEN << E10_BARRIER_SHIFT); + end; + +OnInit: + goto OnBarrierEnable; + +} diff --git a/world/map/npc/easter/2011/bunny.txt b/world/map/npc/easter/2011/bunny.txt new file mode 100644 index 00000000..e9d920ac --- /dev/null +++ b/world/map/npc/easter/2011/bunny.txt @@ -0,0 +1,214 @@ +//Easter Quest 2011 +//conceived and scripted by Tiana +//Reviewed by alastrim, Jenalya, Kandiman, enchilado + +// 008-1.gat,45,23, 0 script Easter Bunny 173,{ + set @month, 4; + set @start_day, 15; + set @end_day, 30; + + if (gettime(6) != @month) goto no_event; + if (gettime(5) < @start_day) goto no_event; + if (gettime(5) > @end_day) goto no_event; + if (gettimetick(2)-TUT_var < 2*7*86400) goto L_TooSoon; + + if (QUEST_Easter11 == 1 || QUEST_Easter11 == 2) goto L_GetBasket; + if (QUEST_Easter11 == 3) goto L_BasketCheck; + if (QUEST_Easter11 == 4 || QUEST_Easter11 == 5) goto L_GetGrass; + if (QUEST_Easter11 == 6) goto L_GrassCheck; + if (QUEST_Easter11 == 7 || QUEST_Easter11 == 8) goto L_GetJelly; + if (QUEST_Easter11 == 9) goto L_JellyCheck; + if (QUEST_Easter11 == 10 || QUEST_Easter11 == 11) goto L_GetChoco; + if (QUEST_Easter11 == 12) goto L_ChocoCheck; + if (QUEST_Easter11 == 13) goto L_GetPrizes; + if (QUEST_Easter11 == 14) goto L_Done; + if (BaseLevel < 40) goto L_TooYoung; + + mes "[Easter Bunny]"; + mes ""; + mes "\"Hi there! Would you like to help me with this year's Easter Quest?\""; + next; + + menu + "What kind of help do you need?", -, + "No way, these holiday quests suck.", L_End; + + mes "[Easter Bunny]"; + mes ""; + mes "\"I need you to help me by getting an easter basket ready for me.\""; + next; + + menu + "I should be able to help with that, what do I need to do?", -, + "That doesn't sound very exciting, no thanks.", L_End; + + mes "[Easter Bunny]"; + mes ""; + mes "\"Thank you! Here is what you need to do:\""; + mes "\"I need you to get me a basket, the grass to line it, and some stuff to put in the basket. Some people should be able to help you get those items.\""; + next; + mes "\"I cannot remember who though. Maybe you should start with the Basket. You should look for someone with good handicraft abilities, someone who knows how to work with reeds... Do you have any idea who could do this? \""; + next; + + menu + "Ok, I'll ask around and see what I can find.", -, + "You can't give me more help than that? Then go do it yourself.", L_End; + + set QUEST_Easter11, 1; + close; + +L_GetBasket: + mes "[Easter Bunny]"; + mes ""; + mes "\"I see that you haven't found anyone who can make the basket yet... hmm... a reed basket... Who could make such an item?\""; + set @tip, rand(10); + if (@tip != 9) close; + next; + mes "[Easter Bunny]"; + mes ""; + mes "\"Hey... I just remembered. I heard there is an indian fellow living in the mountains who comes from a tribe that is famous for its beautiful craftwork. Maybe he can make the basket...\""; + close; + +L_BasketCheck: + if(countitem("EasterBasket") < 1) goto L_BasketNoitem; + delitem "EasterBasket", 1; + set QUEST_Easter11, 4; + mes "[Easter Bunny]"; + mes ""; + mes "\"Very good. This basket is perfect. Now I need some grass to line it. But please, do not pull it from the ground, because it makes the basket really ugly and dirty. I am sure there must be someone who can help you grow a nice, clean patch of grass.\""; + close; + +L_BasketNoitem: + mes "[Easter Bunny]"; + mes ""; + mes "\"I heard you talked to that indian in the mountains. That was very smart! But you do not have the basket... That is too bad.\""; + close; + +L_GetGrass: + mes "[Easter Bunny]"; + mes ""; + mes "\"I see you didn't find the [Grass Liner]... If only I could help you find someone who can do this...\""; + set @tip, rand(10); + if (@tip != 9) close; + next; + mes "[Easter Bunny]"; + mes ""; + mes "\"Wait... ohh... Now I remember. Last year there was a woman who helped me with a perfect and clean [Grass Liner] for my easter basket. She used to live near the magic school in Tulimshar. Maybe she is still there.\""; + close; + +L_GrassCheck: + if(countitem("GrassLiner") < 1) goto L_GrassNoitem; + delitem "GrassLiner", 1; + set QUEST_Easter11, 7; + mes "[Easter Bunny]"; + mes ""; + mes "\"Perfect. This basket is going to be beautiful. Now I need some stuff to put in the basket. I think we should start with some [Jelly Beans]. But I have no idea where you can find any. I looked in all of Hurnscald's shops and no one sells them! Maybe you will need to find someone who can cook them.\""; + close; + +L_GrassNoitem: + mes "[Easter Bunny]"; + mes ""; + mes "\"You talked to Eomie, the woman who maintains that little spot of grass in the desert. You are really smart! But what happened? I was expecting that you would come back with the [Grass Liner]...\""; + close; + +L_GetJelly: + mes "[Easter Bunny]"; + mes ""; + mes "\"Hi... Sorry to cause you so much trouble. This candy is so hard to find... One time I tried to make some myself and it was really bad... I'm sure there must be a secret ingredient I didn't know.\""; + set @tip, rand(10); + if (@tip != 9) close; + next; + mes "[Easter Bunny]"; + mes ""; + mes "\"Hey, maybe you can ask a skilled chef to make some [Jelly Beans] for you.\""; + close; + +L_JellyCheck: + if(countitem("JellyBeans") < 1) goto L_JellyNoitem; + delitem "JellyBeans", 1; + set QUEST_Easter11, 10; + mes "[Easter Bunny]"; + mes ""; + mes "\"Ohh. You got a lot of [Jelly Beans]! This is way better than I expected. Now I there is only one more thing that we need... Chocolate! But not the usual [Chocolate Bar]. I need the chocolate shaped in the form of a mouboo. Sadly, I also have no idea how to get it. I am sure that a brilliant person like you can find a way to get it... \""; + close; + +L_JellyNoitem: + mes "[Easter Bunny]"; + mes ""; + mes "\"I see you talked with the Chef at Dimond's Cove but you came back with no [Jelly Beans]... What happened?\""; + close; + +L_GetChoco: + mes "[Easter Bunny]"; + mes ""; + mes "\"Hello. I was thinking... Maybe someone could melt down some [Chocolate Bar]s and pour it into a mouboo shaped mold...\""; + set @tip, rand(10); + if (@tip != 9) close; + next; + mes "[Easter Bunny]"; + mes ""; + mes "\"Hmm... A bakery! I am sure there must be someone in a bakery that can do this.\""; + close; + +L_ChocoCheck: + if(countitem("ChocolateMouboo") < 1) goto L_ChocoNoitem; + delitem "ChocolateMouboo", 1; + set QUEST_Easter11, 13; + +L_GetPrizes: + mes "[Easter Bunny]"; + mes ""; + mes "\"Great, now the basket is perfect!\""; + mes "\"I really appreciate your help. With everyone helping I was able to have enough time to do some crafts.\""; + mes "\"Here, accept this simple gift as a thank you!\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_EasterTooMany; + setarray @reward$, "BunnyEars", "TopHat", "MushHat", "ShroomHat", "FunkyHat"; + getitem @reward$[rand(getarraysize(@reward$))], 1; + set QUEST_Easter11, 14; + close; + +L_ChocoNoitem: + mes "[Easter Bunny]"; + mes ""; + mes "\"Some people told me you were in a bakery in Tulimshar... I was hoping you would come back with the [Chocolate Mouboo].\""; + close; + +L_TooYoung: + mes "[Easter Bunny]"; + mes ""; + mes "\"Hello there young one!\""; + mes "\"Gain some more strength and I have a quest for you.\""; + close; + +L_TooSoon: + mes "[Easter Bunny]"; + mes ""; + mes "\"Hello there!\""; + mes "\"I need some help with Easter this year,\""; + mes "\"however you are not experienced enough in this world to properly assist yet.\""; + mes "\"Thank you for your interest though!\""; + close; + +L_EasterTooMany: + mes "[Riskim]"; + mes ""; + mes "\"You don't have enough room for my gift. Come back later.\""; + close; + +L_Done: + mes "[Easter Bunny]"; + mes ""; + mes "\"Thank you for getting that basket together for me!\""; + close; + +no_event: + mes "[Easter Bunny]"; + mes ""; + mes "\"Easter is the greatest holiday ever!!!\""; + set QUEST_Easter11, 0; + close; + +L_End: + close; +} diff --git a/world/map/npc/functions/banker.txt b/world/map/npc/functions/banker.txt new file mode 100644 index 00000000..3c060071 --- /dev/null +++ b/world/map/npc/functions/banker.txt @@ -0,0 +1,228 @@ +// + +function script Banker { + + if (BankAccount > 0) callsub S_MoveAccount; + +L_Start: + mes "[" + @npcname$ + "]"; + mes "\"Welcome to the bank!"; + mes "How can I help you?\""; + next; + menu + "Deposit", L_Dep, + "Withdraw", L_With, + "Check my balance", L_Balance, + "Open my storage", L_Storage, + "Change Bank Options", L_Change, + "Nevermind", L_Nev; + + close; + +// need to close window before opening storage. +L_Storage: + if (#BankOptions & OPT_STORAGE_CLOSE) close2; + openstorage; + if (#BankOptions & OPT_STORAGE_CLOSE) end; + goto L_Start; + +L_Dep: + mes "[" + @npcname$ + "]"; + mes "\"How much would you like to deposit?\""; + next; + menu + "Other", L_Dep_Input, + "5,000 GP", L_Dep_5k, + "10,000 GP", L_Dep_10k, + "25,000 GP", L_Dep_25k, + "50,000 GP", L_Dep_50k, + "100,000 GP", L_Dep_100k, + "250,000 GP", L_Dep_250k, + "500,000 GP", L_Dep_500k, + "1,000,000 GP", L_Dep_1kk, + "All of my money", L_Dep_All, + "I've changed my mind", L_Start, + "Quit", -; + return; + +L_Dep_Input: + input @Amount; + if (@Amount >= 0) goto L_Dep_Continue; + mes "[" + @npcname$ + "]"; + mes "\"I need a positive amount. What would you like to do?\""; + menu + "Go back", L_Start, + "Try again", L_Dep_Input, + "Deposit all", L_Dep_All, + "Nevermind", -; + goto L_Nev; + +L_Dep_5k: + if (zeny<5000) goto L_NoMoney; + set @Amount, 5000; + goto L_Dep_Continue; + +L_Dep_10k: + if (zeny<10000) goto L_NoMoney; + set @Amount, 10000; + goto L_Dep_Continue; + +L_Dep_25k: + if (zeny<25000) goto L_NoMoney; + set @Amount, 25000; + goto L_Dep_Continue; + +L_Dep_50k: + if (zeny<50000) goto L_NoMoney; + set @Amount, 50000; + goto L_Dep_Continue; + +L_Dep_100k: + if (zeny<100000) goto L_NoMoney; + set @Amount, 100000; + goto L_Dep_Continue; + +L_Dep_250k: + if (zeny<250000) goto L_NoMoney; + set @Amount, 250000; + goto L_Dep_Continue; + +L_Dep_500k: + if (zeny<500000) goto L_NoMoney; + set @Amount, 500000; + goto L_Dep_Continue; + +L_Dep_1kk: + if (zeny<1000000) goto L_NoMoney; + set @Amount, 1000000; + goto L_Dep_Continue; + +L_Dep_All: + if (zeny<1) goto L_NoMoney; + set @Amount, zeny; + +L_Dep_Continue: + if (zeny < @Amount) goto L_NoMoney; + set zeny, zeny - @Amount; + set #BankAccount, #BankAccount + @Amount; + goto L_Balance; + +L_With: + mes "[" + @npcname$ + "]"; + mes "\"How much would you like to withdraw?\""; + menu + "Other", L_With_Input, + "5,000 GP", L_With_5k, + "10,000 GP", L_With_10k, + "25,000 GP", L_With_25k, + "50,000 GP", L_With_50k, + "100,000 GP", L_With_100k, + "250,000 GP", L_With_250k, + "500,000 GP", L_With_500k, + "1,000,000 GP", L_With_1kk, + "All of my money", L_With_All, + "I've changed my mind", L_Start, + "Quit", -; + return; + +L_With_Input: + input @Amount; + if (@Amount >= 0) goto L_With_Continue; + mes "[" + @npcname$ + "]"; + mes "\"I need a positive amount. What would you like to do?\""; + menu + "Go back", L_Start, + "Try again", L_With_Input, + "Withdraw all", L_With_All, + "Nevermind", -; + goto L_Nev; + +L_With_5k: + if (#BankAccount < 5000) goto L_NoMoney; + set @Amount, 5000; + goto L_With_Continue; + +L_With_10k: + if (#BankAccount < 10000) goto L_NoMoney; + set @Amount, 10000; + goto L_With_Continue; + +L_With_25k: + if (#BankAccount < 25000) goto L_NoMoney; + set @Amount, 25000; + goto L_With_Continue; + +L_With_50k: + if (#BankAccount < 50000) goto L_NoMoney; + set @Amount, 50000; + goto L_With_Continue; + +L_With_100k: + if (#BankAccount < 100000) goto L_NoMoney; + set @Amount, 100000; + goto L_With_Continue; + +L_With_250k: + if (#BankAccount < 250000) goto L_NoMoney; + set @Amount, 250000; + goto L_With_Continue; + +L_With_500k: + if (#BankAccount < 500000) goto L_NoMoney; + set @Amount, 500000; + goto L_With_Continue; + +L_With_1kk: + if (#BankAccount < 1000000) goto L_NoMoney; + set @Amount, 1000000; + goto L_With_Continue; + +L_With_All: + if (#BankAccount < 0) goto L_NoMoney; + set @Amount, #BankAccount; + +L_With_Continue: + if (#BankAccount < @Amount) goto L_NoMoney; + set zeny, zeny + @Amount; + set #BankAccount, #BankAccount - @Amount; + goto L_Balance; + +L_Balance: + mes "[" + @npcname$ + "]"; + mes "\"Your current bank balance is:"; + mes #BankAccount + " GP\""; + if (#BankOptions & OPT_BANK_CLOSE) close; + goto L_Start; + +L_Nev: + mes "[" + @npcname$ + "]"; + mes "\"Goodbye then.\""; + return; + +L_NoMoney: + mes "[" + @npcname$ + "]"; + mes "\"Oh dear, it seems that you don't have enough money.\""; + goto L_Start; + +S_MoveAccount: + set #BankAccount, #BankAccount + BankAccount; + set BankAccount, 0; + return; + +L_Change: + setarray @menuitems$, "Keep the current settings", "Close NPC dialog after selecting storage option", "Close NPC dialog after checking your balance"; + if (#BankOptions & OPT_STORAGE_CLOSE) set @menuitems$[1], "Return to main menu after leaving storage"; + if (#BankOptions & OPT_BANK_CLOSE) set @menuitems$[2], "Return to main menu after leaving bank"; + menu + @menuitems$[0], L_Start, + @menuitems$[1], L_Change_Storage, + @menuitems$[2], L_Change_Bank; + +L_Change_Storage: + set #BankOptions, (#BankOptions ^ OPT_STORAGE_CLOSE); + goto L_Start; + +L_Change_Bank: + set #BankOptions, (#BankOptions ^ OPT_BANK_CLOSE); + goto L_Start; +} diff --git a/world/map/npc/functions/barber.txt b/world/map/npc/functions/barber.txt new file mode 100644 index 00000000..8d0a32e3 --- /dev/null +++ b/world/map/npc/functions/barber.txt @@ -0,0 +1,63 @@ +// + +function script Barber { + menu + "Change my style", L_Style, + "Change my color", L_Color, + "Nah, I'm fine", L_Done; + + goto L_Done; + +L_Style: + menu + "Bald", -, + "Flat ponytail", -, + "Bowl cut", -, + "Combed back", -, + "Emo", -, + "Mohawk", -, + "Pompadour", -, + "Center parting/Short and slick", -, + "Long and slick", -, + "Short and curly", -, + "Pigtails", -, + "Long and curly", -, + "Parted", -, + "Perky ponytail", -, + "Wave", -, + "Mane", -, + "Bun", -, + "Shoulder Length Flick", -, + "Fizzy", -, + "Surprise me", -, + "Nah, I'm fine", L_Done; + +L_Process_Style: + set @style, @menu - 1; + if (@style == 19) set @style, rand(19); + setlook 1, @style; + return; + +L_Color: + menu + "Brunette", -, + "Green", -, + "Dark red", -, + "Light purple", -, + "Gray", -, + "Blonde", -, + "Teal", -, + "Light red", -, + "Blue", -, + "Dark purple", -, + "Black", -, + "Surprise me", -, + "Nah, I'm fine", L_Done; + set @color, @menu - 1; + if (@color == 11) set @color, rand(11); + setlook 6, @color; + return; + +L_Done: + return; +} diff --git a/world/map/npc/functions/clear_vars.txt b/world/map/npc/functions/clear_vars.txt new file mode 100644 index 00000000..62eada3d --- /dev/null +++ b/world/map/npc/functions/clear_vars.txt @@ -0,0 +1,126 @@ +// Clears old variables + +function script ClearVariables { + // Halloween 2006 + set HWQUEST1, 0; + set HWQUEST2, 0; + set HWQUEST3, 0; + set HWQUEST4, 0; + set HWQUEST5, 0; + set HWQUEST6, 0; + set HWQUEST7, 0; + set HWQUEST8, 0; + set HWQUEST9, 0; + set HWQUEST10, 0; + set HWQUEST11, 0; + set HWQUEST12, 0; + set HWQUEST13, 0; + set HWQUEST14, 0; + set HWQUEST15, 0; + set HWQUEST16, 0; + set HWQUEST17, 0; + set HWQUEST18, 0; + set HWQUEST18, 0; + set HWQUEST19, 0; + set HWQUEST20, 0; + + // Christmas 2006 + set XMASQUEST1, 0; + set XMASQUEST2, 0; + set XMASQUEST3, 0; + set XMASQUEST4, 0; + set XMASQUEST5, 0; + set XMASQUEST6, 0; + set XMASQUEST7, 0; + set XMASQUEST8, 0; + set XMASQUEST9, 0; + set XMASQUEST10, 0; + set XMASQUEST11, 0; + set XMASQUEST12, 0; + set XMASQUEST13, 0; + set XMASQUEST14, 0; + set XMASQUEST15, 0; + set XMASQUEST16, 0; + set XMASQUEST17, 0; + set XMASQUEST18, 0; + set XMASQUEST19, 0; + set XMASQUEST20, 0; + + set QUEST_xmas07_state, 0; + set QUEST_xmas07_milk, 0; + set QUEST_xmas07_cookies, 0; + set QUEST_xmas07_presents, 0; + + set QUEST_Easter08_state, 0; + + set Halloween08, 0; + + set QUEST_xmas08_state, 0; + + set QUEST_Easter09, 0; + + set Candyman, 0; // Halloween 2009 + + set QUEST_Christmas09_state, 0; + + set QUEST_Easter09_slots, 0; + + // easter 2010 + // This must not be cleared: since some people would like to go to the easter island! + // set Easter_2010_QuestState, 0; + set Easter_2010_EggState1, 0; + set Easter_2010_EggState2, 0; + set Easter_2010_EggState3, 0; + set Easter_2010_EggState4, 0; + set Easter_2010_EggState5, 0; + + // halloween 2010 + set hween10, 0; + set hween10_collect_canpump, 0; + set hween10_credits, 0; + set hween10_collect, 0; + set hween10_collect_mmallow, 0; + set hween10_collect_jelskul, 0; + set hween10_bonecount, 0; + set hween10_collect_tondel, 0; + set hween10_paid, 0; + + // Xmas 2010: + set Count_Yellow, 0; + set Count_White, 0; + set Maze, 0; + set Yellow, 0; + set White, 0; + set Xmas2010, 0; + set Golbenez_Inn_Cost, 0; + + + //These lines are needed to migrate stuff from variables to flags + if (Open_Underground_Palace_Barrier) set FLAGS, FLAGS | FLAG_OPENED_UNDERGROUND; + set Open_Underground_Palace_Barrier, 0; + + if (Naem_Quest_Done) set FLAGS, FLAGS | FLAG_GOT_NAEM_GLOVES; + set Naem_Quest_Done, 0; + + if (#BankAccount < 0) goto FixBank; + + return; + +FixBank: + if (zeny >= -#BankAccount) goto L_Fix_Full; + + // Partial fix + set #BankAccount, #BankAccount + zeny; + set zeny, 0; + return; + +L_Fix_Full: + set zeny, zeny + #BankAccount; + set #BankAccount, 0; + return; +//Tulimshar and Mine Variables + set Scorp, 0; + set Bugleg, 0; + set ChestQuest, 0; + +} diff --git a/world/map/npc/functions/dailyquest.txt b/world/map/npc/functions/dailyquest.txt new file mode 100644 index 00000000..dc56895b --- /dev/null +++ b/world/map/npc/functions/dailyquest.txt @@ -0,0 +1,99 @@ +// The daily quests + +// Variables returned: +// @dq_return - Code of what happend +// 0 = Low level +// 1 = Ignored NPC +// 2 = Not enough points +// 3 = Not enough items +// 4 = Success + +// Variables to set: +// @dq_level - Minimal level needed to use the quest +// @dq_cost - The number of points this quest uses +// @dq_count - The number of given item needed +// @dq_name$ - String name of the item as seen by server +// @dq_friendly_name$ - String name of the item as seen by user +// @dq_money - The money reward for doing the quest +// @dq_exp - Experince gained by doing the quest + +// Optional: +// @dq_handle_return - When set to anything other then 0 the function will not print exiting text + +// Variables used inside: +// DailyQuestPoints - The number of points the player currently has +// DailyQuestTime - Time since DailyQuestPoints was lasted renewed +// DailyQuestBonus - Additional points added once in addition to player BaseLevel + +// (DailyQuestBonus makes a good reward from non-daily quests) + +function script DailyQuest { + set @dq_earliest, gettimetick(2) - 86400; + if (DailyQuestTime < @dq_earliest) set DailyQuestTime, @dq_earliest; + + //how many whole daily quest points the player has earned + //we increment DailyQuestTime by the number of seconds in that many increments + set @dq_increments, (gettimetick(2) - DailyQuestTime)*BaseLevel / 86400; + set DailyQuestTime, DailyQuestTime+@dq_increments*86400/BaseLevel; + + //player can't regenerate any quest points, but might have a bonus + if (DailyQuestPoints >= BaseLevel) goto L_Bonus; + + //normal recharging case - increment, but don't let it recharge more than a day's worth + set DailyQuestPoints, DailyQuestPoints + @dq_increments; + if (DailyQuestPoints > BaseLevel) set DailyQuestPoints, BaseLevel; + //fallthrough to bonus, which *is* allowed to push DailyQuestPoints above BaseLevel +L_Bonus: + if (DailyQuestBonus != 0) set DailyQuestPoints, DailyQuestPoints + DailyQuestBonus; + set DailyQuestBonus, 0; + + if (BaseLevel < @dq_level) goto L_Low_Level; + if (DailyQuestPoints < @dq_cost) goto L_Not_Enough_Points; + + mes "\"If you bring me " + @dq_count + " " + @dq_friendly_name$ + ", I will give you a reward.\""; + menu "I have what you want.", L_Trade, + "Ok, I'll get to work.", -, + "Nah, I'm not going to help you.", -; + + set @dq_return, 1; + goto L_Exit; + +L_Trade: + if (countitem(@dq_name$) < @dq_count) goto L_Not_Enough; + delitem @dq_name$, @dq_count; + + set zeny, zeny + @dq_money; + getexp @dq_exp, 0; + + set DailyQuestPoints, DailyQuestPoints - @dq_cost; + + if (@dq_handle_return) goto L_Exit_Good; + + mes "\"Thank you!\""; + mes ""; + mes "[" + @dq_money + " money]"; + mes "[" + @dq_exp + " experience points]"; + +L_Exit_Good: + set @dq_return, 4; + goto L_Exit; + +L_Not_Enough: + if (!@dq_handle_return) mes "\"I said " + @dq_count + " " + @dq_friendly_name$ + "; you should learn to count.\""; + set @dq_return, 3; + goto L_Exit; + +L_Low_Level: + if (!@dq_handle_return) mes "\"Hey, you should go kill some things to get stronger first.\""; + set @dq_return, 0; + goto L_Exit; + +L_Not_Enough_Points: + if (!@dq_handle_return) mes "\"You look exhausted, maybe you should rest a bit.\""; + set @dq_return, 2; + goto L_Exit; + +L_Exit: + set @dq_handle_return, 0; // Incase they forget + return; +} diff --git a/world/map/npc/functions/evil_obelisk.txt b/world/map/npc/functions/evil_obelisk.txt new file mode 100644 index 00000000..4de46eb9 --- /dev/null +++ b/world/map/npc/functions/evil_obelisk.txt @@ -0,0 +1,70 @@ +function script EvilObelisk { + mes "[Evil Obelisk]"; + mes "(A mystical aura surrounds this stone. It seems to crave money.)"; + next; + + menu + "Pay it 200,000 gold", L_JACKO, + "Pay it 100,000 gold", L_GRAVEYARD1, + "Pay it 75,000 gold", L_GRAVEYARD2, + "Pay it 50,000 gold", L_SKULL, + "Pay it 25,000 gold", L_SNAKE, + "Don't pay it anything.", -; + close; + return; + +L_JACKO: + if (zeny < 200000) goto L_NotEnough; + set zeny, zeny - 200000; + set @mob_id, 1022; + set @mob_count, rand(2) + 1; + goto L_Summon; + +L_GRAVEYARD1: + if (zeny < 100000) goto L_NotEnough; + set @temp, rand(2); + if(@temp == 0) set @mob_id, 1036; // Zombie + if(@temp == 1) set @mob_id, 1045; // Fallen + set @mob_count, rand(2) + 1; + set zeny, zeny - 100000; + goto L_Summon; + +L_GRAVEYARD2: + if (zeny < 75000) goto L_NotEnough; + set @temp, rand(2); + if(@temp == 0) set @mob_id, 1044; // Lady Skelly + if(@temp == 1) set @mob_id, 1043; // Normal Skelly + set @mob_count, rand(2) + 1; + set zeny, zeny - 75000; + goto L_Summon; + +L_SKULL: + if (zeny < 50000) goto L_NotEnough; + set @temp, rand(2); + if(@temp == 0) set @mob_id, 1024; // Poison + if(@temp == 1) set @mob_id, 1023; // Fire + set @mob_count, rand(4) + 1; + set zeny, zeny - 50000; + goto L_Summon; + +L_SNAKE: + if (zeny < 25000) goto L_NotEnough; + set @temp, rand(4); + if(@temp == 0) set @mob_id, 1034; // Grass + if(@temp == 1) set @mob_id, 1026; // Mnt. + if(@temp == 2) set @mob_id, 1010; // Normal + if(@temp == 3) set @mob_id, 1021; // Cave + set @mob_count, rand(4) + 1; + set zeny, zeny - 25000; + goto L_Summon; + +L_Summon: + monster @map$, @x, @y, "Evil", @mob_id, @mob_count; + close; + return; + +L_NotEnough: + mes "You don't have that much money"; + close; + return; +} diff --git a/world/map/npc/functions/ferry.txt b/world/map/npc/functions/ferry.txt new file mode 100644 index 00000000..95a176ec --- /dev/null +++ b/world/map/npc/functions/ferry.txt @@ -0,0 +1,73 @@ +// The ferry system + +function script Ferry { + if (BaseLevel < 20) goto L_LowerCost; + set @cost_tulimshar, 500; + set @cost_hurnscald, 500; + +L_Start: + set @cost_candor, 1500; + mes "Where would you like to go?"; + next; + if (BaseLevel < 40) goto L_PlainMenu; + goto L_MenuWithCandor; + + +L_PlainMenu: + menu + "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, + "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, + "Nevermind", -; + close; + +L_MenuWithCandor: + menu + "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, + "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, + "Candor (" + @cost_candor + "GP)", L_Candor, + "Nevermind", -; + close; + +L_Tulimshar: + if (@loc == DOCK_tulimshar) + goto L_AlreadyThere; + if (zeny < @cost_tulimshar) + goto L_NotEnoughGP; + + set zeny, zeny - @cost_tulimshar; + warp "022-1.gat", 76, 72; + close; + +L_Hurnscald: + if (@loc == DOCK_hurnscald) + goto L_AlreadyThere; + if (zeny < @cost_hurnscald) + goto L_NotEnoughGP; + + set zeny, zeny - @cost_hurnscald; + warp "008-1.gat", 137, 64; + close; + +L_Candor: + if (@loc == DOCK_candor) + goto L_AlreadyThere; + if (zeny < @cost_candor) + goto L_NotEnoughGP; + + set zeny, zeny - @cost_candor; + warp "029-1.gat", 25, 37; + close; + +L_AlreadyThere: + mes "You're already here!"; + close; + +L_NotEnoughGP: + mes "You don't have enough money to go there!"; + close; + +L_LowerCost: + set @cost_tulimshar, 250; + set @cost_hurnscald, 250; + goto L_Start; +} diff --git a/world/map/npc/functions/game_rules.txt b/world/map/npc/functions/game_rules.txt new file mode 100644 index 00000000..d67887f3 --- /dev/null +++ b/world/map/npc/functions/game_rules.txt @@ -0,0 +1,155 @@ +// + +function script GameRules { + set @read, 0; + + menu + "English", L_English, + "Deutsch (German)", L_German, + "Nederlands (Dutch)", L_Dutch, + "Dansk (Danish)", L_Danish, + "Francais (French)", L_French, + "Castellano (Spanish)", L_Spanish, + "Svenska (Swedish)", L_Swedish, + "Portugues (Portuguese)", L_Portuguese, + "Polski (Polish)", L_Polish, + "Italiano (Italian)", L_Italian; + if (@canSkip) return; + +L_English: + mes "Players breaking the following rules may be banned (up to and including a permanent ban) or have their characters reset at the GM's discretion:"; + mes "1. Do not abuse other players (insults, swearing, and the like directed to a particular person or persons)"; + mes "2. No bots (and botting means ANY activity while away from keyboard)"; + mes "3. No spamming / flooding (including trade spam)"; + mes "4. No begging"; + mes "5. Speak English on public chat"; + mes "6. Treat others the same way you would like to be treated"; + next; + mes "Botting will be determined by talking to players who are moving and/or attacking."; + next; + goto L_End; + +L_German: + mes "Wir bitten um das Einhalten der folgenden Regeln:"; + mes "1. Keine Beleidigungen, Schimpfwoerter, Schmaehungen oder Rufmord."; + mes "2. Keine 'bots' (automatisierte Spieler). Dies beinhaltet JEGLICHE Teilnahme am Spiel waehrend der Abwesenheit des Spielers."; + mes "3. Kein 'spamming' oder 'flooding' (schnelles Wiederholen von Nachrichten oder Aufforderungen zum Warenhandel)."; + mes "4. Kein Betteln."; + mes "5. Englisch ist die einzige zulaessige Sprache im oeffentlichen Raum."; + mes "6. Behandelt andere so, wie Ihr behandelt werden wollt."; + mes "Jegliche Regelverstoesse koennen bestraft werden, entweder durch ein Zuruecksetzen der Charaktereigenschaften und -besitztuemer auf den Ausgangszustand, oder durch einen temporaeren oder permanenten Ausschluss aus dem Spiel."; + next; + mes "Automatisiertes Spielverhalten liegt vor, wenn ein sich bewegender/kaempfender Spieler nicht intelligent auf Gespraechsaufforderungen reagiert."; + next; + goto L_End; + +L_Dutch: + mes "Spelers die de volgende regels overtreden lopen het risico gebanned te worden (oplopend tot een permanente ban) of een reset te krijgen:"; + mes "1. Misbruik geen andere spelers (vloeken, groftaal gebruik, enzovoort tegen een bepaalde persoon of personen)"; + mes "2. Geen 'bots' (geautomatiseerde speler) en botten betekend ELKE activiteit terwijl je van je toetsenboord weg bent"; + mes "3. Verboden te 'spammen' (inclusief het spammen van ruilaanvragen)"; + mes "4. Verboden te bedelen"; + mes "5. Spreek Engels op de publieke chat"; + mes "6. Behandel andere zoals ook jij behandeld wilt worden"; + next; + mes "Botten word bepaald door te praten tegen spelers die aan het bewegen en/of aanvallen zijn."; + next; + goto L_End; + +L_Danish: + mes "Spillere der ikke overholder de foelgende regner, kan risikere at blive banned (op til et permanent ban) eller faa deres bruger nulstillet af en spilmester (GM)."; + mes "1. Misbrug ikke medspillere (fornaerm dem ikke, svaerg ikke og mobning er forbudt)"; + mes "2. Det er forbudt at bruge bots (Botting betyder at man er aktiv inde i spillet, imens man er vaek fra ens keyboard)"; + mes "3. Det er forbudt at spamme i chatten, eller lave trade spam (spamme betyder at man sender mange beskeder efter hinanden)"; + mes "4. Det er forbudt at tigge (for eksempel: Maa jeg ikke nok faa dit svaerd, kom nu, vaer nu soed... og saa videre)"; + mes "5. Det er forbudt at snakke andre sprog end Engelsk, i den aabne chat. (Dog er det lovligt ved at bruge foelgende kommandoen /whisper)"; + mes "6. Husk at goere mod andre, som du vil have de skal goere imod dig (opfoer dig ordenligt!)"; + next; + mes "Botting bliver fastlagt paa grundlag af, at man snakker til andre spillere, der gaar rundt og/eller der angriber og de ikke svare igen."; + next; + goto L_End; + +L_French: + mes "Les joueurs ne respectant pas les regles suivantes pourront, a la discretion des moderateurs (GM), etre bannis (jusqu'au banissement eternel inclus) ou avoir leur personnage reinitialise :"; + mes "1. Ne manquez pas de respect envers les autres joueurs (insultes, language grossier, et autres choses du meme genre a l'intention d'un(e) joueur(se) en particulier ou d'un groupe de joueurs(ses))"; + mes "2. N'utilisez pas de \"bot\" (ceci inclus n'importe quelle activite dans le jeu en etant loin du clavier, dont poser un objet sur le clavier pour attaquer automatiquement les monstres)"; + mes "3. Ne faites pas de publicite inadequate (spam) et de repetitions intempestives (flood) (ceci inclus la repetition de demande de troc (trade))"; + mes "4. Ne demandez pas d'items ou d'argent (les echanges doivent se faire de preference sur forums.themanaworld.org)"; + mes "5. Parlez anglais dans les salons de discussions publics (principalement en ville)"; + mes "6. Traitez les autres de la meme maniere que vous voudriez etre traite(e)"; + next; + mes "L'utilisation de \"bot\" sera determinee en parlant aux joueurs(ses) en train de bouger et/ou d'attaquer."; + next; + goto L_End; + +L_Spanish: + mes "Los jugadores que infringan las normas siguientes pueden ser censurados( incluso de forma permanente) o se podran resetear sus cuentas a la discrecion de los administradores:"; + mes "1. No abuse de otros jugadores (incluye insultos, palabras mal sonantes , y demas dirigidos a una o varias personas en particular)"; + mes "2. No utilizar programas automaticos ( se entiende por esto cualquier actividad realizada sin que el jugador este tocando el teclado fisicamente)"; + mes "3. No envie mensajes publicitarios o inunde el chat de mensajes (incluyendo los mensajes referidos al comercio en el juego)"; + mes "4. Esta prohibida cualquier forma de mendicidad"; + mes "5. Hable solamente en Ingles en el chat publico"; + mes "6. Trata a los demas de la misma manera que te gustaria ser tratado"; + next; + mes "El uso de programas automaticos se investigara hablando con jugadores que esten moviendose y/o atacando."; + next; + goto L_End; + +L_Swedish: + mes "Spelare som bryter mot dessa regler riskerar att helt sonika bli utkastade (antingen under kort period eller permanent), den som kastats ut kan be en GM om att starta om sitt konto."; + mes "1. Skymfa inte andra (svordomar och annat riktat till att skada en eller flera individer)"; + mes "2. Inga bottar (med bottande avses ALLA aktiviteter som sker bortom tangentbordet)"; + mes "3. Inget spammande/floodande (inklusive meddelanden om byteshandel)"; + mes "4. Tigg inte"; + mes "5. Prata bara engelska i den offentliga chatten"; + mes "6. Behandla andra som du vill bli behandlad"; + next; + mes "Hysta misstankar om bottande kontrolleras genom att prata med spelaren under dess kringvandrande eller attackerande."; + next; + goto L_End; + +L_Portuguese: + mes "Jogadores que quebrarem as regras que se seguem serao banidos (temporariamente ou permanentemente), ou a possibilidade dos caracteres serem limpos a descricao do Mestre do Jogo (GM)."; + mes "1. Nao tratar mal os outros jogadores (isto, insultar, dizer palavroes ou chamar nomes a pessoas em particular, etc.)"; + mes "2. Proibido \"botting\", que quer dizer qualquer actividade do caracter enquanto o jogador estiver longe do teclado."; + mes "3. Nao abusar da caixa de texto com mensagens repetitivas, ou abusar da funcao de trocar com outros jogadores."; + mes "4. Pedintes serao ignorados, ou banidos."; + mes "5. Fale ingles em lugares publicos."; + mes "6. Trate os outros da mesma maneira que quer ser tratado(a)."; + next; + mes "O \"botting\" sera determinado, falando com os jogadores que se movem e/ou atacam."; + next; + goto L_End; + +L_Polish: + mes "Konta graczy lamiacych nastepujace zasady moga zostac zablokowane (w niektorych przypadkach nawet nieodwolalnie) lub zresetowane przez GM:"; + mes "1. Nie wykorzystuj innych graczy (wymuszenia, przeklinanie, itp.)"; + mes "2. Zabrania sie korzystania z botow (przez boty rozumiemy kazda aktywnosc gdy gracz przebywa z dala od klawiatury)"; + mes "3. Zabrania sie spamowania / flodowania (wliczajac takze natarczywe oferty handlowe)"; + mes "4. Zabrania sie zebrania"; + mes "5. Na publicznym kanale rozmawiamy po angielsku"; + mes "6. Traktuj innych tak jak sam chcesz byc traktowany"; + next; + mes "Uzywanie botow zostanie okreslone na podstawie rozmow z innymi graczami podczas aktywnosci gracza."; + next; + goto L_End; + +L_Italian: + mes "I giocatori che infrangeranno le seguenti regole saranno bannati (anche permanentemente) o saranno resettati, a discrezione dei Game Masters:"; + mes "1. Vietato abusare degli altri giocatori (insulti, imprecazioni e simili, diretti verso una particolare persona o gruppi di persone)"; + mes "2. Vietato usare bot (ossia effettuare QUALSIASI attività quando non si è presenti alla tastiera)"; + mes "3. Vietato spammare / postare ripetutamente messaggi inutili (incluso spam di richieste di scambio)"; + mes "4. Vietato implorare"; + mes "5. Parlare solo inglese nella chat pubblica"; + mes "6. Tratta gli altri giocatori come vuoi che gli altri trattino te."; + next; + mes "I bot saranno determinati in base alle risposte e ai movimenti dei giocatori esaminati."; + next; + goto L_End; + +L_End: + set @read, 1; + if (TUT_var == 0) + set TUT_var, gettimetick(2); + return; +} diff --git a/world/map/npc/functions/inn.txt b/world/map/npc/functions/inn.txt new file mode 100644 index 00000000..810dbd1d --- /dev/null +++ b/world/map/npc/functions/inn.txt @@ -0,0 +1,29 @@ +// INN + +function script Inn { + mes "[" + @npcname$ + "]"; + mes "\"Would you like to rest? It's only " + @cost + " gp.\""; + next; + + menu + "Yes", -, + "No", L_No; + + if (zeny < @cost) goto L_NoMoney; + set zeny, zeny - @cost; + heal 10000, 10000; + + mes "[" + @npcname$ + "]"; + mes "\"Sleep well!\""; + close; + +L_No: + mes "[" + @npcname$ + "]"; + mes "\"See you.\""; + close; + +L_NoMoney: + mes "[" + @npcname$ + "]"; + mes "\"You don't have enough money to stay here.\""; + close; +} diff --git a/world/map/npc/functions/magic.txt b/world/map/npc/functions/magic.txt new file mode 100644 index 00000000..c4abcab6 --- /dev/null +++ b/world/map/npc/functions/magic.txt @@ -0,0 +1,176 @@ +// Basic magic functionality + +// Magic system uses: +// - MAGIC_EXP (magic experience points, gained for spellcasting) +// - MAGIC_FLAGS +// Magic quests use: +// - QUEST_MAGIC +// - QUEST_MAGIC2 + +// ------------------------------------------------------------ +// Gain initial magic skill +// ------------------------------------------------------------ +function script MagicGainBasic { + + set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_DRANK_POTION; + close; + +} + +// ------------------------------------------------------------ +// Initialise Menu for selecting a choice of things to ask about +// ------------------------------------------------------------ +function script MagicTalkOptionsSetup { + set @QQ_ELANORE, 1; + set @QQ_MANASEED, 2; + set @QQ_MANAPOTION, 4; + set @QQ_WYARA, 8; + set @QQ_SAGATHA, 16; + set @QQ_AULDSBEL, 32; + set @QQ_IMP, 64; + set @QQ_OLDWIZ, 128; + set @QQ_ASTRALSOUL, 256; + return; +} + +// ------------------------------------------------------------ +// Print and run menu for choice of things to ask about +// Ignores the entry in @ignore +// Returns the result in @c, or returns 0 if there is no result +// ------------------------------------------------------------ + + +function script MagicTalkMenu { + setarray @choice$, "", "", "", "", "", "", "", "", "", ""; + set @choices_nr, 0; + setarray @choice_idx, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0; + + if (@ignore & @QQ_ELANORE) + goto L_Q_post_elanore; + set @choice$[@choices_nr], "...Elanore the Healer?"; + set @choice_idx[@choices_nr], @QQ_ELANORE; + set @choices_nr, @choices_nr + 1; +L_Q_post_elanore: + + if (@ignore == @QQ_MANASEED) + goto L_Q_post_manaseed; + if (!(MAGIC_FLAGS & (MFLAG_KNOWS_MANASEED | MFLAG_MANASEED_RUMOUR))) + goto L_Q_post_manaseed; + set @choice$[@choices_nr], "...the Mana Seed?"; + set @choice_idx[@choices_nr], @QQ_MANASEED; + set @choices_nr, @choices_nr + 1; +L_Q_post_manaseed: + + if (@ignore & @QQ_MANAPOTION) + goto L_Q_post_manapotion; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_MANAPOTION)) + goto L_Q_post_manapotion; + set @choice$[@choices_nr], "...Mana Potions?"; + set @choice_idx[@choices_nr], @QQ_MANAPOTION; + set @choices_nr, @choices_nr + 1; +L_Q_post_manapotion: + + if (@ignore & @QQ_WYARA) + goto L_Q_post_wyara; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_WYARA)) + goto L_Q_post_wyara; + set @choice$[@choices_nr], "...Wyara the Witch?"; + set @choice_idx[@choices_nr], @QQ_WYARA; + set @choices_nr, @choices_nr + 1; +L_Q_post_wyara: + + if (@ignore & @QQ_SAGATHA) + goto L_Q_post_sagatha; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA)) + goto L_Q_post_sagatha; + set @choice$[@choices_nr], "...Sagatha the Witch?"; + set @choice_idx[@choices_nr], @QQ_SAGATHA; + set @choices_nr, @choices_nr + 1; +L_Q_post_sagatha: + + if (@ignore & @QQ_AULDSBEL) + goto L_Q_post_auldsbel; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_AULDSBEL)) + goto L_Q_post_auldsbel; + set @choice$[@choices_nr], "...Auldsbel the Wizard?"; + set @choice_idx[@choices_nr], @QQ_AULDSBEL; + set @choices_nr, @choices_nr + 1; +L_Q_post_auldsbel: + + if (@ignore & @QQ_OLDWIZ) + goto L_Q_post_oldwiz; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_OLD_WIZARD)) + goto L_Q_post_oldwiz; + set @choice$[@choices_nr], "...the Old Wizard?"; + set @choice_idx[@choices_nr], @QQ_OLDWIZ; + set @choices_nr, @choices_nr + 1; +L_Q_post_oldwiz: + + if (@ignore & @QQ_IMP) + goto L_Q_post_imp; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_IMP)) + goto L_Q_post_imp; + set @choice$[@choices_nr], "...the Earth Spirit in the desert well?"; + set @choice_idx[@choices_nr], @QQ_IMP; + set @choices_nr, @choices_nr + 1; +L_Q_post_imp: + + if (@ignore & @QQ_ASTRALSOUL) + goto L_Q_post_astralsoul; + if (!(getskilllv(SKILL_MAGIC))) + goto L_Q_post_astralsoul; + if (!(getskilllv(SKILL_POOL))) + goto L_Q_post_astralsoul; + set @choice$[@choices_nr], "...ways to improve my magic?"; + set @choice_idx[@choices_nr], @QQ_ASTRALSOUL; + set @choices_nr, @choices_nr + 1; +L_Q_post_astralsoul: + + set @choice$[@choices_nr], "...never mind."; + set @choice_idx[@choices_nr], 0; + set @choices_nr, @choices_nr + 1; + + menu @choice$[0], -, + @choice$[1], -, + @choice$[2], -, + @choice$[3], -, + @choice$[4], -, + @choice$[5], -, + @choice$[6], -, + @choice$[7], -, + @choice$[8], -, + @choice$[9], -; + + set @menu, @menu - 1; + + if (@menu >= @choices_nr) + set @menu, 0; + + set @c, @choice_idx[@menu]; + return; +} + + +// ------------------------------------------------------------ +// Level up a skill +// @SUP_id skill ID to level up +// @SUP_lvl skill level to attain +// @SUP_name$ name of the skill to level up +// @SUP_xp # of experience points to award if the level up succeeds +// ------------------------------------------------------------ +function script SkillUp { + if (getskilllv(@SUP_id) >= @SUP_lvl) + goto L_shortcut; + + misceffect sfx_skillup, strcharinfo(0); + setskill @SUP_id, @SUP_lvl; + getexp @SUP_xp, 0; + if (@SUP_xp) + mes "[" + @SUP_xp + " experience points]"; + mes "[Level " + @SUP_lvl + " in " + @SUP_name$ + "]"; + return; + +L_shortcut: + mes "[You already have level " + getskilllv(@SUP_id) + " in " + @SUP_name$ + "]"; + return; +} diff --git a/world/map/npc/functions/mob_points.txt b/world/map/npc/functions/mob_points.txt new file mode 100644 index 00000000..a84e24a5 --- /dev/null +++ b/world/map/npc/functions/mob_points.txt @@ -0,0 +1,126 @@ +// Mob points + +function script MobPoints { + if (@mobID < 1002) return; + + setarray @points, + 1, // Maggot + 2, // Scorpion + 20, // Red Scorpion + 40, // Green Slime + 30, // Giant Maggot + 15, // Yellow Slime + 25, // Red Slime + 45, // Black Scorpion + 50, // Snake + 6, // Fire Goblin + 55, // Spider + 35, // Evil Mushroom + 35, // Pink Flower + 40, // Santa Slime + 15, // Rudolph Slime + 2, // Bat + 16, // Pinkie + 10, // Spiky Mushroom + 14, // Fluffy + 25, // Cave Snake + 200, // Jack O + 85, // Fire Skull + 85, // Poison Skull + 20, // Log Head + 70, // Mountain Snake + 15, // Easter Fluffy + 40, // Mouboo + 0, // Mauve Plant + 0, // Cobalt Plant + 0, // Gamboge Plant + 0, // Alizarin Plant + 20, // Sea Slime + 75, // Grass Snake + 0, // Silk Worm + 125, // Zombie + 0, // Clover Patch + 5, // Squirrel + 0, // Fire Lizard + 80, // Wisp + 15, // Snail + 80, // Spectre + 100, // Skeleton + 100, // Lady Skeleton + 150, // Fallen + 0, // Snake Lord + 80, // Poltergeist + 0, // Duck + 15, // Bee + 0, // Larvespa + 0, // Vespa + 0, // Hivespa + 0, // Froad + 0, // Troll + 15, // Butterfly + 2, // Cave Maggot + 10, // Angry Scorpion + 6, // Ice Goblin + 20, // Archant + 40, // Giant Cave Maggot + 35, // Moggun + 100, // Terranite + 10, // Pumpkin + 10, // Bandit + 20, // Bandit Lord + 30, // Vampire Bat + 20, // Reaper + 100, // Reaper 2 + 100, // Scythe + 20, // Ball Lightning + 60, // Ice Element + 80, // Yeti + 100, // The Lost + 0, // Red Bone + 0, // Stalker + 0, // Dreadwing + 100, // Drunken Skeleton + 100, // Tipsy Skeleton + 100, // Drunken Lady Skeleton + 60, // BlueSpark + 60, // RedSpark + 0, // Serqet + // Add more here + 0; // END + + + if (MPQUEST == 1) set Mobpt, Mobpt + @points[@mobID - 1002]; + +// Scorpion, Red Scorpion, Black Scorpion, Angry Scorpion + if ((@mobID == 1003) || (@mobID == 1004) || (@mobID == 1008) || (@mobID == 1057)) + goto L_good; + + + // Attitude adjustment for the witch (can we refactor this to another function? Not sure about max. recursion depth) + + set @value, 0; +// Fluffy + if (@mobID == 1020) + set @value, 3; +// Easter Fluffy + if (@mobID == 1027) + set @value, 3; +// Mouboo + if (@mobID == 1028) + set @value, 4; +// Squirrel + if (@mobID == 1038) + set @value, 2; + + if (@value == 0) + goto L_end; + + callfunc "QuestSagathaAnnoy"; + goto L_end; + +L_good: + set @value, 1; + callfunc "QuestSagathaHappy"; +L_end: + set @value, 0; +} diff --git a/world/map/npc/functions/process_equip.txt b/world/map/npc/functions/process_equip.txt new file mode 100644 index 00000000..6a56dcbc --- /dev/null +++ b/world/map/npc/functions/process_equip.txt @@ -0,0 +1,27 @@ +// + +function script ProcessEquip { + set @head, getequipid(equip_head); + set @torso, getequipid(equip_torso); + set @legs, getequipid(equip_legs); + + set @torsoB, @torso; + if (@torsoB >= 2050 && @torsoB <= 2059) set @torsoB, 1202; // Cotton shirt + if (@torsoB >= 2060 && @torsoB <= 2069) set @torsoB, 624; // V Neck + if (@torsoB >= 2070 && @torsoB <= 2079) set @torsoB, 564; // T Neck + if (@torsoB >= 2080 && @torsoB <= 2089) set @torsoB, 720; // Silk Robe + if (@torsoB >= 2090 && @torsoB <= 2099) set @torsoB, 688; // Tanktop + if (@torsoB >= 2120 && @torsoB <= 2129) set @torsoB, 689; // Short tanktop + set @torsoC, cNone; + if (@torso == 1202 || @torso == 624 || @torso == 564 || @torso == 688 || @torso == 689 || @torso == 720) set @torsoC, cWhite; + if (@torso >= 2050) set @torsoC, @torso % 10; + + set @legsB, @legs; + if (@legsB >= 2100 && @legsB <= 2109) set @legsB, 632; // Cotton skirt + if (@legsB >= 2110 && @legsB <= 2119) set @legsB, 586; // Cotton shorts + set @legsC, cNone; + if (@legs == 632 || @legs == 586) set @legsC, cWhite; + if (@legs >= 2050) set @legsC, @legs % 10; + + return; +} diff --git a/world/map/npc/functions/slot_machine.txt b/world/map/npc/functions/slot_machine.txt new file mode 100644 index 00000000..8f4482cc --- /dev/null +++ b/world/map/npc/functions/slot_machine.txt @@ -0,0 +1,35 @@ +// + +function script SlotMachine { + mes "Pull the lever..."; + next; + menu + "Pull", L_Play, + "Maybe later", -; + close; + +L_Play: + if(countitem("CasinoCoins") < 1) goto L_NoCoin; + delitem "CasinoCoins", 1; + set @Temp1,rand(7); + set @Temp2,rand(7); + set @Temp3,rand(7); + mes "Numbers: " + @Temp1 + "/" + @Temp2 + "/" + @Temp3 + "."; + next; + + if(@Temp1 != @Temp2) goto L_Lost; + if(@Temp2 != @Temp3) goto L_Lost; + if(@Temp1 != @Temp3) goto L_Lost; + mes "Congratulations! You won!"; + mes "You get 10 casino coins"; + getitem "CasinoCoins", 10; + close; + +L_Lost: + mes "You lost!"; + close; + +L_NoCoin: + mes "Insert coin"; + close; +} diff --git a/world/map/npc/functions/soul_menhir.txt b/world/map/npc/functions/soul_menhir.txt new file mode 100644 index 00000000..a98681c6 --- /dev/null +++ b/world/map/npc/functions/soul_menhir.txt @@ -0,0 +1,47 @@ +function script SoulMenhir { + mes "[Soul Menhir]"; + mes "(A mystical aura surrounds this stone. You feel mysteriously attracted to it. Something tells you to touch it. What do you do?)"; + next; + + menu + "Touch it", -, + "Leave it alone", L_Return; + + if (Menhir_Activated == 1) goto L_Shortversion; + + mes "[Soul Menhir]"; + mes "(You touch the mysteriouse stone. Somehow it feels warm and cold at the same time.)"; + next; + + mes "[Soul Menhir]"; + mes "(Suddenly a strange sensation flows through you. It feels like your soul leaves your body and becomes one with the stone.)"; + next; + + mes "[Soul Menhir]"; + mes "(As suddenly as the feeling started it stops. The strange attraction is away from one moment to the next and the menhir feels like just an ordinary stone.)"; + next; + + set Menhir_Activated, 1; + goto L_Save; + +L_Shortversion: + mes "[Soul Menhir]"; + mes "(A strange sensation flows through you. It feels like your soul leaves your body and becomes one with the stone. as suddenly as the feeling started it stops.)"; + next; + +L_Save: + if (@x == 0 && @y == 0) goto L_FindPoint; + +L_Do_Save: + savepoint @map$, @x, @y; + goto L_Return; + +L_FindPoint: + set @n, rand(getarraysize(@Xs)); + set @x, @Xs[@n]; + set @y, @Ys[@n]; + goto L_Do_Save; + +L_Return: + return; +} diff --git a/world/map/npc/functions/strangerquiz.txt b/world/map/npc/functions/strangerquiz.txt new file mode 100644 index 00000000..28fc6887 --- /dev/null +++ b/world/map/npc/functions/strangerquiz.txt @@ -0,0 +1,7 @@ + +function script StrangerQuiz { + // param @quizparam$$ + // return in @quizanswer$ + set @quizanswer$, getspellinvocation(@quizparam$); + return; +} diff --git a/world/map/npc/functions/water_bottle.txt b/world/map/npc/functions/water_bottle.txt new file mode 100644 index 00000000..c2d9a1e0 --- /dev/null +++ b/world/map/npc/functions/water_bottle.txt @@ -0,0 +1,34 @@ +// Fills empty bottles with water + +function script WaterBottle { + set @COST_PER_BOTTLE, 150; + + mes "How many empty bottles do you want to fill with water? It costs " + @COST_PER_BOTTLE + "gp per bottle."; + input @count; + + if (@count == 0) close; + set @cost, @count * @COST_PER_BOTTLE; + set @empty, countitem("EmptyBottle"); + + if (@empty < @count) goto L_NotEnoughBottles; + if (zeny < @cost) goto L_NotEnoughMoney; + getinventorylist; + if (@inventorylist_count == 100 && countitem("BottleOfWater") == 0 && @empty > @count) goto L_NotEnoughSlots; + + set zeny, zeny - @cost; + delitem "EmptyBottle", @count; + getitem "BottleOfWater", @count; + close; + +L_NotEnoughBottles: + mes "You don't have that many empty bottles!"; + close; + +L_NotEnoughMoney: + mes "You don't have enough gp! You need " + @cost + "gp."; + close; + +L_NotEnoughSlots: + mes "You don't have room for these bottles!"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween1.txt b/world/map/npc/halloween/2006/halloween1.txt new file mode 100644 index 00000000..3d36a02b --- /dev/null +++ b/world/map/npc/halloween/2006/halloween1.txt @@ -0,0 +1,213 @@ +011-1.gat,119,78,0 script Halloween1 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST1 == 1) goto L_only_once; + set HWQUEST1,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween10.txt b/world/map/npc/halloween/2006/halloween10.txt new file mode 100644 index 00000000..7f17c860 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween10.txt @@ -0,0 +1,213 @@ +002-4.gat,88,99,0 script Halloween10 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST10 == 1) goto L_only_once; + set HWQUEST10,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP < 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween11.txt b/world/map/npc/halloween/2006/halloween11.txt new file mode 100644 index 00000000..adb25c88 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween11.txt @@ -0,0 +1,213 @@ +001-3.gat,71,70,0 script Halloween11 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST11 == 1) goto L_only_once; + set HWQUEST11,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 3) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween12.txt b/world/map/npc/halloween/2006/halloween12.txt new file mode 100644 index 00000000..e9dfb3f8 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween12.txt @@ -0,0 +1,213 @@ +005-1.gat,121,69,0 script Halloween12 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST12 == 1) goto L_only_once; + set HWQUEST12,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 8) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween13.txt b/world/map/npc/halloween/2006/halloween13.txt new file mode 100644 index 00000000..1d6825f1 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween13.txt @@ -0,0 +1,213 @@ +001-2.gat,38,65,0 script Halloween13 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST13 == 1) goto L_only_once; + set HWQUEST13,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 5) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween14.txt b/world/map/npc/halloween/2006/halloween14.txt new file mode 100644 index 00000000..de1bcbd1 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween14.txt @@ -0,0 +1,213 @@ +019-1.gat,56,61,0 script Halloween14 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST14 == 1) goto L_only_once; + set HWQUEST14,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 8) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween15.txt b/world/map/npc/halloween/2006/halloween15.txt new file mode 100644 index 00000000..86ae037c --- /dev/null +++ b/world/map/npc/halloween/2006/halloween15.txt @@ -0,0 +1,213 @@ +020-1.gat,51,49,0 script Halloween15 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST15 == 1) goto L_only_once; + set HWQUEST15,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 3) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween16.txt b/world/map/npc/halloween/2006/halloween16.txt new file mode 100644 index 00000000..c1ce2a0f --- /dev/null +++ b/world/map/npc/halloween/2006/halloween16.txt @@ -0,0 +1,213 @@ +020-3.gat,35,44,0 script Halloween16 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST16 == 1) goto L_only_once; + set HWQUEST16,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 6) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween17.txt b/world/map/npc/halloween/2006/halloween17.txt new file mode 100644 index 00000000..68fa53fc --- /dev/null +++ b/world/map/npc/halloween/2006/halloween17.txt @@ -0,0 +1,213 @@ +020-2.gat,74,27,0 script Halloween17 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST17 == 1) goto L_only_once; + set HWQUEST17,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 2) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween18.txt b/world/map/npc/halloween/2006/halloween18.txt new file mode 100644 index 00000000..4fe1c98a --- /dev/null +++ b/world/map/npc/halloween/2006/halloween18.txt @@ -0,0 +1,213 @@ +003-1.gat,130,9,0 script Halloween18 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST18 == 1) goto L_only_once; + set HWQUEST18,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 4) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween19.txt b/world/map/npc/halloween/2006/halloween19.txt new file mode 100644 index 00000000..5899781e --- /dev/null +++ b/world/map/npc/halloween/2006/halloween19.txt @@ -0,0 +1,213 @@ +007-1.gat,113,71,0 script Halloween19 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST19 == 1) goto L_only_once; + set HWQUEST19,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 8) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween2.txt b/world/map/npc/halloween/2006/halloween2.txt new file mode 100644 index 00000000..d4415452 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween2.txt @@ -0,0 +1,213 @@ +011-1.gat,48,58,0 script Halloween2 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST2 == 1) goto L_only_once; + set HWQUEST2,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 8) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween20.txt b/world/map/npc/halloween/2006/halloween20.txt new file mode 100644 index 00000000..bb7c2a0b --- /dev/null +++ b/world/map/npc/halloween/2006/halloween20.txt @@ -0,0 +1,213 @@ +001-1.gat,143,20,0 script Halloween20 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST20 == 1) goto L_only_once; + set HWQUEST20,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP < 2) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween3.txt b/world/map/npc/halloween/2006/halloween3.txt new file mode 100644 index 00000000..c640522e --- /dev/null +++ b/world/map/npc/halloween/2006/halloween3.txt @@ -0,0 +1,213 @@ +011-1.gat,45,85,0 script Halloween3 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST3 == 1) goto L_only_once; + set HWQUEST3,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP < 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween4.txt b/world/map/npc/halloween/2006/halloween4.txt new file mode 100644 index 00000000..94f4cc2a --- /dev/null +++ b/world/map/npc/halloween/2006/halloween4.txt @@ -0,0 +1,213 @@ +011-4.gat,11,57,0 script Halloween4 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST4 == 1) goto L_only_once; + set HWQUEST4,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP < 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween5.txt b/world/map/npc/halloween/2006/halloween5.txt new file mode 100644 index 00000000..187b59c5 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween5.txt @@ -0,0 +1,213 @@ +011-3.gat,17,30,0 script Halloween5 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST5 == 1) goto L_only_once; + set HWQUEST5,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP == 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween6.txt b/world/map/npc/halloween/2006/halloween6.txt new file mode 100644 index 00000000..bd991810 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween6.txt @@ -0,0 +1,213 @@ +010-2.gat,28,48,0 script Halloween6 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST6 == 1) goto L_only_once; + set HWQUEST6,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP == 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween7.txt b/world/map/npc/halloween/2006/halloween7.txt new file mode 100644 index 00000000..2e8993aa --- /dev/null +++ b/world/map/npc/halloween/2006/halloween7.txt @@ -0,0 +1,213 @@ +002-2.gat,103,102,0 script Halloween7 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST7 == 1) goto L_only_once; + set HWQUEST7,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP == 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween8.txt b/world/map/npc/halloween/2006/halloween8.txt new file mode 100644 index 00000000..257ca0e0 --- /dev/null +++ b/world/map/npc/halloween/2006/halloween8.txt @@ -0,0 +1,213 @@ +002-3.gat,43,67,0 script Halloween8 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST8 == 1) goto L_only_once; + set HWQUEST8,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP == 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/halloween9.txt b/world/map/npc/halloween/2006/halloween9.txt new file mode 100644 index 00000000..3b97ecac --- /dev/null +++ b/world/map/npc/halloween/2006/halloween9.txt @@ -0,0 +1,213 @@ +001-1.gat,121,33,0 script Halloween9 103,{ + mes "[Halloweenist]"; + mes "It's Halloween."; + mes "The time for tricks and treats."; + next; + + mes "[Halloweenist]"; + mes "You get one of either from me."; + next; + + menu "Trick or treat.",L_tricktreat,"No thanks.",L_no; + +L_tricktreat: + if(HWQUEST9 == 1) goto L_only_once; + set HWQUEST9,1; + mes "[Halloweenist]"; + mes "Now you will get a..."; + next; + set @TEMP,rand(9); + if(@TEMP > 7) goto L_treat; + goto L_trick; + +L_treat: + mes "[Halloweenist]"; + mes "...Treat!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_treat_0; + if(@TEMP == 1) goto L_treat_1; + if(@TEMP == 2) goto L_treat_2; + if(@TEMP == 3) goto L_treat_3; + if(@TEMP == 4) goto L_treat_4; + if(@TEMP == 5) goto L_treat_5; + if(@TEMP == 6) goto L_treat_6; + if(@TEMP == 7) goto L_treat_7; + if(@TEMP == 8) goto L_treat_8; + if(@TEMP == 9) goto L_treat_9; + +L_trick: + mes "[Halloweenist]"; + mes "...Trick!"; + set @TEMP,rand(9); + next; + if(@TEMP == 0) goto L_trick_0; + if(@TEMP == 1) goto L_trick_1; + if(@TEMP == 2) goto L_trick_2; + if(@TEMP == 3) goto L_trick_3; + if(@TEMP == 4) goto L_trick_4; + if(@TEMP == 5) goto L_trick_5; + if(@TEMP == 6) goto L_trick_6; + if(@TEMP == 7) goto L_trick_7; + if(@TEMP == 8) goto L_trick_8; + if(@TEMP == 9) goto L_trick_9; + +L_trick_0: + mes "[Halloweenist]"; + mes "Mwahahaha!"; + mes "I stole some of your money!"; + set Zeny,Zeny-rand(500,1500); + close; + +L_trick_1: + mes "[Halloweenist]"; + mes "You will now die."; + next; + mes "[Halloweenist]"; + mes "Have a nice halloween as a corpse!"; + gmcommand "@die "; + close; + +L_trick_2: + mes "[Halloweenist]"; + mes "May all of your disgusting stats and skills be gone!"; + next; + mes "[Halloweenist]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_trick_3: + mes "[Halloweenist]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Halloweenist]"; + mes "Happy Halloween!"; + close; + +L_trick_4: + mes "[Halloweenist]"; + mes "You will now drop all of your items!"; + next; + mes "[Halloweenist]"; + mes "Better luck with my collegues..."; + gmcommand "@dropall "; + close; + +L_trick_5: + mes "[Halloweenist]"; + mes "Your sex will now change!"; + next; + mes "[Halloweenist]"; + mes "Bwahahaha!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_trick_6: + mes "[Halloweenist]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Halloweenist]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_trick_7: + mes "[Halloweenist]"; + mes "I'll summon maggots!"; + next; + mes "[Halloweenist]"; + mes "Mwahahaha!"; + gmcommand "@spawn 1002 50 "; + close; + +L_trick_8: + mes "[Halloweenist]"; + mes "I'll summon some Fire Skulls now!"; + next; + mes "[Halloweenist]"; + mes "Mwahahahaha!"; + gmcommand "@spawn 1023 5 "; + close; + +L_trick_9: + mes "[Halloweenist]"; + mes "I'll diss you around the server."; + next; + mes "[Halloweenist]"; + mes "Mwahahahah!"; + gmcommand "@kami "+strcharinfo(0)+" is getting tricked!"; + close; + +L_treat_0: + mes "[Halloweenist]"; + mes "You just won some money."; + set Zeny,Zeny+rand(500,15000); + close; + +L_treat_1: + mes "[Halloweenist]"; + mes "You just won a Pumpkin Helmet!"; + getitem 615,1; + close; + +L_treat_2: + mes "[Halloweenist]"; + mes "You just won an Axe Hat!"; + getitem 616,1; + close; + +L_treat_3: + mes "[Halloweenist]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_treat_4: + mes "[Halloweenist]"; + mes "You just won Goggles!"; + getitem 618,1; + close; + +L_treat_5: + mes "[Halloweenist]"; + mes "You just won Leather Goggles!"; + getitem 619,1; + close; + +L_treat_6: + mes "[Halloweenist]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_treat_7: + mes "[Halloweenist]"; + mes "You just won an Eyepatch!"; + getitem 621,1; + close; + +L_treat_8: + mes "[Halloweenist]"; + mes "You just won a Bandana!"; + getitem 622,1; + close; + +L_treat_9: + mes "[Halloweenist]"; + mes "You just won 500 exp!"; + getexp 500,0; + close; + +L_only_once: + mes "[Halloweenist]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Halloweenist]"; + mes "You a chicken or something?"; + close; +} diff --git a/world/map/npc/halloween/2006/monsters.txt b/world/map/npc/halloween/2006/monsters.txt new file mode 100644 index 00000000..e64799f4 --- /dev/null +++ b/world/map/npc/halloween/2006/monsters.txt @@ -0,0 +1,9 @@ +002-2.gat,0,0,0,0 monster Jack 1022,20,0,0,0 +001-1.gat,0,0,0,0 monster Fire_Skull 1023,20,0,0,0 +005-1.gat,0,0,0,0 monster Poison_Skull 1024,20,0,0,0 +011-1.gat,0,0,0,0 monster Jack 1022,20,0,0,0 +019-1.gat,0,0,0,0 monster Fire_Skull 1023,20,0,0,0 +020-1.gat,0,0,0,0 monster Poison_Skull 1024,20,0,0,0 +010-2.gat,0,0,0,0 monster Jack 1022,20,0,0,0 +003-1.gat,0,0,0,0 monster Fire_Skull 1023,20,0,0,0 +007-1.gat,0,0,0,0 monster Poison_Skull 1024,20,0,0,0 diff --git a/world/map/npc/halloween/2008/monsters.txt b/world/map/npc/halloween/2008/monsters.txt new file mode 100644 index 00000000..a0f32222 --- /dev/null +++ b/world/map/npc/halloween/2008/monsters.txt @@ -0,0 +1,137 @@ +// + +011-3.gat,0,0,0,0 monster JackO 1022,1,3600000,1800000,Mob4H + +011-3.gat,0,0,0 script Mob4H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +001-3.gat,0,0,0,0 monster JackO 1022,5,180000,170000,Mob6H + +001-3.gat,0,0,0 script Mob6H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +001-2.gat,132,25,0,0 monster JackO 1022,1,3600000,1800000,Mob8H + +001-2.gat,0,0,0 script Mob8H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +020-2.gat,77,64,20,10 monster JackO 1022,1,3600000,1800000,Mob13H + +020-2.gat,0,0,0 script Mob13H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +003-1.gat,0,0,0,0 monster JackO 1022,1,3600000,1800000,Mob15H + +003-1.gat,0,0,0 script Mob15H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +011-4.gat,76,79,6,1 monster JackO 1022,1,3600000,1800000,Mob17H + +011-4.gat,0,0,0 script Mob17H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +009-2.gat,113,47,24,6 monster JackO 1022,1,3600000,1800000,Mob20H + +009-2.gat,0,0,0 script Mob20H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +020-4.gat,0,0,0,0 monster JackO 1022,1,3600000,1800000,Mob21H + +020-4.gat,0,0,0 script Mob21H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +05-3.gat,86,34,0,0 monster JackO 1022,2,1800000,900000,Mob22H + +05-3.gat,0,0,0 script Mob22H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +010-2.gat,26,88,0,0 monster JackO 1022,1,3600000,1800000,Mob23H + +010-2.gat,0,0,0 script Mob23H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +006-1.gat,115,121,0,0 monster JackO 1022,1,3600000,1800000,Mob24H + +006-1.gat,0,0,0 script Mob24H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +006-3.gat,30,125,0,0 monster JackO 1022,1,3600000,1800000,Mob25H + +006-3.gat,0,0,0 script Mob25H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +12-1.gat,19,54,0,0 monster JackO 1022,1,3600000,1800000,Mob26H + +12-1.gat,0,0,0 script Mob26H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +012-3.gat,54,130,0,0 monster JackO 1022,1,3600000,1800000,Mob27H + +012-3.gat,0,0,0 script Mob27H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +004-1.gat,68,20,0,0 monster JackO 1022,1,3600000,1800000,Mob34H + +004-1.gat,0,0,0 script Mob34H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +009-3.gat,26,103,0,0 monster JackO 1022,1,3600000,1800000,Mob35H + +009-3.gat,0,0,0 script Mob35H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} + +018-2.gat,121,46,0,0 monster JackO 1022,1,3600000,1800000,Mob38H + +018-2.gat,0,0,0 script Mob38H -1,{ + set @mobID, 1022; + callfunc "MobPoints"; + break; +} diff --git a/world/map/npc/halloween/2008/prize_master.txt b/world/map/npc/halloween/2008/prize_master.txt new file mode 100644 index 00000000..2b0cf642 --- /dev/null +++ b/world/map/npc/halloween/2008/prize_master.txt @@ -0,0 +1,455 @@ +// + +010-2.gat,43,32,0 script Prize Master 150,{ + if (Halloween08 == 65535) goto L_Finished; + + if (Halloween08 == 0) callsub S_Explain; + + // Get detailed info about equipment + callfunc "ProcessEquip"; + + if (@head == 647) goto L_DevControl; + if (@head == 615) goto L_Pumpkin; + if (@head == 616) goto L_Axe; + if (@head == 617) goto L_Pirate; + if (@head == 621) goto L_Eyepatch; + if (@head == 622) goto L_Bandana; + if (@head == 634) goto L_FaceMask; + if (@head == 675) goto L_GradCap; + if (@head == 678) goto L_NohMask; + if (@head == 679) goto L_DemonMask; + if (@head == 656) goto L_SerfHat; + if (@head == 1214) goto L_Bunny; + if (@head == 643) goto L_WCowboy; + if (@head == 644) goto L_BCowboy; + if (@head == 1204) goto L_Antler; + + if (Halloween08 & 1) goto L_Random_Done; + mes "[Prize Master]"; + mes "A lovely costume, here is your candy."; + set Halloween08, Halloween08 | 1; + set @temp, rand(5) + 1; + getitem 510, @temp; + close; + +L_Random_Done: + mes "[Prize Master]"; + mes "\"I don't like that one.\""; + close; + + + + + +L_Pumpkin: + if (Halloween08 & 2) goto L_Pumpkin_Done; + if (@torso != 720) goto L_Pumpkin_Bad; + set Halloween08, Halloween08 | 2; + set @temp, pow(1080, BaseLevel) * 100; + getexp @temp, 0; + mes "[" + @temp + " experience points]"; + close; + +L_Pumpkin_Bad: + mes "[Prize Master]"; + mes "\"You aren't convincing me. That doesn't look like a Jack O at all.\""; + close; + +L_Pumpkin_Done: + mes "[Prize Master]"; + mes "\"I think I've seen this Jack O before.\""; + close; + + + + + +L_Axe: + if (Halloween08 & 4) goto L_Axe_Done; + mes "[Prize Master]"; + mes "\"You look like you need some help!\""; + set Halloween08, Halloween08 | 4; + getitem 686, 1; + close; + +L_Axe_Done: + mes "[Prize Master]"; + mes "\"You've pulled the axe on me already.\""; + close; + + + + + +L_Pirate: + if (Halloween08 & 8) goto L_Pirate_Done; + if (@torso != 2060) goto L_Pirate_BadTorso; + if (Sex == 0 && !(@legsB == 632 || @legsB == 586)) goto L_Pirate_BadLegs_Female; + if (Sex == 1 && !(@legsB == 610 || @legsB == 586)) goto L_Pirate_BadLegs_Male; + mes "[Prize Master]"; + mes "\"A lovely pirate, but ye be missing this.\""; + set Halloween08, Halloween08 | 8; + getitem 1215, 1; + close; + +L_Pirate_BadTorso: + if (@torsoC != cRed) goto L_Pirate_BadColor; + mes "[Prize Master]"; + mes "\"That shirt won't work.\""; + close; + +L_Pirate_BadColor: + mes "[Prize Master]"; + mes "\"Not quite what I'm looking for. Do you remember the story of the brave pirate captain who always wore a certain color before battle?\""; + close; + +L_Pirate_BadLegs_Male: + mes "[Prize Master]"; + if (@legsB == 632) mes "\"A skirt on a man? Not for the captain!\""; + if (@legsB != 632) mes "\"Those pants don't convince me.\""; + close; + +L_Pirate_BadLegs_Female: + mes "[Prize Master]"; + if (@legsB == 610) mes "\"Jeans don't befit a woman captain.\""; + if (@legsB != 632) mes "\"Those pants don't convince me.\""; + close; + +L_Pirate_Done: + mes "[Prize Master]"; + mes "\"Yarr, ye look familiar.\""; + close; + + + + +L_Eyepatch: + if (Halloween08 & 16) goto L_Pirate_Done; + if (@torso != 2060) goto L_Pirate_BadTorso; + if (Sex == 0 && !(@legsB == 632 || @legsB == 586)) goto L_Pirate_BadLegs_Female; + if (Sex == 1 && !(@legsB == 610 || @legsB == 586)) goto L_Pirate_BadLegs_Male; + mes "[Prize Master]"; + mes "\"Maybe you can use this to replace your eye.\""; + set Halloween08, Halloween08 | 16; + set @temp, rand(2) + 1; + getitem 700, @temp; + close; + + + + +L_Bandana: + if (Halloween08 & 32) goto L_Pirate_Done; + if (@torsoC != cWhite) goto L_Bandana_Bad; + mes "[Prize Master]"; + mes "\"Here's a clue for you.\""; + set Halloween08, Halloween08 | 32; + set @temp, rand(10) + 551; + getitem @temp, 1; + close; + +L_Bandana_Bad: + mes "[Prize Master]"; + mes "\"That shirt doesn't befit a pirate swabie.\""; + close; + + + + +L_FaceMask: + if (Halloween08 & 64) goto L_FaceMask_Done; + if (!(@torso == 2081 || @torso == 2089) && ((@torsoC != cGreen && @torsoC != cDarkGreen) || (@legsC != cGreen && @legsC != cDarkGreen))) goto L_FaceMask_Bad; + mes "[Prize Master]"; + mes "\"A lovely swamp thing.\""; + set Halloween08, Halloween08 | 64; + set @temp, rand(5) + 1; + getitem 569, @temp; + close; + +L_FaceMask_Bad: + mes "[Prize Master]"; + mes "\"That mask makes me think of green. Try again.\""; + close; + +L_FaceMask_Done: + mes "[Prize Master]"; + mes "\"Another swamp thing? Next.\""; + close; + + + + +L_GradCap: + if (Halloween08 & 128) goto L_GradCap_Done; + if (@torso != 2086) goto L_GradCap_Bad; + mes "[Prize Master]"; + mes "\"Here, professor, maybe you can figure this out.\""; + set Halloween08, Halloween08 | 128; + getitem 585, 1; + close; + +L_GradCap_Bad: + mes "[Prize Master]"; + mes "\"That doesn't work at all.\""; + close; + +L_GradCap_Done: + mes "[Prize Master]"; + mes "\"Sorry, professor, but I've already seen you.\""; + close; + + + + + +L_NohMask: + if (Halloween08 & 256) goto L_NohMask_Done; + if (@torsoC != cBlack || @legsC != cBlack) goto L_NohMask_Bad; + mes "[Prize Master]"; + mes "\"Ah, a thief. Just take these.\""; + set Halloween08, Halloween08 | 256; + set @temp, rand(10) + 1; + getitem 503, @temp; + close; + +L_NohMask_Bad: + mes "[Prize Master]"; + mes "\"That's rather bright for a thief.\""; + close; + +L_NohMask_Done: + mes "[Prize Master]"; + mes "\"I've caught you trying to get another prize for the same mask.\""; + close; + + + + + +L_DemonMask: + if (Halloween08 & 512) goto L_DemonMask_Done; + if (@torsoC != cRed || @legsC != cRed) goto L_DemonMask_Bad; + mes "[Prize Master]"; + mes "\"I hope this reminds you of home.\""; + set Halloween08, Halloween08 | 512; + set @temp, rand(3) + 1; + getitem 701, @temp; + close; + +L_DemonMask_Bad: + mes "[Prize Master]"; + mes "\"That just clashes.\""; + close; + +L_DemonMask_Done: + mes "[Prize Master]"; + mes "\"A bit too many ghouls, don't you think?\""; + close; + + + + +L_SerfHat: + if (Halloween08 & 1024) goto L_SerfHat_Done; + if (@torsoB != 1202) goto L_SerfHat_BadTorso; + if (@legsB != 586 && @legsB != 632) goto L_SerfHat_BadLegs; + mes "[Prize Master]"; + mes "It doesn't look like you can even afford a costume. Have this anyways."; + set Halloween08, Halloween08 | 1024; + getitem 657, 1; + close; + +L_SerfHat_BadTorso: + mes "[Prize Master]"; + mes "\"Your shirt is too fancy for that hat.\""; + close; + +L_SerfHat_BadLegs: + mes "[Prize Master]"; + mes "\"Your pants are too fancy for that hat.\""; + close; + +L_SerfHat_Done: + mes "[Prize Master]"; + mes "\"You've got your prize. Maybe you can sell it to get a better costume.\""; + close; + + + + +L_Bunny: + if (Halloween08 & 6144 == 6144) goto L_Bunny_Done; + if (@torsoC == cBlack && @legsC == cBlack) goto L_Bunny_Black; + if (@torsoC == cWhite && @legsC == cWhite) goto L_Bunny_White; + mes "[Prize Master]"; + mes "\"That doesn't look very much like a bunny to be.\""; + close; + +L_Bunny_Done: + mes "[Prize Master]"; + mes "\"I've seen enough bunnies from you.\""; + close; + +L_Bunny_Black: + if (Halloween08 & 2048) goto L_Bunny_Black_Done; + mes "[Prize Master]"; + mes "\"A prize for the lovely bunny.\""; + set Halloween08, Halloween08 | 2048; + getitem 1211, 1; + getitem 1212, 1; + getitem 1213, 1; + close; + +L_Bunny_Black_Done: + mes "[Prize Master]"; + mes "\"Another one?\""; + close; + +L_Bunny_White: + if (Halloween08 & 4096) goto L_Bunny_White_Done; + mes "[Prize Master]"; + mes "\"I think you missed some eggs.\""; + set Halloween08, Halloween08 | 4096; + getitem 1208, 1; + getitem 1209, 1; + getitem 1210, 1; + close; + +L_Bunny_White_Done: + mes "[Prize Master]"; + mes "\"Another one?\""; // TODO + close; + + + + +L_WCowboy: + if (Halloween08 & 8192) goto L_Cowboy_Done; + if (@torsoC != cWhite) goto L_WCowboy_BadTorso; + if (@legs != 642) goto L_Cowboy_BadLegs; + mes "[Prize Master]"; + mes "\"This should help out on the trail.\""; + set Halloween08, Halloween08 | 8192; + getitem 562, 1; + close; + +L_WCowboy_BadTorso: + mes "[Prize Master]"; + mes "\"That shirt isn't quite a white at that hat.\""; + close; + +L_Cowboy_BadLegs: + mes "[Prize Master]"; + if (@legsB == 632) mes "\"How can you stand to ride a horse in that skirt?\""; + if (@legsB != 632) mes "\"How can you stand to ride a horse in those pants?\""; + close; + +L_Cowboy_Done: + mes "[Prize Master]"; + mes "\"I've already seen you, partner. Move along.\""; + close; + + + + +L_BCowboy: + if (Halloween08 & 16384) goto L_Cowboy_Done; + if (@torsoC != cBlack) goto L_BCowboy_BadTorso; + if (@legs != 642) goto L_Cowboy_BadLegs; + mes "[Prize Master]"; + mes "\"These will help out on the trail.\""; + set Halloween08, Halloween08 | 16384; + getitem 533, 3; + close; + +L_BCowboy_BadTorso: + mes "[Prize Master]"; + mes "\"Fashion doesn't seem to be your forte. Try to match that hat better.\""; + close; + + + + + +L_Antler: + if (Halloween08 & 32768) goto L_Antler_Done; + if (@torso != -1 && @legs != -1) goto L_Antler_Bad; + mes "[Prize Master]"; + mes "\"You're a brave deer. Have an apple.\""; + set Halloween08, Halloween08 | 32768; + set @temp, rand(50) + 1; + getitem 535, @temp; + close; + +L_Antler_Bad: + mes "[Prize Master]"; + mes "\"Antlers AND clothing? I don't think so.\""; + close; + +L_Antler_Done: + mes "[Prize Master]"; + mes "\"This buck looks familiar.\""; + close; + + + + +L_Finished: + mes "[Prize Master]"; + mes "\"It seems you've received your 16 prizes.\""; + close; + +L_DevControl: + menu + "Announce Open", L_Dev_Announce_Open, + "Announce Remind", L_Dev_Announce_Remind, + "Announce Close", L_Dev_Announce_Close, + "Spawn Jack O", L_Dev_Spawn_JackO, + "Spawn Jack O 2", L_Dev_Spawn_JackO_2, + "Spawn Jack O in Tulimshar", L_Dev_Spawn_JackO_Tulimshar, + "Spawn Jack O in Hurnscald", L_Dev_Spawn_JackO_Hurnscald, + "Spawn Skulls", L_Dev_Spawn_Skulls; + close; + +L_Dev_Announce_Open: + announce "A costume party has started at Dimond's Cove. Everyone is invited!", 0; + close; + +L_Dev_Announce_Remind: + announce "The costume party at Dimond's Cove is still going. Please stop by for prizes!", 0; + close; + +L_Dev_Announce_Close: + announce "The costume party Dimond's Cove will be ending soon. Thank you for participating!", 0; + close; + +L_Dev_Spawn_JackO: + monster "this", 34, 34, "Jack O", 1022, 1; + close; + +L_Dev_Spawn_JackO_2: + monster "this", 38, 41, "Jack O", 1022, 1; + close; + +L_Dev_Spawn_JackO_Tulimshar: + monster "001-1.gat", 44, 70, "Jack O", 1022, 1; + announce "A ghost in Tulimshar!", 0; + close; + +L_Dev_Spawn_JackO_Hurnscald: + monster "010-2.gat", 52, 40, "Jack O", 1022, 1; + announce "A ghost in Hurnscald!", 0; + close; + +L_Dev_Spawn_Skulls: + monster "this", 32, 39, "Fire Skull", 1023, 1; + monster "this", 36, 39, "Poison Skull", 1024, 1; + close; + +S_Explain: + mes "[Prize Master]"; + mes "\"We're holding a costume party to celebrate Halloween. Each accepted costume gets a prize. Each participant is allowed up to 16 prizes.\""; + next; + + return; +} diff --git a/world/map/npc/halloween/2009/Candyman.txt b/world/map/npc/halloween/2009/Candyman.txt new file mode 100644 index 00000000..517e94b3 --- /dev/null +++ b/world/map/npc/halloween/2009/Candyman.txt @@ -0,0 +1,306 @@ +//################################################################################# +//# This script contains files for Halloween 2009. # +//# Courtesy of: Ceros [scripting], Salmondine [drops], skipy & lien [Candyman], # +//# Freeyorp [the real scripting + PvP quest [[I wish I could have his babies]], # +//# Beelzebub for the Skull mask, Jaxad [for ... and implementation help] # +//# Remoitnane, for putting up with Freeyorp's mistakes during playtesting # +//# Needed: 50 Candy, 50 Chocolate Bars, 50 Caramel Apples, ~60 of any Lollipop # +//# Reward: Skull Mask # +//################################################################################# + +// The Candy Man +009-1.gat,90,27,0 script The Candy Man 183, { + + set @STATE_KNOWS_CANDYMAN, 1; + set @STATE_FETCH_QUEST, 2; + set @STATE_FETCH_DONE, 3; + set @STATE_PVP_QUEST, 4; + set @LAST_KILL_STATE, 10; + set @STATE_FINISHED, 11; + + if ((strcharinfo(0) == "xxMOIKANOXX")) goto L_DIE_IN_A_FIRE; + if (rand(7) > 4) goto L_Malus_PC; + if (Candyman == 0 && BaseLevel <= 30) goto L_Candy_Too_Young; + if (Candyman == @STATE_KNOWS_CANDYMAN) goto L_Candy_Mean_Bastard; + if (Candyman == @STATE_FETCH_QUEST) goto L_Candy_Check; + if (Candyman == @STATE_FETCH_DONE) goto L_Candy_Done; + if (Candyman >= @STATE_PVP_QUEST && Candyman < @LAST_KILL_STATE) goto L_Kill_Someone; + if (Candyman == @LAST_KILL_STATE) goto L_PvP_Done; + if (Candyman == @STATE_FINISHED) goto L_Finished; + if (Candyman == 0) goto L_Candy_Start; + close; + +L_Candy_Start: + if (Sex) + set @honorific$, "boy"; + if (!Sex) + set @honorific$, "girl"; + mes "[The Candy Man]"; + mes "\"Hello little " + @honorific$ + "... want some candy?\""; + next; + menu + "... uh... sure?", L_Candy_Is_A_Girls_Best_Friend, + "No way, creepo! My mom told me about people like you!", -; + close; + +L_Candy_Is_A_Girls_Best_Friend: + mes "[The Candy Man]"; + mes "\"Well too bad! I want it all!\""; + set Candyman, @STATE_KNOWS_CANDYMAN; + close; + +L_Candy_Mean_Bastard: + mes "[The Candy Man]"; + mes "\"What do you wan-- wait. I'm sorry, maybe you could give me a hand, perhaps? There'd be something in it for you, I promise.\""; + next; + menu + "With what - and what would be in it for me?", L_Candy_More_Info, + "Sorry, no time for the likes of you.", close, + "[Clap loudly]", L_Candy_Insult; + close; + +L_Candy_Insult: + callsub S_Taunt_PC; + itemheal -Hp, 0; + misceffect sfx_magic_war; + misceffect sfx_magic_war, strcharinfo(0); + close; + + L_Candy_More_Info: + mes "[The Candy Man]"; + mes "\"You see.. I need some candy for a.. party that I am going to tonight. But, alas, I didn't bring enough candy for everyone. If you bring me the candy I need, I'll give you something to remind you of me and scare others. How's that sound?\""; + next; + menu + "Sorry, I don't like the sound of this..", -, + "Hmm.. OK..", L_Candy_Accept; + close; + +L_Candy_Accept: + set Candyman, @STATE_FETCH_QUEST; + close; + +L_Candy_Check: + mes "[The Candy Man]"; + mes "\"So what have you brought me, fleshy one?\""; + next; + + if (countitem("ChocolateBar") < 50 || countitem("Candy") < 50 || countitem("LollipopColor1") + countitem("LollipopColor2") + countitem("LollipopColor3") < 60 || countitem("CaramelApple") < 50 ) goto L_Check_Not_Enough; + +//L_Sugar_Daddy: OK, so it isn't needed but it is still funny + + mes "[The Candy Man]"; + mes "\"Hmm.. yes, yes.. it seems you do have enough candy. And I guess a promise is a promise and all that happy... stuff. Very well, here is this mask. It's a striking resemblance, isn't it?\""; + + set @LollipopTotal, countItem("LollipopColor1") + countItem("LollipopColor2") + countItem("LollipopColor3"); + + delitem "LollipopColor1", 60 * countItem("LollipopColor1") / @LollipopTotal; // FIXME: Rounding errors? + delitem "LollipopColor2", 60 * countItem("LollipopColor2") / @LollipopTotal; + delitem "LollipopColor3", 60 * countItem("LollipopColor3") / @LollipopTotal; + delitem "ChocolateBar", 50; + delitem "Candy", 50; + delitem "CaramelApple", 50; + + set Candyman, @STATE_FETCH_DONE; + mes "[The Candy Man gives you a Skull Mask.]"; + getitem 1221, 1; + mes "[12,000 experience points]"; + getexp 12000, 0; + + set $CandyOpsComplete, $CandyOpsComplete + 1; + + next; + + mes "[The Candy Man]"; + mes "\"Oh screw it, this is just no fun.\""; + callsub S_Taunt_PC; + misceffect sfx_magic_war; + misceffect sfx_magic_war, strcharinfo(0); + itemheal -Hp, 0; + close; + +L_Check_Not_Enough: + mes "[The Candy Man]"; + mes "\"No, not enough candy, I need more!\""; + mes "\"Yes...\""; + if (countItem("ChocolateBar") < 50) mes "\"Chocolate is always delicious, I need some more from you before I will consider your offerings complete...\""; + if (countItem("Candy") < 50) mes "\"There is the candy, wrapped up and full of energy so good.\""; + if (countItem("CaramelApple") < 50) mes "\"I have seen many caramel apples go by. I will not rest until I have them!\""; + if (countitem("LollipopColor1") + countitem("LollipopColor2") + countitem("LollipopColor3") < 60) mes "\"Lollipops. Any combination, I care not about which types you bring.\""; + mes "\"Come back when you have enough!\""; + close; + +L_Candyman_Trick: + mes "[The Candy Man]"; + mapannounce "009-1", "Mwahahahaha!", 0; + mapannounce "009-2", "Mwahahahaha!", 0; + misceffect sfx_magic_astral; + misceffect sfx_magic_war, strcharinfo(0); + areamonster "this", 88, 25, 92, 29, "", 1022, 1 + rand($CandyOpsComplete) / (5 + rand(rand($CandyOpsComplete))); + close; + +L_Candy_Done: + mes "[The Candy Man]"; + mes "\"Sorry chum, you already got your mask and I already got my candy.\""; + + next; + menu + "Oookay...", -, + "You're sure?", L_Asking_For_It; + close; + +L_Asking_For_It: + mes "[The Candy Man]"; + mes "\"Oooh, we have an eager one here, it seems. Weeeell, I might have something more for you, if you can do something amusing...\""; + next; + menu + "What did you have in mind?", L_PvP_Intro, + "[Carefully back away...]", -; + close; + +L_PvP_Intro: + mes "[The Candy Man]"; + mes "\"Mhm, mhmhmm. Well, there is nothing quite as utterly delightful as watching you little people run around and kill each other. If, say, you manage to kill enough worthy opponents in an amusing manner, I may well have something... special... for you.\""; + next; + set Candyman, @STATE_PVP_QUEST; + menu + "Sure. Mhm. Mhm.", L_PvP_Accept, + "Oooer. That doesn't sound nice at all!", -; + + mes "[The Candy Man]"; + mes "\"How unfortunate. Because I wasn't asking!\""; + goto L_PvP_Warp; + +L_PvP_Accept: + mes "[The Candy Man]"; + mes "\"Good. Because I wasn't asking! Mhm. Mhm. Ahaha, bwuhahahahah!\""; + goto L_PvP_Warp; + +L_PvP_Warp: + misceffect sfx_magic_astral; + misceffect 20, strcharinfo(0); // Teleportation cloud; + warp "001-3", 0, 0; + close; + +L_Kill_Someone: + mes "[The Candy Man]"; + mes "\"Mm? What are you doing back here, get into it!\""; + goto L_PvP_Warp; + +OnPCKilledEvent: + if (Candyman >= 4 && Candyman < 10) goto L_kill_target_recruit; + message strcharinfo(0), "As everything fades, you hear distant laughter..."; + attachrid(@killerrid); + if (Candyman >= 10) close; + if (Candyman >= 4) goto L_killer_check; + close; + +L_kill_target_recruit: + message strcharinfo(0), "Tut tut. Seems you were too hasty."; + if (Candyman > 5 && Candyman < 11) set Candyman, Candyman - 1; + attachrid(@killerrid); + if (Candyman >= 10) close; + if (Candyman >= 4) goto L_killer_check; + setarray @messages$, "Ouch, I felt that you silly person! That 'weakling' you killed gave me some nice candy... now you will suffer...", "Oooh, a good kill... do you want to work for meee for that? Come and see me...", "Exquisite, a perfect kill... can you do it again? Come see me, I'll make it worth your while...", "Awwwww, that was no fun, you couldn't even see the fool's face. Nevermind, he has failed me, he will pay...", "Hmph, you just _know_ you can do better than that..."; + set @pos, rand(getarraysize(@messages$)); + message strcharinfo(0), @messages$[@pos]; + if (@pos == 0) itemheal -Hp / 2 - 40, -Sp / 2 - 40; + close; + +L_killer_check: + if (BaseLevel > @victimlvl) + goto L_kill_boring; + goto L_kill_worthy; + +L_kill_boring: + setarray @messages$, "Bah, not strong enough! Try someone more interesting, and crush them!", "That was no fun. Killing weaklings is only fun when _I_ do it.", "Too fast, that was over just too fast. Kill someone stronger!", "Boooorring. Crush a worthy foe already!"; + message strcharinfo(0), @messages$[rand(getarraysize(@messages$))]; + close; + +L_kill_worthy: + set Candyman, Candyman + 1; + if (Candyman == 10) goto L_final_kill; + setarray @messages$, "Yes! Yes! More! You must kill more of them!", "Get another one. Destroy them! Make it as good as this one!", "Utterly delightful, go smite another one!", "Mhm, mhm. Yes... simply sublime."; + message strcharinfo(0), @messages$[rand(getarraysize(@messages$))]; + getexp 1000 + rand(@victimlvl, @victimlvl * @victimlvl), 0; + close; + +L_final_kill: + message strcharinfo(0), "Yes! YES! _YES!_ Perfect, just perfect. Well, I think it may well be time for a reward, don't you think? Mhm, mhm. Come to see me, and claim your prize..."; + getexp 15000, 0; + close; + +L_PvP_Done: + mes "[The Candy Man]"; + mes "\"Aha, that was good, yes, very good, mhm.\""; + mes "\"And now, your reward...\""; + mes "\"You have your treat...\""; + mes ""; + mes "[20 000 experience points!]"; + mes "[20 000 gp!]"; + getexp 20000, 0; + set zeny, zeny + 20000; + set Candyman, @STATE_FINISHED; + + mes ""; + mes "\"Now, your trick! Mhm, mhmmhmhmhehhm!\""; + goto L_Candyman_Trick; + + +L_Finished: + mes "[The Candy Man]"; + mes "\"Just you wait to see what happens when someone else gives me all that I need, mhm, mhm.\""; + close; + +L_Candy_Too_Young: + + mes "[The Candy Man]"; + mes "\"I don't think you have enough experience to get what I want..\""; + close; + +L_DIE_IN_A_FIRE: + + mes "[The Candy Man]"; + mes "Hi "+strcharinfo(0)+", I heard you were buying up all the candy before I got here..."; + next; + menu + "Whut?",-, + "Uh...",-; + + mes "Very, very bad to steal info out of #tmw-content. No candy for you!"; + callsub S_Taunt_PC; + misceffect sfx_magic_war; + misceffect sfx_magic_war, strcharinfo(0); + itemheal -Hp, 0; + close; + +S_Taunt_PC: + setarray @taunts$, "Die, " + strcharinfo(0) + "!", "Ahah. Aheh. Ahehmwahehehah!", strcharinfo(0) + ", you bore me...", "Rocks fall, everybody dies!", "Why so glum, chum? Everybody has to DIE SOMETIME!", "Why so SERIOUS?", "Do you know how I got this smile, " + strcharinfo(0) + "?", "What, you said you wanted an ivory complexion like mine?", "Tick, tock, tick, tock, BOOM", "BOOM HEADSHOT", "Jigga whut?"; + npctalk @taunts$[rand(getarraysize(@taunts$))]; + return; + +L_Malus_PC: + set @effect, rand(6); + if (@effect == 0) mes "\"Time for you to visit some of my friends...\""; + if (@effect == 0) misceffect sfx_magic_astral; + if (@effect == 0) misceffect 20, strcharinfo(0); + if (@effect == 0) warp "027-1", 0, 0; + if (@effect == 1) mes "\"Misplaced something?\""; + if (@effect == 1) unequipbyid rand(11); + if (@effect == 1) unequipbyid rand(11); + if (@effect == 2) mes "\"Time to cool off, mhm, mhmm.\""; + if (@effect == 2) misceffect sfx_magic_astral; + if (@effect == 2) misceffect 20, strcharinfo(0); + if (@effect == 2) warp "020-1", 0, 0; + if (@effect == 3) mes "\"Ahahehah. Is it me, or is it breezy in here? Mhm.\""; + if (@effect == 3) nude; + if (@effect == 4) mes "\"How delightedly fancy, but I think I can do better for you... aha, aha.\""; + if (@effect == 4) misceffect sfx_magic_astral; + if (@effect == 4) setlook 1, 1+rand(6); + if (@effect == 4) setlook 6, 1+rand(9); + if (@effect == 5) mes "\"...are you still here? Well, not for long...\""; + if (@effect == 5) misceffect sfx_magic_astral; + if (@effect == 5) misceffect 20, strcharinfo(0); + if (@effect == 5) warp "005-3", 0, 0; + close; + +} diff --git a/world/map/npc/halloween/2010/gak.txt b/world/map/npc/halloween/2010/gak.txt new file mode 100644 index 00000000..92d559d8 --- /dev/null +++ b/world/map/npc/halloween/2010/gak.txt @@ -0,0 +1,1256 @@ +010-1.gat,29,48,0 script Gak 188, { + + if ($hween10 == 2) goto L_Event_Over; + + if (hween10 > 4 && hween10 < 9) goto L_Collecting_Sweets; + if (hween10 == 9) goto L_Hunger_Sated; + if (hween10 == 10) goto L_Reward_Returning; + if (hween10 == 11) goto L_Miscount_Bugfix; + if (hween10 == 12) goto L_Gaks_Little_Shop; + + if ($hween10 == 1) goto L_Event_Over_2; + + if (hween10 == 1) goto L_Knows_Gak; + if (hween10 == 2) goto L_Gak_Has_Tongue; + if (hween10 == 3) goto L_Bones_Check; + if (hween10 == 4) goto L_Request_Sweets; + + mes "[Broken Skeleton]"; + set hween10, 1; + mes ""; + mes "\"Gak... gak, gak! Gak gak gak gak!\""; + close; + +L_Knows_Gak: + if (countitem("Tongue") > 0) goto L_Has_Tongue; + mes "[Gak]"; + mes ""; + mes "\"Gak gak! Gak gak, gak gak gak!\""; + close; + +L_Has_Tongue: + mes "[Gak]"; + mes ""; + mes "The skeleton notices a slimy, dead tongue you have with you, and eyes it eagerly."; + next; + mes "[Gak]"; + mes ""; + mes "At least, you assume he is eager. \"Gak gak gak! Gak gak gak gak GAK GAK!\""; + next; + menu + "Give the tongue to him", L_Give_Tongue, + "Taunt him by showing him the tongue, but not giving it", L_Give_Tongue_Die, + "Walk away", -; + close; + +L_Give_Tongue: + if (countitem("Tongue") < 1) goto L_Tongue_Gone_Die; + delitem "Tongue", 1; + set hween10, 2; + mes "[Gak]"; + mes ""; + mes "The skeleton grabs the tongue from you and shoves it into his mouth. After stretching his jaw for some moments, he grins at you unpleasantly."; + next; + mes "[Gak]"; + mes ""; + mes "\"Ssso! What bringsss you here, mortal?\""; + next; + menu + "I just chanced upon you here, and figured you could use a tongue.", L_Thanks, + "The Hallowe'en event is FINALLY here, of course I'm going to play it.", L_Whut, + "Nothing.", -; + close; + +L_Tongue_Gone_Die: + mes "[Gak]"; + mes ""; + mes "He reaches out for the tongue, but then realises you don't have it. With an angry a look on his face as a skeleton can have, he slashes at you with his remaining arm."; + goto L_Die; + +L_Give_Tongue_Die: + mes "[Gak]"; + mes ""; + mes "Angrily, the skeleton reaches out and claws you with his remaining arm."; + if (countitem("Tongue") < 1) goto L_Die; + next; + delitem "Tongue", 1; + mes "[Gak]"; + mes ""; + mes "As you fall, he takes the tongue from you anyway."; + set hween10, 2; + goto L_Die; + +L_Die: + close2; + itemheal -Hp -1, 0; + end; + +L_Thanks: + mes "[Gak]"; + mes ""; + mes "\"Well, that wasss mighty thoughtful of you, friend... I wonder if perhapsss you could do me another favour?\""; + next; + menu + "Sure! Anything you want.", L_Sure, + "I'll be right, thanks.", -; + close; + +L_Whut: + mes "[Gak]"; + mes ""; + mes "\"What?\""; + close; + +L_Gak_Has_Tongue: + mes "[Gak]"; + mes ""; + mes "\"Hello again, little friend. Could you posssibly do me another favour?\""; + next; + menu + "I sure can, what is it?", L_Sure, + "Uh, no thanks.", -; + close; + +L_Sure: + mes "[Gak]"; + mes ""; + mes "\"It wasss nice if you to bring me thisss tongue, but asss you can sssee I still have a few things missing.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Maybe you could bring me a few bonesss so I could patch myssself up?\""; + next; + menu + "I'm on it!", L_Bones, + "Nah, that sounds a bit boring.", -; + close; + +L_Bones: + set hween10, 3; + mes "[Gak]"; + mes ""; + mes "\"Wonderful! I can't wait until I can properly walk around attacking thingsss again.\""; + close; + +L_Bones_Check: + mes "[Gak]"; + mes ""; + mes "\"Hallo again. Have you brought me any bonesss?\""; + next; + setarray @menuitems$, "", "", "", "", ""; + set @c, 0; + + if (countitem("Bone") < 5) goto L_bones_four; + set @menuitems$[@c], "Take five bones."; + set @menuid[@c], 0; + set @c, @c + 1; + +L_bones_four: + if (countitem("Bone") < 4) goto L_bones_three; + set @menuitems$[@c], "Take four bones."; + set @menuid[@c], 1; + set @c, @c + 1; + +L_bones_three: + if (countitem("Bone") < 3) goto L_bones_two; + set @menuitems$[@c], "Take three bones."; + set @menuid[@c], 2; + set @c, @c + 1; + +L_bones_two: + if (countitem("Bone") < 2) goto L_bones_one; + set @menuitems$[@c], "Take two bones."; + set @menuid[@c], 3; + set @c, @c + 1; + +L_bones_one: + if (countitem("Bone") < 1) goto L_bones_menu; + set @menuitems$[@c], "Take one bone."; + set @menuid[@c], 4; + set @c, @c + 1; + +L_bones_menu: + set @menuitems$[@c], "I don't have any bones."; + set @menuid[@c], 5; + set @c, @c + 1; + menu + @menuitems$[0], -, + @menuitems$[1], -, + @menuitems$[2], -, + @menuitems$[3], -, + @menuitems$[4], -, + @menuitems$[5], -, + @menuitems$[6], -; + set @menu, @menu -1; + if (@menu >= @c) close; + if (@menuid[@menu] == 5) goto L_offer_no_items; + mes "[Gak]"; + mes ""; + mes "Ssso many? Jussst what I needed. Let me sssee if they are sssuitable..."; + next; + + if (@menuid[@menu] == 0) set @bonecount, 5; + if (@menuid[@menu] == 1) set @bonecount, 4; + if (@menuid[@menu] == 2) set @bonecount, 3; + if (@menuid[@menu] == 3) set @bonecount, 2; + if (@menuid[@menu] == 4) set @bonecount, 1; + if (countitem("Bone") < @bonecount) goto L_Not_Enough_Bones; + + delitem "Bone", @bonecount; + set @bonecount, @bonecount + 1; + set @hween10_givebones, 0; + +// in a rush, raising and then lowering is the best thing I can think of to make the loop work properly. + +L_Bone_Loop: + set @bonecount, @bonecount - 1; + if @bonecount < 1 goto L_Bones_Feedback; + set @temp1, rand(@bonecount + 5); + if @temp1 > @bonecount goto L_Bone_Loop; + set @hween10_givebones, @hween10_givebones + 1; + goto L_Bone_Loop; + +L_Not_Enough_Bones: + mes "[Gak]"; + mes ""; + mes "\"Hey... you don't have that many bonesss!\""; + close; + +L_offer_no_items: + mes "[Gak]"; + mes ""; + mes "\"Sssucch a pity...\""; + close; + +L_Bones_Feedback: + if (@hween10_givebones == 0) goto L_Bones_Feedback_None; + mes "[Gak]"; + mes ""; + mes "\"Hmm... I think I can ussse " + @hween10_givebones + " of thessse bonesss.\""; + next; + set hween10_bonecount, hween10_bonecount + @hween10_givebones; + if (hween10_bonecount > 7) goto L_Enough_Bones; + mes "[Gak]"; + mes ""; + mes "\"But I ssstill need more! Pleassse bring them to me.\""; + close; + +L_Bones_Feedback_None: + mes "[Gak]"; + mes ""; + mes "\"I can't ussse any of theesse boness. I need more!\""; + close; + +L_Enough_Bones: + set hween10, 4; + mes "[Gak]"; + mes ""; + mes "\"And that should be enough for my dark purposssesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Now... I wonder...\" He flicks his tongue around his dry and ancient teeth. \"I wonder if you could get me sssomething to eat?\""; + next; + mes "[Gak]"; + mes ""; + mes "\"All thisss hard work gathering bonesss hasss made me...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"HUNGRY!\""; + next; + menu + "Uh, what would you like to eat?", L_Request_Sweets, + "This is a burial site, I'm sure there are plenty of worms around.", L_Worms, + "Me too, actually. I gotta eat. Bye!", -; + close; + +L_Worms: + mes "[Gak]"; + mes ""; + mes "\"True... but they are sssmall, and not asss sssweet asss what I'd like!\""; + next; + +L_Request_Sweets: + mes "[Gak]"; + mes ""; + mes "\"Asss I'm sssure you know, it wasss Hallowe'en recently. I'll bet you had great time collecting sssweetsss with your friendsss, hm?\""; + next; + menu + "The guy organising that was too lazy - it never happened.", L_Time_Management, + "Well, what's it to you?", L_Leftover_Sweets, + "You're creeping me out.", -; + close; + +L_Time_Management: + mes "[Gak]"; + mes ""; + mes "\"That'sss jussst too bad. People with poor time management shouldn't be put in charge of important thingsss like that.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But never mind. Even if you didn't get to go trick-or-treating, there will ssstill be plenty of dropped sssweets lying around.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"People are ssso carelesss! To my benefit, of courssse. Ssso what do you sssay? Can you bring me asss many sssweetsss as you can find?\""; + menu + "I guess so.", L_Confirm_Sweethunting, + "No, I'd rather eat 'em myself.", -; + close; + +L_Leftover_Sweets: + mes "[Gak]"; + mes ""; + mes "\"Each year at Hallowe'en, all you little girlsss and boysss run about begging for candy. And each year, ssso much of it is dropped, and wasssted!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But I don't mind eating sssweetsss just becaussse they're a couple of weeksss old! Bring me lotsss, and you shall have a reward.\""; + next; + menu + "Well, okay then.", L_Confirm_Sweethunting, + "Wait, free sweets!? Why did no one tell me?", -; + close; + +L_Confirm_Sweethunting: + set hween10, 5; + mes "[Gak]"; + mes ""; + mes "\"My ssstomach groansss with anticipa - uh, well, my bonesss creak with anticipation. Tell all your little friendsss to bring my any sssweetsss they find, too: I really am VERY hungry!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Remember, though, and thisss isss important: the more sssweetsss YOU PERSSSONALLY bring me, the better YOUR reward will be!\""; + close; + +L_Collecting_Sweets: + mes "[Gak]"; + mes ""; + mes "\"Ssso, do you have any sssweetsss for me?\""; + next; + setarray @menuitems$, "", "", "", "", ""; + set @c, 0; + + if (countitem("TonoriDelight") < 1) goto L_Sweets_Marshmallow; + set @menuitems$[@c], "Tonori Delight."; + set @menuid[@c], 0; + set @c, @c + 1; + +L_Sweets_Marshmallow: + if (countitem("Marshmallow") < 1) goto L_Sweets_JellySkull; + set @menuitems$[@c], "Marshmallow."; + set @menuid[@c], 1; + set @c, @c + 1; + +L_Sweets_JellySkull: + if (countitem("JellySkull") < 1) goto L_Sweets_CandyPumpkin; + set @menuitems$[@c], "Jelly Skull."; + set @menuid[@c], 2; + set @c, @c + 1; + +L_Sweets_CandyPumpkin: + if (countitem("CandyPumpkin") < 1) goto L_Sweets_Menu; + set @menuitems$[@c], "Candy Pumpkin."; + set @menuid[@c], 3; + set @c, @c + 1; + +L_Sweets_Menu: + set @menuitems$[@c], "I don't have any sweets."; + set @menuid[@c], 4; + set @c, @c + 1; + menu + @menuitems$[0], -, + @menuitems$[1], -, + @menuitems$[2], -, + @menuitems$[3], -, + @menuitems$[4], -, + @menuitems$[5], -; + set @menu, @menu -1; + if (@menu >= @c) close; + + if (@menuid[@menu] == 0) set @giveitem$, "TonoriDelight"; + if (@menuid[@menu] == 1) set @giveitem$, "Marshmallow"; + if (@menuid[@menu] == 2) set @giveitem$, "JellySkull"; + if (@menuid[@menu] == 3) set @giveitem$, "CandyPumpkin"; + // We need something to handle what happens when we select that the character does not have any sweets + if (@menuid[@menu] == 4) goto L_offer_no_items; + + mes "[Gak]"; + mes ""; + mes "\"How many of those do you have for me?\""; + next; + menu + "Take all of them.", -, + "One hundred of them.", -, + "Fifty of them.", -, + "Ten of them.", -, + "Five of them.", -, + "One of them.", -, + "This many...", -; + set @menu, @menu - 1; + + if (@menu == 0) set @givecounter, countitem(@giveitem$); + if (@menu == 1) set @givecounter, 100; + if (@menu == 2) set @givecounter, 50; + if (@menu == 3) set @givecounter, 10; + if (@menu == 4) set @givecounter, 5; + if (@menu == 5) set @givecounter, 1; + if (@menu == 6) input @givecounter; + if (@menu > 6) close; + if (countitem(@giveitem$) < @givecounter) goto L_Not_Enough_Sweeties; + delitem @giveitem$, @givecounter; + if ($hween10 == 1) set hween10, hween10 + 1; + if (@giveitem$ == "TonoriDelight") set $hween10_tondel, $hween10_tondel + @givecounter; + if (@giveitem$ == "Marshmallow") set $hween10_mmallow, $hween10_mmallow + @givecounter; + if (@giveitem$ == "JellySkull") set $hween10_jelskul, $hween10_jelskul + @givecounter; + if (@giveitem$ == "CandyPumpkin") set $hween10_canpump, $hween10_canpump + @givecounter; + if (@giveitem$ == "TonoriDelight") set hween10_collect_tondel, hween10_collect_tondel + @givecounter; + if (@giveitem$ == "Marshmallow") set hween10_collect_mmallow, hween10_collect_mmallow + @givecounter; + if (@giveitem$ == "JellySkull") set hween10_collect_jelskul, hween10_collect_jelskul + @givecounter; + if (@giveitem$ == "CandyPumpkin") set hween10_collect_canpump, hween10_collect_canpump + @givecounter; + + set hween10_collect, hween10_collect + @givecounter; + + mes "[Gak]"; + mes ""; + mes "\"Thank you for your generousss donation to my caussse. Ssso far, you and your friendsss have brought me " + $hween10_tondel + " Tonori Delightsss, " + $hween10_mmallow + " Marshmallowsss, " + $hween10_jelskul + " Jelly Ssskullsss, and " + $hween10_canpump + " Candy Pumpkinsss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"You persssonally have brought me " + hween10_collect + " sssweetsss.\""; + next; + if (hween10 > 8) goto L_Hunger_Sated; + mes "[Gak]"; + mes ""; + if (hween10 == 5) mes "\"But I ssstill need more! I'm ssstill HUNGRY!\""; + if (hween10 == 6) mes "\"I ssstill need a few more, however... I'm ssstill HUNGRY!\""; + if (hween10 == 7) mes "\"I'd like more, though. I'm ssstill hungry.\""; + if (hween10 == 8) mes "\"Hmm... what a meal! Although, jussst a couple more sssweetsss wouldn't hurt. I'm ssstill a bit peckish.\""; + close; + +L_Not_Enough_Sweeties: + mes "[Gak]"; + mes ""; + mes "\"Hey! Don't teassse me; you know very well that you don't have that many sssweetsss.\""; + close; + +L_Hunger_Sated: + set hween10, 10; + mes "[Gak]"; + mes ""; + mes "The last of the sweets falls out the bottom of the skeleton's skull, bouncing down between his ribs before tumbling out to join the countless thousands that lie in a vast mound of them beside him."; + next; + mes "[Gak]"; + mes ""; + mes "\"Buuurp!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Now that, my friend, was a DELICIOUSSS meal, if I do sssay ssso myssself. It'sss not every day I get to feassst upon sssuch delectable treatsss.\""; + next; + menu + "Okay, whatever. Now how about my reward?", L_Reward, + "I'm pleased to hear it. Now... a reward, perhaps?", L_Polite_Request, + "It was my pleasure.", L_My_Pleasure; + close; + +L_Reward_Returning: + mes "[Gak]"; + mes ""; + mes "\"Hello again, friend.\""; + next; + menu + "Can I have a reward now?", L_Reward, + "Hello.", -; + close; + +L_Polite_Request: + mes "[Gak]"; + mes "\"Of courssse a reward! Jussst who do you think I am, not to giving rewardsss to people who were kind enough to give me a bit of a hand?\""; + next; + goto L_Reward; + +L_My_Pleasure: + mes "[Gak]"; + mes ""; + mes "\"Good, good!\""; + close; + +L_Reward: + mes "[Gak]"; + mes ""; + // took out here a lot + mes "\"Well, you DID bring me an awful lot of sssweetsss. I have with me a sssmall collection of preciousss itemsss, thingsss I've acquired in variousss waysss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I can let you have sssome thingsss out of thisss collection. You brought me " + hween10_collect + " sssweetsss, ssso I will give you itemsss worth twice that amount of gold piecesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"For example, if you had given me 1,000 sssweetsss I would give you 2,000GP worth of itemsss. Except actually, I don't like marshmallowsss that much. Thossse are equivalent to jussst 1GP each.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Not to say that I'm sure of your currencccy here... but it sssshould give you an idea, yessss?\""; + next; + set hween10, 12; + set hween10_credits, hween10_collect_tondel + hween10_collect_jelskul + hween10_collect_canpump; + set hween10_credits, hween10_credits * 2; + set hween10_credits, hween10_credits + hween10_collect_mmallow; + mes "[Gak]"; + mes ""; + mes "\"Looksss like you have " + hween10_credits + " ... 'creditsss', shall we call them? Now, let'ss have a look at my waresss.\""; + next; + goto L_Shop_Inventory; + +L_Gaks_Little_Shop: + mes "[Gak]"; + mes ""; + mes "\"You have " + hween10_credits + " creditsss. Tell me what you'd like to buy - or asssk me about it. Sssome of thessse itemsss have very interesssting ssstories attached to them.\""; + next; + +L_Shop_Inventory: + menu + "Opera Mask (9,000 credits)", L_Buy_OperaMask, + "Tell me about the Opera Mask.", L_Info_OperaMask, + "Jester Mask (7,000 credits)", L_Buy_JesterMask, + "Tell me about the Jester Mask.", L_Info_JesterMask, + "Witch's Hat (4,500 credits)", L_Buy_WitchsHat, + "Tell me about the Witch's Hat.", L_Info_WitchsHat, + "Goblin Mask (2,500 credits)", L_Buy_GoblinMask, + "Tell me about the Goblin Mask.", L_Info_GoblinMask, + "Guy Fawkes Mask (800 credits)", L_Buy_GuyFawkesMask, + "Tell me about the Guy Fawkes Mask.", L_Info_GuyFawkesMask, + "Scissors (500 credits)", L_Buy_Scissors, + "Tell me about the Scissors.", L_Info_Scissors, + "Shock Sweet (200 credits)", L_Buy_ShockSweet, + "Tell me about Shock Sweets.", L_Info_ShockSweet, + "Bone Arrow (1 credit)", L_Buy_BoneArrow, + "Tell me about Bone Arrows.", L_Info_BoneArrow, + "Nothing today, thanks.", -; + close; + +L_Buy_OperaMask: + if (hween10_credits < 9000) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"Ah, yesss! A friend of mine usssed to wear that masssk. He wasss very famousss in hisss time - had quite a fandom.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Are you sssure you want to buy the Opera Masssk?\""; + next; + menu + "Yes.", -, + "No.", L_Gaks_Little_Shop; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inventory; + if (hween10_credits < 9000) goto L_Too_Few_Credits; + set hween10_credits, hween10_credits - 9000; + set hween10_paid, hween10_paid + 9000; + getitem "OperaMask", 1; + mes "[Gak]"; + mes ""; + mes "\"Enjoy it!\""; + next; + goto L_Gaks_Little_Shop; + +L_Buy_JesterMask: + if (hween10_credits < 7000) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"I'm sssure you'll have fun with thisss masssk. 'Fun', get it?\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Are you sssure you want to buy the Jessster Masssk?\""; + next; + menu + "Yes.", -, + "No.", L_Gaks_Little_Shop; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inventory; + if (hween10_credits < 7000) goto L_Too_Few_Credits; + set hween10_credits, hween10_credits - 7000; + set hween10_paid, hween10_paid + 7000; + getitem "JesterMask", 1; + mes "[Gak]"; + mes ""; + mes "\"Enjoy it!\""; + next; + goto L_Gaks_Little_Shop; + +L_Buy_WitchsHat: + if (hween10_credits < 4500) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"I was wondering witch one you would take.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Are you sssure you want to buy the Witch'sss Hat?\""; + next; + menu + "Yes.", -, + "No.", L_Gaks_Little_Shop; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inventory; + if (hween10_credits < 4500) goto L_Too_Few_Credits; + set hween10_credits, hween10_credits - 4500; + set hween10_paid, hween10_paid + 4500; + getitem "WitchHat", 1; + mes "[Gak]"; + mes ""; + mes "\"Enjoy it!\""; + next; + goto L_Gaks_Little_Shop; + +L_Buy_GoblinMask: + if (hween10_credits < 2500) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"Hmm, I never much liked that one myssself.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Are you sssure you want to buy the Goblin Masssk?\""; + next; + menu + "Yes.", -, + "No.", L_Gaks_Little_Shop; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inventory; + if (hween10_credits < 2500) goto L_Too_Few_Credits; + set hween10_credits, hween10_credits - 2500; + set hween10_paid, hween10_paid + 2500; + getitem "GoblinMask", 1; + mes "[Gak]"; + mes ""; + mes "\"Enjoy it!\""; + next; + goto L_Gaks_Little_Shop; + +L_Buy_GuyFawkesMask: + if (hween10_credits < 800) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"Cheap, huh? Barely more than a penny for thisss guy.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Are you sssure you want to buy the Guy Fawkesss Masssk?\""; + next; + menu + "Yes.", -, + "No.", L_Gaks_Little_Shop; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inventory; + if (hween10_credits < 800) goto L_Too_Few_Credits; + set hween10_credits, hween10_credits - 800; + set hween10_paid, hween10_paid + 800; + getitem "GuyFawkesMask", 1; + mes "[Gak]"; + mes ""; + mes "\"Enjoy it!\""; + next; + goto L_Gaks_Little_Shop; + +L_Buy_Scissors: + if (hween10_credits < 500) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"My own pair of ssscissssorsss! But I haven't been needing them lately asss much asss I usssed to.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Are you sssure you want to buy the Scissors?\""; + next; + menu + "Yes.", -, + "No.", L_Gaks_Little_Shop; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inventory; + if (hween10_credits < 500) goto L_Too_Few_Credits; + set hween10_credits, hween10_credits - 500; + set hween10_paid, hween10_paid + 500; + getitem "Scissors", 1; + mes "[Gak]"; + mes ""; + mes "\"Enjoy it!\""; + next; + goto L_Gaks_Little_Shop; + +L_Buy_ShockSweet: + if (hween10_credits < 200) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"I'll be glad to be rid of sssome of thessse terrifying sssweetsss...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"How many would you like to buy?\""; + next; + menu + "1", -, + "2", -, + "3", -, + "4", -, + "5", -, + "None", -; + + if (@menu < 0 || @menu > 6) close; + if (@menu == 6) goto L_Gaks_Little_Shop; + set @shocksweets, @menu; + set @cost, @shocksweets * 200; + if (hween10_credits < @cost) goto L_Too_Few_Credits; + getinventorylist; + if (@inventorylist_count == 100 && countitem("ShockSweet") < 1) goto L_Full_Inventory; + set hween10_credits, hween10_credits - @cost; + set hween10_paid, hween10_paid + @cost; + getitem "ShockSweet", @shocksweets; + mes "[Gak]"; + mes ""; + mes "\"I would sssay 'enjoy them', but I doubt you will.\""; + next; + goto L_Gaks_Little_Shop; + +L_Buy_BoneArrow: + if (hween10_credits < 1) goto L_Too_Few_Credits; + mes "[Gak]"; + mes ""; + mes "\"Deadly, but nearly weightlessss. A good choice!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"How many would you like to buy?\""; + next; + menu + "1", -, + "5", -, + "10", -, + "50", -, + "100", -, + "500", -, + "1000", -, + "None", -; + + if (@menu < 1 || @menu > 8) close; + if (@menu == 1) set @bonearrows, 1; + if (@menu == 2) set @bonearrows, 5; + if (@menu == 3) set @bonearrows, 10; + if (@menu == 4) set @bonearrows, 50; + if (@menu == 5) set @bonearrows, 100; + if (@menu == 6) set @bonearrows, 500; + if (@menu == 7) set @bonearrows, 1000; + if (@menu == 8) goto L_Gaks_Little_Shop; + if (hween10_credits < @bonearrows) goto L_Too_Few_Credits; + getinventorylist; + if (@inventorylist_count == 100 && countitem("BoneArrows") < 1) goto L_Full_Inventory; + set hween10_credits, hween10_credits - @bonearrows; + set hween10_paid, hween10_paid + @bonearrows; + getitem "BoneArrows", @bonearrows; + mes "[Gak]"; + mes ""; + mes "\"Usse them wisssely. They're hard to come by.\""; + next; + goto L_Gaks_Little_Shop; + +L_Too_Few_Credits: + mes "[Gak]"; + mes ""; + mes "\"Are you trying to kid me? You haven't enough creditsss for that!\""; + next; + goto L_Gaks_Little_Shop; + +L_Info_OperaMask: + mes "[Gak]"; + mes ""; + mes "\"Ah, yesss. My Opera Masssk. There'sss quite a ssstory sssurrounding thisss one...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"One day in Tonori, many yearsss ago, the Princessss Azura mysssteriousssly vanished. The King'sss men sssearched high and low, but found no trace of her.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"It wasss assssumed - correctly - that she mussst have been kidnapped. Ssso the King put a hefty reward on her safe return - a hundred thousssand gold piecesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"However, the Princessss wasss not returned. One year after she had disssappeared, the King raisssed the reward by fifty thousssand gold - and each year after, too, for ssstill the Princessss wasss not returned.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Asss time went by, the King became more and more sssure that hisss daughter mussst be dead. He wasss, however, wrong...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"At that very moment, a pirate galleon wasss sssailing merrily along the Rivalry Coassst. Itsss crew sssang ssea-shantiesss and bounced around the rigging.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Sssuddenly, though, the pirate captain ssspied sssomething terrible ahead of them. Water ssswirled around and around like a giant bathtub being emptied....\""; + next; + mes "[Gak]"; + mes ""; + mes "\"A maelssstrom!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The captain tried to tell hisss crew to turn the ship around, but they couldn't hear him over their sssinging. They were ssswept, ssspiraling, into the cavernousss hole in the sssea.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The piratesss realisssed, then, what was happening, and ssstopped sssinging at once. The captain ordered them to remove the sssailsss and tie them down like parachutesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The plan worked. Asss they fell, the air caught under the sssailsss and ssslowed the falling of the ship. Sssoon they landed gently on the bottom of the ocean.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Peering around in the gloom, the pirate captain sssaw a prone figure on a rock nearby. He climbed out of the ship and hurried over.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But before he could reach them, a jet of flame ssstreaked passst above him, and a great ssslimy creature emerged from the sssea in front of him...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"A dragon!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The captain jumped out of the way asss the dragon once again breathed fire. The captain turned to sssee hisss ship in flamesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The dragon sssmiled evilly and opened itsss mouth to eat the captain. But when it had ssset the ship on fire it had accidentally lit the fusssesss of the cannonsss, and at thisss moment they fired.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Cannonball after cannonball thudded into the dragon, sssending it reeling back into the sssea. The captain picked up the figure from the rock, and looked about to sssee how he might essscape.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"And asss he did, it grew very dark; looking above him, he sssaw that the maelssstorm wasss collapsssing. He held the figure tightly to keep them sssafe, and braced himssself.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The water hit them from either ssside asss though Triton, the god of the sssea, had clapped hisss handsss upon them. They were lifted from the bottom and carried with great ssspeed to the sssurface.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"They rossse bessside a ship of the King'sss navy, aboard it a mage - who had closssed the maelssstorm - and the King himssself, who had come to watch.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"And asss both he and the pirate captain looked down to the figure whom the latter had found on the bottom of the sssea, they gasssped at who it wasss...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The Princessss!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"In return for finding her, the pirate captain was given sssix hundred thousssand gold piecesss, a Royal Pardon for Piracy, a Pirate Permit and the Princessss'sss hand in marriage.\""; + next; + mes "[Gak]"; + mes ""; + mes "The skeleton pausssesss for a moment to sssigh in rememberance. \"It wasss a very good opera,\" he continues."; + next; + mes "[Gak]"; + mes ""; + mes "\"After it had ended, I went backssstage and bought an opera masssk sssigned by the lead actor, and alssso a nice cossstume that I needed for work.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Thisss isss, of courssse, that very masssk. It'sss worth a lot becausssse of the autograph.\""; + next; + goto L_Gaks_Little_Shop; + +L_Info_JesterMask: + next; + mes "[Gak]"; + mes ""; + mes "\"Ah, yesss. Quite a ssscary little thing, isssn't it? And it hasss quite a hissstory, too.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Back in the lassst daysss of the Tonorian King Efeniunkanduiti Khan there were many plotsss to remove him from the throne, and the biggessst sssource of thessse plotsss wasss the Bell Sssociety.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The King wasss quite worried about all thisss, asss you would imagine, ssso he hired a jessster to make light of any misssfortune.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The jessster wasss undoubtedly funny, and the ssscary yet sssilly cossstume he wore ssseemed to emphasssissse the hilarity of him. The King cheered consssiderably with the jessster juggling, doing sssomersssaults and telling punsss in hisss court.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But there wasss one man who didn't like the jessster at all: Prince Akhendo-Al Mosssesssmuchasssdad Khan. The jessster'sss masssk concealed hisss experessssion, which disssconcerted Akhendo-Al greatly.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"He tried to explain hisss feelingsss to hisss father, but the King wasssn't paying attention. He wasss too busssy laughing at the joke the jessster had jussst made about Akhendo-Al'sss sssour face.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But the King should have lissstened before it wasss too late. One night a piercing ssscream woke the palace, and ssservants came hurrying to the King'sss chamber: but he wasss already dead. A long, wicked knife had been thrussst into hisss heart.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Akhendo-Al looked around at the gathered ssservantsss and guardsss, and ssaw what he had sssussspected from the firssst: the jessster wasss gone!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"He raced back the way he had come, and down to the entrance hall. Asss he reached the main doorsss, a voice behind him laughed. He turned to sssee the jessster at the top of the ssstairsss he had jussst dessscended!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The chassse wasss on. Akhendo-Al ran asss fassst asss he could back up the ssstairsss, and down a passssage which the jessster had disssappeared down. Laughter echoed around him asss he ran through the palace, occassssionally catching a glimpssse of the jessster ahead.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Sssoon, Akhendo-Al found himssself at the top of the palace'sss bell tower. On the other ssside of the great bellsss he sssaw the jessster, sssilhouetted againssst the moon, and sssmiling cruelly.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"'There's no escape for you now,' Akhendo-Al told him, and drew hisss sssabre. 'Try to run, and I shall cut you down.'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But the jessster sssmiled, and turned to ssstand at the edge of the tower, looking down at the moat that lay far below.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Akhendo-Al ssstared asss the jessster opened hisss armsss wide...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Then the jessster turned, and shrugged. 'But I've already accomplished my tasssk. The tyrant king isss dead.'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The Prince tied the jessster'sss handsss with sssome ssspare bell-rope, and took him down to a group of palace guards. Together, they led the jessster to the dungeonsss and sssecured him. Angrily, the Prince removed the man'sss masssk. Then he and the guardsss gasssped in sssurprissse.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The man wasss Gorrik, captain of the palace guard!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Gorrik gave a mossst long-winded explanation of why he wasss dressssed asss a jessster, and assssurred Akhendo-Al that he had certainly not killed the king. But the prince wasss now king, and he knew that Gorrik wasss the murderer. He sssentenced the man to execution.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"To hisss disssapointment, the old guard captain essscaped and fled the country. He came here, and thisss isss the very jessster masssk he wore.\""; + next; + goto L_Gaks_Little_Shop; + +L_Info_WitchsHat: + next; + mes "[Gak]"; + mes ""; + mes "\"Which? Ah, yesss, that one. Hmm. Well, many yearsss ago thessse foressstsss usssed to be home to witchesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I came upon one myssself sssoon after I arrived in Argaes, many yearsss ago, while I wasss alive. I had recently been forced to leave my mother country, where we had not many treesss - the vassst foressstsss were very ssstrange to me.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I wasss ssstranded far to the Sssouth of here - that area isss ssstill wildernesss today. For daysss I travelled through the thick foressstsss, looking for civilation or - at leassst - sssomething to eat.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Eventually I came upon a sssmall cottage in a clearing. Overcome with hunger, I thought I might knock and asssk if they had anything to eat. But asss I approached, I noticed sssomething very ssstrange...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The entire houssse wasss made of sssweeetsss! The walls were bricksss of tonori delight, the wallsss were translucent jelly ssskullsss sssquished into a pane, the roof wasss thatched with marshmallow and the ground wasss paved with flattened candy pumpkinsss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I quickly forgot about asssking for food and ssset about eating the houssse. I took great handfulsss from the wallsss and jammed them into my mouth. It lessss than a minute my face wasss sssmeared all over, and my handsss ssso covered in sssticky sssweetsss that you couldn't sssee any ssskin.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Then the door sssuddenly opened, and out ssstepped what I knew at once wasss a witch. The long black cloak, the pointy black hat, and the broomssstick she clutched in one hand aided me in thisss deduction.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Well, there'sss really only one thing you can do when a witch catchesss you eating her wallsss. You run for it. But I barely had time to move before she cassst an evil ssspell. I fell forward on my face, and felt myssself being dragged back toward her by invisssible forcesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Thessse sssame forcesss then flipped me over onto my back. The witch looked furiousssly angry. 'Why,' she sssaid, 'are you eating my wall?'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The anssswer 'Becaussse I wasss hungry' ssseemed a fairly obviousss one to me, but you don't act sssmart to a witch. I told her I had been unaware that the cottage wasss inhabited.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Well, that ssset her glaring even more. 'You didn't see the smoke coming from the chimney? You didn't stop to consider that sweets left lying around in a wood are hardly likely to be so clean and fresh and... well... there?'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I complimented her on how fine her sssweetsss were. She sssighed wearily.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"'But you've no idea,' she told me, 'how tiresome it is to keep them looking like that. I'm always cooking up more sweets for repairs, which I need to do constantly because my walls are always getting eaten by vermin.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"'I have a large store of sweets underneath my house, to which I add and from which I take every morning. Patching holes, shaving away layers of sweets that have grown mouldy and replacing with a thin layer of new sweets... and when it rains! You wouldn't believe!'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"She glanced up at the roof of her houssse. 'I have a huge big sheet of waterproof canvas,' she went on. 'And as soon as it looks like rain I have to rush out here and tie it over my roof - if this house gets rained on, that's the end of it, I tell you. I'd have to rebuild from scratch.'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I hadn't realisssed what hard work the upkeep for a houssse made from sssweetsss wasss. I wasss now very sssorry for eating ssso much of her houssse without even asssking, and I told her ssso. But she glared again.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"'Never you mind MY worries,' she told me. 'You should be more concerned about your own!'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I remember ssswallowing nervousssly. 'My worriesss?'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"'I hope you don't think you're leaving here,' sssaid the witch. 'You're staying and working for me until you've repaid what you ate.'\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Thisss wasssn't ssso bad asss I'd firssst thought it would be. I had three mealssss a day of the witch'sss cooking - not sssweetsss, but real mealsss and they were ever ssso much nicer. The work wasss hard, but I had many interesssting conversssationsss with the witch.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"It took sssome time to repay my debt, but finally I had worked enough. The witch - whossse name wasss Alissssa - gave me a bag of sssweetsss to take with me when I left. But I didn't want to go - what wasss there for me in the North?\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Ssso I ssstayed, in fact. We ate that bag of sssweetsss together, and from then on we did half the choresss each. Thossse were great daysss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But it wasss dangerousss, living down there in the Sssouth, back then. One night were were attacked by a tribe of goblinsss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I tried to protect Alissssa, but I wasss killed. I don't know what happened to her, becaussse it wasss many yearsss before I returned from the dead.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"When I did, I found myssself lying in a clearing in the foressst. The bracken wasss thickly growing and there were many young treesss, but sssearching around I dissscovered a trapdoor leading into a cellar. I wasss in the remainsss of our houssse.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"When I returned from the cellar, I ssspotted sssomething black lying in the grassss. It wasss Alissssa's pointy hat - unharmed by the yearsss becaussse of itsss magic.\""; + next; + mes "[Gak]"; + mes ""; + mes "The skeleton sighs as well as he can without lungs. \"Thisss witch'sss hat isss, of courssse, that very one. I've hung on to it for sssuch a long time - you couldn't imagine how long. I think it'sss time to let it go. If you truly want it, you can have it.\""; + next; + goto L_Gaks_Little_Shop; + +L_Info_GoblinMask: + mes "[Gak]"; + mes ""; + mes "\"Aha, yesss. There usssed to be a village far to the Sssouth where they wore thossse.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"In thossse daysss there were many goblin tribesss down there, who would regularly attack human villagesss. No one really knew why, it wasss jussst what goblinsss did.\" He looks sad for a moment. \"Well, in thisss village - which wasss called Turnap - they devisssed a clever ssscheme to protect themssselvesss from the goblinsss...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"They made themssselvesss masssksss, like thisss one, to look like goblinsss. They figured the goblinsss wouldn't attack them if they did thisss.\" He grins like only a skeleton can. "; + next; + mes "[Gak]"; + mes ""; + mes "\"Of courssse, thossse goblinsss jussst thought the people of Turnap were another tribe that wasss invading there territory. They attacked and killed everyone.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I had lived nearby for sssome time, and had been given thisss masssk to protect myssself on one of my visssitsss there. It did me asss much good asss it did them...\""; + next; + mes "[Gak]"; + mes ""; + mes "\"You can have it, if you want, but jussst remember: it won't protect you from the goblinsss!\""; + next; + goto L_Gaks_Little_Shop; + +L_Info_GuyFawkesMask: + mes "[Gak]"; + mes ""; + mes "\"Over in Tonori there isss a traditional celebration known asss 'Guy Fawkesss Day'. Sssee, many yearsss ago there wasss a guy named Fawkesss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"He wasss a member of a sssecret sssociety. The Bell Sssociety, it wasss called. Their aim wasss to rid Tonori of itsss king, Efeniunkanduiti Khan.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Now, Fawkesss was a pretty exciteable guy. He had thessse visssionsss of blowing up the entire palace. The other membersss of the sssociety thought thisss wasss unnecessssary, but would neverthelessss be pretty cool.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Ssso, over time, they acquired enough explosssivesss to put Fawkesss' plansss into action. One dark night in late Autumn they gained entry to the palace, and placed great barrelsss of explosssivesss in ssstrategic locationsss.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Then came the time to light the fussse. The othersss went outssside to watch the show, and Fawkesss crept back down the cellarsss, where the ten-minute fussse lay waiting to be lit.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Unfortunately, it wasss at that moment that sssome of the Palace Guard showed up. They were a disssobient pair - they rarely lissstened to the commandsss of their ssseniorsss, and were currently sssneaking down to the cellarsss to sssteal themssselves sssome wine.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Of courssse, when they sssaw Fawkesss about to light the fussse they quickly ssseized him and tied him to a possst. After they had poured themssselvesss a drink, they ssstarted to interrogate him.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But dessspite their tauntsss and no matter how many timesss they hit him, Fawkesss sssaid nothing. He wasss a brave guy.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Eventually, the guardsss told him that even if he didn't ssspeak, they could sssee that he had been trying to blow up the palace. They were completely drunk by thisss time, and sssaid that once they had gone to relieve themssselvesss they would hang him right there in the cellar.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Asss it isss tradional to do before executing sssomeone, the guardsss gave Fawkesss a pipe for hisss lassst sssmoke. They then left to ussse the toilet.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"It'sss rather obviousss what happened next. Once he wasss sssure they had gone, Fawkesss rolled himssself over in hisss bondsss and pressssed the sssmoking pipe againssst the fussse.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The ressst of the Bell Sssociety, ssstanding outssside the palace, had a magnificent view asss the centre of the palace was blown into the sssky and the wallsss crumpled outwardsss. Asss Fawkesss had not returned, they guessssed that he mussst not have been able to essscape.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The two palace guardsss, unfortunately, sssurvived. Asss the wall collapsssed they crashed into the moat along with the ressst of the rubble, but managed to free themssselves.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The Bell Sssociety essscaped, sssad for their lossss of Fawkesss but jubilant that they had sssuccesssfully killed the King. Unfortunately, the newssspaper next day revealed that he had not even been in the palace at the time! He wasss not even hurt!\""; + next; + mes "[Gak]"; + mes ""; + mes "\"The people of Tulimshar thought it very funny that sssuch a lot of effort had come to nothing. The palace was of courssse dessstroyed, but the Bell Sssociety had failed. Now we celebrate Guy Fawkesss day, in a lasssting jessst at the wasssted effort of the Bell Society.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Thisss masssk is meant to look like Fawkesss, but it doesssn't really. He wasssn't sssuch a smiley guy.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"I don't like Guy Fawkesss Day myssself, ssso I'm ssselling it cheaply.\""; + next; + goto L_Gaks_Little_Shop; + +L_Info_Scissors: + mes "[Gak]"; + mes ""; + mes "\"Yesss, my old ssscissssorsss. I had to cut my own hair with them once, to disssguissse myssself - which I had to do to essscape the country unnoticed.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"It'sss rather a long ssstory, but... well, I wasss in fact running from my execution. I came to Argaesss ssso that I didn't have to lossse my head.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"But that'sss long in the passst. Here and now, they're very good for changing your hairssstyle without bothering to go all the way to the barber.\""; + next; + goto L_Gaks_Little_Shop; + +L_Info_ShockSweet: + mes "[Gak]"; + mes ""; + mes "\"Thossse? Shocking thingsss...\""; + next; + goto L_Gaks_Little_Shop; + + +L_Info_BoneArrow: + mes "[Gak]"; + mes ""; + mes "\"Ahh, yessss. I happen to have sssso many leftover bonesss from what people have been giving me. I couldn't take them all, of courssse... there were very few that were responsssive enough for I needed, and now, I have the bessst.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Would be ssssssuch a pity to wassste the leftoverss though... I've been enchanting the ressst for usse as weaponssss. Nothing too ssspecial, but they are verry light.\""; + next; + goto L_Gaks_Little_Shop; + +L_Event_Over: + if (hween10 < 5) goto L_Event_Over_1; + if (hween10 < 13) goto L_Event_Over_2; + mes "[Gak]"; + mes ""; + mes "\"Well, it'sss been very nice meeting you, friend, but I think I'll be heading off sssoon. I hear the Northern farmsss are pleasssant at this time of year.\""; + close; + +L_Event_Over_1: + mes "[Gak]"; + mes ""; + mes "\"Hmm, hello. And goodbye.\""; + close; + +L_Event_Over_2: + mes "[Gak]"; + mes ""; + mes "\"Thank you for thossse sssweetsss, they were quite deliciousss. But I think I'll be leaving sssoon.\""; + close; + +L_Full_Inventory: + mes "[Gak]"; + mes ""; + mes "\"Ssseems you don't have room for thisss.\""; + close; + +L_Miscount_Bugfix: + if (hween10_collect_canpump != 0) goto L_Do_Miscount_Bugfix; + set hween10, 12; + goto L_Gaks_Little_Shop; + +L_Do_Miscount_Bugfix: + + mes "[Gak]"; + mes ""; + mes "\"Er.\" While his expression is as stony as ever, he sounds quite embarrassed."; + next; + mes "[Gak]"; + mes ""; + mes "\"Seems I forgot some thingsss earlier... you should actually have " + (hween10_collect_canpump << 1) + " more creditsss than I calculated before.\""; + next; + mes "[Gak]"; + mes ""; + mes "\"Sssorry.\""; + next; + + menu + "\"Hmph. Well, you can correct that now, right?", -; + + mes "[Gak]"; + mes ""; + mes "\"Of courssse. It is done. Sssorry about that\""; + set hween10_credits, hween10_credits + (hween10_collect_canpump << 1); + set hween10, 12; + next; + goto L_Gaks_Little_Shop; + +} + diff --git a/world/map/npc/items/purification_potion.txt b/world/map/npc/items/purification_potion.txt new file mode 100644 index 00000000..09a854bd --- /dev/null +++ b/world/map/npc/items/purification_potion.txt @@ -0,0 +1,28 @@ +// This is the function to use the PurificationPotion + +function script usePurificationPotion { + if (isat("011-1.gat", 88,67)) + goto L_Wyara_Pond; + +L_NoUse: + message strcharinfo(0), "You don't know what to do with this."; + getitem "PurificationPotion", 1; + return; + +L_Wyara_Pond: + set @Q_MASK, NIBBLE_2_MASK; + set @Q_SHIFT, NIBBLE_2_SHIFT; + set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT; + + if (@Q_status < 1) + goto L_NoUse; + if (@Q_status <= 2) + set @Q_status, @Q_status + 1; + + message strcharinfo(0), "You pour the potion into the pond."; + + set QUEST_MAGIC2, + (QUEST_MAGIC2 & ~(@Q_MASK) + | (@Q_status << @Q_SHIFT)); + return; +} diff --git a/world/map/npc/items/restricted_item.txt b/world/map/npc/items/restricted_item.txt new file mode 100644 index 00000000..7d8e96ab --- /dev/null +++ b/world/map/npc/items/restricted_item.txt @@ -0,0 +1,18 @@ +// ------------------------------------------------------------ +// Identical to unreleased_item except for the message. +// Variables passed to this script: +// @slotId The slot in which the item would have been equipped in. This is passed automagically when called in an equip script. +// @itemId The ID of the item currently being equipped. This is passed automagically when called in an equip script. +// @minLvl The minimum required GM level to equip this item. When not set or set to 0, it is set to 60 as a default. +// ------------------------------------------------------------ + +function script RestrictedItem { + if (!@minLvl) set @minLvl, 60; + if (debug || getgmlevel(0) >= @minLvl) return; // If the active character is staff, do nothing. + message strcharinfo(0), "This item repells you with extreme force. It does not seem to be meant for you."; + unequipbyid @slotId; + if (getgmlevel(0)) return; + gmcommand "@wgm Restricted item '" + @itemId + "' used by character '" + strcharinfo(0) + "'."; + gmcommand "@l Restricted item '" + @itemId + "' used by character '" + strcharinfo(0) + "'."; + end; +} diff --git a/world/map/npc/items/scissors.txt b/world/map/npc/items/scissors.txt new file mode 100644 index 00000000..0e10453c --- /dev/null +++ b/world/map/npc/items/scissors.txt @@ -0,0 +1,13 @@ +function script useScissors { + if (rand(3)) + goto L_Change; + message strcharinfo(0), "Whoops!"; + itemheal -20 - rand(Hp >> 1), 0; + getitem "Scissors", 1; + end; + +L_Change: + setlook 1, rand(19); + getitem "Scissors", 1; + end; +} diff --git a/world/map/npc/items/shock_sweet.txt b/world/map/npc/items/shock_sweet.txt new file mode 100644 index 00000000..3fc6d8e0 --- /dev/null +++ b/world/map/npc/items/shock_sweet.txt @@ -0,0 +1,14 @@ +function script useShockSweet { + if (rand(5)) + goto L_Change; + message strcharinfo(0), "Yuck, this tastes like earwax!"; + itemheal -20 - (Hp >> 2), 0; + end; + +L_Change: + setlook 6, 127; + message strcharinfo(0), "Gah! That was some strong stuff!"; + sc_start sc_poison, 1, 20; + misceffect 15, strcharinfo(0); + end; +} diff --git a/world/map/npc/items/unreleased_item.txt b/world/map/npc/items/unreleased_item.txt new file mode 100644 index 00000000..72d24b70 --- /dev/null +++ b/world/map/npc/items/unreleased_item.txt @@ -0,0 +1,11 @@ +// ------------------------------------------------------------ +// Variables passed to this script: +// @slotId The slot in which the item would have been equipped in. This is passed automagically when called in an equip script. +// ------------------------------------------------------------ + +function script UnreleasedItem { + if (debug || getgmlevel(0)) end; // If the server allows equipping unreleased items or if the active character is staff, do nothing. + message strcharinfo(0), "You have difficulties equipping this item, as if it is not yet fully in this world."; + unequipbyid @slotId; + end; +} diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt new file mode 100644 index 00000000..1c39b98b --- /dev/null +++ b/world/map/npc/items/warpTowels.txt @@ -0,0 +1,130 @@ +function script useWhiteWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "020-1.gat",66,91; // Nivalis + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "WhiteWarpTowel", 1; + end; +} +function script useRedWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "009-1.gat",51,40; // Hurnscald + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "RedWarpTowel", 1; + end; end; +} +function script useGreenWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "003-1.gat",35,25; + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "GreenWarpTowel", 1; + end; end; +} +function script useBlueWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "003-1.gat",35,25; + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "BlueWarpTowel", 1; + end; end; +} +function script useYellowWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "001-1.gat",40,71; // Tulimshar + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "YellowWarpTowel", 1; + end; end; +} +function script usePurpleWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "003-1.gat",35,25; + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "PurpleWarpTowel", 1; + end; end; +} +function script useOrangeWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "027-1.gat",70,100; // Graveyard + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "OrangeWarpTowel", 1; + end; end; +} +function script usePinkWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "012-3.gat",448,66; // Terranite Cave + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "PinkWarpTowel", 1; + end; end; +} +function script useTealWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "003-1.gat",35,25; + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "TealWarpTowel", 1; + end; end; +} +function script useLimeWarpTowel { + if (isin("botcheck.gat",8,11,32,29)) goto L_Botcheck; + warp "003-1.gat",35,25; + if (rand(15)) + goto L_Keep; + getitem "GreyWarpTowel", 1; + end; +L_Botcheck: + message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; +L_Keep: + getitem "LimeWarpTowel", 1; + end; end; +} diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf new file mode 100644 index 00000000..8d07ff18 --- /dev/null +++ b/world/map/npc/scripts.conf @@ -0,0 +1,84 @@ +// This is the main script import file + +// NPC Functions +npc: npc/functions/banker.txt +npc: npc/functions/barber.txt +npc: npc/functions/clear_vars.txt +npc: npc/functions/dailyquest.txt +npc: npc/functions/ferry.txt +npc: npc/functions/game_rules.txt +npc: npc/functions/inn.txt +npc: npc/functions/magic.txt +npc: npc/functions/mob_points.txt +npc: npc/functions/process_equip.txt +npc: npc/functions/slot_machine.txt +npc: npc/functions/soul_menhir.txt +npc: npc/functions/strangerquiz.txt +npc: npc/functions/water_bottle.txt +npc: npc/functions/evil_obelisk.txt + +// Item Functions +npc: npc/items/purification_potion.txt +npc: npc/items/scissors.txt +npc: npc/items/shock_sweet.txt +npc: npc/items/unreleased_item.txt +npc: npc/items/restricted_item.txt +npc: npc/items/warpTowels.txt + +import: npc/_import.txt + +// Christmas 2006 +// npc: npc/xmas/2006/xmas1.txt +// npc: npc/xmas/2006/xmas2.txt +// npc: npc/xmas/2006/xmas3.txt +// npc: npc/xmas/2006/xmas4.txt +// npc: npc/xmas/2006/xmas5.txt +// npc: npc/xmas/2006/xmas6.txt +// npc: npc/xmas/2006/xmas7.txt +// npc: npc/xmas/2006/xmas8.txt +// npc: npc/xmas/2006/xmas9.txt +// npc: npc/xmas/2006/xmas10.txt +// npc: npc/xmas/2006/xmas11.txt +// npc: npc/xmas/2006/xmas12.txt +// npc: npc/xmas/2006/xmas13.txt +// npc: npc/xmas/2006/xmas14.txt +// npc: npc/xmas/2006/xmas15.txt +// npc: npc/xmas/2006/xmas16.txt +// npc: npc/xmas/2006/xmas17.txt +// npc: npc/xmas/2006/xmas18.txt +// npc: npc/xmas/2006/xmas19.txt +// npc: npc/xmas/2006/xmas20.txt + +// Halloween 2007 +// npc: npc/halloween/2007/monsters.txt +// npc: npc/halloween/2007/summon.txt + +// Christmas 2007 +// npc: npc/xmas/2007/pre-xmas.txt +// npc: npc/xmas/2007/after-xmas.txt + +// Easter 2008 +// npc: npc/easter/2008/monsters.txt +// npc: npc/easter/2008/npc.txt + +// Halloween 2008 +// npc: npc/halloween/2008/monsters.txt +// npc: npc/halloween/2008/prize_master.txt + +// Christmas 2008 +// npc: npc/xmas/2008/event.txt + +// Halloween 2009 +// npc: npc/halloween/2009/Candyman.txt + +// Christmas 2009 +// npc: npc/xmas/2009/event.txt + +// Easter 2010 +// When enabling, some entries in 028-1 would also need to be uncommented, the warp from 028-1 would need to be commented out. The changes to the old woman and some other NPCs weren't able to be preserved, but are recorded in the git repository. +//import: npc/easter/2010/_import.txt + +// Halloween 2010 +// npc: npc/halloween/2010/gak.txt + +// import: npc/xmas/2010/_import.txt diff --git a/world/map/npc/xmas/2006/xmas1.txt b/world/map/npc/xmas/2006/xmas1.txt new file mode 100644 index 00000000..a79be191 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas1.txt @@ -0,0 +1,246 @@ +002-2.gat,41,60,0 script Xmas1 105,{ + if(XMASQUEST1 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST1,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas10.txt b/world/map/npc/xmas/2006/xmas10.txt new file mode 100644 index 00000000..b0f057fc --- /dev/null +++ b/world/map/npc/xmas/2006/xmas10.txt @@ -0,0 +1,243 @@ +002-3.gat,57,64,0 script Xmas10 105,{ + if(XMASQUEST10 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas. The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me. The kind will depend on whether you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST10,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas11.txt b/world/map/npc/xmas/2006/xmas11.txt new file mode 100644 index 00000000..47fece68 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas11.txt @@ -0,0 +1,246 @@ +001-1.gat,73,51,0 script Xmas11 105,{ + if(XMASQUEST11 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST11,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas12.txt b/world/map/npc/xmas/2006/xmas12.txt new file mode 100644 index 00000000..cf234be1 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas12.txt @@ -0,0 +1,246 @@ +011-3.gat,26,51,0 script Xmas12 105,{ + if(XMASQUEST12 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST12,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas13.txt b/world/map/npc/xmas/2006/xmas13.txt new file mode 100644 index 00000000..aa2c87f8 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas13.txt @@ -0,0 +1,246 @@ +002-4.gat,68,95,0 script Xmas13 105,{ + if(XMASQUEST13 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST13,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas14.txt b/world/map/npc/xmas/2006/xmas14.txt new file mode 100644 index 00000000..73673088 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas14.txt @@ -0,0 +1,246 @@ +005-1.gat,46,46,0 script Xmas14 105,{ + if(XMASQUEST14 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST14,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas15.txt b/world/map/npc/xmas/2006/xmas15.txt new file mode 100644 index 00000000..6deca2d2 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas15.txt @@ -0,0 +1,246 @@ +001-3.gat,112,54,0 script Xmas15 105,{ + if(XMASQUEST15 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST15,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas16.txt b/world/map/npc/xmas/2006/xmas16.txt new file mode 100644 index 00000000..05325115 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas16.txt @@ -0,0 +1,246 @@ +001-2.gat,37,24,0 script Xmas16 105,{ + if(XMASQUEST16 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST16,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas17.txt b/world/map/npc/xmas/2006/xmas17.txt new file mode 100644 index 00000000..0144dcf4 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas17.txt @@ -0,0 +1,246 @@ +011-1.gat,106,58,0 script Xmas17 105,{ + if(XMASQUEST17 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST17,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas18.txt b/world/map/npc/xmas/2006/xmas18.txt new file mode 100644 index 00000000..a4d059a7 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas18.txt @@ -0,0 +1,246 @@ +002-2.gat,97,18,0 script Xmas18 105,{ + if(XMASQUEST18 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST18,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas19.txt b/world/map/npc/xmas/2006/xmas19.txt new file mode 100644 index 00000000..aa2c83c8 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas19.txt @@ -0,0 +1,246 @@ +020-1.gat,90,83,0 script Xmas19 105,{ + if(XMASQUEST19 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST19,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas2.txt b/world/map/npc/xmas/2006/xmas2.txt new file mode 100644 index 00000000..6fbc22bf --- /dev/null +++ b/world/map/npc/xmas/2006/xmas2.txt @@ -0,0 +1,246 @@ +019-1.gat,99,42,0 script Xmas2 105,{ + if(XMASQUEST2 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST2,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas20.txt b/world/map/npc/xmas/2006/xmas20.txt new file mode 100644 index 00000000..488d97f6 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas20.txt @@ -0,0 +1,246 @@ +001-1.gat,55,28,0 script Xmas20 105,{ + if(XMASQUEST20 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST20,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas3.txt b/world/map/npc/xmas/2006/xmas3.txt new file mode 100644 index 00000000..df6094b1 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas3.txt @@ -0,0 +1,246 @@ +020-1.gat,67,62,0 script Xmas3 105,{ + if(XMASQUEST3 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST3,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas4.txt b/world/map/npc/xmas/2006/xmas4.txt new file mode 100644 index 00000000..a873ad76 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas4.txt @@ -0,0 +1,246 @@ +020-3.gat,24,50,0 script Xmas4 105,{ + if(XMASQUEST4 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST4,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas5.txt b/world/map/npc/xmas/2006/xmas5.txt new file mode 100644 index 00000000..ae3829e6 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas5.txt @@ -0,0 +1,246 @@ +020-2.gat,22,32,0 script Xmas5 105,{ + if(XMASQUEST5 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST5,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas6.txt b/world/map/npc/xmas/2006/xmas6.txt new file mode 100644 index 00000000..d119451f --- /dev/null +++ b/world/map/npc/xmas/2006/xmas6.txt @@ -0,0 +1,246 @@ +010-2.gat,92,37,0 script Xmas6 105,{ + if(XMASQUEST6 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST6,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas7.txt b/world/map/npc/xmas/2006/xmas7.txt new file mode 100644 index 00000000..1e38da05 --- /dev/null +++ b/world/map/npc/xmas/2006/xmas7.txt @@ -0,0 +1,246 @@ +003-1.gat,130,66,0 script Xmas7 105,{ + if(XMASQUEST7 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST7,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas8.txt b/world/map/npc/xmas/2006/xmas8.txt new file mode 100644 index 00000000..506ebefe --- /dev/null +++ b/world/map/npc/xmas/2006/xmas8.txt @@ -0,0 +1,246 @@ +007-1.gat,125,37,0 script Xmas8 105,{ + if(XMASQUEST8 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST8,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2006/xmas9.txt b/world/map/npc/xmas/2006/xmas9.txt new file mode 100644 index 00000000..18da309e --- /dev/null +++ b/world/map/npc/xmas/2006/xmas9.txt @@ -0,0 +1,246 @@ +011-4.gat,71,34,0 script Xmas9 105,{ + if(XMASQUEST9 == 1) goto L_only_once; + mes "[Helper Santa]"; + mes "It's Christmas."; + mes "The time for gifts and family reunions"; + next; + + mes "[Helper Santa]"; + mes "You get a gift from me."; + mes "The kind will depend on whether"; + mes "you've been nice or naughty."; + next; + + menu "Want one?",L_nicenaughty,"No thanks.",L_no; + +L_nicenaughty: + set XMASQUEST9,1; + mes "[Helper Santa]"; + mes "In my book you're marked as..."; + next; + set @TEMP,rand(9); + if(@TEMP == 6) goto L_naughty; + goto L_nice; + +L_nice: + mes "[Helper Santa]"; + mes "...nice!"; + set @TEMP,rand(17); + next; + if(@TEMP == 0) goto L_nice_0; + if(@TEMP == 1) goto L_nice_1; + if(@TEMP == 2) goto L_nice_2; + if(@TEMP == 3) goto L_nice_3; + if(@TEMP == 4) goto L_nice_4; + if(@TEMP == 5) goto L_nice_5; + if(@TEMP == 6) goto L_nice_6; + if(@TEMP == 7) goto L_nice_7; + if(@TEMP == 8) goto L_nice_8; + if(@TEMP == 9) goto L_nice_9; + if(@TEMP == 10) goto L_nice_10; + if(@TEMP == 11) goto L_nice_11; + if(@TEMP == 12) goto L_nice_12; + if(@TEMP == 13) goto L_nice_13; + if(@TEMP == 14) goto L_nice_14; + if(@TEMP == 15) goto L_nice_15; + if(@TEMP == 16) goto L_nice_16; + if(@TEMP == 17) goto L_nice_17; + +L_naughty: + mes "[Helper Santa]"; + mes "...naughty!"; + set @TEMP,rand(6); + next; + if(@TEMP == 0) goto L_naughty_0; + if(@TEMP == 1) goto L_naughty_1; + if(@TEMP == 2) goto L_naughty_2; + if(@TEMP == 3) goto L_naughty_3; + if(@TEMP == 4) goto L_naughty_4; + if(@TEMP == 5) goto L_naughty_5; + if(@TEMP == 6) goto L_naughty_6; + +L_naughty_0: + mes "[Helper Santa]"; + mes "Ho ho ho!"; + mes "I borrowed some of your money for"; + mes "my present budget this year."; + set Zeny,Zeny-rand(500,1500); + close; + +L_naughty_1: + mes "[Helper Santa]"; + mes "You will get a spanking"; + next; + mes "[Helper Santa]"; + mes "Remember to be nice to people!"; + gmcommand "@die "; + close; + +L_naughty_2: + mes "[Helper Santa]"; + mes "But I won't mind!"; + mes "Have a char reset as a present." + next; + mes "[Helper Santa]"; + mes "Abracadabra!"; + gmcommand "@charstreset "+strcharinfo(0); + gmcommand "@charskreset "+strcharinfo(0); + close; + +L_naughty_3: + mes "[Helper Santa]"; + mes "You will now get randomly warped!"; + next; + gmcommand "@jump "; + mes "[Helper Santa]"; + mes "Merry Christmas!"; + close; + +L_naughty_4: + mes "[Helper Santa]"; + mes "Your sex will now change!"; + mes "You always get naughty things for naughty things."; + mes "It's karma!"; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@charchangesex "+strcharinfo(0); + close; + +L_naughty_5: + mes "[Helper Santa]"; + mes "I'll now kill all monsters on this map."; + next; + mes "[Helper Santa]"; + mes "Done!"; + gmcommand "@killmonster2 "; + close; + +L_naughty_6: + mes "[Helper Santa]"; + mes "I'll diss you around the server."; + next; + mes "[Helper Santa]"; + mes "Ho ho ho!"; + gmcommand "@kami "+strcharinfo(0)+" is not in the holiday mood."; + close; + +L_nice_0: + mes "[Helper Santa]"; + mes "So you wanted money?."; + set Zeny,Zeny+rand(1,1000000); + close; + +L_nice_1: + mes "[Helper Santa]"; + mes "These hats are really hot now!"; + getitem 1205,1; + close; + +L_nice_2: + mes "[Helper Santa]"; + mes "Axe Hats are always on the cutting edge!"; + getitem 616,1; + close; + +L_nice_3: + mes "[Helper Santa]"; + mes "You just won a Pirate Hat!"; + getitem 617,1; + close; + +L_nice_4: + mes "[Helper Santa]"; + mes "Now you can Goggle all you want."; + getitem 618,1; + close; + +L_nice_5: + mes "[Helper Santa]"; + mes "Let's Goggle all night long!"; + getitem 619,1; + close; + +L_nice_6: + mes "[Helper Santa]"; + mes "You just won a Circlet!"; + getitem 620,1; + close; + +L_nice_7: + mes "[Helper Santa]"; + mes "This patch is not an eyesore."; + getitem 621,1; + close; + +L_nice_8: + mes "[Helper Santa]"; + mes "Bandana time!"; + getitem 622,1; + close; + +L_nice_9: + mes "[Helper Santa]"; + mes "5000 exp!"; + getexp 5000,0; + close; + +L_nice_10: + mes "[Helper Santa]"; + mes "Soft packages are always nice."; + getitem 1202,1; + close; + +L_nice_11: + mes "[Helper Santa]"; + mes "Chuck Norris style!"; + getitem 1203,1; + close; + +L_nice_12: + mes "[Helper Santa]"; + mes "Even Rudolph would be envious now."; + getitem 1204,1; + close; + +L_nice_13: + mes "[Helper Santa]"; + mes "Now you can become a Santa too!"; + getitem 1206,1; + close; + +L_nice_14: + mes "[Helper Santa]"; + mes "Now you can became a Santa too!"; + getitem 511,1; + close; + +L_nice_15: + mes "[Helper Santa]"; + mes "These gloves should keep you warm."; + getitem 564,1; + close; + +L_nice_16: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 624,1; + close; + +L_nice_17: + mes "[Helper Santa]"; + mes "This should keep you warm."; + getitem 564,1; + close; + +L_only_once: + mes "[Helper Santa]"; + mes "You already got one from me."; + close; + +L_no: + mes "[Helper Santa]"; + mes "You're not in the Christmas spirit?"; + mes "I hope you get into this gift extravaganza soon."; + close; +} diff --git a/world/map/npc/xmas/2007/after-xmas.txt b/world/map/npc/xmas/2007/after-xmas.txt new file mode 100644 index 00000000..f7678d98 --- /dev/null +++ b/world/map/npc/xmas/2007/after-xmas.txt @@ -0,0 +1,140 @@ +020-1.gat,78,85,0 script Santa 105,{ + if (QUEST_xmas07_state == 2) goto L_State2; + mes "[Santa Clause]"; + mes "Ho! Ho! Ho!"; + mes "You people from The Mana World"; + mes "were very nice to me. So many"; + mes "milk and cookies for me..."; + next; + + if (QUEST_xmas07_milk + QUEST_xmas07_cookies == 0) goto L_Nothing; + if (QUEST_xmas07_milk + QUEST_xmas07_cookies < 10) goto L_Notenough; + + set @leastItems, $QUEST_xmas07_milk; + if ($QUEST_xmas07_milk > $QUEST_xmas07_cookies) set @leastItems, $QUEST_xmas07_cookies; + if (@leastItems >= 100) set @presents, 1; + if (@leastItems >= 200) set @presents, 2; + if (@leastItems >= 400) set @presents, 3; + if (@leastItems >= 800) set @presents, 4; + if (@leastItems >= 1600) set @presents, 5; + if (@leastItems >= 3200) set @presents, 6; + if (@leastItems >= 6400) set @presents, 7; + if (@leastItems >= 12800) set @presents, 8; + if (@leastItems >= 25600) set @presents, 9; + if (@leastItems >= 51200) set @presents, 10; + if (@leastItems >= 102400) set @presents, 11; + if (@leastItems >= 204800) set @presents, 12; + if (@leastItems >= 409600) set @presents, 13; + if (@leastItems >= 819200) set @presents, 14; + + + mes "[Santa Clause]"; + mes "Now you deserve your presents. I got"; + mes @presents + " presents for you. Do you"; + mes "want them now?"; + next; + menu "Yes! Presents! Presents! Presents!", -, "No, maybe later.", L_Close; + + + L_Givepresent: + if (@presents == QUEST_xmas07_presents) goto L_Enoughpresents; + + mes "[Santa Clause]"; + mes "Let's see what I got for you in my sack...."; + next; + + set QUEST_xmas07_presents, QUEST_xmas07_presents + 1; + set @TEMP,rand(7); + if(@TEMP == 0) goto L_present_0; + if(@TEMP == 1) goto L_present_1; + if(@TEMP == 2) goto L_present_2; + if(@TEMP == 3) goto L_present_3; + if(@TEMP == 4) goto L_present_4; + if(@TEMP == 5) goto L_present_5; + if(@TEMP == 6) goto L_present_6; + + + L_Enoughpresents: + mes "[Santa Clause]"; + mes "That's all I got for you."; + mes "Merry Christmas!"; + set QUEST_xmas07_state, 2; + close; + + L_present_0: + mes "[Santa Clause]"; + mes "Here you got a new funky hat!"; + getitem 628, 1; + next; + goto L_Givepresent; + + L_present_1: + mes "[Santa Clause]"; + mes "Here you got a pompouse top hat!"; + getitem 627, 1; + next; + goto L_Givepresent; + + L_present_2: + mes "[Santa Clause]"; + mes "Here you got a funny elven hat!"; + getitem 633, 1; + next; + goto L_Givepresent; + + L_present_3: + mes "[Santa Clause]"; + mes "Here you got a creepy face mask!"; + getitem 634, 1; + next; + goto L_Givepresent; + + L_present_4: + mes "[Santa Clause]"; + mes "Here you got a stylish mushroom hat!"; + getitem 629, 1; + next; + goto L_Givepresent; + + L_present_5: + mes "[Santa Clause]"; + mes "Here you got an evil mushroom hat!"; + getitem 630, 1; + next; + goto L_Givepresent; + + L_present_6: + mes "[Santa Clause]"; + mes "Here you got a beautiful skirt!"; + getitem 632, 1; + next; + goto L_Givepresent; + + L_State2: + mes "[Santa Clause]"; + mes "Ho! Ho! Ho!"; + mes "I hope you like your presents."; + mes "See you next year."; + close; + + L_Notenough: + mes "[Santa Clause]"; + mes "But you did nothing to help. You"; + mes "only donated " + (QUEST_xmas07_milk + QUEST_xmas07_cookies) + " items and now you"; + mes "want a present while others did"; + mes "all the work? get lost!"; + close; + + L_Nothing: + mes "[Santa Clause]"; + mes "But you did nothing to help. You"; + mes "did not donate one item while"; + mes "others did all the work."; + mes "Get lost!"; + close; + + L_Close: + close; + + +}
\ No newline at end of file diff --git a/world/map/npc/xmas/2007/pre-xmas.txt b/world/map/npc/xmas/2007/pre-xmas.txt new file mode 100644 index 00000000..ba9c7c11 --- /dev/null +++ b/world/map/npc/xmas/2007/pre-xmas.txt @@ -0,0 +1,224 @@ +020-1.gat,76,85,0 script Assistant 105,{ + if (QUEST_xmas07_state == 1) goto L_State1; + + mes "[Santas Assistant]"; + mes "I got really bad news."; + mes "Santa Clause won't come to"; + mes "The Mana World this year."; + next; + menu "Who cares? I don't want any presents.", L_Close, "Why not?", -; + mes "[Santas Assistant]"; + mes "Well, he is in some kind of"; + mes "depression. He says people"; + mes "love him only for his presents"; + mes "and don't really care about"; + mes "him as a person."; + next; + menu "Well, not my problem.", L_Close, "Can't we do something for him?", -; + mes "[Santas Assistant]"; + mes "Well, he really loves milk"; + mes "and cookies. When we would"; + mes "collect a really large pile"; + mes "of milk and cookies he will"; + mes "maybe come and pay us a visit."; + next; + menu "Sorry, I got no time for that.", L_Close, "Great idea! Let's begin.", -; + set QUEST_xmas07_state, 1; + + L_State1: + menu "I got some milk.", L_Exchange_Milk, "I got some cookies.", L_Exchange_Cookies, "How is the collecting going?", L_Status, "Where can I find milk and cookies?", L_Help; + + L_Exchange_Milk: + if (countitem(527) == 0) goto L_Exchange_Gotnothing; + mes "[Santas Assistant]"; + mes "Aaaaah, " + countitem(527) + " milk."; + mes "Thanks for your contribution."; + set QUEST_xmas07_milk, QUEST_xmas07_milk + countitem(527); + set $QUEST_xmas07_milk, $QUEST_xmas07_milk + countitem(527); + delitem(527), countitem(527); + close; + + L_Exchange_Cookies: + if (countitem(635) == 0) goto L_Exchange_Gotnothing; + mes "[Santas Assistant]"; + mes "Aaaaah, " + countitem(635) + " cookies."; + mes "Thanks for your contribution."; + set QUEST_xmas07_cookies, QUEST_xmas07_cookies + countitem(635); + set $QUEST_xmas07_cookies, $QUEST_xmas07_cookies + countitem(635); + delitem(635), countitem(635); + close; + + L_Help: + mes "[Santas Assistant]"; + mes "Milk is dropped by santa slimes and fluffies."; + mes "You can find Santa slimes on the"; + mes "snow field to the south and fluffies"; + mes "at the coast south of Hurnscald."; + next; + mes "[Santas Assistant]"; + mes "Rudolph and Santa slimes"; + mes "always bring some cookies with them."; + close; + + L_Exchange_Gotnothing: + mes "[Santas Assistant]"; + mes "Actually, you don't seem to have any."; + close; + + L_Status: + mes "[Santas Assistant]"; + mes "OK, thus far you brought me"; + mes QUEST_xmas07_milk + " packets of milk and"; + mes QUEST_xmas07_cookies + " christmas cookies."; + mes "All people together brought"; + mes $QUEST_xmas07_milk + " packets of milk and"; + mes $QUEST_xmas07_cookies + " christmas cookies."; + next; + mes "[Santas Assistant]"; + set @leastItems, $QUEST_xmas07_milk; + if ($QUEST_xmas07_milk > $QUEST_xmas07_cookies) set @leastItems, $QUEST_xmas07_cookies; + if (@leastItems >= 819200) goto L_Present14; + if (@leastItems >= 409600) goto L_Present13; + if (@leastItems >= 204800) goto L_Present12; + if (@leastItems >= 102400) goto L_Present11; + if (@leastItems >= 51200) goto L_Present10; + if (@leastItems >= 25600) goto L_Present9; + if (@leastItems >= 12800) goto L_Present8; + if (@leastItems >= 6400) goto L_Present7; + if (@leastItems >= 3200) goto L_Present6; + if (@leastItems >= 1600) goto L_Present5; + if (@leastItems >= 800) goto L_Present4; + if (@leastItems >= 400) goto L_Present3; + if (@leastItems >= 200) goto L_Present2; + if (@leastItems >= 100) goto L_Present1; + mes "I guess that won't impress santa"; + mes "much. We need at least 100 of"; + mes "both to make him come to us."; + close; + + L_Present1: + mes "This means santa will bring"; + mes "everyone a present. When we"; + mes "can collect 200 of each he"; + mes "will maybe give everyone two"; + mes "presents."; + close; + + L_Present2: + mes "This means santa will bring"; + mes "everyone two presents. When we"; + mes "can collect 400 of each he"; + mes "will maybe give everyone three"; + mes "presents."; + close; + + L_Present3: + mes "This means santa will bring"; + mes "everyone three presents. When we"; + mes "can collect 800 of each he"; + mes "will maybe give everyone four"; + mes "presents."; + close; + + L_Present4: + mes "This means santa will bring"; + mes "everyone four presents. When we"; + mes "can collect 1600 of each he"; + mes "will maybe give everyone five"; + mes "presents."; + close; + + L_Present5: + mes "This means santa will bring"; + mes "everyone five presents. When we"; + mes "can collect 3200 of each he"; + mes "will maybe give everyone six"; + mes "presents."; + close; + + L_Present6: + mes "This means santa will bring"; + mes "everyone six presents. When we"; + mes "can collect 6400 of each he"; + mes "will maybe give everyone seven"; + mes "presents."; + close; + + L_Present7: + mes "This means santa will bring"; + mes "everyone seven presents. When we"; + mes "can collect 12800 of each he"; + mes "will maybe give everyone eight"; + mes "presents."; + close; + + L_Present8: + mes "This means santa will bring"; + mes "everyone eight presents. When we"; + mes "can collect 25600 of each he"; + mes "will maybe give everyone nine"; + mes "presents."; + close; + + L_Present9: + mes "This means santa will bring"; + mes "everyone nine presents. When we"; + mes "can collect 51200 of each he"; + mes "will maybe give everyone ten"; + mes "presents."; + close; + + L_Present10: + mes "Over fiftythousand of both?"; + mes "Did you guys hire some chinese"; + mes "gold farmers?"; + mes "This means santa will bring"; + mes "everyone ten presents. When we"; + mes "can collect 102400 of each he"; + mes "will maybe give everyone eleven"; + mes "presents."; + close; + + L_Present11: + mes "What? You guys broke the"; + mes "hundredthousand item limit??"; + mes "This means santa will bring"; + mes "everyone eleven presents. When we"; + mes "can collect 204800 of each he"; + mes "will maybe give everyone twelve"; + mes "presents."; + close; + + L_Present12: + mes "Another hundredthousand of each?"; + mes "You guys really have no live!"; + mes "This means santa will bring"; + mes "everyone twelfe presents. When we"; + mes "can collect 404800 of each he"; + mes "will maybe give everyone thirteen"; + mes "presents."; + close; + + L_Present13: + mes "What the f...? Four Hundred Thousand???"; + mes "There is no way people collected"; + mes "that many stuff in just a week."; + mes "This means santa will bring"; + mes "everyone thirteen presents. When we"; + mes "can collect 819200 of each he"; + mes "will maybe give everyone fourteen"; + mes "presents."; + close; + + L_Present14: + mes "OK, OK, you guys found a bug"; + mes "to cheat the christmas event"; + mes "this year. You will each get"; + mes "fourteen presents."; + mes "But this is really enough."; + mes "Are you happy now?"; + close; + + L_Close: + close; +} diff --git a/world/map/npc/xmas/2008/event.txt b/world/map/npc/xmas/2008/event.txt new file mode 100644 index 00000000..5ac1be37 --- /dev/null +++ b/world/map/npc/xmas/2008/event.txt @@ -0,0 +1,604 @@ +// + +020-1.gat,78,85,0 script Santa 105,{ + mes "[Santa Claus]"; + mes "\"Ho! Ho! Ho!\""; + next; + + if (QUEST_xmas08_state == 0) goto L_SantaStart; + if (QUEST_xmas08_state & (1 << 10)) goto L_SantaFinished; + + mes "[Santa Claus]"; + mes "\"So, how are we doing?\""; + next; + menu "I've found them all!", L_SantaCheck, "I still have a few to find.", -, "What am I doing again?", L_SantaExplain; + mes "[Santa Claus]"; + mes "\"Well that's okay."; + mes "Please do keep searching!\""; + close; + +L_SantaCheck: + if (QUEST_xmas08_state & 0x3FF == 0x3FF) goto L_SantaComplete; + mes "[Santa Claus]"; + mes "\"Ah now, please don't lie to me, I don't want to have to put you on my naughty list!\""; + close; + +L_SantaComplete: + mes "[Santa Claus]"; + mes "\"Splendid!"; + mes "I knew I could count on you to find them all.\""; + next; + mes "[Santa Claus]"; + mes "\"Now, let me see what I have here for you.\""; + next; + mes "Santa fumbles around in a large sack and pulls out a Mouboo head hat!"; + getitem 1216,1; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 10); + next; + mes "[Santa Claus]"; + mes "\"I thought you'd like that."; + mes "It's a very good likeness, don't you think?\""; + next; + mes "[Santa Claus]"; + mes "\"Well now, since I know all my Reinboo are safe,"; + mes "I can get back to giving out presents to the people of The Mana World.\""; + next; + mes "[Santa Claus]"; + mes "\"Once again, thank you very much for helping me out."; + mes ""; + mes "Merry Christmas!\""; + close; + +L_SantaExplain: + mes "[Santa Claus]"; + mes "\"Well you agreed to help me find all nine of my lost Reinboo."; + mes "Until I know they're all safe and well I don't feel able to give out any presents.\""; + close; + + +L_SantaStart: + mes "[Santa Claus]"; + mes "\"I came all this way to bring presents to the people of The Mana World,"; + mes "but it seems my reinboo's have all got lost!\""; + next; + mes "[Santa Claus]"; + mes "\"So you see I won't be able to give out any presents until I know they're all safe and well."; + mes ""; + if (BaseLevel < 20) goto L_SantaYoung; + mes "Will you help me find all nine of them, please?\""; + next; + menu "Of course I will, Santa!", L_SantaStartYes, "Sorry, I have better things to do.", -; + close; + +L_SantaYoung: + mes "\"I'd ask you to help me find them, but I think you're still a bit young.\""; + close; + +L_SantaStartYes: + set QUEST_xmas08_state, QUEST_xmas08_state | 1; + mes "[Santa Claus]"; + mes "\"Oh that is excellent news!"; + mes "Thank you.\""; + next; + mes "Santa shakes your hand with delight."; + close; + + +L_SantaFinished: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Santa Claus]"; + mes "\"Ahh, it's so great to see everyone's smiles when they open a present, don't you think?\""; + close; + +L_Chat2: + mes "[Santa Claus]"; + mes "\"Did I remember to get Mrs. Claus something?"; + mes "Oh dear, I can't remember if I did.\""; + close; +} + +//Reinboo Locations - for temp reference. +//004-1 51 25 +//005-1 178 41 +//009-3 23 105 +//012-1 47 38 +//013-1 130 21 +//014-1 91 19 +//015-1 50 76 +//016-1 33 87 +//020-1 98 116 + +004-1.gat,51,25,0 script Dasher 170,{ + if (QUEST_xmas08_state & (1 << 1)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + mes "[Dasher]"; + mes "\"Say, you smell like Santa Claus."; + mes ""; + mes "You don't look much like him though.\""; + next; + menu "Santa asked me to help find you.", -; + mes "[Dasher]"; + mes "\"Oh well, in that case you can tell him that I'm right here and I'm fine."; + mes ""; + mes "I suppose I should explain how I got here really.\""; + next; + mes "[Dasher]"; + mes "\"I was flying about with a few other Reinboo after we got here,"; + mes "we were playing games, any way I got rather tired of flying and ended up having to land in this area."; + mes "So I need to rest up for a while before I can make it back to Santa.\""; + next; + menu "Okay, I'll Santa that when I see him."; + mes "[Dasher]"; + mes "\"Thank you and Merry Christmas!\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 1); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Dasher]"; + mes "\"It sure is hot out here in the desert.\""; + close; + +L_Chat2: + mes "[Dasher]"; + mes "\"I wonder what Santa got me for Christmas.\""; + close; +} + +005-1.gat,178,41,0 script Dancer 170,{ + if (QUEST_xmas08_state & (1 << 2)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + mes "[Dancer]"; + mes "\"Hrmm, you smell quite like Santa Claus.\""; + next; + menu "I've been sent by Santa to find you.", -; + mes "[Dancer]"; + mes "\"Oh I see."; + mes "I'm just doing a bit of sight seeing, I haven't been to The Mana World before."; + mes ""; + mes "The snakes down there seem to lack the Christmas spirit so I'm walking around up here.\""; + next; + mes "[Dancer]"; + mes "\"If you could, can you tell Santa that I'm okay and I'll be back shortly?\""; + next; + menu "Sure!", -; + mes "[Dancer]"; + mes "\"Great!"; + mes "Happy Christmas!\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 2); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Dancer]"; + mes "\"Let's see, I've been around the forest and I'm nearly done with the desert now."; + mes "I guess after that it's back up to Santa.\""; + close; + +L_Chat2: + mes "[Dancer]"; + mes "\"The snakes don't seem to understand a word I'm saying.\""; + close; +} + +009-3.gat,23,105,0 script Prancer 170,{ + if (QUEST_xmas08_state & (1 << 3)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + mes "[Prancer]"; + mes "\"Santa?\""; + next; + mes "[Prancer]"; + mes "\"No, wait you're not Santa Claus.\""; + next; + menu "Santa sent me to find you!", -; + mes "[Prancer]"; + mes "\"Oh really?"; + mes "That's good to know.\""; + next; + menu "How did you get down here by the way?", -; + mes "[Prancer]"; + mes "\"To be honest with you I have absolutely no idea."; + mes "But I'm perfectly fine."; + mes "If Santa could come and help me out of here, that would be nice.\""; + next; + menu "Okay, I'll tell him.", -; + mes "[Prancer]"; + mes "\"Thank you!\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 3); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Prancer]"; + mes "\"It's rather cold down here, it's a good job I have that fire to warm myself with.\""; + close; + +L_Chat2: + mes "[Prancer]"; + mes "\"I still can't remember how I ended up down here.\""; + close; +} + +012-1.gat,47,38,0 script Vixen 170,{ + if (QUEST_xmas08_state & (1 << 4)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + mes "[Vixen]"; + mes "\"Hello there."; + mes "What can I do for you?\""; + next; + menu "I'm finding all the Reinboo for Santa!", -; + mes "[Vixen]"; + mes "\"You came all the way up here just to find me?"; + mes "Wow, you must be such a nice person to do that!\""; + next; + mes "[Vixen]"; + mes "\"Hrmm, I guess Santa must be a bit worried though."; + mes "Could you tell him where I am and that I'm okay?\""; + next; + menu "Sure thing.", -; + mes "[Vixen]"; + mes "\"Thank you very much."; + mes ""; + mes "Merry Christmas!\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 4); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Vixen]"; + mes "\"What a lovely view you get from here!\""; + close; + +L_Chat2: + mes "[Vixen]"; + mes "\"I hope walking up here didn't tire you out.\""; + close; +} + +013-1.gat,130,21,0 script Comet 170,{ + if (QUEST_xmas08_state & (1 << 5)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + mes "[Comet]"; + mes "\"Erm.. Hi!"; + mes "Why do you smell like Santa?\""; + next; + menu "Probably because he shook my hand.", -; + mes "[Comet]"; + mes "\"Oh, so you've been talking to him have you."; + mes ""; + mes "No don't say it, let me guess.\""; + next; + mes "[Comet]"; + mes "\"Santa has sent you to find all of his Reinboo because he's lost them."; + mes "Is that about right?\""; + next; + menu "Yup, that's it!", -; + mes "[Comet]"; + mes "\"It's happened before, long story."; + mes ""; + mes "So yeah, just tell him that I'm here, I'll make my way back to him later.\""; + next; + menu "Okay, I will.", -; + mes "[Comet]"; + mes "\"So I suppose you'd like to know how I ended up... wherever I am.\""; + next; + mes "[Comet]"; + mes "\"A few of us were flying about, as we do."; + mes "Then this big gust of wind came and carried me over this forest!"; + mes "I was forced to land just down there on the road."; + mes "I've just had a quick nap and I'll try and make it back to Santa soon.\""; + next; + menu "Ah right, well I'll tell Santa that too.", -; + mes "[Comet]"; + mes "\"Okay, thanks for finding me."; + mes "Merry Christmas!\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 5); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Comet]"; + mes "\"I'll tell you what, these flowers taste nice.\""; + close; + +L_Chat2: + mes "[Comet]"; + mes "\"I wonder where the others are?\""; + close; +} + +014-1.gat,91,19,0 script Cupid 170,{ + if (QUEST_xmas08_state & (1 << 6)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + menu "Hi, Santa sent me to find you.", -; + mes "[Cupid]"; + mes "\"Hi!"; + mes "Santa sent you to find me? Why what's happened?\""; + next; + menu "All of the Reinboo have gone missing!", -; + mes "[Cupid]"; + mes "\"Oh dear, I thought I was the only one who went off to explore."; + mes ""; + mes "I thought it would be nice to explore the forests around here."; + mes "We don't have forests like this where I live.\""; + next; + menu "What do the forests where you live look like?", -; + mes "[Cupid]"; + mes "\"Did you see the Christmas tree by Santa?"; + mes "It's pretty much all like that, of course we decorated the tree Santa is next to.\""; + next; + menu "I'll tell Santa you're here then, okay?", -; + mes "[Cupid]"; + mes "\"Yes, please do."; + mes "Oh, Happy Christmas!\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 6); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Cupid]"; + mes "\"Do you think there is any fish in this river.\""; + close; + +L_Chat2: + mes "[Cupid]"; + mes "\"I wonder what Santa looks like without a beard.\""; + close; +} + +015-1.gat,50,76,0 script Donner 170,{ + if (QUEST_xmas08_state & (1 << 7)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + menu "Hi, Santa sent me to find you.", -; + mes "[Donner]"; + mes "\"Santa? Tell Santa I won't work for him anymore.\""; + next; + menu "Why?", -; + mes "[Donner]"; + mes "\"I got enough of that fat bum. We have to pull him all around the globe and he gets all the praise.\""; + next; + mes "[Donner]"; + mes "\"Do you know how heavy that guy is? He also pays bad and we always have to work on holidays.\""; + next; + menu "But Santa needs you!", -; + mes "[Donner]"; + mes "\"Really? What would he do to persuade me to keep working for him?\""; + next; + menu "How about a 5% raise?",-; + mes "[Donner]"; + mes "\"I think someone with my work experience deserves more than that.\""; + next; + menu "Then a 10% raise?",-; + mes "[Donner]"; + mes "\"Sounds better."; + mes "But I think I can find someone else in the present delivery industry who is willing to pay that."; + mes "I've heard the easter bunnies are hiring...\""; + next; + menu "How about a health plan?",-; + mes "[Donner]"; + mes "\"Including dental care?\""; + next; + menu "Sure.",-; + mes "[Donner]"; + mes "\"And full sickness pay?\""; + next; + menu "I am pretty sure he will agree to that.",-; + mes "[Donner]"; + mes "\"OK, tell Santa I will come back to work tomorrow.\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 7); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Donner]"; + mes "\"Santa had better pull through on this deal.\""; + close; + +L_Chat2: + mes "[Donner]"; + mes "\"I wonder if I could get more holiday as well.\""; + close; +} + +016-1.gat,33,87,0 script Blitzen 170,{ + if (QUEST_xmas08_state & (1 << 8)) goto L_ChatReinboo; + + mes "[Blitzen]"; + mes "\"HIC!...HIC!....HIC!...\""; + next; + mes "The Reinboo staggers and almost falls down, but catches itself in the last moment."; + next; + mes "[Blitzen]"; + mes "\"Oh boy, I don't feel well.\""; + + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + close; + +L_FoundReinboo: + next; + menu "Are you alright?",-; + mes "[Blitzen]"; + mes "\"Are you... are y-you... are you santa?\""; + next; + menu "No, but he sent me to search for you.",-; + mes "[Blitzen]"; + mes "\"I... I was searching for S-Santa aaaaall around."; + mes "...went to pub HIC! to warm myself HIC!\""; + next; + mes "[Blitzen]"; + mes "\"The nice man gave me warm drink HIC!\""; + next; + mes "[Blitzen]"; + mes "\"First mug tasted strange HIC! Second better HIC! Third really good HIC\""; + next; + mes "[Blitzen]"; + mes "\"After the fourth mug everything started spinning.\""; + next; + mes "[Blitzen]"; + mes "\"No idea what happened then.\""; + next; + mes "[Blitzen]"; + mes "\"HIC!\""; + next; + menu "You are drunk.",-; + mes "[Blitzen]"; + mes "\"Seems so.\""; + next; + menu "I will show you the way to Santa",-; + mes "[Blitzen]"; + mes "\"Th...Thank you.\""; + next; + mes "[Blitzen]"; + mes "\"I think I will find the way now... I hope.\""; + next; + mes "[Blitzen]"; + mes "\"HIC!\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 8); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Blitzen]"; + mes "\"Ooooh, my head!\""; + close; + +L_Chat2: + mes "[Blitzen]"; + mes "\"I promise, I will stop drinking. I know I can do it. I did it a hundred times.\""; + close; +} + +020-1.gat,98,116,0 script Rudolf 170,{ + if (QUEST_xmas08_state & (1 << 9)) goto L_ChatReinboo; + if (QUEST_xmas08_state & 1) goto L_FoundReinboo; + + mes "The Reinboo seems to ignore you"; + close; + +L_FoundReinboo: + menu "Hi!", -; + mes "[Rudolf]"; + mes "\"No, I'm not doing autographs!\""; + next; + menu "No, that's not what I was going to say.", -; + mes "[Rudolf]"; + mes "\"Well then what do you want?"; + mes "I am very busy you know.\""; + next; + menu "I'm helping Santa find his Reinboo.", -; + mes "[Rudolf]"; + mes "\"Congratulations you found me."; + mes "Anything else?\""; + next; + menu "Umm... Are you okay?", -; + mes "[Rudolf]"; + mes "\"What do you mean by that?\""; + next; + menu "You just seem a bit edgy.", -; + mes "[Rudolf]"; + mes "\"Well if you had to put with being the 'famous one' you'd understand.\""; + next; + mes "[Rudolf]"; + mes "\"It's hard to get time to myself, you know?."; + mes ""; + mes "People don't even leave me alone when I doing my shopping.\""; + next; + mes "[Rudolf]"; + mes "\"Erm... yeah."; + mes "Sorry, I should just save all that for my therapist.\""; + next; + menu "It's okay. I'll tell Santa you're here, alright?", -; + mes "[Rudolf]"; + mes "\"Yeah, okay."; + mes "Take care.\""; + set QUEST_xmas08_state, QUEST_xmas08_state | (1 << 9); + close; + +L_ChatReinboo: + set @TEMP,rand(2); + if(@TEMP == 0) goto L_Chat1; + if(@TEMP == 1) goto L_Chat2; + +L_Chat1: + mes "[Rudolf]"; + mes "\"You know the song about me?"; + mes "Yeah, well I don't get a penny from it.\""; + close; + +L_Chat2: + mes "[Rudolf]"; + mes "\"Can I have some space please?.\""; + close; +}
\ No newline at end of file diff --git a/world/map/npc/xmas/2009/event.txt b/world/map/npc/xmas/2009/event.txt new file mode 100644 index 00000000..4e78b38a --- /dev/null +++ b/world/map/npc/xmas/2009/event.txt @@ -0,0 +1,131 @@ +020-1.gat,78,85,0 script Santa 105,{ + if (QUEST_Christmas09_state > 0) goto L_Finished; + + set @cond, 0; + if (countitem(1234) > 0) set @cond, @cond + 1; + if (countitem(1235) > 0) set @cond, @cond + 1; + if (countitem(1236) > 0) set @cond, @cond + 1; + if (countitem(1237) > 0) set @cond, @cond + 1; + if (countitem(1238) > 0) set @cond, @cond + 1; + if (countitem(1239) > 0) set @cond, @cond + 1; + + if (@cond == 6) goto L_Give; + + if ((strcharinfo(0) == "xxDimondXX")) goto L_LUMP_OF_COAL; + if (SANTA == 0 && BaseLevel <= 30) goto L_SANTA_TOO_YOUNG; + +L_SANTA_Start: + if (Sex) + set @honorific$, "Young Hero"; + if (!Sex) + set @honorific$, "Young Heroine"; + + mes "[Santa Claus]"; + mes "\"ho-hum ho-hum ho-hum, I'm sorry, " + @honorific$ + " Not really in the Christmas spirit."; + mes "That Evil Jack Frost has stolen all the Christmas ornaments!"; + mes "He will never get off the Naughty List!"; + mes "How can we have Christmas without a proper Christmas tree?\""; + mes "\"The Elves are too depressed to work"; + mes "Christmas will be ruined!\""; + next; + menu + "Christmas is all about money anyway!, Bah-Humbug!.", L_SANTA_DISAPPOINTED, + "There must be something that can be done!", L_SANTA_DESCRIBE_QUEST; + close; + + + +L_Message: + mes "[Santa Claus]"; + mes "\"Say, Why don't you help me?"; + mes "In fact, You are just the " + @honorific$ + " I am looking for!\""; + mes "\"What do you say, will you help save Christmas?\""; + next; + menu + "No way, you should have had elves guarding the tree!.", L_SANTA_DISAPPOINTED, + "Of course I will help save Christmas", L_SANTA_DESCRIBE_QUEST; + close; + +L_SANTA_DESCRIBE_QUEST: + mes "[Santa Claus]"; + mes "\"Jack Frost hid the ornaments with monsters all over the world.\""; + mes "\"When you recover 6 different kinds of ornaments I will"; + mes "give you some special gifts!\""; + if (@cond > 0) mes "You already have found "+@cond+" different ornaments!"; + close; + +L_Give: + getinventorylist; + set @freeslots, 100 - @inventorylist_count; + if (countitem(1234) <= 1) set @freeslots, @freeslots + 1; + if (countitem(1235) <= 1) set @freeslots, @freeslots + 1; + if (countitem(1236) <= 1) set @freeslots, @freeslots + 1; + if (countitem(1237) <= 1) set @freeslots, @freeslots + 1; + if (countitem(1238) <= 1) set @freeslots, @freeslots + 1; + if (countitem(1239) <= 1) set @freeslots, @freeslots + 1; + if (@freeslots < 3) goto L_NoRoom; + delitem 1234, 1; + delitem 1235, 1; + delitem 1236, 1; + delitem 1237, 1; + delitem 1238, 1; + delitem 1239, 1; + mes "[Santa Claus]"; + mes "\"I knew I could count on you!:"; + mes "Please accept these small gifts:"; + mes "The official Christmas 2009 headgear!"; + mes "And a little something from the elves to say Thank You!"; + mes "Ho Ho Ho Merry Christmas!\""; + getitem 1242, 1; + setarray @snowglob$, "SantaSnowGlobe", "SnowmanSnowGlobe"; + getitem @snowglob$[rand(getarraysize(@snowglob$))], 1; + setarray @oldstock$, "SantaBeardHat", "ChristmasTreeHat", "Goggles", "LeatherGoggles", "AntlerHat"; + getitem @oldstock$[rand(getarraysize(@oldstock$))], 1; + mes ""; + mes "[You received 20,000 experience points!]"; + mes "[You received 20,000 gold!]"; + getexp 20000, 0; + set zeny, zeny + 20000; + set QUEST_Christmas09_state, 1; + close; + +L_NoRoom: + mes "[Santa Claus]"; + mes ""; + mes "\"Oh dear, it seem you don't have enough space for everything. If you can make space for"; + mes "a few more things, I'll have some goodies for you...\""; + close; + +L_Finished: + mes "[Santa Claus]"; + mes "\"You already completed the quest."; + mes "But maybe you are feeling the Christmas Spirit,"; + mes "And would like to help others complete it too?\""; + close; + +L_LUMP_OF_COAL: + mes "[Santa Claus]"; + mes "\"Hi "+strcharinfo(0)+",You are on the Naughty list."; + mes "Maybe you teased developers too much in IRC?,"; + mes "Maybe at the quests end you will only get a lump of coal?\""; + close; + next; + menu + "No way I'm doing this quest for a lump of coal!", close, + "I Dimond D. Stone promise to be nice in IRC.", L_SANTA_DESCRIBE_QUEST; + close; + +L_SANTA_TOO_YOUNG: + mes "[Santa Claus]"; + mes "\"You are just too young for such a heroic quest, off with you now...\""; + close; + +L_SANTA_DISAPPOINTED: + mes "[Santa Claus]"; + mes "\"Too bad, " + @honorific$ + " , you've been on the NICE LIST since you were 3.\""; + close; + +} + + + diff --git a/world/map/npc/xmas/2010/_import.txt b/world/map/npc/xmas/2010/_import.txt new file mode 100644 index 00000000..e68c6992 --- /dev/null +++ b/world/map/npc/xmas/2010/_import.txt @@ -0,0 +1,2 @@ +npc: npc/xmas/2010/santa.txt +npc: npc/xmas/2010/golbanez.txt diff --git a/world/map/npc/xmas/2010/golbanez.txt b/world/map/npc/xmas/2010/golbanez.txt new file mode 100644 index 00000000..f5a0e01b --- /dev/null +++ b/world/map/npc/xmas/2010/golbanez.txt @@ -0,0 +1,322 @@ +//################################################################################# +//# +//# Golbanez for Christmas 2010 +//# +//# Authors: alastrim, PjotrOrial +//# +//# reviewed by: +//# +//# This is Golbanez, he took Santa Claus as a hostage. +//# Santa will be accessible only if players give what golbenez want. +//# if the player reach santa, he will donate some stuff to the players. +//# +//################################################################################# + +// Please, remove the debug script bofore releasing the quest. + +//031-3.gat,215,294,0 script Debug 204,{ + +// mes "What you want to do?"; +// menu +// "Change 'Maze'",-, +// "Change Golbenez_Inn_Cost(Your Donations)",_cost, +// "Change Xmas2010",_xmas, +// "Clean all variables.",_clean, +// "Nothing",_end; + +// mes "Old Value: " + Maze; +// input Maze; +// mes "New Value: " + Maze; +// close; + +//_xmas: +// mes "Old Value: " + Xmas2010; +// input Xmas2010; +// mes "New Value: " + Xmas2010; +// close; + +//_cost: +// mes "Old Value: " + Golbenez_Inn_Cost; +// input Golbenez_Inn_Cost; +// mes "New Value: " + Golbenez_Inn_Cost; +// close; + +//_clean: +// mes "Golbenez_Inn_Cost Old Value: " + Golbenez_Inn_Cost; +// set Golbenez_Inn_Cost, 0; +// mes "Golbenez_Inn_Cost New Value: " + Golbenez_Inn_Cost; +// mes "Maze Old Value: " + Maze; +// set Maze, 0; +// mes "Maze New Value: " + Maze; +// mes "Xmas2010 old value: " + Xmas2010; +// set Xmas2010, 0; +// mes "Xmas2010 New Value: " + Xmas2010; +// mes "Yellow Old Value: " + Yellow; +// set Silver, 0; +// mes "Yellow New Value: " + Yellow; +// mes "White Old Value: " + White; +// set Golden, 0; +// mes "White New Value: " + White; +// mes "Count_White Old Value: " + Count_White; +// set Count_White, 0; +// mes "Count_White New Value: " + Count_White; +// mes "Count_Yellow Old Value: " + Count_Yellow; +// set Count_Yellow, 0; +// mes "Count_Yellow New Value: " + Count_Yellow; + + +// close; + +//_end: +// close; + +//} + +031-3.gat,215,296,0 script #Golbenez#_M 204,{ + + if (Golbenez_Inn_Cost >= 5000000) goto Glb_Inn_Enough; + if (Xmas2010 > 0) goto L_Intro; + if (BaseLevel < 40) goto L_Young; + + mes "[Golbenez]"; + mes "\"Mortal! I am Golbenez! I have broken through the barriers of space and time!\""; + next; + mes "\"Well to let you know, I have taken Santa Claus hostage.\""; + next; + mes "\"This may sound hard to you... But I need lots of stuff for building the way to place of leisure."; + next; + mes "\"So if you want to have gifts at Christmas... we should make a deal: Bring me money."; + next; + menu + "But I am broke!",L_Broke, + "Ok, but how much do you need?",-; + mes "[Golbenez]"; + mes "\"Not much. A few millions would do!\""; + next; + menu + "WHAT! But no one has so much money!",-, + "Ehh... I dont like Christmas anyway... Bye!",L_Close; + + mes "[Golbenez]"; + mes "\"Hey, you think I dont know about your inflation problems? Dont try to fool me, you must be filthy rich!\""; + next; + menu + "Ok, you got me. Im rich!",-, + "Im not rich! But is there any other way to help you?",-; + + mes "[Golbenez]"; + mes "\"Well... What I really want is money, but I can propose a different way to help Santa. When I took Santa as hostage he tried to resist and, in the process of submitting him by force, a lot of present boxes were dropped in the ground.\""; + next; + mes "\"I was intrigued by those boxes... They were Yellow and White. When I finally took control of the situation, I noticed that the monsters in the cave stole all the Boxes! Now, here is my idea: if you get ALL the boxes back to me, I can release santa.\""; + next; + mes "\"Im willing to consider a conversion of each Present Box donated to an amount in Gold Pieces. So, a Yellow Present is equivalent to 50.000 Gold Pieces and a White Present, 100.000 Gold Pieces. I am pretty sure he dropped 40 Yellow and 30 White boxes. So, if you bring me all of them, it would be equivalent to 5 million Gold Pieces, exactly what I was going to ask you.\""; + next; + mes "\"But don't be a fool. You will find these presents only with the monsters in the Ice Cave where Santa is hidden.\""; + next; + mes "\"So, bring me Money and/or Present Boxes and Santa can be released. Now, there is one more thing. Santa is in a very complicated Ice Cave in nivalis. I can control all the entrances in this cave. And I will only let you reach Santa after you pay me what I want.\""; + next; + mes "\"If you choose to find the present boxes, instead of paying in Gold Pieces, it is going to be easier for you if you bring them in small lots. Don't wait until you have everything. Remember: The more you give me, the closer you can get to santa.\""; + next; + +L_Intro: + if (Xmas2010 == 0) set Xmas2010, 1; + mes "\"So far, you have brought presents and money in a total value of " + Golbenez_Inn_Cost + " gold pieces. The people of your world have brought me " + $Golbenez_Inn_Cost + " gold pieces. What would you like to give?\""; + +L_Menu: + + menu + "I'd like to spend some money.", Glb_money, + "I'd like to give some Yellow presents.", -, + "I'd like to give some White presents.", -, + "Why do you want present boxes?",Glb_whypresents, + "Can I bring other items?", Glb_otheritems, + "Nevermind.", Glb_nvm; + + // in this array the items should be filled in. Remember to change the ID when the boxes are added to item_db. + set @menuitem[2], 4021; + set @menuitem[3], 4022; + set @menuvalue[2], 50000; + set @menuvalue[3], 100000; + + mes "\"How many presents do you want to give?\""; + + input @count; + + if (countitem(@menuitem[@menu]) < @count ) goto Glb_noitems; + if (@menuitem[@menu] == 4021) goto L_Check_Yellow; + if (@menuitem[@menu] == 4022) goto L_Check_White; + +L_Check_Yellow: + // If you have already donated more than you have collected in the right way (Via script), + // then whatever you have donated so far will remain, but if you have some spare boxes, + // it will be not possible to give it. + if (Count_Yellow > Yellow) set Yellow, Count_Yellow; + if (Count_Yellow + @count > Yellow) goto L_Fail_Box; + + if (Count_Yellow >= 40) goto L_Done_Yellow; + if (@count > Yellow) goto L_Fail_Box; + delitem @menuitem[@menu], @count; + set Count_Yellow, Count_Yellow + @count; + set @Give, (@count * @menuvalue[@menu]); + goto Golbenez_pay_presents; + +L_Check_White: + // If you have already donated more than you have collected in the right way (Via script), + // then whatever you have donated so far will remain, but if you have some spare boxes, + // it will be not possible to give it. + if (Count_White > White) set White, Count_White; + if (Count_White + @count > White) goto L_Fail_Box; + + if (Count_White >= 30) goto L_Done_White; + if (@count > White) goto L_Fail_Box; + delitem @menuitem[@menu], @count; + set Count_White, Count_White + @count; + set @Give, (@count * @menuvalue[@menu]); + goto Golbenez_pay_presents; + +L_Fail_Box: + mes "[Golbenez]"; + mes "\"How did you get those present boxes? I am monitoring the cave and I do not remember to see you getting this by yourself. I do not like this.\""; + close; + +L_Done_Yellow: + mes "[Golbenez]"; + mes "\"You already gave me all the Yellow Boxes that I wanted. I don't even want to know how you got these boxes.\""; + close; + +L_Done_White: + mes "[Golbenez]"; + mes "\"You already gave me all the White Boxes that I wanted. I don't even want to know how you got these boxes.\""; + close; + +Glb_money: + input @Give; + if (@Give <= 0) close; + if (zeny < @Give) goto Glb_Inn_NotEnoughZeny; + goto Golbenez_pay; + +Glb_checkGlAn: + set @glob_an$ , "Golbenez: " + strcharinfo(0) + " accounted to free santa"; + + // depending on the absolute amount setup another global announcement. + if( @Give >3000000 ) goto Golbenez_an_5; + if( @Give > 2000000 ) goto Golbenez_an_4; + if( @Give > 1000000 ) goto Golbenez_an_3; + if( @Give > 700000 ) goto Golbenez_an_2; + if( @Give > 350000 ) goto Golbenez_an_1; + if (Golbenez_Inn_Cost < 5000000) goto L_Needmore; + if (Golbenez_Inn_Cost >= 5000000) goto Glb_Inn_Enough; + close; + +Golbenez_an_1: + set @glob_an$, @glob_an$ + " with a great effort."; + goto Golbenez_an; + +Golbenez_an_2: + set @glob_an$, @glob_an$ + " with an honest contribution."; + goto Golbenez_an; + +Golbenez_an_3: + set @glob_an$, @glob_an$ + " with a great effort. Such a generous person."; + goto Golbenez_an; + +Golbenez_an_4: + set @glob_an$, @glob_an$ + " with a remarkable effort. Impressive!"; + goto Golbenez_an; + +Golbenez_an_5: + set @glob_an$, @glob_an$ + " with a huge effort. What a honorable donation!"; + goto Golbenez_an; + +Golbenez_an: + announce @glob_an$, 0; + if (Golbenez_Inn_Cost < 5000000) goto L_Needmore; + if (Golbenez_Inn_Cost >= 5000000) goto Glb_Inn_Enough; + close; + +Golbenez_pay: + set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give; + set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give; + set zeny, zeny - @Give; + goto Glb_checkGlAn; + +Golbenez_pay_presents: + set Golbenez_Inn_Cost, Golbenez_Inn_Cost + @Give; + set $Golbenez_Inn_Cost, $Golbenez_Inn_Cost + @Give; + if (Golbenez_Inn_Cost < 5000000) goto L_Needmore; + if (Golbenez_Inn_Cost >= 5000000) goto Glb_Inn_Enough; + close; + + +Glb_Inn_NotEnoughZeny: + mes "[Golbenez]"; + mes "\"You don't have as much as you say you do. Come back when you can give the gold pieces you say you can.\""; + close; + +Glb_noitems: + mes "[Golbenez]"; + mes "\"You don't have as many as you say you do. Come back when you have enough.\""; + close; + +Glb_nvm: + mes "[Golbenez]"; + mes "\"That's too bad.\""; + close; + +Glb_whypresents: + mes "[Golbenez]"; + mes "\"The presents contain some sort of spiritual attachment that aids in the creation of dimensional connections to this plane of existence. The white ones contain the stronger spiritual attachment, followed by the yellow and then green, blue and purple present boxes. But I am not interested in the last three kinds.\""; + close; + +Glb_otheritems: + mes "[Golbenez]"; + mes "\"No you cannot!\""; + next; + mes "\"I will not discuss any further, mortal!\""; + close; + + +L_Needmore: + mes "[Golbenez]"; + mes "\"You brought me the equivalent to " +Golbenez_Inn_Cost+ " Gold Pieces. This is not enough.\""; + next; + mes "\"Keep working. The closer you get to the amount of money I need, the closer you can get to Santa on that big Ice cave.\""; + + if (Golbenez_Inn_Cost >= 500000 && Golbenez_Inn_Cost < 1000000) set Maze, 1; + if (Golbenez_Inn_Cost >= 1000000 && Golbenez_Inn_Cost < 1500000) set Maze, 2; + if (Golbenez_Inn_Cost >= 1500000 && Golbenez_Inn_Cost < 2000000) set Maze, 3; + if (Golbenez_Inn_Cost >= 2000000 && Golbenez_Inn_Cost < 2500000) set Maze, 4; + if (Golbenez_Inn_Cost >= 2500000 && Golbenez_Inn_Cost < 3000000) set Maze, 5; + if (Golbenez_Inn_Cost >= 3000000 && Golbenez_Inn_Cost < 3500000) set Maze, 6; + if (Golbenez_Inn_Cost >= 3500000 && Golbenez_Inn_Cost < 4000000) set Maze, 7; + if (Golbenez_Inn_Cost >= 4000000 && Golbenez_Inn_Cost < 5000000) set Maze, 8; + + close; + +L_Broke: + mes "[Golbenez]"; + mes "\"Then say goodbye to christmas.\""; + close; + +L_Close: + close; + +L_Young: + mes "[Golbenez]"; + mes "\"You are too young, even for mortal standards. You can't do anything to save santa.\""; + close; + +Glb_Inn_Enough: + set Maze, 9; + mes "[Golbenez]"; + mes "\"Ok mortal!\""; + next; + mes "\"I have collected enough for now. You are now able to reach Santa.\""; + next; + mes "\"This will definitely help me finish the place of leisure.\""; + next; + mes "\"Have fun trying to save Santa from that cold maze!\""; + close; +} + + diff --git a/world/map/npc/xmas/2010/santa.txt b/world/map/npc/xmas/2010/santa.txt new file mode 100644 index 00000000..bd82a251 --- /dev/null +++ b/world/map/npc/xmas/2010/santa.txt @@ -0,0 +1,102 @@ +//################################################################################# +//# +//# Santa for Christmas 2010 +//# +//# Authors: alastrim, PjotrOrial +//# +//# reviewed by: +//# +//# This is Santa Claus. +//# He was taken as hostage by golbanez, and now that he is free, he would like to +//# give a reward for those who helped him. +//# +//################################################################################# + + +031-3.gat,122,51,0 script Santa 105,{ + + if (Sex) set @honorific$, "young hero"; + if (Sex) set @gender$, "boy"; + if (!Sex) set @honorific$, "young heroine"; + if (!Sex) set @gender$, "girl"; + if (Xmas2010 == 2) goto L_Returning; + if (Xmas2010 == 3) goto L_Stocking_Prize; + if (Xmas2010 == 4) goto L_Event_Done; + +L_start: + mes "The old man's eyes open wide as he sees you."; + next; + mes "[Santa Claus]"; + mes "\"Ho-Ho-ho! It is so good to see you here " +@honorific$+ "!\""; + next; + menu + "Im " + strcharinfo(0) + " and I am here to save you from Golbenez.",-; + mes "\"I cant believe it... are you really " +strcharinfo(0)+ "? I remember all the comments that... 'Thing' was making about building his way to a 'Leisure Place' and how your donations would really help him.\""; + next; + mes "\"What is his name again? Erh... Golbinos? Galvanis? Ho-hum... All I know is that it was keeping me hostage in this cold labyrinth. And you proved yourself a good " +@gender$+ " by helping me with all those donations!\""; + next; + if (gettime(6) != 12 || gettime(5) >= 25) goto L_Skip_Dialogue; + mes "\"Well, I am really late! In a few hours I have to start my usual present giving routine... But not before I give you a special gift for all you did.\""; + next; +L_Skip_Dialogue: + mes "\"Let me see... From what I can remember, Galvenio said that the only way someone could enter this cave is by giving him at least 5 Million Gold Pieces! It means you really did a good job!\""; + next; + +L_Calculate_Prizes: + getinventorylist; + if (@inventorylist_count == 100) goto L_full; + setarray @prizes, 1216, 629, 630, 634, 1214, 633, 628, 627, 621; + mes "\"You are so generous! I believe I can give you one of the hats from this bag. I know you like these silly hats. Yes, Santa knows this kind of thing... Ho-Ho-Ho! Put your hand here and pick one hat... No, you cant look, it MUST be a surprise...\""; + getitem @prizes[rand(8)], 1; + set Xmas2010, 2; + set Golbenez_Inn_Cost, 0; + next; + +L_Returning: + mes "[Santa Claus]"; + mes "\"I hope you liked your gift.\""; + next; + menu + "Yes Santa, you are the best!",L_Close, + "Ehh, it is not what I expected.",L_Bad, + "I loved it!",-; + +L_Stocking_Prize: + set Xmas2010, 3; + getinventorylist; + if (@inventorylist_count == 100) goto L_full; + mes "[Santa Claus]"; + mes "\"Good to know you liked it! Now I would like to give you a personal item. It is not a hat, but something that will always make you remember how grateful I am.\""; + next; + menu + "Wonderful! Santa, You are great! Is it another hat?",-; + next; + mes "\"No, not a hat. Here, take this. I have been using it for the last three months... It is my favorite and it means a lot to me.\""; + getitem 1207, 1; + set Xmas2010, 4; + close2; + percentheal -20, 0; + message strcharinfo(0), "You suddenly get dizzy... Something is not right with you. Maybe you shouldnt have put the Red Stocking so close to your face!"; + end; + +L_full: + mes "[Santa Claus]"; + mes "\"Your backpack seems to be full. You should get rid of some unused stuff before you get my gifts, or maybe try one super resistant red bag, my personal favorite! Hoh-hoh!\""; + close; + +L_Close: + mes "[Santa Claus]"; + mes "\"Ho, Ho... Ok, see you later " +@honorific$+ "!\""; + close; + +L_Bad: + mes "[Santa Claus]"; + mes "\"Hmm... and I was thinking you were a good " +@gender$+ "! Dont be ungrateful and next time, think before you get a gift.\""; + close; + +L_Event_Done: + mes "[Santa Claus]"; + mes "\"Hello again " +strcharinfo(0)+ "! I cant chat with you right now, because we are really late for Christmas, but, when it is over, you will always be welcome in my house for a hot chocolate.\""; + close; + +} diff --git a/world/map/resources2.php b/world/map/resources2.php new file mode 100644 index 00000000..de77e978 --- /dev/null +++ b/world/map/resources2.php @@ -0,0 +1,8 @@ +<?php +header("Content-type: text/plain"); +header("Cache-Control: no-store, no-cache, must-revalidate"); +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); + +print file_get_contents ("resources2.txt"); +?> diff --git a/world/map/save/.gitignore b/world/map/save/.gitignore new file mode 100644 index 00000000..11d10d30 --- /dev/null +++ b/world/map/save/.gitignore @@ -0,0 +1 @@ +/mapreg.txt diff --git a/world/map/versions.php b/world/map/versions.php new file mode 100644 index 00000000..601fb252 --- /dev/null +++ b/world/map/versions.php @@ -0,0 +1,25 @@ +<?php +$file = 'versions/' . date('Y-m-d') . '.txt'; +if (!file_exists($file)) touch($file); // Make sure it exists + +$versions = file($file); +$verinfo = array(); +foreach($versions as $version) { + $ver = substr($version, 8); // Ignore time information + if ($verinfo[$ver] != null) { + $verinfo[$ver]++; + } else { + $verinfo[$ver] = 1; + } +} + +arsort($verinfo); + +$total = count($versions); +print '<table border="1px" cellspacing="0px" cellpadding="1px"><tr><th>Client</th><th title="Count">n</th><th title="Percent of total">%</th></tr>'; +foreach($verinfo as $vi=>$vc) { + echo '<tr><td>' . htmlspecialchars($vi) . '</td><td>' . $vc . '</td><td>' . round((100 / $total) * $vc, 2) . '</td></tr>'; +} +print '</table><br />Total number of connections: ' . $total . '<br />Number of different clients reported: ' + . count($verinfo) . '<br /><br />Data retrieved: ' . date('D M d y, g:i a T', filemtime($file)); +?> diff --git a/world/save/.gitignore b/world/save/.gitignore new file mode 100644 index 00000000..db9c3e7b --- /dev/null +++ b/world/save/.gitignore @@ -0,0 +1,6 @@ +/athena.txt +/accreg.txt +/party.txt +/storage.txt +/guild.txt +/castle.txt |