The idea is simple: The npc buys certain loot from players, however the prices vary daily. E.g. Monday spike sword is 800gp, tuesday 850gp wednesday 1100gp and so on.
Basically i want a % of the price to fluctuate throughout the day to add some realism to my project as in "low stock from no new shipment therefore price increases etc" and monday and thursday would be the cheapest since the shipment arrives on monday and thursday..
Now i am thinking about the difficulties within the script?
Well maybe set it out with each day seperate e.g.
Since i want ALL items this npc will buy to fluctuate by the same percentage it wouldn't need to be item specific. therefore i guess it would be along the config of the script or something...
I don't know much about lua nevermind the rest of it (all though i am trying in my spare time)
I would be extremely greatful for any help/aid and/or guidance in the creation of this script.
regards
Basically i want a % of the price to fluctuate throughout the day to add some realism to my project as in "low stock from no new shipment therefore price increases etc" and monday and thursday would be the cheapest since the shipment arrives on monday and thursday..
Now i am thinking about the difficulties within the script?
Well maybe set it out with each day seperate e.g.
LUA:
EXAMPLE idk how scripts work tbh :P
------------------------------------
dosetprice (or w,e) condition Mon(0%)
Tues (2%)
wed (5%)
Thurs (0%)
Fri(7%)
Sat(5%)
sun(10%)
Since i want ALL items this npc will buy to fluctuate by the same percentage it wouldn't need to be item specific. therefore i guess it would be along the config of the script or something...
I don't know much about lua nevermind the rest of it (all though i am trying in my spare time)
I would be extremely greatful for any help/aid and/or guidance in the creation of this script.
regards