on 1:TEXT:*!attack*:#: {
if ($exists(C:\Progra~1\mIRC\ $+ $nick $+ .txt) == $true) {
if ($exists(C:\Progra~1\mIRC\ $+ $2 $+ .txt) == $true) {
msg $chan $nick has attacked $2 dealing %attackvalue Damage!
dec { %hpvalue %attackvalue
inc { %hpvalue %defencevalue
msg $chan But, with $2 $+ 's defence, $2 $+ 's HP is %hpvalue
if (%hpvalue < 1) {
msg $chan $2 is now dead.
remove $nick $+ .txt
msg $chan 3 I am sorry $nick, but you have died, you must now create a new character. 1
}
else {
if (%hpvalue > 0) {
msg $chan Thankfully, $2 $+ , you have lived, be careful next time.
}
}
}
}
}
}
else {
msg $chan I'm sorry, but you do not have a character to attack with! Type !create (class) (weapon) to make a character!
}
else {
msg $chan I'm sorry, but the character you are attacking does not exist!
}
}