- Joined
- Aug 3, 2011
- Messages
- 963
- Reaction score
- 506
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:
First thing to do is to download the script below
You must be registered to see links
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)
ln -sf /home/cabal/cabal_TG.sh /usr/bin/cabal_TG
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
#!/bin/sh
daemons=`cat /etc/cabal/server_list | grep -v ^#`
logfile=/var/log/cabal/TG_daemon.log
for daemon in $daemons; do
t="${daemon#*_}"
i="${t%%_*}"
j="${t##*_}"
if [ $j == "10" ]; 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
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: