Thread: Server Maps
View Single Post
  #5  
Old 07-23-2001, 09:33 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Ill explain as good as I can.
first do the map like Shard said (ill explain it again)

like for example if you have a 2x2 square (thats 4 levels)
| 1.graal | 2.graal |
| 3.graal | 4.graal |
then your txt file should look like this
"1.graal","2.graal"
"3.graal","4.graal"
BUT theres a catch!
if your square is like this:
| 1.graal | 2.graal |
| 3.graal | empty |
then your txt file should look like this:
"1.graal","2.graal"
"3.graal",""
(all rows must contain the same ammount of levels!)
It does get kinda complicated if you have alot of levels!
okay anyways after you got that done. make a npc in a level with the following code:
NPC Code:

if (playerenters) {
setmap map.png,yourworldtxt.txt,x,y;
}



okay now play that level for like 3 seconds. then return to the editor and hit M. There you have your map!

now for some side notes..
if you want to use a npc in your playerworld to use the map..
make a npc with a code to something like this
NPC Code:

if (playerenters) {
if (this.connected=0) {
this.connected=1;
setmap yourworld.png,yourworldtxt.txt,x,y;
}
}


Now the part people dont understand is the x and y!
Ill explain that too.
Have you ever been to G2k1 ? and then you look at the map and theres a whole bunch of people clustered up in the middle of nowhere? Well that is what the x,y is. It simply tells the script where to place people. (well the people who are not found in the map)
experiment with this. put 5,5 or 4,4 or 4.5,5 or whatever. You will see how it reacts differently =)

Q."okay I did everything but my map isnt showing up!"
A.Change from .png to .gif (Graal has something special you need to do (in file width/height) in order to show up as .png i think)

..
and since I feel like typing . for minimaps you do the same ..
use the same txt file .. then take your bigmap and resize it (make sure you resize it correctly though)
I suggest you use paint shop prop or adobe and resize it by percentages and keep the ratio so it resizes it correctly.

okay im done.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote