• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [TFS 1.4] Variable Pricing

Karmia

https://discord.gg/FP36zQyaYG
Joined
Apr 21, 2016
Messages
127
Reaction score
85
Hi,

there must be a way to price items, sold by NPCs, based on the levels of "supply and demand".

Lets say the NPC has "X" amount of SD runes in his daily stock
  • if the number gets to "Y" the price will be raised for "Z"% (can be raised several times)
  • no stock left means, he can not sell that item to the players until the next day

I know that players may try to take advantage of this and manipulate the pricing to sell for even higher prices, but they could be burned as well.


What am I trying to achieve?
  • Trade among players
  • Take money out of circulation
  • rune making
 
Last edited:
There is a way for sure, but what exactly will define the amount of items/runes an NPC has? Will it account for every item NPCs might be selling or what's up
 
You could set a value of max stock as a parameter in the shopModule-whatchamacallit next to each item id or w/e but then you need some function(s) to control that value you want to communicate to the NPCs. This is probably possible through Lua alone
 
Back
Top