diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-05-15 18:32:48 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-05-15 18:32:48 -0300 |
commit | 6a692a57c31eb28f9f7e125d032d73a664de702e (patch) | |
tree | 54f3bedce8b5910332678206ab437c3eede80253 | |
parent | ccd15e0f14ca670325ef28d88f113d08248c17a5 (diff) | |
download | serverdata-6a692a57c31eb28f9f7e125d032d73a664de702e.tar.gz serverdata-6a692a57c31eb28f9f7e125d032d73a664de702e.tar.bz2 serverdata-6a692a57c31eb28f9f7e125d032d73a664de702e.tar.xz serverdata-6a692a57c31eb28f9f7e125d032d73a664de702e.zip |
Add automatic prices for more stuff and reduce debug messages
-rw-r--r-- | db/re/item_db.conf | 2 | ||||
-rw-r--r-- | npc/craft/price.txt | 46 |
2 files changed, 43 insertions, 5 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index e25901ee8..aa1477c01 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -4412,7 +4412,7 @@ item_db: ( Name: "Leather Patch" Type: "IT_ETC" Buy: 800 - Sell: 350 + Sell: 340 Weight: 20 Refine: false }, diff --git a/npc/craft/price.txt b/npc/craft/price.txt index 88e90f5ce..e50af153a 100644 --- a/npc/craft/price.txt +++ b/npc/craft/price.txt @@ -50,10 +50,10 @@ function script _fix_cPrice { } // Increase the final price - debugmes("Price %d + %d GP (%dx %s)", .@price, getiteminfo(.@recipe_item, ITEMINFO_SELLPRICE), + //debugmes("Price %d + %d GP (%dx %s)", .@price, getiteminfo(.@recipe_item, ITEMINFO_SELLPRICE), .@recipe_qty, getitemname(.@recipe_item)); .@price += getiteminfo(.@recipe_item, ITEMINFO_SELLPRICE) * .@recipe_qty; - debugmes("New price: %d", .@price); + //debugmes("New price: %d", .@price); } // Update the final price @@ -61,7 +61,7 @@ function script _fix_cPrice { consoleinfo("Price for %s adjusted from %d (%d) to %d (%d) GP", getitemname(.@item), getiteminfo(.@item, ITEMINFO_BUYPRICE), getiteminfo(.@item, ITEMINFO_SELLPRICE), .@price * .@m / 10, .@price); setiteminfo(.@item, ITEMINFO_BUYPRICE, .@price * .@m / 10); setiteminfo(.@item, ITEMINFO_SELLPRICE, .@price); - debugmes("New Price for %s is now %d (%d) GP", getitemname(.@item), getiteminfo(.@item, ITEMINFO_BUYPRICE), getiteminfo(.@item, ITEMINFO_SELLPRICE)); + //debugmes("New Price for %s is now %d (%d) GP", getitemname(.@item), getiteminfo(.@item, ITEMINFO_BUYPRICE), getiteminfo(.@item, ITEMINFO_SELLPRICE)); } } debugmes "\n\n-------------------------------------------------------"; @@ -136,7 +136,45 @@ function script fix_cPrice { // And misc _fix_cPrice(TerranitePants); _fix_cPrice(TerraniteArmor); - _fix_cPrice(Skypiercer); + _fix_cPrice(Skypiercer, 40); + + // And shields + _fix_cPrice(WoodenShield); + _fix_cPrice(BladeShield); + _fix_cPrice(BraknarShield); + _fix_cPrice(BritShield); + _fix_cPrice(BromenalShield); + _fix_cPrice(BlueKnightShield); + _fix_cPrice(SteelShield); + _fix_cPrice(DragonShield); + _fix_cPrice(SaviorShield, 40); + + // Chest Armor + _fix_cPrice(LeatherShirt); + _fix_cPrice(LieutenantArmor); + _fix_cPrice(Chainmail); + _fix_cPrice(CopperArmor); + _fix_cPrice(LightPlatemail); + _fix_cPrice(GoldenLightPlatemail); + _fix_cPrice(WarlordPlate); + _fix_cPrice(GoldenWarlordPlate); + _fix_cPrice(BromenalChest); + _fix_cPrice(AssassinChest); + + // Pants + //_fix_cPrice(JeansShorts); + _fix_cPrice(RaidTrousers); + _fix_cPrice(LeatherTrousers); + _fix_cPrice(JeansChaps); + _fix_cPrice(SilkPants); + _fix_cPrice(ChainmailSkirt); + _fix_cPrice(BromenalPants); + _fix_cPrice(WarlordPants); + _fix_cPrice(AssassinPants); + + // TOOD: Gloves, Helmets + //_fix_cPrice(Kitana); + return; } |