Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   (!*"/%! Map )!("%)!() (https://forums.graalonline.com/forums/showthread.php?t=16385)

Faheria_LAT1 11-08-2001 05:29 AM

(!*"/%! Map )!("%)!()
 
I can't get the setmap command to work offline -_-' anyone can explain to me WHY? >_<

Okay, here's what I did:

NPC Code:
if (playerenters) {
setmap fah_map.png,fah_map.txt,32,32;
setminimap fah_minimap.png,fah_map.txt,32,32; //not sure if this part is correct (32,32)
}



the files are in my d:\Gamez\Graal2001\maps\ folder but.. still no results *sigh*

Faheria_LAT1 11-08-2001 06:47 AM

Patience also has a limit :( this is a simple question >_<

nyghtGT 11-08-2001 06:52 AM

Re: (!*"/%! Map )!("%)!()
 
Quote:

Originally posted by Faheria_LAT1
I can't get the setmap command to work offline -_-' anyone can explain to me WHY? >_<

Okay, here's what I did:

NPC Code:
if (playerenters) {
setmap fah_map.png,fah_map.txt,32,32;
setminimap fah_minimap.png,fah_map.txt,32,32; //not sure if this part is correct (32,32)
}



the files are in my d:\Gamez\Graal2001\maps\ folder but.. still no results *sigh*

Try putting it at '1,1'

Faheria_LAT1 11-08-2001 08:47 AM

Re: Re: (!*"/%! Map )!("%)!()
 
Quote:

Originally posted by nyghtGT

Try putting it at '1,1'

humm,

setmap ,,1,1 is for a 1*1 map

i put 32,32 because Faheria's overworld is 32 levels by 32 levels (1024 level overworld)

the minimap isnt the problem (but doesnt work) my probleme is that even though the npc should work, the map won't appear

LiquidIce00 11-08-2001 08:48 AM

try making it a gif

Faheria_LAT1 11-08-2001 09:01 AM

Quote:

Originally posted by LiquidIce00
try making it a gif
nah, anyways the servers will only accept PNGs, remember Kawaii's new rule ;)

anyways thx to TB3 I was able to make it work with this script.

if (playerenters) {
setmap fahmap.png,fahmap.txt,playerx,playery;
setminimap fahmini.png,fahmap.txt,playerx,playery;
}


I think the problem was the "_" in the files.

Poogle 11-08-2001 09:37 AM

Re: (!*"/%! Map )!("%)!()
 
Quote:

Originally posted by Faheria_LAT1
I can't get the setmap command to work offline -_-' anyone can explain to me WHY? >_<

Okay, here's what I did:

NPC Code:
if (playerenters) {
setmap fah_map.png,fah_map.txt,32,32;
setminimap fah_minimap.png,fah_map.txt,32,32; //not sure if this part is correct (32,32)
}



the files are in my d:\Gamez\Graal2001\maps\ folder but.. still no results *sigh*

Must make it .gif for Offline mode(I had to pay a hard lesson for not knowing that)

Faheria_LAT1 11-08-2001 11:28 AM

Re: Re: (!*"/%! Map )!("%)!()
 
Quote:

Originally posted by Poogle
Must make it .gif for Offline mode(I had to pay a hard lesson for not knowing that)
well pngs works fine..

Fry 11-08-2001 01:23 PM

you must convert it to Gif and then convert it with gif2mng.exe to a png.

Slaktmaster 11-08-2001 04:05 PM

no, you just have to pull down the colors to 8-bit (256 colors)

when maps are made they have 16-bit colors and therefore it wont show up

Faheria_LAT1 11-08-2001 07:36 PM

Quote:

Originally posted by Fry
you must convert it to Gif and then convert it with gif2mng.exe to a png.
humm, I said the png i'm using is fine problem solved... -_-'


All times are GMT +2. The time now is 06:08 PM.

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