mIRC Homepage
Posted By: SophisDecay 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 ] ]
}


Posted By: dalamar238 Re: Spar Bot {Help!} - 11/10/14 06:19 PM
well for starters i'm pretty sure you don't need any of those [] i've done scripts with the same sorta % $+ and never needed them before. also, when you use $read(hit.txt) is that calling up a number? would think it would be just as effective to use $rand without having a text file full of numbers
© mIRC Discussion Forums