Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Map Not working? (https://forums.graalonline.com/forums/showthread.php?t=62870)

CujoDaMan 12-19-2005 06:01 PM

Map Not working?
 
Where using the GS1 Commands everything is gs1 we have the setmap and setminimap commands in 1 weapon and in the control npc and it still dosn't work. The image name and text file is right.
NPC Code:
setmap=sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap=sp_minimap.gif,sp_bigmap.txt,0,0;

Can anyone help me here?
Thanks!

If you want the full script:
NPC Code:
//#CLIENTSIDE
if(created||playerenters){
letters=sparitoria-letters.gif;
map=sp_bigmap.gif,sp_bigmap.txt,0,0;
minimap=sp_minimap.gif,sp_bigmap.txt,0,0;


ApothiX 12-19-2005 06:07 PM

um.. o__o

setmap, setminimap, changeletters are commands, not variables.

I believe you are thinking of the serveroption map=.

CujoDaMan 12-19-2005 06:19 PM

Quote:

Originally Posted by ApothiX
um.. o__o

setmap, setminimap, changeletters are commands, not variables.

I believe you are thinking of the serveroption map=.

Somone must of been messing with it.

In other words the script should be.
NPC Code:
//#CLIENTSIDE
if(created||playerenters){
setletters=sparitoria-letters.gif;
setmap=sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap=sp_minimap.gif,sp_bigmap.txt,0,0;



That is what should be there right?

Silent 12-19-2005 06:48 PM

Quote:

Originally Posted by CujoDaMan
<snip>
That is what should be there right?

PHP Code:

setletters("sparitoria-letters.gif");
setmap("sp_bigmap.gif""sp_bigmap.txt"00); 

etc.

Grappler 12-19-2005 07:26 PM

So the truth comes out, Cujo...

Anyway,

NPC Code:

setmap=sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap=sp_minimap.gif,sp_bigmap.txt,0,0;



should be:

NPC Code:

setmap sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap sp_minimap.gif,sp_bigmap.txt,0,0;



Same goes for setletters.

Like ApothiX said, they're commands, not strings.

And the weapon needs a closing bracket, "}".



Edit because I don't have Gold:

NPC Code:

//#CLIENTSIDE
if(created||playerenters)
{
setletters sparitoria-letters.gif; //Command, not a variable.
setmap sp_bigmap.gif,sp_bigmap.txt,0,0; //Command, not a variable.
setminimap sp_minimap.gif,sp_bigmap.txt,0,0; //Command, not a variable.
} //Ending bracket



If that doesn't work, them something is wrong with either the .txt file or the .gif file.

CujoDaMan 12-19-2005 07:26 PM

That still didn't work :\

hmm. :frown: :confused:

ApothiX 12-19-2005 07:52 PM

I thought it was changeletters, not setletters? I could be wrong though

xAndrewx 12-19-2005 08:34 PM

Why not use a gmap?

CujoDaMan 12-20-2005 01:42 AM

Quote:

Originally Posted by xAndrewx
Why not use a gmap?

Gmaps suck you gotta go around filling them in. :\

prozac424242 12-20-2005 03:50 AM

You could use the level generator to make a blank world (all flat plain grass) the size you want, then if you have a web server with perl or php, or c++ visual basic etc. you can write a program to read the .nw as text files, copying the tile definitions of the levels you already into the levelgenerator name levels, without changing the links. Then use the gmap that the levelgen program made.
I know this works becasuse I have done it.

alissalee 12-20-2005 01:46 PM

he doseint want that he wants to use his premade map that he did

Admins 12-20-2005 03:20 PM

Converting normal maps to gmaps is not that hard. Also those map= and minimap= lines should go into the server options to automatically set it at login, although the script command are ok too.

CujoDaMan 12-20-2005 09:54 PM

Quote:

Originally Posted by Stefan
Converting normal maps to gmaps is not that hard. Also those map= and minimap= lines should go into the server options to automatically set it at login, although the script command are ok too.

i have map and mini map in server options i even removed the script from the server and it still didn't work everything is right i copyed the names of images and text file to the server options and still didn't work.

ApothiX 12-21-2005 09:25 PM

Quote:

Originally Posted by CujoDaMan
i have map and mini map in server options i even removed the script from the server and it still didn't work everything is right i copyed the names of images and text file to the server options and still didn't work.

Make sure the map and minimap images are uploaded onto your server in some directory that is specified in your folder config.

Other than that, I'm thinking it must be a problem with your map text file, perhaps you could paste a portion of it for us to see?

CujoDaMan 12-23-2005 04:25 PM

Quote:

Originally Posted by ApothiX
perhaps you could paste a portion of it for us to see?

Okay
NPC Code:
"sparitoria_aa01.nw","sparitoria_ab01.nw","sparito  ria_ac01.nw","sparitoria_ad01.nw","sparitoria_ae01  .nw","sparitoria_af01.nw","sparitoria_ag01.nw","sp  aritoria_ah01.nw","sparitoria_ai01.nw",".....


theres a few levels not the hole thing theres to much :redface:


All times are GMT +2. The time now is 08:03 AM.

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