-
EP8 Nation War Script
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)
Quote:
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
Quote:
#!/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:
-
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
-
Re: EP8 Nation War Script
why everyone post their stuff when someone released a stuff? thanks to vanushka for cooperation and sharing his stuff. It works too.
-
Re: EP8 Nation War Script
Quote:
Originally Posted by
mikkomoley
why everyone post their stuff when someone released a stuff? thanks to vanushka for cooperation and sharing his stuff. It works too.
No offense meant. But because your release is not working, unless you edit server_list to server_list_mw
Because on the default server files, WorldSvr_01_08 is added in server_list_mw and not in server_list
-
Re: EP8 Nation War Script
Quote:
Originally Posted by
kusakos
No offense meant. But because your release is not working, unless you edit server_list to server_list_mw
Because on the default server files, WorldSvr_01_08 is added in server_list_mw and not in server_list
If you follow correctly, it will work, i never released a stuff if i didn't do in myself first.
i didn't used server_list_mw, instead i used server_list only. Study how the daemon works, don't compare my release to other released.
:junglejane:
-
Re: EP8 Nation War Script
Quote:
Originally Posted by
Drav3n
If you follow correctly, it will work, i never released a stuff if i didn't do in myself first.
i didn't used server_list_mw, instead i used server_list only. Study how the daemon works, don't compare my release to other released.
:junglejane:
Yes, it only works for you because you added WorldSvr_01_08 into sever_list.
While us.. are using the default files.
How will you expect the daemon to work if WorldSvr_01_08 is nowhere to be found from these server_list?
Justin Biever's server_list
Quote:
AuthDBAgent
RockAndRollITS
DBAgent_01
GlobalDBAgent
GlobalMgrSvr
ChatNode_01
CashDBAgent
PCBangDBAgent
EventDBAgent
EventMgrSvr
AgentShop_01
LoginSvr_01
PartySvr_01
WorldSvr_01_01
WorldSvr_01_02
WorldSvr_01_03
WorldSvr_01_04
WorldSvr_01_05
WorldSvr_01_06
#WorldSvr_01_07
Extornia's server_list
Quote:
AuthDBAgent
DBAgent_01
RockAndRollITS
GlobalMgrSvr
GlobalDBAgent
CashDBAgent
PCBangDBAgent
EventDBAgent
PartySvr_01
ChatNode_01
EventMgrSvr
AgentShop_01
LoginSvr_01
WorldSvr_01_01
Now, please show me your server_list to your MWAR channel.
-
Re: EP8 Nation War Script
is it hard to add WorldSvr_01_08 in server_list :P
-
Re: EP8 Nation War Script
thanks for this great release!
*they're just a leecher who don't have shared something and keep pretending :junglejane:
-
Re: EP8 Nation War Script
Quote:
Originally Posted by
Drav3n
is it hard to add WorldSvr_01_08 in server_list :P
No it's not hard. But for newbies who will follow your instruction using the default files, without telling them to add WorldSvr_01_08 to server_list will find your release not working. That's why i suggested to use server_list_mw instead. Just a simple change to _mw will make it more easier for them.
server_list_mw (default Justin Biever and Extornia's repack)
Quote:
#WorldSvr_01_07
WorldSvr_01_08
Anyway, nice release :)
-
Re: EP8 Nation War Script
Quote:
Originally Posted by
kusakos
No it's not hard. But for newbies who will follow your instruction using the default files, without telling them to add WorldSvr_01_08 to server_list will find your release not working. That's why i suggested to use server_list_mw instead. Just a simple change to _mw will make it more easier for them.
server_list_mw (default Justin Biever and Extornia's repack)
Anyway, nice release :)
With our other topic now, maybe newbie will know what they gonna do now :P
-
Re: EP8 Nation War Script
i'm try to start Nation War/auto Restart from original files, but without sucess.
Checked files
etc/cron.d/chk_cabal (its a cron task to "cabal" user but don't work)
Quote:
*/1 * * * * root /home/cabal/check_daemon.sh (will restart 1 in 1 minute)
*/1 * * * * root /home/cabal/netrestart.sh
* */4 * * * root ntpdate time-a.nist.gov
* */4 * * * root /home/cabal/check_daemon_mw.sh (will restart 4 in 4 hours)
linked file
Quote:
ln -sf /home/cabal/check_daemon_mw.sh
ln -sf /home/cabal/check_daemon.sh
ln -sf /home/cabal/netrestart.sh
ln -sf /home/cabal/check_daemon_mw.sh
Progress:
#### Auto Restart
if type:
service WorldSvr_01_01 stop or WorldSvr_01_02 stop (or whatever service)
(waiting for more then 1 minute.. not happens)
if i type:
check_daemon.sh
(will start all services stopped containing in server_list)
if inputed in crontab: - Work Fine
Quote:
*/1 * * * * root /home/cabal/check_daemon.sh
##### Nation War
if inputed in crontab: - Not Work
Quote:
#MM HH
50 10 * * * root /home/cabal/check_daemon_mw.sh
OBS
Time is OK, Linux and windows are sync
EDIT:
FIXED
My crontab was fuck***d....
I try fix but don't work, after reinstall Linux....crontab work fine.
MW and Auto Restart working now..
gets the hint ;)
-
Re: EP8 Nation War Script
it works 100 % . Thanks nice =) !
-
Re: EP8 Nation War Script
WorldSvr_01_08 couldn't start, why? I have set the time.
-
Re: EP8 Nation War Script
can some upload TGscript.rar chumpy download dont work anymore so i cant find it :|
-
Re: EP8 Nation War Script
anyone can make the mirror of this files please
-
Re: EP8 Nation War Script
Quote:
Originally Posted by
magraopb
i'm try to start Nation War/auto Restart from original files, but without sucess.
Checked files
etc/cron.d/chk_cabal (its a cron task to "cabal" user but don't work)
linked file
Progress:
#### Auto Restart
if type:
service WorldSvr_01_01 stop or WorldSvr_01_02 stop (or whatever service)
(waiting for more then 1 minute.. not happens)
if i type:
check_daemon.sh
(will start all services stopped containing in server_list)
if inputed in crontab: - Work Fine
##### Nation War
if inputed in crontab: - Not Work
OBS
Time is OK, Linux and windows are sync
EDIT:
FIXED
My crontab was fuck***d....
I try fix but don't work, after reinstall Linux....crontab work fine.
MW and Auto Restart working now..
gets the hint ;)
dude can give me link of the script?? please?
-
Re: EP8 Nation War Script
-
Re: EP8 Nation War Script
-
Re: EP8 Nation War Script