Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Changing Tiles (https://forums.graalonline.com/forums/showthread.php?t=57263)

Crono1508 01-23-2005 06:06 PM

Changing Tiles
 
Err.. I want to change the tiles on a server, but I can't get it to work at all. I uploaded the tiles I wanted. So I tried something like this..

//#CLIENTSIDE
if (created){
addtiledef2 lyoko_shadowtiles.png,lyoko_osl.nw,x,y;
}

I don't get how that thing works, and why is there a X Y on the script.
Help me with this please.

WanDaMan 01-23-2005 06:12 PM

Fix the X and Y of it.

There's a tutorial of it in the graphics thread, I'll retrieve it for you.

Edit:

http://forums.graalonline.com/forums...threadid=47038

Have fun

Projectshifter 01-24-2005 12:10 AM

Read up on scripting a little please and hwo they work. Check that link Wan put up. Addtiledef is what you want if you don't want it to be at a specifc x/y

Crono1508 01-24-2005 01:18 AM

It never worked, when I tried this.. addtiledef lyoko_shadowtiles.png,lyoko_osl.nw,1; It never worked. Just made the level all black and not load my tiles. It's saved as a 24-bit color.

calum 01-24-2005 01:31 AM

Quote:

Originally Posted by Crono1508
It never worked, when I tried this.. addtiledef lyoko_shadowtiles.png,lyoko_osl.nw,1; It never worked. Just made the level all black and not load my tiles. It's saved as a 24-bit color.

It should be 8-bit colour.

ZeroTrack 01-24-2005 02:36 AM

8-bit png file , if your saving it with photoshop, goto save for web, select png and 8-bit

script should read
PHP Code:

//#CLIENTSIDE
if (created){
addtiledef2 lyoko_shadowtiles.png,lyoko_osl.nw,0,0;


that script will replace the entire pics1.png with your tileset, the x and y you use when not replaceing the entire tileset when only replaceing a specific area like ..
PHP Code:

//#CLIENTSIDE
if (created){
addtiledef2 lyoko_shadowtiles.png,lyoko_osl.nw,1024,96;


that'll replace your inside tiles if im not mistaken on my x,y


All times are GMT +2. The time now is 06:19 AM.

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