Hourly floating rates script

Joined
Jun 29, 2008
Messages
5,022
Reaction score
1,003
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.

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 can but setting some rates that high will have a very bad effect and this is especially true of the droprate. You will need to experiment to see what it can do, this is just a rough example for you to play with and mod ;)

Nice Release man keep working

Are thrue i have a server with 500x xp and drop only alz bomb :( ...the next ResetDb wil be with 5x xp maxim:thumbup1:
 
Don't set your droprate above 5x and make sure you have UseWorldDrop=1 in your worldsvr configs. If you set droprate much over 5x it ruins drops which is why this is set to max 5x. If you want other rates to go higher you will need to mod the script slightly or not use it on drops which you can do by manually editing the cfg file and setting the droprate you want. Once that is done the script won't be able to find what to edit for the droprate and it will stay the same, only other rates will float ;)
 
Back