diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-17 14:30:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-17 14:30:28 -0300 |
commit | 840dad9dc25500fc6199a9c8aaae0b4407ed7118 (patch) | |
tree | db32afc1ecef02bbf78519a980a881613b35b5af /npc/001-8 | |
parent | 3ad81076f6e9d6711fe6f6525d2ecbb8cd581b76 (diff) | |
download | serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.tar.gz serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.tar.bz2 serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.tar.xz serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.zip |
Quirino
Diffstat (limited to 'npc/001-8')
-rw-r--r-- | npc/001-8/_import.txt | 1 | ||||
-rw-r--r-- | npc/001-8/hub.txt | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/npc/001-8/_import.txt b/npc/001-8/_import.txt index 2829ecaf4..e0d26df2c 100644 --- a/npc/001-8/_import.txt +++ b/npc/001-8/_import.txt @@ -1,3 +1,4 @@ // Map 001-8: Hungry Quirin Arena // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/001-8/_mobs.txt", +"npc/001-8/hub.txt", diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt new file mode 100644 index 000000000..c6a9ea294 --- /dev/null +++ b/npc/001-8/hub.txt @@ -0,0 +1,38 @@ +// TMW2 Script +// Author: +// Ernando <ernando.quirino@hotmail.com> (Creator) +// Jesusalva <admin@tmw2.org> +// Description: +// Hunger Games™ version for The Mana World Brazil v2, created by Ernando Quirino. + +001-8,0,0,0 script #QuirinoHUB NPC_HIDDEN,{ + end; + + +OnPCLogoutEvent: +OnPCDieEvent: + getmapxy(.@mapa$, .@a,.@b, 0); + if (.@mapa$ == "001-8") { + clearitem(); + + // Check if to reduce clearitem() efficiency you've used the cart in an illegal way. + getcartinventorylist(); + if (@cartinventorylist_count>=1) { + // Obviously a cheater, you should not be using the cart on the event. I HATE CHEATERS! + // Destroy everything you had on the cart + query_sql("DELETE FROM `cart_inventory` WHERE `char_id`="+getcharid(0)); + // Destroy the cart. Cheaters doesn't deserve it!! + setcart(0); + // Delete the storage register. You now need to pay it again, to don't cheat anymore! + setq General_Banker, 0; + // And be happy I did not removed your experience or gold! + } + + // You'll be revived/fully healed, and then warped. + recovery(getcharid(3)); + warp "000-1", 22, 22; + } + end; + +} + |