Graal Forums

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

ownerofbabylon 08-09-2001 11:00 PM

Map Placing
 
I have read similar post but none of them were really answered right. Can someone tell me how you make it so when a player enters a level it places them on the map and the map is loaded in there?

I have my map made and I want to add it so when the player starts it shows the map but I dont know how to make it show players on it.

KJS 08-09-2001 11:03 PM

so do you want it to place a map when the start in your player world or something???

or just when they goto a sertain level you want it to set your map?

ownerofbabylon 08-10-2001 12:01 AM

I have the overworld map and I want the players head to appear on a certain part of it when first entering the server. I do not know how to load the map so that the players appear on it.

G_yoshi 08-10-2001 12:12 AM

Im not sure exactly what you mean or want, but my guess is that you want to show the map in a level, kinda like one of those mall maps and it puts the player's head on it like the "you are here" marker?

If that is what you want, you have to script it.

LiquidIce00 08-10-2001 01:34 AM

its the x,y part on setmap

mhermher 08-10-2001 11:07 PM

Just add this to a npc:


NPC Code:
if (playerenters) {
setminimap "youtminimapimghere","yourmaptxt",playerx,play ery;
setmap "yourbigmapimghere","yourmaptxt",playerx,playe ry;
}


Neonight 08-11-2001 11:41 AM

if(playerenters){setmap filename,txtfile,x,y; setminimap filename,same txtfile,x,y}

Shard_IceFire 08-11-2001 09:39 PM

The X and Y coordinates you define when you put that code in doesn't tell it where to put the player on the map! It tells it where to put the player on the map when they AREN'T on a map level...You know like on Graal2001 how when people aren't on the map it all shows them in the middle of that forest?

Also, when you define the map txt file, that is what detects where to show you on the map..

LiquidIce00 08-12-2001 05:04 AM

Quote:

Originally posted by Shard_IceFire
The X and Y coordinates you define when you put that code in doesn't tell it where to put the player on the map! It tells it where to put the player on the map when they AREN'T on a map level...You know like on Graal2001 how when people aren't on the map it all shows them in the middle of that forest?

Also, when you define the map txt file, that is what detects where to show you on the map..

yes.. dont use playerx,playery for x,y . it gets messy and depending on where you are you will see urself and receive some pm's in some weird places on the screen =)
I suggest you tryout diff numbers like 1-5 or something . doesnt need to be a big number since a map is small

General 08-12-2001 07:21 AM

....hmm...cool, i didnt know tjhat

Tyhm 08-14-2001 06:35 AM

the last 2 numbers are the X and Y in levels.

ownerofbabylon 08-14-2001 06:37 AM

Quote:

Originally posted by Shard_IceFire
The X and Y coordinates you define when you put that code in doesn't tell it where to put the player on the map! It tells it where to put the player on the map when they AREN'T on a map level...You know like on Graal2001 how when people aren't on the map it all shows them in the middle of that forest?

Also, when you define the map txt file, that is what detects where to show you on the map..

ooooo! now I got it!

ownerofbabylon 08-14-2001 07:23 AM

So can someone give me this exactly?

i have babylonmap.png, babylonmap.txt, and I want the map to be added (so they can hit M and see it) when they enter onlinestartlocal.graal

does anyone know how to do this?

Poogle 08-14-2001 07:32 AM

Quote:

Originally posted by ownerofbabylon
So can someone give me this exactly?

i have babylonmap.png, babylonmap.txt, and I want the map to be added (so they can hit M and see it) when they enter onlinestartlocal.graal

does anyone know how to do this?

Fully Made Script:

//Babylon Map Script
setmap babylonbigmap.png,thebabylon.txt,1,1;
setminimap minibabylonmap.png,thebabylon.txt,1,1;

BTW Have you finished my map.txt?

Poogle 08-14-2001 07:34 AM

Quote:

Originally posted by Poogle

Fully Made Script:

//Babylon Map Script
setmap babylonbigmap.png,thebabylon.txt,1,1;
setminimap minibabylonmap.png,thebabylon.txt,1,1;

BTW Have you finished my map.txt?

or put it in a isweapon


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

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