Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Hourly floating rates script

The Dinosaur
Loyal Member
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.

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 -> | |
 
Divine Celestial
Loyal Member
Joined
Aug 24, 2007
Messages
890
Reaction score
5
nice release !!!

how to install ds?

its permit dinied
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
You will probably have to "chmod 0777 /home/cabal/floating_rates_config.sh" unless your winscp does it automatically like mine does.
 
Divine Celestial
Loyal Member
Joined
Aug 24, 2007
Messages
890
Reaction score
5
then now?

how to edit it i will edit it manualy on

floating_rates_job.sh ?
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
Yes, set the min and max rate at the top of floating_rates_job.sh before running floating_rates_config.sh. By default they will float between 1x and 5x.
 
Divine Celestial
Loyal Member
Joined
Aug 24, 2007
Messages
890
Reaction score
5
i can make it 500?x

in calculator 500 = 50000 right
 
The Cat in the Hat
Legend
Joined
Oct 26, 2005
Messages
4,475
Reaction score
677
I should have watched my mouth and not said/talked poop to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
i can make it 500?x

in calculator 500 = 50000 right

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 ;)
 
Experienced Elementalist
Joined
Sep 26, 2008
Messages
211
Reaction score
2
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:
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
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
Top