diff options
Diffstat (limited to 'world/map/npc/011-1')
-rw-r--r-- | world/map/npc/011-1/_mobs.txt | 3 | ||||
-rw-r--r-- | world/map/npc/011-1/alchemist.txt | 4 | ||||
-rw-r--r-- | world/map/npc/011-1/auldsbel.txt | 10 | ||||
-rw-r--r-- | world/map/npc/011-1/oscar.txt | 30 |
4 files changed, 25 insertions, 22 deletions
diff --git a/world/map/npc/011-1/_mobs.txt b/world/map/npc/011-1/_mobs.txt index 8c14da07..f797a153 100644 --- a/world/map/npc/011-1/_mobs.txt +++ b/world/map/npc/011-1/_mobs.txt @@ -15,7 +15,8 @@ 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,{ +011-1.gat,0,0,0|script|Mob011-1|-1, +{ On1013: set @mobID, 1013; callfunc "MobPoints"; diff --git a/world/map/npc/011-1/alchemist.txt b/world/map/npc/011-1/alchemist.txt index 35609063..6b47eb07 100644 --- a/world/map/npc/011-1/alchemist.txt +++ b/world/map/npc/011-1/alchemist.txt @@ -1,6 +1,6 @@ // This NPC makes potions and dyes -011-1.gat,117,77,0|script|Rauk|103,{ - +011-1.gat,117,77,0|script|Rauk|103, +{ // Setzer quest/monster oil quest participation set @SETZER_INITIAL, 0; set @SETZER_KNOWS_OIL, 1; diff --git a/world/map/npc/011-1/auldsbel.txt b/world/map/npc/011-1/auldsbel.txt index 6da0b1dc..8fb16e2c 100644 --- a/world/map/npc/011-1/auldsbel.txt +++ b/world/map/npc/011-1/auldsbel.txt @@ -1,8 +1,8 @@ // Auldsbel the Wizard // Transmutation Magic expert -011-1.gat,50,68,0|script|Auldsbel#_M|168,{ - +011-1.gat,50,68,0|script|Auldsbel#_M|168, +{ set @mexp, MAGIC_EXPERIENCE & 65535; set @Q_STATUS_INITIAL, 0; @@ -441,7 +441,7 @@ L_about_other_prerequisites: 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.\""; + mes "\"Most spells are effective immediately, unless they require some complex astral connection-- 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; @@ -944,10 +944,10 @@ L_component_quest_5: mes "\"I suggest that you run.\""; next; misceffect sfx_magic_transmute; - monster "this", 50, 68, "Grass Snake", 1034, 4, "Auldsbel#_M::onSnakeDeath"; + monster "this", 50, 68, "Grass Snake", 1034, 4, "Auldsbel#_M::OnSnakeDeath"; close; -onSnakeDeath: +OnSnakeDeath: set BOSS_POINTS, BOSS_POINTS + 5; message strcharinfo(0), "You gain 5 Boss Points giving you a total of " + BOSS_POINTS + "."; end; diff --git a/world/map/npc/011-1/oscar.txt b/world/map/npc/011-1/oscar.txt index d85bd67b..c9ee88da 100644 --- a/world/map/npc/011-1/oscar.txt +++ b/world/map/npc/011-1/oscar.txt @@ -28,7 +28,8 @@ // 6: the player saved the farmer from the pumpkin invasion (all pumpkins / mobs killed) // 10: the player failed to save the farmer from the pumpkin invasion (player left the map, died -- logging off is allowed however) -function|script|HalloweenQuestWaterPumpkins|{ +function|script|HalloweenQuestWaterPumpkins|, +{ if (Quest_Halloween != 5 || $@HalloweenQuest_PumpkinHunter$ != "") end; set $@HalloweenQuest_PumpkinHunter$, strcharinfo(0); @@ -36,7 +37,8 @@ function|script|HalloweenQuestWaterPumpkins|{ end; } -011-1.gat,94,38,0|script|Oscar|142,{ +011-1.gat,94,38,0|script|Oscar|142, +{ // Check we are at the good time of the year if (!(gettime(6) == 11 && (gettime(5) >= 4 && gettime(5) <= 30))) goto L_NoEvent; // Check halloween quest has been done or not. @@ -297,7 +299,7 @@ L_QuestAlreadyDone: mes "That was interesting, but really, fruits are more quiet!\""; goto L_End; -onInit: +OnInit: set $@halloween_num_seeds, 12; set $@halloween_num_water_bottles, 15; set $@halloween_num_pumpkins, $@halloween_num_seeds * 4; @@ -310,8 +312,8 @@ OnTimer3000: end; callsub S_CheckPlayer; set $@HalloweenQuest_PumpkinsTimer, $@HalloweenQuest_PumpkinsTimer + 1; - if (mobcount("011-1.gat", "Oscar::onPD") < 0 && - mobcount("011-1.gat", "Oscar::onPDP") < 0 && + if (mobcount("011-1.gat", "Oscar::OnPD") < 0 && + mobcount("011-1.gat", "Oscar::OnPDP") < 0 && $@HalloweenQuest_PumpkinsCount <= 0) goto L_AllPumpkinsDead; // A quick "cheer up" @@ -327,14 +329,14 @@ OnTimer3000: L_TrySpawnPumpkin: if ($@HalloweenQuest_PumpkinsCount > 0) - areamonster "011-1.gat", 97, 40, 101, 44, "", 1063, 1, "Oscar::onPD"; + areamonster "011-1.gat", 97, 40, 101, 44, "", 1063, 1, "Oscar::OnPD"; setnpctimer 0; end; OnTimer2500: if ($@HalloweenQuest_PumpkinsState != 0) end; - areamonster "011-1.gat", 97, 40, 101, 44, "", 1063, 2, "Oscar::onPD"; + areamonster "011-1.gat", 97, 40, 101, 44, "", 1063, 2, "Oscar::OnPD"; end; OnTimer6000: @@ -346,7 +348,7 @@ OnTimer6000: setnpctimer 0; end; -onPD: +OnPD: if (strcharinfo(0) != $@HalloweenQuest_PumpkinHunter$) goto L_KillBadHunter; set $@HalloweenQuest_PumpkinsCount, $@HalloweenQuest_PumpkinsCount - 1; @@ -367,18 +369,18 @@ onPD: getitem "PumpkinHelmet", 1; // huntsman spider x1 if (@halloween_rand < (15*BaseLevel)/100) - areamonster "011-1.gat", 97, 40, 101, 44, "", 1083, 1, "Oscar::onPDP"; + areamonster "011-1.gat", 97, 40, 101, 44, "", 1083, 1, "Oscar::OnPDP"; // Or spider x1 if (@halloween_rand >= (15*BaseLevel)/100 && @halloween_rand < (75*BaseLevel)/100) - areamonster "011-1.gat", 97, 40, 101, 44, "", 1012, 1, "Oscar::onPDP"; + areamonster "011-1.gat", 97, 40, 101, 44, "", 1012, 1, "Oscar::OnPDP"; // Or archant x2 if (@halloween_rand >= (75*BaseLevel)/100) - areamonster "011-1.gat", 97, 40, 101, 44, "", 1060, 2, "Oscar::onPDP"; + areamonster "011-1.gat", 97, 40, 101, 44, "", 1060, 2, "Oscar::OnPDP"; set @halloween_rand, 0; end; -onPDP: +OnPDP: end; L_KillBadHunter: @@ -433,8 +435,8 @@ L_Success: goto L_Clean; L_Clean: - killmonster "011-1.gat", "Oscar::onPD"; - killmonster "011-1.gat", "Oscar::onPDP"; + killmonster "011-1.gat", "Oscar::OnPD"; + killmonster "011-1.gat", "Oscar::OnPDP"; set $@HalloweenQuest_PumpkinHunter$, ""; set $@HalloweenQuest_PumpkinsCount, 0; set $@HalloweenQuest_PumpkinsState, 0; |