Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tile changing ... simple problem (https://forums.graalonline.com/forums/showthread.php?t=73774)

cbk1994 05-01-2007 02:51 AM

Tile changing ... simple problem
 
PHP Code:

      tiles[11] = 55;
      
updateboard2005); 

being used serverside, it calls the code right. What is wrong with it? I've done almost this exact same thing before.

oo_jazz_oo 05-01-2007 05:20 AM

HTML Code:

tiles[1,1] = 55;
updateboard2 (0,0,64,64);

Maybe try updating the whole level, just in case the tile your trying to update isnt in 5,5?

Novo 05-01-2007 05:57 AM

Is this on a GMap?

DustyPorViva 05-01-2007 06:05 AM

I was gonna post that too.
If it's on a gmap, make sure you consider that a gmap is treated as one level, so 5,5 means it'll be all the way in the first upper-left level.
Maybe test using mousex/mousey.

zokemon 05-01-2007 07:37 AM

I think you need to do level.tiles[x, y] not just tiles[x, y]
I personnaly do level.tilelayers[0].tiles[x, y] but that is because I am always playing with tilelayers :P

cbk1994 05-01-2007 11:28 PM

Quote:

Originally Posted by zokemon (Post 1304815)
I think you need to do level.tiles[x, y] not just tiles[x, y]
I personnaly do level.tilelayers[0].tiles[x, y] but that is because I am always playing with tilelayers :P

level.tiles worked fine, thanks!

zokemon 05-02-2007 02:29 AM

Quote:

Originally Posted by cbkbud (Post 1304936)
level.tiles worked fine, thanks!

Not a problem :)


All times are GMT +2. The time now is 04:52 AM.

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