Lol I have no idea
mob/proc/
Knockback(dir,mob/hit,duration)
hit.knocking=1
spawn(duration)hit.knocking=0
while(hit&&hit.knocking)
sleep(1)
if(dir==NORTH)
hit.dir=SOUTH
hit.y++
if(dir==SOUTH)
hit.dir=NORTH
hit.y--
if(dir==EAST)
hit.dir=WEST
hit.x++
if(dir==WEST)
hit.dir=EAST
hit.x--
hit.Create_Trail()
just define in step proc direction...