ID:140891
 
Code:
area
HedgeArea

Entered(B)
world << "[B] entered"
return ..()

Exited(B)
world << "[B] exited"
return ..()


Problem description:
Hi guys. Little bit of coding is giving me a bit of a pain in the arse. This is what happens:

When I enter the area, it gives the message and it makes me enter it perfectly. Now, when I exit the area, it gives the message, then suddenly teleports the player to locate(1,1,1). I have tried making an obj exit, which works perfectly. Any ideas?
This was tested on a "blank" mob, so no overriding the Move() proc. Also tried:

area
HedgeArea

Exited(B)
world << "[B] exited"
..()
return 1


and

area
HedgeArea

Exited(B)
world << "[B] exited"
return 1


Neither worked, both same problem.

Thanks in advance

Obviously the area's Exited() proc is not the culprit. You need to look for the problem in a different place.
In response to Kaioken
well, I have no idea where there could be a problem with the movement. I removed the Move() override and it still wouldn't work. The only guess I can take is that upon exiting the area, it somehow makes it enter the normal area in it's first appearance, being at 1,1,1

UPDATE:

I removed all my overriden procs I had on mob(so my Bump, Move, client Move, ...)
Also made 1,1,1 area one of the hedgeareas

Now, it teleports me to null

UPDATE2:

Indeed, on a very empty game, it works properly. I wouldn't know why it bugs though. I'll try to figure it out.

thanks anyway
In response to Eviler
Procs that are called by movement are:

client/ and mob/
Move()

turf/ and area/
Enter()
Exit()
Entered()
Exited()

area/ or turf/ or obj/ or mob/
Bump()

So, look at all of those.