summaryrefslogtreecommitdiff
path: root/world
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-04-08 11:42:04 -0300
committerJesusaves <cpntb1@ymail.com>2022-04-08 11:42:04 -0300
commitbb65e5d75a8072d112e88bef5da89f115271fb0b (patch)
tree939ab6f0d6b3c08376f5cbef87973937361f2c29 /world
parentaabfc9306849fd3e0cb28f9a78e49caab8cec258 (diff)
downloadserverdata-bb65e5d75a8072d112e88bef5da89f115271fb0b.tar.gz
serverdata-bb65e5d75a8072d112e88bef5da89f115271fb0b.tar.bz2
serverdata-bb65e5d75a8072d112e88bef5da89f115271fb0b.tar.xz
serverdata-bb65e5d75a8072d112e88bef5da89f115271fb0b.zip
Remove the chests from Doomsday event.
Diffstat (limited to 'world')
-rw-r--r--world/map/npc/functions/doomsday.txt203
1 files changed, 0 insertions, 203 deletions
diff --git a/world/map/npc/functions/doomsday.txt b/world/map/npc/functions/doomsday.txt
index 1d3df2cd..612bd916 100644
--- a/world/map/npc/functions/doomsday.txt
+++ b/world/map/npc/functions/doomsday.txt
@@ -1229,207 +1229,4 @@ OnInit:
end;
}
-009-1,53,40,0|script|Chest#Zealite|111
-{
- if ($DOOMSDAY_SUMMON < 2) end;
- if ((gettimetick(2)-TUT_var < 3*7*86400) || (BaseLevel < 25)) //player must be created at least 3 weeks ago
- goto L_EndTooYoung;
- if (#DOOMSDAY_ARMOR)
- goto L_EndTooYoung;
- mes "[Chest]";
- mes "Inside this chest, Jande left us some Zealite based armor.";
- next;
- mes "[Chest]";
- mes "The @@5254|@@ can be really powerful. It'll be taken away once Doomsday Event ends.";
- next;
- mes "[Chest]";
- mes "Should we take it? (Max. 1 per account)";
- next;
- mes "Event Details: [@@https://forums.themanaworld.org/viewtopic.php?t=20921|@@]";
- menu
- "Yes, take it", L_Yes,
- "No, I don't trust it", L_No;
-
-L_Yes:
- message strcharinfo(0), "Chest : You took the Savior Armor from the chest. It will be lost once event ends.";
- getitem "SaviorArmor", 1;
- set #DOOMSDAY_ARMOR, 1;
- close;
-
-L_No:
- close;
-
-L_EndTooYoung:
- if ($DOOMSDAY == 3) goto L_Hocus;
- message strcharinfo(0), "Chest : It is empty!";
- end;
-
-L_Hocus:
- message strcharinfo(0), "Chest : Only contains fire extinguishers, water hoses, and other fire-fighting stuff. I wonder what that is for.";
- end;
-
-OnInit:
- disablenpc "Chest#Zealite";
- end;
-}
-
-008-1,97,28,0|script|#Haystack|400
-{
- if ($DOOMSDAY != 3) end;
- if ((gettimetick(2)-TUT_var < 5*7*86400) || (BaseLevel < 40)) //player must be created at least 5 weeks ago
- goto L_EndTooYoung;
- if (gettimetick(2) < #HAYSTACKTIMEPENALTY)
- goto L_EndRateLimit;
- set #HAYSTACKTIMEPENALTY, gettimetick(2) + 5;
- message strcharinfo(0), "Haystack : What exactly are you looking for?";
- // 5% chance (was 1% on 2010)
- if (rand(20) == 0)
- goto L_GetNeedle;
- close;
-
-L_GetNeedle:
- set #HAYSTACKTIMEPENALTY, gettimetick(2) + 3600; // 1 hours delay
- getitem "BentNeedle", 1;
- end;
-
-L_EndTooYoung:
- end;
-
-L_EndRateLimit:
- message strcharinfo(0), "Haystack : I just searched this haystack... Gimme a break.";
- end;
-}
-
-// This function controls death, both on Zax Domains as with Black Rose
-// Undead cannot use the Black Rose :>
-function|script|DoomsdayAct5
-{
- if ($DOOMSDAY != 3 || Class == 6)
- goto L_Return;
- if (getmap() == "099-8")
- goto L_Return;
- if (getmap() == "099-5")
- goto L_WaitRoom;
- if (getmap() == "099-1" || getmap() == "099-2" || getmap() == "099-3" || getmap() == "099-4" || getmap() == "099-6")
- goto L_WarpOut;
- // Iilia, Candor, Botcheck, etc.
- if (getmapflag(getmap(), MF_NOSAVE))
- goto L_Return;
- // Anywhere else is fine
- if (countitem("BlackRose") || @alonso)
- goto L_WarpTo;
- goto L_Return;
-
-L_WarpTo:
- heal 100000, 10000;
- if ($DOOMSDAY_TWARP == 0)
- goto L_KeshlamMaze;
- if ($DOOMSDAY_TJANDE == 1)
- goto L_KeshlamAbandoned;
- if (!@alonso)
- message strcharinfo(0), "The Black Rose did a miracle! Failed to die!";
- else
- message strcharinfo(0), "World Shift : Shifted to full health";
- // Ops, nowhere to go!
- goto L_Payment;
-
-L_Payment:
- if (@alonso)
- goto L_PayAlonso;
- goto L_PayNormal;
-
-L_PayAlonso:
- delitem "DarkPetal", 1;
- set @alonso, 0;
- return;
-
-L_PayNormal:
- delitem "BlackRose", 1;
- if (rand(5) < 3)
- getitem "DarkPetal", 1;
- return;
-
-L_WarpOut:
- if (countitem("DarkPetal") < 1)
- goto L_Failure;
- if (rand(9) == 6)
- goto L_Failure;
- delitem "DarkPetal", 1;
- heal 100000, 10000;
- warp "009-1", 52, 40;
- message strcharinfo(0), "The Dark Petal has protected you from certain death!";
- return;
-
-L_WaitRoom:
- heal 100000, 10000;
- warp "099-4", 50, 49;
- message strcharinfo(0), "You were defeated in combat and warped to a parallel dimension where Zax does not exist.";
- message strcharinfo(0), "Try to survive and provide support to your friends from the backline!";
- return;
-
-L_Failure:
- heal 100000, 10000;
- warp "009-1", 52, 40;
- message strcharinfo(0), "You returned to life as an undead!";
- set Class, 6;
- return;
-
-L_Return:
- return;
-
-///////////////////////////////////
-L_KeshlamMaze:
- if (rand(10) % 2 == 1)
- warp "099-8", 23, 378;
- else
- warp "099-8", 379, 378;
- goto L_Payment;
-
-L_KeshlamAbandoned:
- warp "099-1", 34, 34;
- goto L_Payment;
-}
-
-009-1,30,43,0|script|Chest#DarkRose|111
-{
- if ($DOOMSDAY != 3) end;
- if ((gettimetick(2)-TUT_var < 2*7*86400) || (BaseLevel < 35)) //player must be created at least 2 weeks ago
- goto L_EndTooYoung;
- if (#DOOMSDAY_FREEROSE > gettimetick(2))
- goto L_Cooldown;
- mes "[Old Woman]";
- mes "Hello. I've been picking up some @@666|@@, they are growing in my garden.";
- next;
- mes "[Old Woman]";
- mes "The last time this happened was 10 years ago. They give me an ominous feeling.";
- next;
- mes "[Old Woman]";
- mes "Do you want one? I don't like them. (Max. 1 per account)";
- next;
- mes "Event Details: [@@https://forums.themanaworld.org/viewtopic.php?t=20921|@@]";
- menu
- "Yes, take it", L_Yes,
- "No, it sounds dangerous", L_No;
-
-L_Yes:
- message strcharinfo(0), "Chest : You can get another black rose for free in 23 hours.";
- getitem "BlackRose", 1;
- set #DOOMSDAY_FREEROSE, gettimetick(2)+82800;
- close;
-
-L_No:
- close;
-
-L_EndTooYoung:
- message strcharinfo(0), "Chest : It is locked.";
- end;
-
-L_Cooldown:
- message strcharinfo(0), "Chest : You can only claim a free rose every 23 hours, please come back later.";
- end;
-
-OnInit:
- disablenpc "Chest#DarkRose";
- end;
-}