Re: EP8 Nation War Script
Well, thank you but is not working. I've changed it to 08 (my nation war), reboot the machine, still not working, i've added my time + 10 minutes to see if is working, but not.
Re: EP8 Nation War Script
check your centos time, or just run in game /time to check your server time.
i tested it before i released it here. and it works fine on me.
Re: EP8 Nation War Script
Quote:
Originally Posted by
mikkomoley
As i promised, i will share the script for ep8 nation war. This script is not mine, the script was made by chumpy from ep2 repacks. i just adopt the script from EP2 and tell how to work it on EP8.
First thing to do is to download the script below
Or just copy the script on EP2 repack by chumpy.
1st: Copy the files on your server
2nd: run this command (this is a linking command for the cabal_TG.sh)
3rd: you can run now the cabal_TG in putty. this is the example to add time for TG.
cabal_TG 00 00 (which mean 12:00am)
once you successfully added a time, go in home/cabal/daemons and open the TG_daemon.sh
edit the red highlighted
Question: what should i put?
- if you're WorldSvr of your mission war is "WorldSvr_01_08" you need to replace the "10" to "08"
once you follow my guide, your mission war will open automatically on what time you configured.
PS: if you want 5 mission war automatically open, just add another TG_daemon.sh and add manually in etc/cron.d
Good luck! :tongue:
Have u figured out how to schedule the nation war with winning bonus?
Re: EP8 Nation War Script
Quote:
Originally Posted by
cadena
Have u figured out how to schedule the nation war with winning bonus?
I'll share once i succeed :)
Re: EP8 Nation War Script
2 Attachment(s)
Re: EP8 Nation War Script
Re: EP8 Nation War Script
Sry for double
EDIT: OMG, bug on forum :| i reply once and it made it 3 times :|, one mod please delete other 2 posts, thank you.
Re: EP8 Nation War Script
Hi S37uP!Update
can you check your etc/cron.d if there is a cabalTGStart_xx_xx
then check the logs of your WorldSvr_01_08 in var/log/cabal to see what error.
Re: EP8 Nation War Script
How i do it
1. /etc/crontab:
add
Code:
0 */4 * * * root /home/cabal/check_daemon_mw.sh
(Mission War autostart every 4 hours)
2. /etc/cabal/server_list_mw:
add war.ch to list, ex.:
Code:
WorldSvr_01_04
WorldSvr_01_05
WorldSvr_01_06
WorldSvr_01_07
WorldSvr_01_08
all works
Re: EP8 Nation War Script
cabalTGstart_12_55 is there, but as i told you and idk if you ever understand...IS NOT STARTING! How could i check the LOGS of this World if he didn't ever started, if i start it manually is working.
Re: EP8 Nation War Script
Quote:
Originally Posted by
vanushka
How i do it
1.
/etc/crontab:
add
Code:
0 */4 * * * root /home/cabal/check_daemon_mw.sh
(Mission War autostart every 4 hours)
2.
/etc/cabal/server_list_mw:
add war.ch to list, ex.:
Code:
WorldSvr_01_04
WorldSvr_01_05
WorldSvr_01_06
WorldSvr_01_07
WorldSvr_01_08
all works
Easy and clean very nice :)
Re: EP8 Nation War Script
Hi i got same problem like S37uP!Update i do everythink what u show in ur 2 Guild and still my Warchannel dont work when i start it manually is working but i cant join on this channel. I try doing next normal channel in this same way but i got same problem i cant connect on this channel ;/
Re: EP8 Nation War Script
Quote:
Originally Posted by
mikkomoley
#!/bin/sh
daemons=`cat /etc/cabal/server_list_mw | grep -v ^#`
logfile=/var/log/cabal/TG_daemon.log
for daemon in $daemons; do
t="${daemon#*_}"
i="${t%%_*}"
j="${t##*_}"
if [ $j == "08" ]; then
echo "`date`: check $daemon" >> $logfile
ret=`ps aux | grep $daemon | grep ^cabal | grep -v grep`
if [ -z "$ret" ]; then
echo "`date`: $daemon starting" | tee -a $logfile
/sbin/service $daemon start
fi
fi
done
You forgot to change this to server_list_mw for it to work as WorldSvr_01_08 is in this server list.
Re: EP8 Nation War Script
Server start without problem with vanushka script but i cant join this TG and other channel what i add thats problem now