Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tileset help needed. (https://forums.graalonline.com/forums/showthread.php?t=83135)

[email protected] 12-13-2008 03:45 AM

Tileset help needed.
 
Hello everyone, I have a question. I am learning to script and I decided to get an rc on Testbed Server. It's a pretty cool server. Basically you can go on there, give them your ip information, and they confirm it and give you personal folders. So, I decided to make a tileset to test the new gmap I made on there. Suppose the tileset's name is "Testtileset1.gif", I make a level using offline editor, and upload it to the file browser. I try doing that and it basically shows a messed up level from the classic tileset. How do I get it to show my tileset I made? Is it a weapon script I have to have? I would appreciate it :).

Chompy 12-13-2008 04:12 PM

Well, on the Testbed Server, (If you don't have NC on there, skip down to the next paragraph) create a weapon npc named
"Personal/communityname/Tileset" and add something like..
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
addtiledef("Testtileset1.gif""testgmap_"1);
  
// Change "testgmap_" to what your gmap levels start with
  // Change 1 into 0 if your tileset is using the same setup as pics1.png does


And then add yourself that weapon by setting your attributes.



If you don't have NC on there, you would have to use a level npc.
Simply put the above script (The one in PHP tags) into your gmap level(s) and then try it out.

Oh, and if you haven't done this yet, ask Tig or some high admin to put your gmap name into server options. (This is important to get your gmap to work)

xXziroXx 12-13-2008 06:11 PM

Quote:

Originally Posted by Chompy (Post 1449052)
Oh, and if you haven't done this yet, ask Tig or some high admin to put your gmap name into server options. (This is important to get your gmap to work)

loadmap("mapname"); does the same thing as putting it in serveroptions.


All times are GMT +2. The time now is 10:39 AM.

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