fodev.net

FOnline Development => Questions and Answers => Topic started by: apeters6 on November 12, 2014, 03:55:49 am

Title: help with increasing trader caps base level
Post by: apeters6 on November 12, 2014, 03:55:49 am
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.
Title: Re: help with increasing trader caps base level
Post by: Koniko on November 13, 2014, 08:13:25 pm
2238 SDK or TLASDK ?
Title: Re: help with increasing trader caps base level
Post by: apeters6 on November 14, 2014, 01:58:37 am
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
Title: Re: help with increasing trader caps base level
Post by: Ghosthack on November 14, 2014, 08:04:23 pm
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.