summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--world/map/db/item_db_chest.txt1
-rw-r--r--world/map/db/item_db_head.txt1
-rw-r--r--world/map/npc/functions/doomsday.txt43
3 files changed, 44 insertions, 1 deletions
diff --git a/world/map/db/item_db_chest.txt b/world/map/db/item_db_chest.txt
index fc47cc29..d0cddcca 100644
--- a/world/map/db/item_db_chest.txt
+++ b/world/map/db/item_db_chest.txt
@@ -246,3 +246,4 @@
5206, CrimsonBra, 5, 800, 400, 12, 0, 2, 0, -4, 0, 2, 512, 0, 0, 0, {}, {}
5207, TurquoiseBra, 5, 800, 400, 12, 0, 2, 0, -4, 0, 2, 512, 0, 0, 0, {}, {}
5208, OrchidBra, 5, 800, 400, 12, 0, 2, 0, -4, 0, 2, 512, 0, 0, 0, {}, {}
+5254, SaviorArmor, 5, 0, 0, 2000, 0, 24, 0, -90, 0, 2, 512, 0, 0, 0, {}, {bonus bDex, 1; bonus bMaxHP, 500;}
diff --git a/world/map/db/item_db_head.txt b/world/map/db/item_db_head.txt
index b2e50b5a..cdcb7fde 100644
--- a/world/map/db/item_db_head.txt
+++ b/world/map/db/item_db_head.txt
@@ -218,3 +218,4 @@
5248, OrangeShades, 5, 500, 100, 20, 0, 2, 0, 0, 0, 2, 256, 0, 0, 0, {}, {}
5249, PurpleShades, 5, 500, 100, 20, 0, 2, 0, 0, 0, 2, 256, 0, 0, 0, {}, {}
5250, DarkGreenShades, 5, 500, 100, 20, 0, 2, 0, 0, 0, 2, 256, 0, 0, 0, {}, {}
+5255, PVPCap, 5, 500, 100, 20, 0, 2, 0, 0, 0, 2, 256, 0, 0, 0, {}, {}
diff --git a/world/map/npc/functions/doomsday.txt b/world/map/npc/functions/doomsday.txt
index 50774bbd..0bebe8cc 100644
--- a/world/map/npc/functions/doomsday.txt
+++ b/world/map/npc/functions/doomsday.txt
@@ -150,8 +150,9 @@ L_Zealite:
disablenpc "Soul Menhir#hurnscald";
disablenpc "Soul Menhir#nivalis";
disablenpc "Soul Menhir#tulimshar";
+ enablenpc "Chest#Zealite";
//disablenpc "Soul Menhir#candor";
- gmlog strcharinfo(0) + " changed the availability of #manatez spell.";
+ gmlog strcharinfo(0) + " changed the availability of #manatez and Savior Armor.";
return;
// Act 5: The Doomsday
@@ -334,6 +335,7 @@ L_MenhirUpdate:
disablenpc "Soul Menhir#hurnscald";
disablenpc "Soul Menhir#nivalis";
disablenpc "Soul Menhir#tulimshar";
+ enablenpc "Chest#Zealite";
end;
/////// Act 3 sieges
@@ -1176,6 +1178,45 @@ OnInit:
end;
}
+009-1,53,40,0|script|Chest#Zealite|111
+{
+ if ($DOOMSDAY != 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:
+ message strcharinfo(0), "Chest : It is empty!";
+ end;
+
+OnInit:
+ disablenpc "Chest#Zealite";
+ end;
+}
+
008-1,97,28,0|script|#Haystack|400
{
if ($DOOMSDAY != 3) end;