From 84ff563767cb680a457af4396199a2f0b59e5d39 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 15 May 2022 23:21:37 -0300 Subject: Add Helmet and Gloves new auto-generated price, and fix CI bugs --- npc/craft/price.txt | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'npc/craft/price.txt') diff --git a/npc/craft/price.txt b/npc/craft/price.txt index e50af153a..74111b3cf 100644 --- a/npc/craft/price.txt +++ b/npc/craft/price.txt @@ -51,7 +51,7 @@ function script _fix_cPrice { // Increase the final price //debugmes("Price %d + %d GP (%dx %s)", .@price, getiteminfo(.@recipe_item, ITEMINFO_SELLPRICE), - .@recipe_qty, getitemname(.@recipe_item)); + // .@recipe_qty, getitemname(.@recipe_item)); .@price += getiteminfo(.@recipe_item, ITEMINFO_SELLPRICE) * .@recipe_qty; //debugmes("New price: %d", .@price); } @@ -167,14 +167,38 @@ function script fix_cPrice { _fix_cPrice(LeatherTrousers); _fix_cPrice(JeansChaps); _fix_cPrice(SilkPants); - _fix_cPrice(ChainmailSkirt); - _fix_cPrice(BromenalPants); + _fix_cPrice(ChainmailSkirt); // <= Pre-Fortress + _fix_cPrice(BromenalPants); // <= Fortress _fix_cPrice(WarlordPants); _fix_cPrice(AssassinPants); - // TOOD: Gloves, Helmets - //_fix_cPrice(Kitana); - + // Gloves (more expensive due ASPD) + _fix_cPrice(SilkGloves, 40); + _fix_cPrice(LeatherGloves, 40); + _fix_cPrice(BromenalGloves, 40); + _fix_cPrice(ManaGloves, 40); + _fix_cPrice(WarlordGloves, 40); + _fix_cPrice(AssassinGloves, 40); + + // Helmets + _fix_cPrice(InfantryHelmet); + _fix_cPrice(DesertHelmet); + _fix_cPrice(BromenalHelmet); + _fix_cPrice(CandleHelmet); + _fix_cPrice(CrusadeHelmet); + _fix_cPrice(WarlordHelmet); + _fix_cPrice(VikingHelmet); + _fix_cPrice(TerraniteHelmet); // Cheaper than the real cost due 2x Earth Powder + _fix_cPrice(CenturionHelmet); + _fix_cPrice(BullHelmet); + _fix_cPrice(DarkHelm); + _fix_cPrice(DarkKnightHelmet); + _fix_cPrice(SamuraiHelmet); + + // TODO: Verify drops and the new GP exploit + // TODO: Rewrite meltdown forge to similar formula + // Giving 30%~50% instead of 50%~70% + // Max rounded down, Min rounded up return; } @@ -188,7 +212,7 @@ OnCall: OnInit: bindatcmd "reloaditemdb2", "craft_price_fix::OnCall", 99, 100, 1; - // This should be called last + // This should be called last? Maybe? sleep(750); fix_cPrice(); end; -- cgit v1.2.3-60-g2f50