The verb:
mob/verb/attack(mob/M in get_step(src,src.dir))
The proc(edited):
mob/proc/attacking(mob/M)if(src.attacking==0)if(M)
src.attacking=1
spawn(5)src.attacking=0
deathcheck(M,src)
The error:
Sorry, the following is not valid: shifter
usage: attack mob
How can I avoid this error when using a macro?
ID:147843
Nov 1 2003, 9:04 pm
|
|
By changing your attack verb so it doesn't take any parameters, and uses locate() to get a mob instead.
|
In response to Garthor
|
|
Garthor wrote:
By changing your attack verb so it doesn't take any parameters, and uses locate() to get a mob instead. What?! I'm not sure what you said. If you are saying: Use locate() instead of get_step(), why? |
That should do it. ^_^
Make sure in the verb that it checks that M is not null.