diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/event.txt | 10 |
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(); |