Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-07-2011, 08:43 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Setting different tilesets

I can't believe I've forgotten this much, but here is the code first:
PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
// Set all Tilesets where needed
  
removeTileDefs("");
  
temp.haha= {
  
"world_bb01.nw","world_bb02.nw","world_bb03.nw",
  
"world_bc01.nw","world_bc02.nw","world_bc03.nw",
  
"world_bd01.nw","world_bd02.nw","world_bd03.nw",
  
"world_be01.nw","world_be02.nw","world_be03.nw"
  
};
  
//make haha tileset on world_aa01(top left) through
  //world_bf03(bottom right).
  
  
if (player.level.name in temp.haha) {
    
addTileDef("haha-tileset.gif""world_"1);
  }else{ 
    
addTileDef("regular-tileset.gif""world_"1);
  }
  

I can't even really think of a different way, but I know even I used to do it a different way. Obvously I need world_aa01 through world_bf03 one tileset and then the rest of world_ the regular tileset. Crappy doing it in onPlayerEnters too. :/
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
 


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:27 PM.


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