ID:140377
 
Code:
obj
Fireball
icon = 'fireball.dmi'

Bump(mob/M)
if(istype(M))
var/obj/Fireball/S = new(loc + (M.x + 1))
S.icon = 'fireball_hit.dmi'
usr << "Hit"

mob
verb
Fireballskill()
var/obj/Fireball/S = new(loc)
if(usr.dir==NORTH)
if(S)
Move(NORTH)
sleep(50)
del S
if(usr.dir==SOUTH)
if(S)
Move(SOUTH)
sleep(50)
del S
if(usr.dir==EAST)
if(S)
Move(EAST)
sleep(50)
del S
if(usr.dir==WEST)
if(S)
Move(WEST)
sleep(50)
del S
if(usr.dir==NORTHWEST)
if(S)
Move(NORTHWEST)
sleep(50)
del S
if(usr.dir==NORTHEAST)
if(S)
Move(NORTHEAST)
sleep(50)
del S
if(usr.dir==SOUTHWEST)
if(S)
Move(SOUTHWEST)
sleep(50)
del S
if(usr.dir==SOUTHEAST)
if(S)
Move(SOUTHEAST)
sleep(50)
del S


Problem description:

I get this error:

runtime error: Cannot execute null.Enter().
proc name: Fireballskill (/mob/verb/Fireballskill)
source file: Mainz.dm,118
usr: Darkjohn66 (/mob)
src: Darkjohn66 (/mob)
call stack:
Darkjohn66 (/mob): Fireballskill()


My fireball appears in the downward position over my mob and then deletes, it never moves or animates. I'm not sure what I am doing wrong. Please help and thank you!
mob
verb
Fireballskill()
var/obj/Fireball/S=new(src.loc)
walk(S,src.dir)
spawn(50)
del S


I probably can't help with your error. Though my guess is it's from calling Move() without doing S.Move(). But I did shorten your fireballskill().