mIRC Home    About    Download    Register    News    Help

Print Thread
#16375 22/03/03 02:11 AM
Joined: Mar 2003
Posts: 34
L
Lucres Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Mar 2003
Posts: 34
I'm gonna ask this question again here, so everyone can see it. Is it possible to make the "$2 is dead" on the command that sends the number below 0?
EX: Instead of it going:
<Lucres>!a Lucres <- Here current hp: 2
<Lucres|BOT> Lucres attacks Lucres for 8 dmg! Lucres's HP:
-6/49
<Lucres>!a Lucres <Lucres|BOT>Lucres is dead

Make it go:
<Lucres>!a Lucres < here current hp: 2 ( just like above the first time)
<Lucres|BOT>Lucres is dead

MT! Yes i realize it is kinda sad i have to use a diagram smile


Heh..
#16376 22/03/03 02:13 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
i would need the whole script to understand how to do that.

#16377 22/03/03 02:24 AM
Joined: Mar 2003
Posts: 34
L
Lucres Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Mar 2003
Posts: 34
Again? wink :tongue: OK, here goes:

on *:text:!a *:#: {
if (%cur [ $+ [ $2 ] ] <= 0) { msg $chan Note: $2 is dead! | set %lose [ $+ [ $2 ] ] $add(%lose [ $+ [ $2 ] ],1) | msg $chan $2 Has been healed! | set %cur [ $+ [ $2 ] ] %max [ $+ [ $2 ] ] | halt }
if ( % [ $+ [ $nick ] $+ equip ] == Wooden Blade ) { set %t1 $rand(1,20) | set %cur [ $+ [ $2 ] ] $sub(%cur [ $+ [ $2 ] ],%t1) | msg $chan $nick attacks $2 for %t1 ! $2 $+ 's current HP: %cur [ $+ [ $2 ] ] $+ / $+ %max [ $+ [ $2 ] ] }
if (% [ $+ [ $nick ] $+ equip ] == Double Blade ) { set %t1 $rand(1,20) | set %cur $sub(%cur [ $+ [ $2 ] ],%t1) | msg $chan $nick hits $2 for %t1 ! $2 $+ 's current hp: %cur [ $+ [ $2 ] ] $+ / $+ %max [ $+ [ $2 ] ] | set %cur [ $+ [ $2 ] ] %cur }
if (% [ $+ [ $nick ] $+ equip ] == Grandigo) { msg $chan 4BOOM! $nick hits $2 for %max [ $+ [ $2 ] ] $+ ! $2 falls flat on his feet! $2 $+ 's current hp: 0/ $+ %max [ $+ [ $2] }
}
I've added a few things here and there :tongue:


Heh..
#16378 22/03/03 02:27 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
im not really sure about that code....sorry youll have to get an expert......lol

#16379 22/03/03 02:29 AM
Joined: Mar 2003
Posts: 34
L
Lucres Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Mar 2003
Posts: 34
lol ty anyways smile


Heh..
#16380 22/03/03 03:06 AM
Joined: Dec 2002
Posts: 40
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
hehe i made a script like this, it worked ok :tongue: this is what i used to see if the HP was 0 or below 0

if ($readini(players.ini, $2, HP) < 0) || ($readini(players.ini, $2, HP) == 0 ) {
}

HP == 0 or HP below 0

Coca-Bear


Link Copied to Clipboard