ID:139700
 
Code:
mob
verb
Shoot()
set category = "Fighting"
if(usr.rei < 550)
usr << "<b>Your reiatsu is too low!"
return
if(usr.safe)
return
if(!usr.firing)
usr.firing = 1
usr.rei -= 550
var/K = new/obj/cero(usr.loc)
K:Gowner = usr
if(usr in get_step(t,NORTH))
K.dir = NORTH
return
if(usr in get_step(t,SOUTH))
K.dir = SOUTH
return
if(usr in get_step(t,EAST))
K.dir = EAST
return
if(usr in get_step(t,WEST))
K.dir = WEST
return
if(usr in get_step(t,NORTHWEST))
K.dir = NORTHWEST
return
if(usr in get_step(t,SOUTHWEST))
K.dir = SOUTHWEST
return
if(usr in get_step(t,NORTHEAST))
K.dir = NORTHEAST
return
if(usr in get_step(t,SOUTHEAST))
K.dir = SOUTHEAST
return
walk(K,K.dir)
sleep(5)
usr.firing = 0


Problem description:

Im getting few inconsistent indentation errors i would like some help figuring out what it wants me to do and how to fix it please help fast thank you in advance
You are getting this error because your indentation is inconsistent. Indent consistently to fix it.

Additionally, that huge mass of if() statements are not needed, at all. It should just be one line:

K.dir = get_dir(t, usr)
In response to Garthor
ok i have an odd problem now it says that k.dir is an undefined variable
In response to Alec94
var/obj/K, not just var/K.
In response to Garthor
yea i figured that out yesterday ty anyways