Mercurial > eagle-eye
diff usebot.sh @ 113:82eff1aaf0ec
billy3321 <billy3321 AT msn.com>
4HG: branch default
Add chihchunloop to usebot.sh
author | billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw |
---|---|
date | Thu, 30 Oct 2008 12:07:13 +0800 |
parents | ef5461db3951 |
children | 900535236e34 |
line wrap: on
line diff
--- a/usebot.sh Thu Oct 30 00:38:41 2008 +0800 +++ b/usebot.sh Thu Oct 30 12:07:13 2008 +0800 @@ -12,6 +12,23 @@ echo -e "package main;\n\n\$::server = \"${SER_NAME}.ikariam.tw\";\n\$::user = \"${ACC_NAME}\";\n\$::pass = \"${PW_NAME}\";\n\n1;" > ${HOME}/.eagleeye.pm } +function chihchunloop() { +read -p "Please enter the coordinate you want to fight(ex: 39:49)" SITE +SITE_X = $(echo $SITE | cut -d : -f 1) +SITE_Y = $(echo $SITE | cut -d : -f 2) +while : ; do + perl agent.pl + + perl scan.pl + + let RAN_X=$RANDOM%100 + let RAN_Y=$RANDOM%100 + perl scan.pl $RAN_X $RAN_Y + + perl warfare.pl $SITE_X $SITE_Y +done +} + echo "Checking for Database..." if test -f ikariam.sqlite;then echo "Find Database, continue..." @@ -32,7 +49,7 @@ while true do - echo -e "Welcome to use eagle-eye ikariam bot. Please select the action you want to do.\n 1. Reset the account information file.\n 2. Reset the databse.\n 3. Scan around your island.\n 4. Run the bot.\n 5. List the sheeps(Please scan first).\n 0. Exit Program." + echo -e "Welcome to use eagle-eye ikariam bot. Please select the action you want to do.\n 1. Reset the account information file.\n 2. Reset the databse.\n 3. Scan around your island.\n 4. Run the bot.\n 5. List the sheeps(Please scan first).\n 6. Chihchun's loop, automatic scan and attack sheep.\n 0. Exit Program." read -p "What do you want to do now? Please enter the number:" ACT case $ACT in @@ -52,6 +69,8 @@ "5") perl sheep.pl ;; + "6") + chihchunloop "0") break ;;