- Joined
- Jun 29, 2008
- Messages
- 5,028
- Reaction score
- 999
Hi folks, me again. Here is another little bit of scripty goodness for events - floating rates!
Each hour the script will reset all drop/exp/alz rates to the minimum value configred in the script and select one at randome to boost to soemething random between the configured minimum and maximum rates. It also writes a log to /home/cabal/ so you can check it is working and see what rates it altered last.
Download ->
Each hour the script will reset all drop/exp/alz rates to the minimum value configred in the script and select one at randome to boost to soemething random between the configured minimum and maximum rates. It also writes a log to /home/cabal/ so you can check it is working and see what rates it altered last.
readme.txt said:Installation
=============
Edit /home/cabal/floating_rates_job.sh and set your min and max rates at the top.
# Minimum rate 100 = 1x
base_rate=100
# Maximum rate 500 = 5x
max_rate=500
Copy the files to the Centos machine (it won't overwrite anything yet).
Back up your original Const.scp and copy any non-rates related customisations
from your own Const.scp to /etc/cabal/Data/Const.cfg. DO NOT TOUCH ANYTHING in
the section shown below as the script is expecting to find those v00, w00 etc
lines shown below. If you touch this section the script probably won't work.
[Multiple] All_M PC_M Free_P FreePC_P Premium_P PremiumPC_P Remark
0 v00 v00 0 0 0 0 EXP
1 w00 w00 0 0 0 0 SKILL EXP
2 x00 x00 0 0 0 0 CRAFT EXP?
3 y00 y00 0 0 0 0 DROP RATE
4 z00 z00 0 0 0 0 ALZ BOMB
5 z00 z00 0 0 0 0 ALZ AMOUNT
From the Centos terminal/putty type the following to enable:
/home/cabal/floating_rates_config.sh start
Stop floating rates like this:
/home/cabal/floating_rates_config.sh stop
If/when you want to reset back to your original config simply stop the floating
rates using the command above. Now copy your original Const.scp back and then
type "service cabal reload" from terminal/putty and everything will be back as
it was.
Download ->
You must be registered to see links
|
You must be registered to see links
|
You must be registered to see links