Spar Bot {Help!} - 08/10/14 06:00 PM
ok so I have a health and thirst tracking bot and I'd like to work in a hunting game script and a sparring script, can anyone show me a better/more efficient way of making this script? this is all i have to go on and my other scripts use $vars not ini files
On *:text:*!attack:#: {
/set -e %hit $read(hit.txt)
/dec -e %health [ $+ [ $nick ] ] %hit
if (%health [ $+ [ $nick ] ] <= 0) {
%health [ $+ [ $nick ] ] = DEAD!
/timer1 1 5 /kick # %enemy DEAD!
}
/msg $chan Lunarmyst %enemy - %hit dmg ~ total HP: %health [ $+ [ $nick ] ]
}
On *:text:*!attack:#: {
/set -e %hit $read(hit.txt)
/dec -e %health [ $+ [ $nick ] ] %hit
if (%health [ $+ [ $nick ] ] <= 0) {
%health [ $+ [ $nick ] ] = DEAD!
/timer1 1 5 /kick # %enemy DEAD!
}
/msg $chan Lunarmyst %enemy - %hit dmg ~ total HP: %health [ $+ [ $nick ] ]
}