summaryrefslogtreecommitdiff
path: root/npc/functions/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-09-28 22:45:25 -0300
committerJesusaves <cpntb1@ymail.com>2022-09-28 22:45:25 -0300
commit70a645760dbe7f0c7afb0f8ffe662e566e91bc82 (patch)
tree94817e63ce0e879ebb44d6ee5d72fbbb4a4807e9 /npc/functions/event.txt
parent3e7fe18ff49d3a7e6b5464d10fe926323f19bbc7 (diff)
downloadserverdata-70a645760dbe7f0c7afb0f8ffe662e566e91bc82.tar.gz
serverdata-70a645760dbe7f0c7afb0f8ffe662e566e91bc82.tar.bz2
serverdata-70a645760dbe7f0c7afb0f8ffe662e566e91bc82.tar.xz
serverdata-70a645760dbe7f0c7afb0f8ffe662e566e91bc82.zip
Dream Towers: If your inventory is full, medal will be sent by mail
Diffstat (limited to 'npc/functions/event.txt')
-rw-r--r--npc/functions/event.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 5d57c540b..ecb0f8195 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -118,8 +118,14 @@ OnWarpTo:
OnBossDie:
dispbottom l("Mana Plane - Dream Tower, %dÂș floor %s", DTOWER_FLOOR, b(l("CLEAR!")));
DTOWER_FLOOR+=1;
- if ($EVENT$ == "Tower")
- getitem BrokenMedal, 1;
+ if ($EVENT$ == "Tower") {
+ if (checkweight(BrokenMedal, 1)) {
+ getitem BrokenMedal, 1;
+ } else {
+ // FIXME: Can be kept for next event, a deletion is required!
+ rodex_sendmail(getcharid(0), $DREAMTOWER_SAGE$, "You are fat.", "Here is the medal, anyway.", 0, BrokenMedal, 1);
+ }
+ }
unitskilluseid(getcharid(3), BS_GREED, 1, getcharid(3));
sleep2(500);
teleporthome();