diff options
Diffstat (limited to 'npc/guilds')
-rw-r--r-- | npc/guilds/logs.txt | 118 |
1 files changed, 99 insertions, 19 deletions
diff --git a/npc/guilds/logs.txt b/npc/guilds/logs.txt index 33863da81..07c938595 100644 --- a/npc/guilds/logs.txt +++ b/npc/guilds/logs.txt @@ -10,34 +10,80 @@ guilds,47,39,0 script Guild Logs NPC_NO_SPRITE,{ function calcRecipe; function clearRecipe; .@gid=getcharid(2); + .@s=0; // How many was displayed, to use next(); if needed mes ".:: " + l("Alchemy Recipes") + " ::."; // Healing - showRecipe(CraftPiberriesInfusion, PiberriesInfusion, - 5, Piberries, 1, Curshroom); + .@s+=showRecipe(CraftPiberriesInfusion, PiberriesInfusion, + 5, Piberries, 1, Curshroom); + + if (.@s > 1) + next; // General Boosts - showRecipe(CraftHastePotion, HastePotion, - 15, Plushroom); - showRecipe(CraftStrengthPotion, StrengthPotion, - 15, Chagashroom); - showRecipe(CraftResetPotion, StatusResetPotion, - 90, ManaPiouFeathers, 10, Curshroom); - showRecipe(CraftSpeedPotion, MoveSpeedPotion, - 1, GemPowder, 5, FluoPowder); - showRecipe(CraftPrecisionPotion, PrecisionPotion, - 3, Piberries, 1, MountainSnakeEgg); - showRecipe(CraftDodgePotion, DodgePotion, - 3, Piberries, 1, SnakeEgg); + .@s+=showRecipe(CraftHastePotion, HastePotion, + 15, Plushroom); + .@s+=showRecipe(CraftStrengthPotion, StrengthPotion, + 15, Chagashroom); + .@s+=showRecipe(CraftResetPotion, StatusResetPotion, + 90, ManaPiouFeathers, 10, Curshroom); + .@s+=showRecipe(CraftSpeedPotion, MoveSpeedPotion, + 1, GemPowder, 5, FluoPowder); + .@s+=showRecipe(CraftPrecisionPotion, PrecisionPotion, + 3, Piberries, 1, MountainSnakeEgg); + .@s+=showRecipe(CraftDodgePotion, DodgePotion, + 3, Piberries, 1, SnakeEgg); + + if (.@s > 5) + next; // Stats Boosts + .@s+=showRecipe(CraftLukPotionA, LukPotionA, + 1, EmeraldPower, 1, HerbalTea); + .@s+=showRecipe(CraftLukPotionB, LukPotionB, + 1, Emerald, 2, HerbalTea); + .@s+=showRecipe(CraftLukPotionC, LukPotionC, + 1, PolishedEmerald, 3, HerbalTea); + + .@s+=showRecipe(CraftDexPotionA, DexPotionA, + 1, AmethystPower, 1, HerbalTea); + .@s+=showRecipe(CraftDexPotionB, DexPotionB, + 1, Amethyst, 2, HerbalTea); + .@s+=showRecipe(CraftDexPotionC, DexPotionC, + 1, PolishedAmethyst, 3, HerbalTea); + + .@s+=showRecipe(CraftIntPotionA, IntPotionA, + 1, SapphirePower, 1, HerbalTea); + .@s+=showRecipe(CraftIntPotionB, IntPotionB, + 1, Sapphire, 2, HerbalTea); + .@s+=showRecipe(CraftIntPotionC, IntPotionC, + 1, PolishedSapphire, 3, HerbalTea); + + .@s+=showRecipe(CraftVitPotionA, VitPotionA, + 1, DiamondPower, 1, HerbalTea); + .@s+=showRecipe(CraftVitPotionB, VitPotionB, + 1, Diamond, 2, HerbalTea); + .@s+=showRecipe(CraftVitPotionC, VitPotionC, + 1, PolishedDiamond, 3, HerbalTea); + + .@s+=showRecipe(CraftAgiPotionA, AgiPotionA, + 1, TopazPower, 1, HerbalTea); + .@s+=showRecipe(CraftAgiPotionB, AgiPotionB, + 1, Topaz, 2, HerbalTea); + .@s+=showRecipe(CraftAgiPotionC, AgiPotionC, + 1, PolishedTopaz, 3, HerbalTea); + + if (.@s > 14) + next; // Limit Boosts - showRecipe(CraftSacredManaPot, SacredManaPotion, - 1, GoldenApple, 15, CelestiaTea); - showRecipe(CraftSacredLifePot, SacredLifePotion, - 1, GoldenApple, 1, ElixirOfLife); - debugmes "Okay"; + .@s+=showRecipe(CraftSacredManaPot, SacredManaPotion, + 1, GoldenApple, 15, CelestiaTea); + .@s+=showRecipe(CraftSacredLifePot, SacredLifePotion, + 1, GoldenApple, 1, ElixirOfLife); + + if (.@s == 0) + mesc l("Your guild doesn't knows any recipes!"), 1; if (getguildrole(.@gid, getcharid(3)) > GPOS_VICELEADER) close; @@ -100,6 +146,40 @@ guilds,47,39,0 script Guild Logs NPC_NO_SPRITE,{ calcRecipe(CraftDodgePotion, 5, 20000, l("Dodge Potion")); // Stats Boosts + if (!showRecipe(CraftLukPotionA, false)) + calcRecipe(CraftLukPotionA, 4, 15000, l("Luck Potion")); + if (!showRecipe(CraftLukPotionB, false)) + calcRecipe(CraftLukPotionB, 5, 25000, l("Luck+ Potion")); + if (!showRecipe(CraftLukPotionC, false)) + calcRecipe(CraftLukPotionC, 6, 35000, l("Luck++ Potion")); + + if (!showRecipe(CraftDexPotionA, false)) + calcRecipe(CraftDexPotionA, 4, 15000, l("Dex Potion")); + if (!showRecipe(CraftDexPotionB, false)) + calcRecipe(CraftDexPotionB, 5, 25000, l("Dex+ Potion")); + if (!showRecipe(CraftDexPotionC, false)) + calcRecipe(CraftDexPotionC, 6, 35000, l("Dex++ Potion")); + + if (!showRecipe(CraftIntPotionA, false)) + calcRecipe(CraftIntPotionA, 4, 15000, l("Int Potion")); + if (!showRecipe(CraftIntPotionB, false)) + calcRecipe(CraftIntPotionB, 5, 25000, l("Int+ Potion")); + if (!showRecipe(CraftIntPotionC, false)) + calcRecipe(CraftIntPotionC, 6, 35000, l("Int++ Potion")); + + if (!showRecipe(CraftVitPotionA, false)) + calcRecipe(CraftVitPotionA, 4, 15000, l("Vit Potion")); + if (!showRecipe(CraftVitPotionB, false)) + calcRecipe(CraftVitPotionB, 5, 25000, l("Vit+ Potion")); + if (!showRecipe(CraftVitPotionC, false)) + calcRecipe(CraftVitPotionC, 6, 35000, l("Vit++ Potion")); + + if (!showRecipe(CraftAgiPotionA, false)) + calcRecipe(CraftAgiPotionA, 4, 15000, l("Agi Potion")); + if (!showRecipe(CraftAgiPotionB, false)) + calcRecipe(CraftAgiPotionB, 5, 25000, l("Agi+ Potion")); + if (!showRecipe(CraftAgiPotionC, false)) + calcRecipe(CraftAgiPotionC, 6, 35000, l("Agi++ Potion")); // Limit Boosts if (!showRecipe(CraftSacredManaPot, false)) |