Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   onmapx/onmapy (https://forums.graalonline.com/forums/showthread.php?t=77191)

Tigairius 10-15-2007 10:05 PM

onmapx/onmapy
 
It seems as if onmapx/onmapy does not recognize new objects (e.i player.level.name/player.level), when I try
onmapx(player.level) it returns null, same with onmapy.
When I use
onmapx(#L)/onmapy(#L) it works properly, is there some reason for this? o_o It also works if I do onmapx("levelname.nw"), so it's kind of strange.

Skyld 10-15-2007 10:30 PM

#L is the level name, not the level object. I would assume that if you are trying player.level, then it won't work, however if player.level.name is not working also, then I am not sure.

xAndrewx 10-15-2007 10:37 PM

maybe try

HTML Code:

onmapx((@ player.level.name))
same for y

Tigairius 10-15-2007 10:45 PM

Quote:

Originally Posted by xAndrewx (Post 1353067)
maybe try

HTML Code:

onmapx((@ player.level.name))
same for y

Not sure why that would work, but it doesn't.

Tolnaftate2004 10-15-2007 11:04 PM

onmapx and onmapy are old script functions and expect a GS1 style string (#L, for instance). Try getmapx/y.

Tigairius 10-15-2007 11:21 PM

Quote:

Originally Posted by Tolnaftate2004 (Post 1353071)
onmapx and onmapy are old script functions and expect a GS1 style string (#L, for instance). Try getmapx/y.

getmapx/y is a good idea, getmapx/y works, however I still think onmapx/y should have been converted.

Tolnaftate2004 10-15-2007 11:33 PM

Quote:

Originally Posted by Tigairius (Post 1353076)
getmapx/y is a good idea, getmapx/y works, however I still think onmapx/y should have been converted.

That would ruin backwards compatibility for onmapx/y. If the two functions give the same result, I don't really see any problem...


All times are GMT +2. The time now is 10:35 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.