From 70a645760dbe7f0c7afb0f8ffe662e566e91bc82 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 28 Sep 2022 22:45:25 -0300 Subject: Dream Towers: If your inventory is full, medal will be sent by mail --- npc/functions/event.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'npc/functions/event.txt') 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(); -- cgit v1.2.3-70-g09d2