From 89e2ac5687d698f0843ac46612ee33b6692bbc93 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 5 Jul 2013 12:25:49 -0700 Subject: Move starting brace to new line --- world/map/npc/011-1/oscar.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'world/map/npc/011-1/oscar.txt') diff --git a/world/map/npc/011-1/oscar.txt b/world/map/npc/011-1/oscar.txt index d85bd67b..e10cd906 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. -- cgit v1.2.3-70-g09d2 From 9f883e9770523d3ff2b2f79129cffb523419c6b6 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 5 Jul 2013 16:05:43 -0700 Subject: Make fourth word of functions non-empty, to appease the current server --- world/map/npc/001-1/elanore.txt | 2 +- world/map/npc/001-2/omar.txt | 2 +- world/map/npc/005-1/spirit.txt | 2 +- world/map/npc/005-1/tree.txt | 4 ++-- world/map/npc/007-1/witch.txt | 2 +- world/map/npc/008-1/annualeaster.txt | 2 +- world/map/npc/009-4/barriers.txt | 4 ++-- world/map/npc/009-4/torches.txt | 18 +++++++++--------- world/map/npc/011-1/oscar.txt | 2 +- world/map/npc/012-1/injured-mouboo.txt | 2 +- world/map/npc/013-1/sagatha.txt | 6 +++--- world/map/npc/022-1/tutorial.txt | 2 +- world/map/npc/027-1/graves.txt | 2 +- world/map/npc/048-2/bluesageConfig.txt | 6 +++--- world/map/npc/052-1/channelling.txt | 2 +- world/map/npc/functions/banker.txt | 2 +- world/map/npc/functions/barber.txt | 4 ++-- world/map/npc/functions/clear_vars.txt | 4 ++-- world/map/npc/functions/dailyquest.txt | 4 ++-- world/map/npc/functions/debug.txt | 2 +- world/map/npc/functions/evil_obelisk.txt | 2 +- world/map/npc/functions/ferry.txt | 2 +- world/map/npc/functions/game_rules.txt | 2 +- world/map/npc/functions/inn.txt | 2 +- world/map/npc/functions/lockpicking.txt | 2 +- world/map/npc/functions/magic.txt | 8 ++++---- world/map/npc/functions/mob_points.txt | 2 +- world/map/npc/functions/process_equip.txt | 2 +- world/map/npc/functions/slot_machine.txt | 2 +- world/map/npc/functions/soul_menhir.txt | 2 +- world/map/npc/functions/strangerquiz.txt | 2 +- world/map/npc/functions/time.txt | 2 +- world/map/npc/functions/water_bottle.txt | 2 +- world/map/npc/items/magic_gm_top_hat.txt | 2 +- world/map/npc/items/purification_potion.txt | 2 +- world/map/npc/items/require_stat.txt | 2 +- world/map/npc/items/restricted_item.txt | 2 +- world/map/npc/items/scissors.txt | 2 +- world/map/npc/items/shock_sweet.txt | 2 +- world/map/npc/items/unreleased_item.txt | 2 +- world/map/npc/items/warpTowels.txt | 20 ++++++++++---------- 41 files changed, 70 insertions(+), 70 deletions(-) (limited to 'world/map/npc/011-1/oscar.txt') diff --git a/world/map/npc/001-1/elanore.txt b/world/map/npc/001-1/elanore.txt index 99e8ac39..34b30766 100644 --- a/world/map/npc/001-1/elanore.txt +++ b/world/map/npc/001-1/elanore.txt @@ -1,6 +1,6 @@ // -function|script|ElanoreFix| +function|script|ElanoreFix|, { set @Q_MASK, NIBBLE_1_MASK; set @Q_SHIFT, NIBBLE_1_SHIFT; diff --git a/world/map/npc/001-2/omar.txt b/world/map/npc/001-2/omar.txt index db1b3fa1..65f3e2d1 100644 --- a/world/map/npc/001-2/omar.txt +++ b/world/map/npc/001-2/omar.txt @@ -1,5 +1,5 @@ // -function|script|KadiyaSubquestConsts| +function|script|KadiyaSubquestConsts|, { set @Q_kadiya_status, (QUEST_MAGIC2 & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; diff --git a/world/map/npc/005-1/spirit.txt b/world/map/npc/005-1/spirit.txt index 73123842..fa4e61a8 100644 --- a/world/map/npc/005-1/spirit.txt +++ b/world/map/npc/005-1/spirit.txt @@ -1,4 +1,4 @@ -function|script|EarthImpTouch| +function|script|EarthImpTouch|, { if (getskilllv(SKILL_MAGIC)) goto L_message; diff --git a/world/map/npc/005-1/tree.txt b/world/map/npc/005-1/tree.txt index ed45d9a3..2b63f8cb 100644 --- a/world/map/npc/005-1/tree.txt +++ b/world/map/npc/005-1/tree.txt @@ -1,4 +1,4 @@ -function|script|QuestTreeTrigger| +function|script|QuestTreeTrigger|, { set @Q_MASK, NIBBLE_2_MASK; set @Q_SHIFT, NIBBLE_2_SHIFT; @@ -46,7 +46,7 @@ S_update_var: return; } -function|script|QuestTreeTouch| +function|script|QuestTreeTouch|, { set @Q_MASK, NIBBLE_2_MASK; set @Q_SHIFT, NIBBLE_2_SHIFT; diff --git a/world/map/npc/007-1/witch.txt b/world/map/npc/007-1/witch.txt index 2af66c9f..4fddbc8e 100644 --- a/world/map/npc/007-1/witch.txt +++ b/world/map/npc/007-1/witch.txt @@ -872,7 +872,7 @@ L_Start: } -function|script|UpdateIlliaProgress| +function|script|UpdateIlliaProgress|, { if ($@illia_progress == 1) goto L_Torch1; diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt index f656f46b..1ab74af3 100644 --- a/world/map/npc/008-1/annualeaster.txt +++ b/world/map/npc/008-1/annualeaster.txt @@ -9,7 +9,7 @@ // the event in these days. -function|script|AnnualEasterEvent| +function|script|AnnualEasterEvent|, { if ((gettimetick(2)-TUT_var < 5*7*86400) || (BaseLevel < 40)) //player must be created at least 5 weeks ago goto L_EndTooYoung; diff --git a/world/map/npc/009-4/barriers.txt b/world/map/npc/009-4/barriers.txt index eedf2416..939f4ae2 100644 --- a/world/map/npc/009-4/barriers.txt +++ b/world/map/npc/009-4/barriers.txt @@ -1,5 +1,5 @@ //# see detailed description at orum.txt -function|script|GetBarrierColor| +function|script|GetBarrierColor|, { if (@Barrier < 0 || @Barrier > 2) goto L_Error; @@ -13,7 +13,7 @@ L_Error: close; } -function|script|SetBarrierColor| +function|script|SetBarrierColor|, { if (@Barrier < 0 || @Barrier > 2) goto L_Error; diff --git a/world/map/npc/009-4/torches.txt b/world/map/npc/009-4/torches.txt index 8675826b..03acc6b0 100644 --- a/world/map/npc/009-4/torches.txt +++ b/world/map/npc/009-4/torches.txt @@ -1,6 +1,6 @@ //# see detailed description at orum.txt //# see detailed description at orum.txt -function|script|GetTorchColor| +function|script|GetTorchColor|, { if (@Torch < 0 || @Torch > 2) goto L_Error; @@ -14,7 +14,7 @@ L_Error: close; } -function|script|SetTorchColor| +function|script|SetTorchColor|, { if (@Torch < 0 || @Torch > 2) goto L_Error; if (@TorchColor < 1 || @TorchColor > 12) goto L_Error2; @@ -32,7 +32,7 @@ L_Error2: close; } -function|script|GetTorchIntensity| +function|script|GetTorchIntensity|, { if (@Torch < 0 || @Torch > 2) goto L_Error; @@ -46,7 +46,7 @@ L_Error: close; } -function|script|SetTorchIntensity| +function|script|SetTorchIntensity|, { if (@Torch < 0 || @Torch > 2) goto L_Error; if (@TorchIntensity < 0 || @TorchIntensity > 2) goto L_Error2; @@ -64,7 +64,7 @@ L_Error2: close; } -function|script|DoneWithTorches| +function|script|DoneWithTorches|, { if (OrumQuest < 11 && OrumQuest >= 8) return; @@ -85,21 +85,21 @@ L_Different: } // To make sure in range of torches -function|script|InRangeTorch1| +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| +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| +function|script|InRangeTorch3|, { if (isin("009-4.gat",33,84,37,88)) return; @@ -107,7 +107,7 @@ function|script|InRangeTorch3| close; } -function|script|TorchLoop| +function|script|TorchLoop|, { // Variables used here: // @Torch - pass before calling diff --git a/world/map/npc/011-1/oscar.txt b/world/map/npc/011-1/oscar.txt index e10cd906..66f817c1 100644 --- a/world/map/npc/011-1/oscar.txt +++ b/world/map/npc/011-1/oscar.txt @@ -28,7 +28,7 @@ // 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; diff --git a/world/map/npc/012-1/injured-mouboo.txt b/world/map/npc/012-1/injured-mouboo.txt index 3a6f0e30..91042c13 100644 --- a/world/map/npc/012-1/injured-mouboo.txt +++ b/world/map/npc/012-1/injured-mouboo.txt @@ -1,6 +1,6 @@ // The following auxiliary function is used both by appropriate magic and within the regular script: -function|script|QuestMoubooHeal| +function|script|QuestMoubooHeal|, { set @Q_MASK, NIBBLE_2_MASK; set @Q_SHIFT, NIBBLE_2_SHIFT; diff --git a/world/map/npc/013-1/sagatha.txt b/world/map/npc/013-1/sagatha.txt index e7d6a1a0..a25db145 100644 --- a/world/map/npc/013-1/sagatha.txt +++ b/world/map/npc/013-1/sagatha.txt @@ -1,7 +1,7 @@ // Sagatha the witch, expert for nature and astral magic //---------------------------------------- -function|script|QuestSagathaHappy| +function|script|QuestSagathaHappy|, { set @unhappiness, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; if (@unhappiness < @value) @@ -19,7 +19,7 @@ L_write: } //---------------------------------------- -function|script|QuestSagathaAnnoy| +function|script|QuestSagathaAnnoy|, { set @unhappiness, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; if ((@unhappiness + @value) > 15) @@ -37,7 +37,7 @@ L_write: } //---------------------------------------- -function|script|SagathaStatus| +function|script|SagathaStatus|, { if (getequipid(equip_head) != 1216 && getequipid(equip_head) != 752) goto L_next; diff --git a/world/map/npc/022-1/tutorial.txt b/world/map/npc/022-1/tutorial.txt index 0d9056f6..1ecbb1a8 100644 --- a/world/map/npc/022-1/tutorial.txt +++ b/world/map/npc/022-1/tutorial.txt @@ -9,7 +9,7 @@ end; } -function|script|TutorialCompleted| +function|script|TutorialCompleted|, { set hasan, 0; set kaan, 0; diff --git a/world/map/npc/027-1/graves.txt b/world/map/npc/027-1/graves.txt index 30a3ad06..b33ad67e 100644 --- a/world/map/npc/027-1/graves.txt +++ b/world/map/npc/027-1/graves.txt @@ -1,6 +1,6 @@ // Easter egg graves -function|script|GraveTooFar| +function|script|GraveTooFar|, { if (isin("027-1.gat",89,54,122,76)) return; diff --git a/world/map/npc/048-2/bluesageConfig.txt b/world/map/npc/048-2/bluesageConfig.txt index e0112abc..cb237441 100644 --- a/world/map/npc/048-2/bluesageConfig.txt +++ b/world/map/npc/048-2/bluesageConfig.txt @@ -94,19 +94,19 @@ OnInit: set $@BlueSageSlime6_Amount, 1; } -function|script|updateBlueSageBookPages| +function|script|updateBlueSageBookPages|, { set QUEST_BlueSage, (QUEST_BlueSage & ~($@Q_BlueSageBookPages_MASK) | (@bookpages << $@Q_BlueSageBookPages_SHIFT)); return; } -function|script|updateBlueSageInvestigate| +function|script|updateBlueSageInvestigate|, { set QUEST_BlueSage, (QUEST_BlueSage & ~($@Q_BlueSageInvestigate_MASK) | (@investigate << $@Q_BlueSageInvestigate_SHIFT)); return; } -function|script|blueSageNumberOfClearedNests| +function|script|blueSageNumberOfClearedNests|, { set @slimenests, 0; if (QUEST_BlueSage & $@Q_BlueSageSlime0) diff --git a/world/map/npc/052-1/channelling.txt b/world/map/npc/052-1/channelling.txt index 52d71e45..3575dcbe 100644 --- a/world/map/npc/052-1/channelling.txt +++ b/world/map/npc/052-1/channelling.txt @@ -92,7 +92,7 @@ L_SuggestChannelling: } -function|script|StartChannelling| +function|script|StartChannelling|, { if (isat("052-1.gat",53,38) == 0) end; diff --git a/world/map/npc/functions/banker.txt b/world/map/npc/functions/banker.txt index 09cfdef6..8ecb85fb 100644 --- a/world/map/npc/functions/banker.txt +++ b/world/map/npc/functions/banker.txt @@ -1,6 +1,6 @@ // -function|script|Banker| +function|script|Banker|, { if (BankAccount == 0) goto L_Start; diff --git a/world/map/npc/functions/barber.txt b/world/map/npc/functions/barber.txt index 4ad5ee1f..dc7f0329 100644 --- a/world/map/npc/functions/barber.txt +++ b/world/map/npc/functions/barber.txt @@ -9,7 +9,7 @@ // or using GM commands, but scripts (such as this one) can set // any value 0-255 -function|script|Barber| +function|script|Barber|, { set @style, getlook(LOOK_HAIR_STYLE); set @color, getlook(LOOK_HAIR_COLOR); @@ -114,7 +114,7 @@ L_Done: // Since this is a function, not an NPC, OnInit doesn't work // So call this from a real NPC's OnInit (001-1/barber.txt) -function|script|OnInitBarber| +function|script|OnInitBarber|, { setarray $@HairStyles$, "Bald", "Flat ponytail", "Bowl cut", "Combed back", "Emo", "Mohawk", diff --git a/world/map/npc/functions/clear_vars.txt b/world/map/npc/functions/clear_vars.txt index db94680f..1aa84d2b 100644 --- a/world/map/npc/functions/clear_vars.txt +++ b/world/map/npc/functions/clear_vars.txt @@ -1,6 +1,6 @@ // Clears old variables -function|script|ClearVariables| +function|script|ClearVariables|, { set EasterQuest, 0; @@ -185,7 +185,7 @@ L_Fix_Full: // The variable TMW_Quest was used to save the progress in several subquests linearly. // The subquests are moved to different nibbles of other variables // to make it possible to do some of the quests in parallel. -function|script|ClearVarTMW_Quest| +function|script|ClearVarTMW_Quest|, { if (TMW_Quest == 0) goto L_Done; if (TMW_Quest <= 6) goto L_Bernard_Mikhail; diff --git a/world/map/npc/functions/dailyquest.txt b/world/map/npc/functions/dailyquest.txt index 9bc84c5b..9b9d626e 100644 --- a/world/map/npc/functions/dailyquest.txt +++ b/world/map/npc/functions/dailyquest.txt @@ -27,7 +27,7 @@ // (DailyQuestBonus makes a good reward from non-daily quests) -function|script|DailyQuestPoints| +function|script|DailyQuestPoints|, { set @dq_earliest, gettimetick(2) - 86400; if (DailyQuestTime < @dq_earliest) @@ -55,7 +55,7 @@ L_Bonus: return; } -function|script|DailyQuest| +function|script|DailyQuest|, { callfunc "DailyQuestPoints"; diff --git a/world/map/npc/functions/debug.txt b/world/map/npc/functions/debug.txt index 9f9559ea..5bf82356 100755 --- a/world/map/npc/functions/debug.txt +++ b/world/map/npc/functions/debug.txt @@ -1,6 +1,6 @@ // Authors: alastrim, Jenalya, Ali-G -function|script|Debug| +function|script|Debug|, { L_Begin: set @debug_mask, 65535; diff --git a/world/map/npc/functions/evil_obelisk.txt b/world/map/npc/functions/evil_obelisk.txt index e3e40f79..0875abb5 100644 --- a/world/map/npc/functions/evil_obelisk.txt +++ b/world/map/npc/functions/evil_obelisk.txt @@ -1,4 +1,4 @@ -function|script|EvilObelisk| +function|script|EvilObelisk|, { mes "[Evil Obelisk]"; mes "(A mystical aura surrounds this stone. It seems to crave money.)"; diff --git a/world/map/npc/functions/ferry.txt b/world/map/npc/functions/ferry.txt index a28f0511..0b66f68e 100644 --- a/world/map/npc/functions/ferry.txt +++ b/world/map/npc/functions/ferry.txt @@ -1,6 +1,6 @@ // The ferry system -function|script|Ferry| +function|script|Ferry|, { if (BaseLevel < 20) goto L_LowerCost; diff --git a/world/map/npc/functions/game_rules.txt b/world/map/npc/functions/game_rules.txt index f735bf4a..caf13cb1 100644 --- a/world/map/npc/functions/game_rules.txt +++ b/world/map/npc/functions/game_rules.txt @@ -1,6 +1,6 @@ // -function|script|GameRules| +function|script|GameRules|, { set @read, 0; menu diff --git a/world/map/npc/functions/inn.txt b/world/map/npc/functions/inn.txt index aad9e6c1..271a4652 100644 --- a/world/map/npc/functions/inn.txt +++ b/world/map/npc/functions/inn.txt @@ -1,6 +1,6 @@ // INN -function|script|Inn| +function|script|Inn|, { mes "[" + @npcname$ + "]"; mes "\"Would you like to rest? It's only " + @cost + " gp.\""; diff --git a/world/map/npc/functions/lockpicking.txt b/world/map/npc/functions/lockpicking.txt index 638e3914..dc05fc53 100644 --- a/world/map/npc/functions/lockpicking.txt +++ b/world/map/npc/functions/lockpicking.txt @@ -4,7 +4,7 @@ // The player has to find the good number of times to hit a pin //----------------------------------------------------------------------------- -function|script|LockPicking| +function|script|LockPicking|, { set @lock_picking_success, 0; setarray @pins, rand(1,3), rand(1,3), rand(1,3); diff --git a/world/map/npc/functions/magic.txt b/world/map/npc/functions/magic.txt index 9fcb5226..a1faea94 100644 --- a/world/map/npc/functions/magic.txt +++ b/world/map/npc/functions/magic.txt @@ -10,7 +10,7 @@ // ------------------------------------------------------------ // Gain initial magic skill // ------------------------------------------------------------ -function|script|MagicGainBasic| +function|script|MagicGainBasic|, { set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_DRANK_POTION; close; @@ -20,7 +20,7 @@ function|script|MagicGainBasic| // ------------------------------------------------------------ // Initialise Menu for selecting a choice of things to ask about // ------------------------------------------------------------ -function|script|MagicTalkOptionsSetup| +function|script|MagicTalkOptionsSetup|, { set @QQ_ELANORE, 1; set @QQ_MANASEED, 2; @@ -41,7 +41,7 @@ function|script|MagicTalkOptionsSetup| // ------------------------------------------------------------ -function|script|MagicTalkMenu| +function|script|MagicTalkMenu|, { setarray @choice$, "", "", "", "", "", "", "", "", "", ""; set @choices_nr, 0; @@ -161,7 +161,7 @@ L_Q_post_astralsoul: // @SUP_name$ name of the skill to level up // @SUP_xp # of experience points to award if the level up succeeds // ------------------------------------------------------------ -function|script|SkillUp| +function|script|SkillUp|, { if (getskilllv(@SUP_id) >= @SUP_lvl) goto L_shortcut; diff --git a/world/map/npc/functions/mob_points.txt b/world/map/npc/functions/mob_points.txt index aae10658..c5c7b7bd 100644 --- a/world/map/npc/functions/mob_points.txt +++ b/world/map/npc/functions/mob_points.txt @@ -1,6 +1,6 @@ // Mob points -function|script|MobPoints| +function|script|MobPoints|, { if (@mobID < 1002) return; diff --git a/world/map/npc/functions/process_equip.txt b/world/map/npc/functions/process_equip.txt index 4b8e1ccd..1e93320a 100644 --- a/world/map/npc/functions/process_equip.txt +++ b/world/map/npc/functions/process_equip.txt @@ -1,6 +1,6 @@ // -function|script|ProcessEquip| +function|script|ProcessEquip|, { set @head, getequipid(equip_head); set @torso, getequipid(equip_torso); diff --git a/world/map/npc/functions/slot_machine.txt b/world/map/npc/functions/slot_machine.txt index 4081adca..5d7e1ee6 100644 --- a/world/map/npc/functions/slot_machine.txt +++ b/world/map/npc/functions/slot_machine.txt @@ -1,6 +1,6 @@ // -function|script|SlotMachine| +function|script|SlotMachine|, { mes "Pull the lever..."; next; diff --git a/world/map/npc/functions/soul_menhir.txt b/world/map/npc/functions/soul_menhir.txt index 315c89d4..02907210 100644 --- a/world/map/npc/functions/soul_menhir.txt +++ b/world/map/npc/functions/soul_menhir.txt @@ -1,4 +1,4 @@ -function|script|SoulMenhir| +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?)"; diff --git a/world/map/npc/functions/strangerquiz.txt b/world/map/npc/functions/strangerquiz.txt index 6290dbab..211e7e4b 100644 --- a/world/map/npc/functions/strangerquiz.txt +++ b/world/map/npc/functions/strangerquiz.txt @@ -1,5 +1,5 @@ -function|script|StrangerQuiz| +function|script|StrangerQuiz|, { // param @quizparam$$ // return in @quizanswer$ diff --git a/world/map/npc/functions/time.txt b/world/map/npc/functions/time.txt index a8236cb4..5f728639 100644 --- a/world/map/npc/functions/time.txt +++ b/world/map/npc/functions/time.txt @@ -6,7 +6,7 @@ // output @ts_date$ "yyyy-mm-dd" // output @ts_time$ "hh:mm:ss" -function|script|time_stamp| +function|script|time_stamp|, { // local variables // if there is reasonable demand, these might be exported diff --git a/world/map/npc/functions/water_bottle.txt b/world/map/npc/functions/water_bottle.txt index e65009da..f24f2bc5 100644 --- a/world/map/npc/functions/water_bottle.txt +++ b/world/map/npc/functions/water_bottle.txt @@ -1,6 +1,6 @@ // Fills empty bottles with water -function|script|WaterBottle| +function|script|WaterBottle|, { set @COST_PER_BOTTLE, 150; diff --git a/world/map/npc/items/magic_gm_top_hat.txt b/world/map/npc/items/magic_gm_top_hat.txt index 181df1a2..bd35846e 100644 --- a/world/map/npc/items/magic_gm_top_hat.txt +++ b/world/map/npc/items/magic_gm_top_hat.txt @@ -1,4 +1,4 @@ -function|script|ActivateMagicGMTophat| +function|script|ActivateMagicGMTophat|, { if (getgmlevel() < 60) return; getinventorylist; diff --git a/world/map/npc/items/purification_potion.txt b/world/map/npc/items/purification_potion.txt index 46dd46fd..2a8c47d3 100644 --- a/world/map/npc/items/purification_potion.txt +++ b/world/map/npc/items/purification_potion.txt @@ -1,6 +1,6 @@ // This is the function to use the PurificationPotion -function|script|usePurificationPotion| +function|script|usePurificationPotion|, { if (isat("011-1.gat", 88,67)) goto L_Wyara_Pond; diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt index df05d37c..e16e6b24 100644 --- a/world/map/npc/items/require_stat.txt +++ b/world/map/npc/items/require_stat.txt @@ -5,7 +5,7 @@ // @minbStatVal The minimum stat value to accept this item. // ------------------------------------------------------------ -function|script|RequireStat| +function|script|RequireStat|, { if (@bStat$ == "" || @minbStatVal < 0) return; set @bStatVal, 0; diff --git a/world/map/npc/items/restricted_item.txt b/world/map/npc/items/restricted_item.txt index 0367cf5d..423b2c63 100644 --- a/world/map/npc/items/restricted_item.txt +++ b/world/map/npc/items/restricted_item.txt @@ -6,7 +6,7 @@ // @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| +function|script|RestrictedItem|, { if (!@minLvl) set @minLvl, 60; if (debug || getgmlevel() >= @minLvl) return; // If the active character is staff, do nothing. diff --git a/world/map/npc/items/scissors.txt b/world/map/npc/items/scissors.txt index 122254fe..71e1f52c 100644 --- a/world/map/npc/items/scissors.txt +++ b/world/map/npc/items/scissors.txt @@ -1,4 +1,4 @@ -function|script|useScissors| +function|script|useScissors|, { if (rand(3)) goto L_Change; diff --git a/world/map/npc/items/shock_sweet.txt b/world/map/npc/items/shock_sweet.txt index a4078e5f..9bcfc875 100644 --- a/world/map/npc/items/shock_sweet.txt +++ b/world/map/npc/items/shock_sweet.txt @@ -1,4 +1,4 @@ -function|script|useShockSweet| +function|script|useShockSweet|, { if (rand(5)) goto L_Change; diff --git a/world/map/npc/items/unreleased_item.txt b/world/map/npc/items/unreleased_item.txt index 14271e1a..708cc1e0 100644 --- a/world/map/npc/items/unreleased_item.txt +++ b/world/map/npc/items/unreleased_item.txt @@ -3,7 +3,7 @@ // @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| +function|script|UnreleasedItem|, { if (debug || getgmlevel()) 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."; diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt index cbbb462f..75209523 100644 --- a/world/map/npc/items/warpTowels.txt +++ b/world/map/npc/items/warpTowels.txt @@ -1,4 +1,4 @@ -function|script|useWhiteWarpTowel| +function|script|useWhiteWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -34,7 +34,7 @@ L_Keep: getitem "WhiteHitchhikersTowel", 1; end; } -function|script|useRedWarpTowel| +function|script|useRedWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -70,7 +70,7 @@ L_Keep: getitem "RedHitchhikersTowel", 1; end; } -function|script|useGreenWarpTowel| +function|script|useGreenWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -106,7 +106,7 @@ L_Keep: getitem "GreenHitchhikersTowel", 1; end; } -function|script|useBlueWarpTowel| +function|script|useBlueWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -142,7 +142,7 @@ L_Keep: getitem "BlueHitchhikersTowel", 1; end; } -function|script|useYellowWarpTowel| +function|script|useYellowWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -178,7 +178,7 @@ L_Keep: getitem "YellowHitchhikersTowel", 1; end; } -function|script|usePurpleWarpTowel| +function|script|usePurpleWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -214,7 +214,7 @@ L_Keep: getitem "PurpleHitchhikersTowel", 1; end; } -function|script|useOrangeWarpTowel| +function|script|useOrangeWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -250,7 +250,7 @@ L_Keep: getitem "OrangeHitchhikersTowel", 1; end; } -function|script|usePinkWarpTowel| +function|script|usePinkWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -286,7 +286,7 @@ L_Keep: getitem "PinkHitchhikersTowel", 1; end; } -function|script|useTealWarpTowel| +function|script|useTealWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; @@ -322,7 +322,7 @@ L_Keep: getitem "TealHitchhikersTowel", 1; end; } -function|script|useLimeWarpTowel| +function|script|useLimeWarpTowel|, { if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; -- cgit v1.2.3-70-g09d2 From 135f0fe12564decad0d3e2ff8af8f798b0a7f4cf Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 5 Jul 2013 18:12:55 -0700 Subject: Canonicalize event label capitalization --- world/map/npc/005-4/bossfight.txt | 38 +++++++++++++++++----------------- world/map/npc/007-1/witch.txt | 2 +- world/map/npc/008-1/annualeaster.txt | 2 +- world/map/npc/009-6/brodomir.txt | 4 ++-- world/map/npc/011-1/auldsbel.txt | 4 ++-- world/map/npc/011-1/oscar.txt | 24 ++++++++++----------- world/map/npc/011-6/bryant.txt | 12 +++++------ world/map/npc/019-1/mobmanager.txt | 2 +- world/map/npc/027-2/caretaker.txt | 2 +- world/map/npc/029-3/parua.txt | 32 ++++++++++++++-------------- world/map/npc/031-4/cindyCave.txt | 20 +++++++++--------- world/map/npc/042-1/hasan.txt | 8 +++---- world/map/npc/051-3/ambush.txt | 8 +++---- world/map/npc/051-3/janitor.txt | 2 +- world/map/npc/051-3/reinforcements.txt | 16 +++++++------- world/map/npc/052-1/channelling.txt | 8 +++---- world/map/npc/052-2/chest.txt | 22 ++++++++++---------- world/map/npc/052-2/janitor.txt | 6 +++--- world/map/npc/052-2/lobby.txt | 24 ++++++++++----------- world/map/npc/052-2/partyroom.txt | 22 ++++++++++---------- world/map/npc/052-2/storage.txt | 32 ++++++++++++++-------------- 21 files changed, 145 insertions(+), 145 deletions(-) (limited to 'world/map/npc/011-1/oscar.txt') diff --git a/world/map/npc/005-4/bossfight.txt b/world/map/npc/005-4/bossfight.txt index 4a197025..8f8ab384 100644 --- a/world/map/npc/005-4/bossfight.txt +++ b/world/map/npc/005-4/bossfight.txt @@ -23,11 +23,11 @@ L_Start_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"; + 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"; + 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: @@ -59,8 +59,8 @@ OnTimer3000: 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_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; @@ -85,7 +85,7 @@ L_More_Blue: L_Next_Step: // Basic per player logic - areatimer "005-4.gat", 19, 19, 54, 37, 10, "Switch#elecave::onTick"; + 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; @@ -103,11 +103,11 @@ L_Start_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"; + 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"; + 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: @@ -116,23 +116,23 @@ L_Start_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"; + 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"; + 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: +OnChaos: if (isdead()) end; L_Set_Color: message strcharinfo(0), "You feel funny. You think your color has changed."; set @ELE_CAVE_COLOR, rand(1, 2); end; -onTick: +OnTick: if (isdead()) end; // Count this player as alive @@ -175,21 +175,21 @@ L_Heal: end; // Death triggers -onBlueDeath: +OnBlueDeath: // Blue players have to kill blue sparks if (@ELE_CAVE_COLOR == 2) end; message strcharinfo(0), "The dying spark reacts explosively with you. You should only kill sparks with the same color as you."; heal MaxHp / -2, 0; end; -onRedDeath: +OnRedDeath: // Red players have to kill red sparks if (@ELE_CAVE_COLOR == 1) end; message strcharinfo(0), "The dying spark reacts explosively with you. You should only kill sparks with the same color as you."; heal MaxHp / -2, 0; end; -onInit: +OnInit: if (debug >= 2) end; initnpctimer; stopnpctimer; @@ -200,8 +200,8 @@ L_CleanUp: 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"; + killmonster "005-4.gat", "Switch#elecave::OnBlueDeath"; + killmonster "005-4.gat", "Switch#elecave::OnRedDeath"; stopnpctimer; setnpctimer 0; diff --git a/world/map/npc/007-1/witch.txt b/world/map/npc/007-1/witch.txt index 4fddbc8e..8eb78a2b 100644 --- a/world/map/npc/007-1/witch.txt +++ b/world/map/npc/007-1/witch.txt @@ -643,7 +643,7 @@ OnTimer300000: { end; -onInit: +OnInit: disablenpc "#IlliaTorch1"; disablenpc "#IlliaTorch2"; disablenpc "#IlliaTorch3"; diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt index 1ab74af3..66c1c746 100644 --- a/world/map/npc/008-1/annualeaster.txt +++ b/world/map/npc/008-1/annualeaster.txt @@ -133,7 +133,7 @@ L_End1: { end; -onInit: +OnInit: set $@EASTER_FOUND_WAIT_TIME, 15; set $@EASTER_FINAL_REW_INV_CHANCE, 70; set $@EASTER_EGG_INV_CHANCE, 750; diff --git a/world/map/npc/009-6/brodomir.txt b/world/map/npc/009-6/brodomir.txt index ab26c081..8d9bf5f5 100644 --- a/world/map/npc/009-6/brodomir.txt +++ b/world/map/npc/009-6/brodomir.txt @@ -192,10 +192,10 @@ L_SkipItemback: L_Check: if (getareausers("009-5.gat", 20, 20, 80, 80, 1) > 1) end; - areatimer "009-5.gat", 20, 20, 80, 80, 0, "Brodomir::onReward"; + areatimer "009-5.gat", 20, 20, 80, 80, 0, "Brodomir::OnReward"; goto L_End; -onReward: +OnReward: if (isdead()) goto L_Dead; message strcharinfo(0), "Congratulations you won!"; diff --git a/world/map/npc/011-1/auldsbel.txt b/world/map/npc/011-1/auldsbel.txt index 4344b9ce..8fb16e2c 100644 --- a/world/map/npc/011-1/auldsbel.txt +++ b/world/map/npc/011-1/auldsbel.txt @@ -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 66f817c1..c9ee88da 100644 --- a/world/map/npc/011-1/oscar.txt +++ b/world/map/npc/011-1/oscar.txt @@ -299,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; @@ -312,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" @@ -329,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: @@ -348,7 +348,7 @@ OnTimer6000: setnpctimer 0; end; -onPD: +OnPD: if (strcharinfo(0) != $@HalloweenQuest_PumpkinHunter$) goto L_KillBadHunter; set $@HalloweenQuest_PumpkinsCount, $@HalloweenQuest_PumpkinsCount - 1; @@ -369,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: @@ -435,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; diff --git a/world/map/npc/011-6/bryant.txt b/world/map/npc/011-6/bryant.txt index 9bc94df8..528bf434 100644 --- a/world/map/npc/011-6/bryant.txt +++ b/world/map/npc/011-6/bryant.txt @@ -25,10 +25,10 @@ L_Bryant_Summon: 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 @state, 4; callsub S_Update_Var; - monster "011-6.gat",260,250,"BanditLord",1065,1, "Bryant::onBanditLordDead"; + monster "011-6.gat",260,250,"BanditLord",1065,1, "Bryant::OnBanditLordDead"; goto L_Close; -onBanditLordDead: +OnBanditLordDead: message strcharinfo(0), "You killed the bandit lord."; set @state, ((QUEST_Hurnscald & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT); if (@state != 4) @@ -51,15 +51,15 @@ L_Bryant_Waits: 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"; + killmonster "011-6.gat", "Bryant::OnBanditLordDead"; + monster "011-6.gat",260,250,"BanditLord",1065,1, "Bryant::OnBanditLordDead"; goto L_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"; + killmonster "011-6.gat", "Bryant::OnBanditLordDead"; + monster "011-6.gat",260,250,"BanditLord",1065,1, "Bryant::OnBanditLordDead"; goto L_Close; L_Bryant_Quiet: diff --git a/world/map/npc/019-1/mobmanager.txt b/world/map/npc/019-1/mobmanager.txt index b2269658..22917bea 100644 --- a/world/map/npc/019-1/mobmanager.txt +++ b/world/map/npc/019-1/mobmanager.txt @@ -4,7 +4,7 @@ { end; // just to be secure -onInit: +OnInit: set $@019_1_SANTASLIME_MONSTER_MAX_NUMBER,15; set $@019_1_SANTASLIME_MOMSTER_ID,1015; set $@019_1_SANTASLIME_MONSTER_SPAWN_X1,32; diff --git a/world/map/npc/027-2/caretaker.txt b/world/map/npc/027-2/caretaker.txt index ddacf86a..cb1cdc8f 100644 --- a/world/map/npc/027-2/caretaker.txt +++ b/world/map/npc/027-2/caretaker.txt @@ -117,7 +117,7 @@ OnTimer3000: setnpctimer 0; end; -onInit: +OnInit: monster "027-2.gat", 29, 21, "Caretaker's Wife", 1044, 1, "Caretaker::OnWifeDeath"; end; diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt index 75bb4878..41b5d79c 100644 --- a/world/map/npc/029-3/parua.txt +++ b/world/map/npc/029-3/parua.txt @@ -139,7 +139,7 @@ OnTimer5000: L_Return_1: set $@FIGHT_CAVE_PLAYER_COUNT, 0; - areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::onTick"; + areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::OnTick"; end; L_CaveLogic: @@ -149,7 +149,7 @@ L_CaveLogic: 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) + if (mobcount("029-3.gat", "Parua::OnPetDeath") <= 0) goto L_NextRound; if ($@FIGHT_CAVE_ROUND_TIMER + $@FIGHT_CAVE_ROUND_PEN >= 120) goto L_NextRound; @@ -167,7 +167,7 @@ L_NextRound: goto L_CleanUp; set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_LEVEL; - areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::onNewRound"; + areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::OnNewRound"; mapannounce "029-1.gat", "Parua: The next round (level " + $@FIGHT_CAVE_LEVEL + ") is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0; mapannounce "029-3.gat", "Parua: The next round (level " + $@FIGHT_CAVE_LEVEL + ") is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0; @@ -233,47 +233,47 @@ L_Fifteen_Minutes: 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"; + 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"; + 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"; + 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"; + 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"; + 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"; + areamonster "029-3.gat", 20, 20, 70, 60, "", 1008, 1, "Parua::OnPetDeath"; goto L_Summon; // Called on each player once every 5 seconds -onTick: +OnTick: if (isdead()) end; set $@FIGHT_CAVE_PLAYER_COUNT, $@FIGHT_CAVE_PLAYER_COUNT + 1; end; // called on each player when a new round begins -onNewRound: +OnNewRound: if (isdead()) end; if ($@FIGHT_CAVE_LEVEL < 600) @@ -290,10 +290,10 @@ onNewRound: message strcharinfo(0), "The evil energy of this place hurts you. You should keep moving!"; end; -onPetDeath: +OnPetDeath: end; -onInit: +OnInit: if (debug >= 2) end; initnpctimer; stopnpctimer; @@ -301,12 +301,12 @@ onInit: 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"; + 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"; + killmonster "029-3.gat", "Parua::OnPetDeath"; stopnpctimer; setnpctimer 0; end; @@ -336,7 +336,7 @@ L_IdleCheckPassed: //set @candor_idle_counter, 0; end; -onReward: +OnReward: if (isdead()) end; set BOSS_POINTS, BOSS_POINTS + 100; diff --git a/world/map/npc/031-4/cindyCave.txt b/world/map/npc/031-4/cindyCave.txt index 2534981a..6c03e951 100644 --- a/world/map/npc/031-4/cindyCave.txt +++ b/world/map/npc/031-4/cindyCave.txt @@ -64,7 +64,7 @@ L_Try_Cage: set $@FIGHT_YETI_WAVE, 0; set $@YETI_COUNT, 1; set $@FIGHT_YETI_PLAYER_COUNT, getmapusers("031-4.gat"); - areamonster "031-4.gat", 0, 0, 95, 91, "", 1072, 1, "Cindy::onPetDeath"; + areamonster "031-4.gat", 0, 0, 95, 91, "", 1072, 1, "Cindy::OnPetDeath"; initnpctimer; goto L_Close; @@ -142,7 +142,7 @@ OnTimer5000: L_Return_1: set $@FIGHT_YETI_PLAYER_COUNT, 0; - areatimer "031-4.gat", 0, 0, 95, 91, 10, "Cindy::onTick"; + areatimer "031-4.gat", 0, 0, 95, 91, 10, "Cindy::OnTick"; end; L_CaveLogic: @@ -152,7 +152,7 @@ L_CaveLogic: 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) + if (mobcount("031-4.gat", "Cindy::OnPetDeath") < 0) goto L_NextWave; if ($@FIGHT_YETI_ROUND_TIMER + $@FIGHT_YETI_ROUND_PEN >= 120) goto L_NextWave; @@ -168,13 +168,13 @@ L_NextWave: && $@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"; + 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, (5 + (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"; + 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; @@ -221,17 +221,17 @@ L_NextWave: goto L_Return_1; // Called on each player once every 5 seconds -onTick: +OnTick: if (isdead()) end; set $@FIGHT_YETI_PLAYER_COUNT, $@FIGHT_YETI_PLAYER_COUNT + 1; end; -onPetDeath: +OnPetDeath: set $@YETI_COUNT, $@YETI_COUNT - 1; end; L_CleanUp: - areatimer "031-4.gat", 0, 0, 95, 91, 10, "Cindy::onReward"; + 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, 0; @@ -239,12 +239,12 @@ L_CleanUp: set $@YETI_COUNT, 0; set $@FIGHT_YETI_ROUND_PEN, 0; set $@FIGHT_YETI_NUMBER, 0; - killmonster "031-4.gat", "Cindy::onPetDeath"; + killmonster "031-4.gat", "Cindy::OnPetDeath"; stopnpctimer; setnpctimer 0; end; -onReward: +OnReward: if (isdead()) end; set @bonus, (BaseLevel/2); set DailyQuestBonus, DailyQuestBonus + @bonus; diff --git a/world/map/npc/042-1/hasan.txt b/world/map/npc/042-1/hasan.txt index a8774166..581eb83a 100644 --- a/world/map/npc/042-1/hasan.txt +++ b/world/map/npc/042-1/hasan.txt @@ -96,7 +96,7 @@ L_Trick: set $@ScorpionTimer, 0; set $@ScorpionFighter, getcharid(3); set $@ScorpDeath, PC_DIE_COUNTER; - monster "042-1.gat",89,63,"Scorpion",1003,1, "Hasan::onScorpionDeath"; + monster "042-1.gat",89,63,"Scorpion",1003,1, "Hasan::OnScorpionDeath"; initnpctimer; end; @@ -158,11 +158,11 @@ 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; message strcharinfo(0), "Kaan: \"Just go while he is distracted and no one is interfering!\""; - monster "042-1.gat",89,63,"Scorpion",1003,1, "Hasan::onScorpionDeath"; + monster "042-1.gat",89,63,"Scorpion",1003,1, "Hasan::OnScorpionDeath"; end; L_Clean: - killmonster "042-1.gat", "Hasan::onScorpionDeath"; + killmonster "042-1.gat", "Hasan::OnScorpionDeath"; set $@ScorpionFighter, 0; set $@ScorpionTimer, 0; set $@ScorpDeath, 0; @@ -200,7 +200,7 @@ OnTimer5000: setnpctimer 0; end; -onScorpionDeath: +OnScorpionDeath: if (getcharid(3) != $@ScorpionFighter) goto L_SummonAgain; if (hasan != 3) diff --git a/world/map/npc/051-3/ambush.txt b/world/map/npc/051-3/ambush.txt index 5d31eff5..109d55b2 100644 --- a/world/map/npc/051-3/ambush.txt +++ b/world/map/npc/051-3/ambush.txt @@ -72,17 +72,17 @@ OnTimer9000: end; OnTimer11000: - areatimer "051-3.gat", 22, 12, 102, 97, 500, "#BndtTl::onOuch"; - areatimer "051-3.gat", 22, 12, 102, 97, 3000, "#BndtTl::onA"; + areatimer "051-3.gat", 22, 12, 102, 97, 500, "#BndtTl::OnOuch"; + areatimer "051-3.gat", 22, 12, 102, 97, 3000, "#BndtTl::OnA"; stopnpctimer; setnpctimer 0; end; -onOuch: +OnOuch: message strcharinfo(0), "Ouch my head..."; end; -onA: +OnA: if (strcharinfo(0) == $@ILLIA_HERO$) goto L_CaptureHero; if (strcharinfo(0) == $@ILLIA_HELPER1$) diff --git a/world/map/npc/051-3/janitor.txt b/world/map/npc/051-3/janitor.txt index 32a9f22c..527ca24c 100644 --- a/world/map/npc/051-3/janitor.txt +++ b/world/map/npc/051-3/janitor.txt @@ -5,7 +5,7 @@ end; OnCommandClean: // Kill all remaining bandits spawned during the "reinforcements" event - killmonster "051-1.gat", "Door::onB"; + killmonster "051-1.gat", "Door::OnB"; end; } diff --git a/world/map/npc/051-3/reinforcements.txt b/world/map/npc/051-3/reinforcements.txt index 62e78bf6..90699b8b 100644 --- a/world/map/npc/051-3/reinforcements.txt +++ b/world/map/npc/051-3/reinforcements.txt @@ -46,18 +46,18 @@ L_Warp: OnRnfrcmts: set $@illia_level_2_progress, 3; // Spawn 20 bandits - areamonster "051-3.gat", 29, 25, 48, 39, "", 1064, 18, "Door::onB"; + areamonster "051-3.gat", 29, 25, 48, 39, "", 1064, 18, "Door::OnB"; // Spawn 4 bandit lords - areamonster "051-3.gat", 29, 25, 48, 39, "", 1065, 3, "Door::onB"; + areamonster "051-3.gat", 29, 25, 48, 39, "", 1065, 3, "Door::OnB"; initnpctimer; mapannounce "051-3.gat", "Bandit Lords: Do not let them escape!!" , 0; - areatimer "051-3.gat", 25, 20, 80, 85, 10, "Door::onDRnfrcmts"; + areatimer "051-3.gat", 25, 20, 80, 85, 10, "Door::OnDRnfrcmts"; end; -onB: +OnB: end; -onDRnfrcmts: +OnDRnfrcmts: message strcharinfo(0), "Oh no, reinforcements! We must kill them all!"; end; @@ -65,7 +65,7 @@ OnTimer2000: setnpctimer 0; if ($@illia_level_2_progress != 3 || $@illia_progress != 2) end; - if (mobcount("051-3.gat", "Door::onB") < 0) + if (mobcount("051-3.gat", "Door::OnB") < 0) goto L_OpenDoor; end; @@ -74,12 +74,12 @@ L_OpenDoor: set $@illia_progress, 3; callfunc "UpdateIlliaProgress"; set $@illia_max_time, $@illia_max_time + 900; - areatimer "051-3.gat", 25, 20, 80, 85, 10, "Door::onKeyFound"; + areatimer "051-3.gat", 25, 20, 80, 85, 10, "Door::OnKeyFound"; stopnpctimer; setnpctimer 0; end; -onKeyFound: +OnKeyFound: message strcharinfo(0), "One of the defeated bandit lords had a door key attached to his belt."; end; diff --git a/world/map/npc/052-1/channelling.txt b/world/map/npc/052-1/channelling.txt index 3575dcbe..eda49450 100644 --- a/world/map/npc/052-1/channelling.txt +++ b/world/map/npc/052-1/channelling.txt @@ -40,11 +40,11 @@ L_PushBack: close; OnCommandDS: - areamonster "052-1.gat", 56, 30, 60, 31, "", 1101, 2 + rand(3), "#Enchanted Door::onSpawn"; + areamonster "052-1.gat", 56, 30, 60, 31, "", 1101, 2 + rand(3), "#Enchanted Door::OnSpawn"; misceffect FX_EVIL_SUMMON; end; -onSpawn: +OnSpawn: end; } @@ -256,11 +256,11 @@ S_CheckChannelling: set $@illia_channelling_status_msg$, $@illia_char_channelling$ + ": Damn! It faded a little."; if ($@illia_channelling_status_msg$ != "") - areatimer "052-1.gat", 1, 1, 100, 80, 0, "#Power Circle::onMPSC"; + areatimer "052-1.gat", 1, 1, 100, 80, 0, "#Power Circle::OnMPSC"; return; -onMPSC: +OnMPSC: message strcharinfo(0), $@illia_channelling_status_msg$; set $@illia_channelling_status_msg$, ""; end; diff --git a/world/map/npc/052-2/chest.txt b/world/map/npc/052-2/chest.txt index 11725a9a..f1c9872e 100644 --- a/world/map/npc/052-2/chest.txt +++ b/world/map/npc/052-2/chest.txt @@ -29,7 +29,7 @@ L_ShouldNotBeHere: percentheal -100, 0; end; -onInit: +OnInit: setarray $@illia_item_common_rewards, 601, 636, 637, 638, 639, 625, 626, 658, 571, 579, 876, 782, 545, 758, 4028, 602, 536, 720, 532, 570, 642; setarray $@illia_item_unique_rewards, 877, 878, 879, 880; end; @@ -139,30 +139,30 @@ L_PrepareLeaving: L_Leave: set @illia_got_rewards, 3; set @illia_current_num_rewards, 0; - addtimer 1000, "Chest::onMsg1"; - addtimer 4000, "Chest::onMsg2"; - addtimer 7000, "Chest::onMsg3"; - addtimer 9000, "Chest::onFx"; - addtimer 10000, "Chest::onRing"; + addtimer 1000, "Chest::OnMsg1"; + addtimer 4000, "Chest::OnMsg2"; + addtimer 7000, "Chest::OnMsg3"; + addtimer 9000, "Chest::OnFx"; + addtimer 10000, "Chest::OnRing"; close; -onMsg1: +OnMsg1: message strcharinfo(0), "At the moment you are wearing the ring, you start to feel dizzy..."; end; -onMsg2: +OnMsg2: message strcharinfo(0), "Who is Luvia? Something isn't right... It looks like your memory is rewritten."; end; -onMsg3: +OnMsg3: message strcharinfo(0), "Damn, this ring! That Valia! Someone..."; end; -onFx: +OnFx: misceffect FX_MAGIC_BLUE_TELEPORT, strcharinfo(0); end; -onRing: +OnRing: warp "007-1.gat", 85 + rand(0,2), 75 + rand(0,2); if (strcharinfo(0) == $@ILLIA_HERO$) goto L_ScheduleEnd; diff --git a/world/map/npc/052-2/janitor.txt b/world/map/npc/052-2/janitor.txt index 32ed405c..7ee68955 100644 --- a/world/map/npc/052-2/janitor.txt +++ b/world/map/npc/052-2/janitor.txt @@ -17,7 +17,7 @@ OnCommandClean: end; OnCommandClean: - killmonster "052-2.gat", "#ItemsInvoker::onDeath"; + killmonster "052-2.gat", "#ItemsInvoker::OnDeath"; npcwarp 1, 1, "#ItemsInvoker"; end; @@ -29,8 +29,8 @@ OnCommandClean: end; OnCommandClean: - killmonster "052-2.gat", "#LuviaDaemon::onDeath"; - killmonster "052-2.gat", "#LuviaDaemon::onWGD"; + killmonster "052-2.gat", "#LuviaDaemon::OnDeath"; + killmonster "052-2.gat", "#LuviaDaemon::OnWGD"; npcwarp 83, 28, "#LuviaDaemon"; npcwarp 88, 15, "Luvia"; end; diff --git a/world/map/npc/052-2/lobby.txt b/world/map/npc/052-2/lobby.txt index c651266c..744a0a2a 100644 --- a/world/map/npc/052-2/lobby.txt +++ b/world/map/npc/052-2/lobby.txt @@ -107,7 +107,7 @@ OnNN: { end; -onInit: +OnInit: setarray $@illia_lobby_voices$, "Finally.", "I was...", "Waiting...", "For you!"; end; @@ -236,7 +236,7 @@ OnTimer24500: npctalk "Demonotis!"; misceffect FX_EVIL_SUMMON; callsub S_GetHeroRect; - areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1101, 20 + 16 - 480/(30+$Illia_Luvia_Harvest), "Luvia?::onDSDeath"; + areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1101, 20 + 16 - 480/(30+$Illia_Luvia_Harvest), "Luvia?::OnDSDeath"; callsub S_ClearHeroRect; end; @@ -246,7 +246,7 @@ OnTimer44000: npctalk "Demonotis!"; misceffect FX_EVIL_SUMMON; callsub S_GetHeroRect; - areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1101, 28 + 16 - 480/(30+$Illia_Luvia_Harvest), "Luvia?::onDSDeath"; + areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1101, 28 + 16 - 480/(30+$Illia_Luvia_Harvest), "Luvia?::OnDSDeath"; callsub S_ClearHeroRect; end; @@ -256,7 +256,7 @@ OnTimer77000: npctalk "Demonotis!"; misceffect FX_EVIL_SUMMON; callsub S_GetHeroRect; - areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1101, 42 + 16 - 480/(30+$Illia_Luvia_Harvest), "Luvia?::onDSDeath"; + areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1101, 42 + 16 - 480/(30+$Illia_Luvia_Harvest), "Luvia?::OnDSDeath"; callsub S_ClearHeroRect; // That was the last spawn: reset the timer to start the CheckInvoke loop. set $@illia_level_5_progress, 5; @@ -289,7 +289,7 @@ OnTimer18500: misceffect FX_EVIL_SUMMON; misceffect FX_MAGIC_DARK_EXPLOSION; callsub S_GetHeroRect; - areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1103, 8 + (16 - 480/(30+$Illia_Luvia_Harvest))/3, "Luvia?::onWGDeath"; + areamonster "052-2.gat", $@illia_lobby_x1, $@illia_lobby_y1, $@illia_lobby_x2, $@illia_lobby_y2, "", 1103, 8 + (16 - 480/(30+$Illia_Luvia_Harvest))/3, "Luvia?::OnWGDeath"; callsub S_ClearHeroRect; end; @@ -309,19 +309,19 @@ OnTimer2000: end; setnpctimer 0; // Mock players randomly (more or less once every 40 secs) and if still enough mobs running after them - if ($@illia_level_5_progress == 5 && rand(20) == 0 && (mobcount("052-2.gat", "Luvia?::onDSDeath") > 20)) + if ($@illia_level_5_progress == 5 && rand(20) == 0 && (mobcount("052-2.gat", "Luvia?::OnDSDeath") > 20)) npctalk "Ahaha! Run... Run!"; - if ($@illia_level_5_progress == 5 && (mobcount("052-2.gat", "Luvia?::onDSDeath") < 0)) + if ($@illia_level_5_progress == 5 && (mobcount("052-2.gat", "Luvia?::OnDSDeath") < 0)) goto L_AllWavesClear; - if ($@illia_level_5_progress == 7 && (mobcount("052-2.gat", "Luvia?::onWGDeath") < 0)) + if ($@illia_level_5_progress == 7 && (mobcount("052-2.gat", "Luvia?::OnWGDeath") < 0)) goto L_AllWavesClear; end; L_Clear: stopnpctimer; setnpctimer 0; - killmonster "052-2.gat", "Luvia?::onDSDeath"; - killmonster "052-2.gat", "Luvia?::onWGDeath"; + killmonster "052-2.gat", "Luvia?::OnDSDeath"; + killmonster "052-2.gat", "Luvia?::OnWGDeath"; end; L_AllWavesClear: @@ -372,10 +372,10 @@ S_ClearHeroRect: set $@illia_lobby_y2, 0; return; -onDSDeath: +OnDSDeath: end; -onWGDeath: +OnWGDeath: end; } diff --git a/world/map/npc/052-2/partyroom.txt b/world/map/npc/052-2/partyroom.txt index fc1094f5..edbade40 100644 --- a/world/map/npc/052-2/partyroom.txt +++ b/world/map/npc/052-2/partyroom.txt @@ -142,7 +142,7 @@ OnTimer5500: enablenpc "#LuviaDaemon"; misceffect FX_EVIL_SUMMON; misceffect FX_CHANNELLING_CAST; - monster "052-2.gat", $@illia_luvia_x, $@illia_luvia_y, "", 1102, 1, "#LuviaDaemon::onDeath"; + monster "052-2.gat", $@illia_luvia_x, $@illia_luvia_y, "", 1102, 1, "#LuviaDaemon::OnDeath"; set $@illia_luvia_x, 0; set $@illia_luvia_y, 0; end; @@ -182,9 +182,9 @@ S_SpawnWitchGuard: npcwarp getx(), gety(), "#LuviaDaemon"; misceffect FX_EVIL_SUMMON; misceffect FX_GROUND_SPAWN; - monster "052-2.gat", getx(), gety(), "", 1103, 1, "#LuviaDaemon::onWGD"; + monster "052-2.gat", getx(), gety(), "", 1103, 1, "#LuviaDaemon::OnWGD"; detachrid; - areatimer "052-2.gat", 73, 11, 115, 49, 0, "#LuviaDaemon::onWGS"; + areatimer "052-2.gat", 73, 11, 115, 49, 0, "#LuviaDaemon::OnWGS"; return; OnTimer30000: @@ -200,7 +200,7 @@ OnTimer30000: L_TriggerTrance: set $@illia_level_7_progress, 3; set $@illia_luvia_trance_delay, 0; - areatimer "052-2.gat", 73, 11, 115, 49, 0, "#LuviaDaemon::onTT"; + areatimer "052-2.gat", 73, 11, 115, 49, 0, "#LuviaDaemon::OnTT"; setnpctimer 0; end; @@ -209,19 +209,19 @@ L_Clear: setnpctimer 0; end; -onDeath: +OnDeath: stopnpctimer; setnpctimer 0; if ($@illia_progress != 7) end; set $@illia_level_7_progress, 4; - killmonster "052-2.gat", "#LuviaDaemon::onWGD"; + killmonster "052-2.gat", "#LuviaDaemon::OnWGD"; mapannounce "052-2.gat", "Luvia: How? By mere humans! But we will see again! Enjoy your victory while it lasts, " + $@ILLIA_HERO$ + "!!", 0; set @illia_bp, $Illia_Luvia_Harvest * 16 / 10 + 120; set BOSS_POINTS, BOSS_POINTS + @illia_bp; message strcharinfo(0), "You gain " + @illia_bp + " Boss Points giving you a total of " + BOSS_POINTS + "."; set @illia_bp, 0; - areatimer "052-2.gat", 73, 11, 115, 49, 2000, "#LuviaDaemon::onW00t"; + areatimer "052-2.gat", 73, 11, 115, 49, 2000, "#LuviaDaemon::OnW00t"; set $@illia_progress, 8; callfunc "UpdateIlliaProgress"; @@ -249,20 +249,20 @@ onDeath: end; -onWGD: +OnWGD: end; -onWGS: +OnWGS: if ($@illia_level_7_progress == 2) message strcharinfo(0), "One of Luvia's guard spawned from the depths to assist her!"; end; -onTT: +OnTT: if ($@illia_level_7_progress == 3) message strcharinfo(0), "Luvia seems to become in trance!"; end; -onW00t: +OnW00t: message strcharinfo(0), "You defeated this evil sorceress... But what about her sister now?"; end; diff --git a/world/map/npc/052-2/storage.txt b/world/map/npc/052-2/storage.txt index 43160db8..464eee9b 100644 --- a/world/map/npc/052-2/storage.txt +++ b/world/map/npc/052-2/storage.txt @@ -31,7 +31,7 @@ L_StartItemInvoker: { end; -onInit: +OnInit: setarray $@illia_storage_items, 541, 567, 568, 562; setarray $@illia_storage_special_items, 687, 827, 1229; // Map coords : x1,y1, x2,y2, ... @@ -42,10 +42,10 @@ OnCommandStart: set $@illia_storage_max_items, 20; set $@illia_storage_deviation, (8 + ($Illia_Luvia_Harvest*70)/100)*3; initnpctimer; - areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::onStart"; + areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::OnStart"; end; -onStart: +OnStart: message strcharinfo(0), "You feel a strange atmosphere in this room... You sense a strong magic rising from the depth!"; end; @@ -64,7 +64,7 @@ OnTimer1000: OnTimer1500: // See the note above. enablenpc "#ItemsInvoker"; - areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::onItem"; + areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::OnItem"; misceffect FX_GROUND_SPAWN; end; @@ -75,7 +75,7 @@ OnTimer3750: set $@item_invoke_index, 0; end; -onItem: +OnItem: if (strcharinfo(0) == $@ILLIA_HERO$) goto L_ItemSpawn; end; @@ -108,20 +108,20 @@ L_ItemSpawn: end; L_MakeSpecialMonster: - monster "052-2.gat", $@item_invoke_x, $@item_invoke_y, "", 1103, 1, "#ItemsInvoker::onDeath"; - areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::onWtf"; + monster "052-2.gat", $@item_invoke_x, $@item_invoke_y, "", 1103, 1, "#ItemsInvoker::OnDeath"; + areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::OnWtf"; set $@illia_storage_max_items, $@illia_storage_max_items - 1; end; L_MakeMonster: - monster "052-2.gat", $@item_invoke_x, $@item_invoke_y, "", 1101, rand(1, 3), "#ItemsInvoker::onDeath"; + monster "052-2.gat", $@item_invoke_x, $@item_invoke_y, "", 1101, rand(1, 3), "#ItemsInvoker::OnDeath"; set $@illia_storage_max_items, $@illia_storage_max_items - 1; set @r, 0; end; L_MakeSpecialItem: makeitem $@illia_storage_special_items[rand(getarraysize($@illia_storage_special_items))], rand(2, 4), "052-2.gat", $@item_invoke_x, $@item_invoke_y; - areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::onWow"; + areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::OnWow"; set $@illia_storage_max_items, $@illia_storage_max_items - 1; set @r, 0; end; @@ -129,7 +129,7 @@ L_MakeSpecialItem: L_CheckMobs: if ($@illia_progress != 6) goto L_Clear; - if (mobcount("052-2.gat", "#ItemsInvoker::onDeath") < 0) + if (mobcount("052-2.gat", "#ItemsInvoker::OnDeath") < 0) goto L_Stop; setnpctimer 0; end; @@ -139,7 +139,7 @@ L_Clear: setnpctimer 0; set $@illia_storage_deviation, 0; set $@illia_storage_max_items, 0; - killmonster "052-2.gat", "#ItemsInvoker::onDeath"; + killmonster "052-2.gat", "#ItemsInvoker::OnDeath"; end; L_Stop: @@ -152,21 +152,21 @@ L_Stop: set $@illia_progress, 7; callfunc "UpdateIlliaProgress"; set $@illia_max_time, $@illia_max_time + 1200; - areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::onStop"; + areatimer "052-2.gat", 19, 60, 35, 78, 10, "#ItemsInvoker::OnStop"; end; -onDeath: +OnDeath: end; -onStop: +OnStop: message strcharinfo(0), "The magic seems to quickly dissipate."; end; -onWtf: +OnWtf: message strcharinfo(0), "Look out!"; end; -onWow: +OnWow: message strcharinfo(0), "Wow, see what appeared!"; end; -- cgit v1.2.3-70-g09d2