Page 1 of 1
Changing Vendor Prices
Posted: Mon Mar 03, 2014 12:52 pm
by evenmonkeys
Trying to figure a few more things out. About the only thing I've found for changing prices of items is changing the BaseSell value of an item in item_basic. Is that what I'm supposed to do?
Ultimately, I want to decrease the cost of all vendor items to make up for the lack of currency on the server. I'm trying to make things somehwat realistic to the way they were.. but with the idea in mind that the server isn't populated.
So yeah.. how can I lower the prices of vendor items? Thanks.
Re: Changing Vendor Prices
Posted: Mon Mar 03, 2014 2:07 pm
by atom0s
Look at the scripts for each npc vendor. There will be a shop table that has their items and their prices in them.
You'll see something like this in some npc scripts:
Code: Select all
function onTrigger(player,npc)
player:showText(npc, BALTHILDA_SHOP_DIALOG);
stock = {
0x30B9, 1904,3, --Poet's Circlet
0x3140, 1288,3, --Tunic
0x3139, 2838,3, --Linen Robe
0x31C0, 602,3, --Mitts
0x31B9, 1605,3, --Linen Cuffs
0x3240, 860,3, --Slacks
0x3239, 2318,3, --Linen Slops
0x32C0, 556,3, --Solea
0x32B9, 1495,3, --Holly Clogs
0x349D, 1150,3 --Leather Ring
}
showNationShop(player, BASTOK, stock);
end;
Or something like this:
Code: Select all
stock = {0x0326,1863, -- Tourmaline
0x0327,1863, -- Sardonyx
0x0320,1863, -- Amethyst
0x032E,1863, -- Amber
0x031B,1863, -- Lapis Lazuli
0x0329,1863, -- Clear Topaz
0x031F,1863, -- Onyx
0x031C,1863, -- Light Opal
0x340F,1250, -- Silver Earring
0x3490,1250} -- Silver Ring
showShop(player, STATIC, stock);
Which is the itemId, price.
Re: Changing Vendor Prices
Posted: Mon Mar 03, 2014 5:16 pm
by evenmonkeys
You, my friend, are very awesome. I appreciate all of the help you've given me so far! Thank you very much!
Re: Changing Vendor Prices - Solved
Posted: Sun Mar 09, 2014 11:33 pm
by evenmonkeys
Hey.. just a quick question. Has it been done.. or can this be done. Is there anyway to have all of these lua files that store the prices for items in the database instead like the base selling prices? I'm basically just cutting all vendor prices down and manually going through one at a time is just slow. Happy to know how to do it.. just curious if it's possible. Or if it's been done. Or if there's a faster way.
Re: Changing Vendor Prices - Solved
Posted: Mon Mar 10, 2014 1:34 pm
by atom0s
As it stands now, a lot of scripts are incorrect on some prices since rank and conquest control weighs on the prices. But the scripts do not include them.
Also given that NPCs in different areas have difference prices for the same item, it would be difficult to store in the database without having to keep duplicate entries for the same items per-npc that can sell them.
Re: Changing Vendor Prices
Posted: Mon Mar 31, 2014 6:53 pm
by evenmonkeys
So I changed the settings.lua file for SHOP_PRICE to 0.100 and the change reflects properly in most places. However, I've noticed there are some locations that are still showing full price. Windurst shows the 10% prices while Jueno shows 100% prices. Any idea why it might be doing that?