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/map/npc/013-1 | |
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/map/npc/013-1')
-rw-r--r-- | world/map/npc/013-1/_import.txt | 6 | ||||
-rw-r--r-- | world/map/npc/013-1/_mobs.txt | 78 | ||||
-rw-r--r-- | world/map/npc/013-1/_warps.txt | 7 | ||||
-rw-r--r-- | world/map/npc/013-1/sagatha.txt | 448 |
4 files changed, 539 insertions, 0 deletions
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; +} |