Author Topic: help with increasing trader caps base level  (Read 2232 times)

help with increasing trader caps base level
« 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.

Re: help with increasing trader caps base level
« Reply #1 on: November 13, 2014, 08:13:25 pm »
2238 SDK or TLASDK ?

Re: help with increasing trader caps base level
« Reply #2 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

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: help with increasing trader caps base level
« Reply #3 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.