From 2768100b78ddff29b1a375c753b1c5b12ddd8cce Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Sat, 24 Nov 2012 21:53:50 +0100 Subject: After-Halloween bug fixes and adjustments: * Fix bug where a player choosing to fill empty bottles, would be asked to kaflosh if logging off during the infestation phase * Do not allow to gather pumpkin seeds in 055-1 outside of the event time frame, even if the quest has been started * Adjust the monster spawned during infestation: more often Archants for low-levels, more often Spiders for higher levels * Oscar suggests to bring friends to help stopping the infestation --- world/map/npc/011-1/oscar.txt | 22 ++++++++++++++++++---- world/map/npc/055-1/pumpkins.txt | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) (limited to 'world') diff --git a/world/map/npc/011-1/oscar.txt b/world/map/npc/011-1/oscar.txt index f2d5df0a..8babc2ec 100644 --- a/world/map/npc/011-1/oscar.txt +++ b/world/map/npc/011-1/oscar.txt @@ -183,6 +183,10 @@ L_ProposeUseKaflosh: L_GetEmptyBottles: mes "[Oscar]"; mes "\"Ok, here are the " + $@halloween_num_water_bottles + " empty bottles.\""; + next; + mes "\"Oh and while you fill these bottles, why not bring some friends here as well?"; + mes "Let's not be reckless. Maybe these rumors about the pumpkins are true."; + mes "Oh, unless you consider yourself strong enough to take care of this alone!\""; getitem "EmptyBottle", $@halloween_num_water_bottles; goto L_End; @@ -232,11 +236,21 @@ L_WaterWithKaflosh: mes "Water the pumpkin patches right here with your awesome magic!\""; next; mes "\"Here is one bottle of water to do it.\""; + next; + mes "\"By the way, I told you about the rumors concerning these pumpkins."; + mes "Why not bring some friends here? Oh, unless you consider yourself strong enough!\""; set Quest_Halloween, 5; getitem "BottleOfWater", 1; goto L_End; L_HelpWaterPatches: + // We check again here that the player has magic skills + // This case happens when the player has logged off + // during the infestation phase. + set @nature_magic, getskilllv(SKILL_MAGIC_NATURE); + if (!(@nature_magic > 1)) + goto L_HelpFillWaters; + set @nature_magic, 0; mes "[Oscar]"; mes "\"Come on, water the pumpkin patches right here with your awesome magic!"; mes "For sure you will be more efficient than me!\""; @@ -351,12 +365,12 @@ onPD: // huntsman spider x1 if (@halloween_rand < (15*BaseLevel)/100) areamonster "011-1.gat", 97, 40, 101, 44, "", 1083, 1, "Oscar::onPDP"; - // Or archant x2 - if (@halloween_rand >= (15*BaseLevel)/100 && @halloween_rand < (50*BaseLevel)/100) - areamonster "011-1.gat", 97, 40, 101, 44, "", 1060, 2, "Oscar::onPDP"; // Or spider x1 - if (@halloween_rand >= (50*BaseLevel)/100) + if (@halloween_rand >= (15*BaseLevel)/100 && @halloween_rand < (75*BaseLevel)/100) 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"; set @halloween_rand, 0; end; diff --git a/world/map/npc/055-1/pumpkins.txt b/world/map/npc/055-1/pumpkins.txt index 42864cff..c2008c1e 100644 --- a/world/map/npc/055-1/pumpkins.txt +++ b/world/map/npc/055-1/pumpkins.txt @@ -6,7 +6,7 @@ 055-1.gat,0,0,0|script|PumpkinMob055-1|-1,{ On1063: - if (Quest_Halloween != 1) + if (Quest_Halloween != 1 || !(gettime(6) == 11 && (gettime(5) >= 4 && gettime(5) <= 30))) goto L_HeavyPoison; if (@discover_poisonous_pumpkin == 0) message strcharinfo(0), "Yuke, this pumpkin released some ugly poison gas!"; -- cgit v1.2.3-60-g2f50