diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-09-28 22:45:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-09-28 22:45:25 -0300 |
commit | 70a645760dbe7f0c7afb0f8ffe662e566e91bc82 (patch) | |
tree | 94817e63ce0e879ebb44d6ee5d72fbbb4a4807e9 | |
parent | 3e7fe18ff49d3a7e6b5464d10fe926323f19bbc7 (diff) | |
download | serverdata-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
-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(); |