diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-04 23:55:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-04 23:55:39 -0300 |
commit | 8461835e454de7b58877dd1d9def10d9be459c7a (patch) | |
tree | f00204afd146194266ebe298e358055f778a1479 | |
parent | e8de68bcd3f0ee1f1e6441969582cc439cb4b842 (diff) | |
download | evol-hercules-8461835e454de7b58877dd1d9def10d9be459c7a.tar.gz evol-hercules-8461835e454de7b58877dd1d9def10d9be459c7a.tar.bz2 evol-hercules-8461835e454de7b58877dd1d9def10d9be459c7a.tar.xz evol-hercules-8461835e454de7b58877dd1d9def10d9be459c7a.zip |
Protect legendary weapons against @item
-rw-r--r-- | src/emap/atcommand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c index d3b9a99..93563c7 100644 --- a/src/emap/atcommand.c +++ b/src/emap/atcommand.c @@ -329,10 +329,12 @@ ACMD0(tmw2item) get_count = number; // TMW2: Check for restrictions - // Strange Coins ; <BronzeGift ~ SupremeGift> ; DeathPenalty + // Strange Coins ; <BronzeGift ~ SupremeGift> ; Legendary Weapons ; DeathPenalty if( item_id == 828 || (item_id >= 589 && item_id <= 593) || + (item_id >= 3600 && item_id <= 3610) || item_id == 7420 ) { + clif->message(fd, msg_fd(fd,19)); // Invalid item ID or name clif->message(fd, msg_fd(fd,1481)); // TMW2 Restriction return false; } |