mIRC Home    About    Download    Register    News    Help

Print Thread
Spar Bot {Help!} #248458 08/10/14 06:00 PM
Joined: Sep 2014
Posts: 24
S
SophisDecay Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2014
Posts: 24
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 ] ]
}




-Chan: #WolvenSpirit -Server: Irc.Sorcery.Net
Re: Spar Bot {Help!} [Re: SophisDecay] #248572 11/10/14 06:19 PM
Joined: Sep 2014
Posts: 7
D
dalamar238 Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: Sep 2014
Posts: 7
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