Heres my parse proc and what i tried to do for activating a proc. It compiles fine, but i get runtime errors.
proc
parse(command_given as text,mob/M as mob)
if(hascall(M,(command_given)))
return ..()
if(findtext(command_given,"/broadcast"))
M.broadcast()
else
world<<"<[M] says:>[html_encode(command_given)]"
mob/proc
broadcast(M as message)
world<<"[M]"
and here are the runtime errors.
runtime error: Cannot execute null.parse().
proc name: parse (/proc/parse)
source file: Login.dm,12
usr: Magnus VI (/mob)
src: null
call stack:
parse("broadcast", Magnus VI (/mob))
Magnus VI (/client): Command("broadcast")
those errors come from typing /broadcast in the pink box.
thanks in advance
-Magnus