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.
Changing Vendor Prices
- evenmonkeys
- Posts: 78
- Joined: Thu Feb 13, 2014 1:53 am
- Location: Midwest, US
Changing Vendor Prices
Last edited by evenmonkeys on Mon Mar 31, 2014 6:46 pm, edited 2 times in total.
Re: Changing Vendor Prices
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:
Or something like this:
Which is the itemId, price.
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;
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);
- evenmonkeys
- Posts: 78
- Joined: Thu Feb 13, 2014 1:53 am
- Location: Midwest, US
Re: Changing Vendor Prices
You, my friend, are very awesome. I appreciate all of the help you've given me so far! Thank you very much!
- evenmonkeys
- Posts: 78
- Joined: Thu Feb 13, 2014 1:53 am
- Location: Midwest, US
Re: Changing Vendor Prices - Solved
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
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.
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.
- evenmonkeys
- Posts: 78
- Joined: Thu Feb 13, 2014 1:53 am
- Location: Midwest, US
Re: Changing Vendor Prices
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?