Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-23-2005, 06:06 PM
Crono1508 Crono1508 is offline
*Shadow (Convoy)
Crono1508's Avatar
Join Date: Jun 2004
Location: United States
Posts: 488
Crono1508 will become famous soon enough
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.
__________________

Reply With Quote
  #2  
Old 01-23-2005, 06:12 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
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
__________________
V$:CONFL16T
Reply With Quote
  #3  
Old 01-24-2005, 12:10 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
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
__________________
Who has time for life these days?
Reply With Quote
  #4  
Old 01-24-2005, 01:18 AM
Crono1508 Crono1508 is offline
*Shadow (Convoy)
Crono1508's Avatar
Join Date: Jun 2004
Location: United States
Posts: 488
Crono1508 will become famous soon enough
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.
__________________

Reply With Quote
  #5  
Old 01-24-2005, 01:31 AM
calum calum is offline
Registered User
Join Date: Nov 2003
Location: Scotland
Posts: 182
calum is on a distinguished road
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.
__________________
Reply With Quote
  #6  
Old 01-24-2005, 02:36 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
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
__________________

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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