I have a problem using GetMapInfo() in sea.
member landtile give always 0
What can be the problem?
Pol is 097 2008.02.26
GetMapInfo(x, y, realm := _DEFAULT_REALM )
-
innominabile
- Adept Poster
- Posts: 85
- Joined: Wed Aug 30, 2006 5:24 pm
-
innominabile
- Adept Poster
- Posts: 85
- Joined: Wed Aug 30, 2006 5:24 pm
So you are having problems with this sort of thing?
This works for me though. It prints out the numbers to the screen that I'd expect.
Code: Select all
use uo;
program textcmd_maptile(character)
var the_tile := GetMapInfo(character.x, character.y, character.realm);
SendSysMessage(character, "Maptile: " + the_tile.landtile);
SendSysMessage(character, "Map height: " + the_tile.z);
endprogram
-
innominabile
- Adept Poster
- Posts: 85
- Joined: Wed Aug 30, 2006 5:24 pm
I had same problem not so long time ago. Unfortunately, I do not recall what I exactly did that solved this. Have you tried redoing your realm? Maptile is the one I would suspect, but after all, it's been a while, so can't tell for sure.
Do you have all the necessary files in your /realm/[realm] directory? Are any of the files empty (size of or close to 0kb)? Those including at least:
base.dat
maptile.dat
solids.dat
statics.dat
Do you have all the necessary files in your /realm/[realm] directory? Are any of the files empty (size of or close to 0kb)? Those including at least:
base.dat
maptile.dat
solids.dat
statics.dat
-
innominabile
- Adept Poster
- Posts: 85
- Joined: Wed Aug 30, 2006 5:24 pm