ID:143360
 
Code:
why when I try to attack with the alone macro a pop appears up and says To mob and they put me to select whom I want to attack
mob
verb
A(mob/M)
if(M==usr)
return
if(M.protec==1)
return
if(M.level==usr.level)
usr.random = rand (1,5)
if(usr.random==1)
damage = 25
M<<"you were hit by [usr]for [damage] damage"
usr<<"you hitted [M] for [damage] damage"
M.health -= damage
if(usr.random==2)
damage = 30
M<<"you were hit by [usr]for [damage] damage"
usr<<"you hitted [M] for [damage] damage"
M.health -= damage

macro//define these as Macros:
A return "A"//define it to run the 'A' verb when you press 'A'


Problem description:

how i can fix it??!!
 mob
verb
A(mob/M in oview(usr))
if(M==usr)
return
if(M.protec==1)
return
if(M.level==usr.level)
usr.random = rand (1,5)
if(usr.random==1)
damage = 25
M<<"you were hit by [usr]for [damage] damage"
usr<<"you hitted [M] for [damage] damage"
M.health -= damage
if(usr.random==2)
damage = 30
M<<"you were hit by [usr]for [damage] damage"
usr<<"you hitted [M] for [damage] damage"
M.health -= damage

macro//define these as Macros:
A return "A"//define it to run the 'A' verb when you press 'A'


Fixed it for you so it doesn't show everyone in the world