diff options
Diffstat (limited to 'world/map/npc/items')
-rw-r--r-- | world/map/npc/items/magic_gm_top_hat.txt | 3 | ||||
-rw-r--r-- | world/map/npc/items/purification_potion.txt | 3 | ||||
-rw-r--r-- | world/map/npc/items/require_stat.txt | 3 | ||||
-rw-r--r-- | world/map/npc/items/restricted_item.txt | 3 | ||||
-rw-r--r-- | world/map/npc/items/scissors.txt | 3 | ||||
-rw-r--r-- | world/map/npc/items/shock_sweet.txt | 3 | ||||
-rw-r--r-- | world/map/npc/items/unreleased_item.txt | 3 | ||||
-rw-r--r-- | world/map/npc/items/warpTowels.txt | 160 |
8 files changed, 164 insertions, 17 deletions
diff --git a/world/map/npc/items/magic_gm_top_hat.txt b/world/map/npc/items/magic_gm_top_hat.txt index cd9a0302..bd35846e 100644 --- a/world/map/npc/items/magic_gm_top_hat.txt +++ b/world/map/npc/items/magic_gm_top_hat.txt @@ -1,4 +1,5 @@ -function|script|ActivateMagicGMTophat|{ +function|script|ActivateMagicGMTophat|, +{ if (getgmlevel() < 60) return; getinventorylist; if ((checkweight("MurdererCrown", 1) == 0) || (@inventorylist_count == 100)) diff --git a/world/map/npc/items/purification_potion.txt b/world/map/npc/items/purification_potion.txt index 59c55eb1..2a8c47d3 100644 --- a/world/map/npc/items/purification_potion.txt +++ b/world/map/npc/items/purification_potion.txt @@ -1,6 +1,7 @@ // This is the function to use the PurificationPotion -function|script|usePurificationPotion|{ +function|script|usePurificationPotion|, +{ if (isat("011-1.gat", 88,67)) goto L_Wyara_Pond; diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt index 87fd9d72..e16e6b24 100644 --- a/world/map/npc/items/require_stat.txt +++ b/world/map/npc/items/require_stat.txt @@ -5,7 +5,8 @@ // @minbStatVal The minimum stat value to accept this item. // ------------------------------------------------------------ -function|script|RequireStat|{ +function|script|RequireStat|, +{ if (@bStat$ == "" || @minbStatVal < 0) return; set @bStatVal, 0; if (@bStat$ == "Str") diff --git a/world/map/npc/items/restricted_item.txt b/world/map/npc/items/restricted_item.txt index eddce38d..423b2c63 100644 --- a/world/map/npc/items/restricted_item.txt +++ b/world/map/npc/items/restricted_item.txt @@ -6,7 +6,8 @@ // @minLvl The minimum required GM level to equip this item. When not set or set to 0, it is set to 60 as a default. // ------------------------------------------------------------ -function|script|RestrictedItem|{ +function|script|RestrictedItem|, +{ if (!@minLvl) set @minLvl, 60; if (debug || getgmlevel() >= @minLvl) return; // If the active character is staff, do nothing. message strcharinfo(0), "This item repells you with extreme force. It does not seem to be meant for you."; diff --git a/world/map/npc/items/scissors.txt b/world/map/npc/items/scissors.txt index 7b64ce61..71e1f52c 100644 --- a/world/map/npc/items/scissors.txt +++ b/world/map/npc/items/scissors.txt @@ -1,4 +1,5 @@ -function|script|useScissors|{ +function|script|useScissors|, +{ if (rand(3)) goto L_Change; message strcharinfo(0), "Whoops!"; diff --git a/world/map/npc/items/shock_sweet.txt b/world/map/npc/items/shock_sweet.txt index a9226c39..9bcfc875 100644 --- a/world/map/npc/items/shock_sweet.txt +++ b/world/map/npc/items/shock_sweet.txt @@ -1,4 +1,5 @@ -function|script|useShockSweet|{ +function|script|useShockSweet|, +{ if (rand(5)) goto L_Change; message strcharinfo(0), "Yuck, this tastes like earwax!"; diff --git a/world/map/npc/items/unreleased_item.txt b/world/map/npc/items/unreleased_item.txt index 64072484..708cc1e0 100644 --- a/world/map/npc/items/unreleased_item.txt +++ b/world/map/npc/items/unreleased_item.txt @@ -3,7 +3,8 @@ // @slotId The slot in which the item would have been equipped in. This is passed automagically when called in an equip script. // ------------------------------------------------------------ -function|script|UnreleasedItem|{ +function|script|UnreleasedItem|, +{ if (debug || getgmlevel()) end; // If the server allows equipping unreleased items or if the active character is staff, do nothing. message strcharinfo(0), "You have difficulties equipping this item, as if it is not yet fully in this world."; unequipbyid @slotId; diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt index 30d29136..75209523 100644 --- a/world/map/npc/items/warpTowels.txt +++ b/world/map/npc/items/warpTowels.txt @@ -1,218 +1,358 @@ -function|script|useWhiteWarpTowel|{ +function|script|useWhiteWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "020-1.gat",66,91; // Nivalis if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "WhiteHitchhikersTowel", 1; end; } -function|script|useRedWarpTowel|{ +function|script|useRedWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "009-1.gat",51,40; // Hurnscald if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "RedHitchhikersTowel", 1; end; } -function|script|useGreenWarpTowel|{ +function|script|useGreenWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "003-1.gat",35,25; if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "GreenHitchhikersTowel", 1; end; } -function|script|useBlueWarpTowel|{ +function|script|useBlueWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "003-1.gat",35,25; if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "BlueHitchhikersTowel", 1; end; } -function|script|useYellowWarpTowel|{ +function|script|useYellowWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "001-1.gat",40,71; // Tulimshar if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "YellowHitchhikersTowel", 1; end; } -function|script|usePurpleWarpTowel|{ +function|script|usePurpleWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "003-1.gat",35,25; if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "PurpleHitchhikersTowel", 1; end; } -function|script|useOrangeWarpTowel|{ +function|script|useOrangeWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "027-1.gat",70,100; // Graveyard if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "OrangeHitchhikersTowel", 1; end; } -function|script|usePinkWarpTowel|{ +function|script|usePinkWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "012-3.gat",448,66; // Terranite Cave if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "PinkHitchhikersTowel", 1; end; } -function|script|useTealWarpTowel|{ +function|script|useTealWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "003-1.gat",35,25; if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "TealHitchhikersTowel", 1; end; } -function|script|useLimeWarpTowel|{ +function|script|useLimeWarpTowel|, +{ if (isin("botcheck.gat",25,27,51,47)) goto L_Botcheck; if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100)) goto L_Illia; + if (isin("029-3.gat",1,1,99,99)) + goto L_Candor; + if (isin("031-4.gat",1,1,90,90)) + goto L_Cindy; warp "003-1.gat",35,25; if (rand(15)) goto L_Keep; getitem "HitchhikersTowel", 1; end; +L_Candor: + message strcharinfo(0), "This area is protected by a force that doesn't tolerate the forgein powers of the towel."; + goto L_Keep; + +L_Cindy: + message strcharinfo(0), "Something is preventing your towel from working here."; + goto L_Keep; + L_Illia: message strcharinfo(0), "The strong barrier of this island prevents you to teleport!"; goto L_Keep; L_Botcheck: message strcharinfo(0), "You must be warped by a GM to leave the bot check area."; + goto L_Keep; L_Keep: getitem "LimeHitchhikersTowel", 1; |