Fly wing

Leecher

New member
Messages
49
Points
0
Hi,

I am wondering why sometimes fly wing brings you off-map. Is that a bug? I use the GM @jump instead for the item script. But I am not sure if this gonna fix the issue.

Thanks!

 
Maybe it warps you in the warp portal.....

 
Yes, as far as I can remember, using a fly wing ports you to any available map space as defined by the grid layout. One of those possible map spaces is within the SOI of a portal, therefore bringing you over to the map that the portal would send you to.

 
Years ago I used to use something like this in pc_setpos, but I don't know if it still works.

The function of the code is supposed to be "when positioning a pc at a random map location, don't land on top of an NPC warp"

Code:
- } while(map_getcell(m,x,y,CELL_CHKNOPASS));+ } while((map_getcell(m,x,y,CELL_CHKNOPASS) || npc_check_areanpc(1,m,x,y,1)));
There's also a closed pull request addressing this issue in more detail: https://github.com/HerculesWS/Hercules/pull/266

 
Last edited by a moderator:
Back
Top