Originally posted by [b]Koca[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1102
Hi, in latest eAthena, there's a typo with atcommand_jump. Random warp is set by coordinates (0,0), no (-1,-1).
in src/map/atcommand.c at lines aroud 550:
CODE
if (x <= 0) //If coordinates are 'wrong', random jump.
x = -1;
if (y <= 0)
y = -1;
it should be corrected with:
CODE
if (x < 0) //If coordinates are 'wrong', random jump.
x = 0;
if (y < 0)
y = 0;
It actually works with -1 coordinates, but after @jump with no coordinates set (@jump used as teleport lvl 1 for example), map server goes with this:
CODE
[03/11:16:59][Error]: pc_setpos: attempt to place player Koca (2001415:182968) on invalid coordinates (prontera--1,-1)
and it warps me randomly after that. I've tested it with 0,0 and it works flawlessly with no errors (IMG:
style_emoticons/default/smile.gif)
This post has been edited by Koca: Mar 3 2008, 05:30 AM