Issue information

Issue ID
#6526
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Aug 21, 2012 10:45
Last Post
Hercules Elf Bot
Aug 22, 2012 11:03
Confirmation
Yes (4)
No (0)

Hercules Elf Bot - Aug 21, 2012 10:45

Originally posted by [b]Emistry[/b]
Not really sure about this problems.
do you get the same error ??

[img]http://i.imgur.com/ysC8F.png[/img]

i will get this error everytime the mapwarp is executed.
My character will still warped, but random coordinate will be given.

i think it is the command problem, even i tried warp from different map to different map..
result still same.

i get this on SVN 16669

Hercules Elf Bot - Aug 21, 2012 12:55

Originally posted by [b]Vitrue[/b]
also having this, i thought it was weird and only because of the script.

Hercules Elf Bot - Aug 21, 2012 22:26

Originally posted by [b]mkbu95[/b]
Blame xantara (http://sourceforge.net/apps/trac/rathena/changeset/16636) :P :lol:

buildin_areawarp_sub was modified but he forgot to change it on mapwarp.

So, to fix that:
Find this function on src/map/script.c:[code]BUILDIN_FUNC(mapwarp)[/code]
Then, find this line:[code]map_foreachinmap(buildin_areawarp_sub,m,BL_PC,index,x,y);[/code]
Change to:[code]map_foreachinmap(buildin_areawarp_sub, m, BL_PC, index, x, y, 0, 0);[/code]
Now x3=0 and y3=0. Before it was undefined, causing the random warp bug.

Hercules Elf Bot - Aug 22, 2012 11:03

Originally posted by [b]Kenpachi[/b]
Fixed in [rev=16682].

Thanks mkbu95. :)