Home
Forum
Help
Login
Register
December 22, 2024, 07:53:56 am
fodev.net
»
FOnline Development
»
Questions and Answers
»
help with increasing trader caps base level
« previous
next »
Print
Pages: [
1
]
Author
Topic: help with increasing trader caps base level (Read 2947 times)
apeters6
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.
Logged
Koniko
Re: help with increasing trader caps base level
«
Reply #1 on:
November 13, 2014, 08:13:25 pm »
2238 SDK or TLASDK ?
Logged
apeters6
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
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
fodev.net
»
FOnline Development
»
Questions and Answers
»
help with increasing trader caps base level