FOnline Development > Questions and Answers

help with increasing trader caps base level

(1/1)

apeters6:
Is there any way to increase the base amount of money a trader will have, and how would we increase the speed of the restocking cycle. thanks.

Koniko:
2238 SDK or TLASDK ?

apeters6:
2238... i managed to increase the base caps in the economy script line 1005 - (return (2 * npc.Skill[SK_BARTER] * npc.Skill[SK_BARTER]) / 30;) by changing the multiplier.... now just need help finding a way to increase economy cycle rates

Ghosthack:
Change TRADER_UPDATE_TIME in https://github.com/rotators/fo2238/blob/master/Server/scripts/trader_h.fos

It's used in this event function which runs on every trader, it's called every TRADER_UPDATE_TIME to do various things, such as restock items, clear garbage and so on:

https://github.com/rotators/fo2238/blob/master/Server/scripts/trader.fos#L125-L216

Trader caps are restocked based on trader levels IIRC, didn't look too closely and it was a pretty long time since I looked at the code in more detail.

Navigation

[0] Message Index

Go to full version