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 | |
parent | 3ad81076f6e9d6711fe6f6525d2ecbb8cd581b76 (diff) | |
download | serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.tar.gz serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.tar.bz2 serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.tar.xz serverdata-840dad9dc25500fc6199a9c8aaae0b4407ed7118.zip |
Quirino
-rw-r--r-- | npc/001-8/_import.txt | 1 | ||||
-rw-r--r-- | npc/001-8/hub.txt | 38 | ||||
-rw-r--r-- | npc/003-10/_import.txt | 1 | ||||
-rw-r--r-- | npc/003-10/quirino.txt | 84 |
4 files changed, 124 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; + +} + diff --git a/npc/003-10/_import.txt b/npc/003-10/_import.txt index da6668941..983b7d31f 100644 --- a/npc/003-10/_import.txt +++ b/npc/003-10/_import.txt @@ -3,4 +3,5 @@ "npc/003-10/_warps.txt", "npc/003-10/arnea.txt", "npc/003-10/guarddevoir.txt", +"npc/003-10/quirino.txt", "npc/003-10/slots.txt", diff --git a/npc/003-10/quirino.txt b/npc/003-10/quirino.txt new file mode 100644 index 000000000..0ebea21c8 --- /dev/null +++ b/npc/003-10/quirino.txt @@ -0,0 +1,84 @@ +// 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. +// Entrance to Hungry Quirin Arena + +001-8,0,0,0 script Quirin NPC_ERNANDO,{ + if ($EVENT$ != "Hunger") goto L_NoSeason; + if ($@EQ_STATUS == 0) + goto L_Register; + + hello; + end; + +L_NoSeason: + npctalkonce l("Heya!"); + end; + +L_Register: + mesn; + mesq l("Hello player, do you want to participate on HUNGRY QUIRIN event?!"); + next; + select + l("Yeah, sign me up!"), + l("No, not at the moment."), + l("Information"); + + switch (@menu) { + case 1: + goto L_SignUp; + case 2: + close; + case 3: + goto L_Info; + } + +L_Info: + mesn col("Hungry Quirin Arena Rules", 3); + mes col("1- You must not be carrying anything with you.", 9); + mes col("2- You must not use a cart. If you do, and get logged out for whatever reason, YOU WILL BE SEVERELY PENALIZED.", 9); + mes col("3- All items from the Arena are from the Arena. You won't carry any of them back with you.", 9); + mes col("4- Experience and Gold earned during this event can be kept.", 9); + next; + mesn col("Hungry Quirin Arena Information", 3); + mes col("1- Survive. If you die, you will gain nothing. And people want to kill you.", 9); + mes col("2- Take everything you can find. You'll be warped without equip or healing items! Kill monsters to get some stuff too!", 9); + mes col("3- Trust nobody. There can be only one winner, and it must be you.", 9); + mes col("4- Take Care. Wildlife can kill you too. There can be traps.", 9); + mes col("5- Trust yourself. You will lose the moment you enter in panic. This arena is not for the weak-willed!", 9); + next; + goto L_Register; + +L_SignUp: + // Player cannot be carrying anything + getinventorylist; + if(@inventorylist_count>=1) goto L_Full; + getcartinventorylist(); + if(@cartinventorylist_count>=1) goto L_Full; + + // Warp player + if (rand(1,2) == 1) + warp "001-8", rand(42, 57), 42; + else + warp "001-8", rand(42, 57), 57; + + // Prevent further movements! + setpcblock(PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_ITEM|PCBLOCK_MOVE|PCBLOCK_COMMANDS, true); + dispbottom l("Stay ready!"); + close; + +L_Full: + mesn; + mesq l("You cannot bring anything to the arena. Please put everything on the storage."); + close; + +OnInit: + .sex=G_MALE; + .distance=5; + end; +} + + |