Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   change tiles temporary clientside? (https://forums.graalonline.com/forums/showthread.php?t=134265509)

Alpho 01-05-2012 05:16 AM

change tiles temporary clientside?
 
I was just thinking, is it, in anyway possible, to temporary change a tile to something else, clientside, so only you could see it?

Tolnaftate2004 01-05-2012 05:31 AM

Modification of tiles or board, and updateboard clientside should be temporary.

Alpho 01-06-2012 10:00 AM

okay, but how would it be done?

callimuc 01-06-2012 05:31 PM

Quote:

Originally Posted by Alpho (Post 1680963)
okay, but how would it be done?

PHP Code:

tiles[xy] = TilesID;
updateboard(xywidthheight


Emera 01-06-2012 07:03 PM

I can't get on and test it at the moment, but would assigning addtiledefs to certain accounts work too?
PHP Code:

if (player.account == "Graal772919") {
  
addtiledef("pics1.png""level_"0);



Crow 01-06-2012 07:29 PM

Quote:

Originally Posted by Emera (Post 1680988)
I can't get on and test it at the moment, but would assigning addtiledefs to certain accounts work too?
PHP Code:

if (player.account == "Graal000000") {
  
//addtiledef



Sure. Why the heck not, anyway?

scriptless 01-06-2012 08:27 PM

Quote:

Originally Posted by Crow (Post 1680995)
Sure. Why the heck not, anyway?

I believe he want's to change the actual tile not just the image.

While you can change the tiles clientside, they work like bush's. They will change back on there own in the same time a bush does.

I have been having problems getting tiles to change for everyone. But much success changing it the player making modification to the level..

So the answer. Yes you can.

Crow 01-06-2012 08:47 PM

Quote:

Originally Posted by scriptless (Post 1681002)
I believe he want's to change the actual tile not just the image.

He was asking about tiledefs. I believe Emera knows what that is :oo:


Quote:

Originally Posted by scriptless (Post 1681002)
While you can change the tiles clientside, they work like bush's. They will change back on there own in the same time a bush does.

You must be doing something wrong. If you change bush tiles, sure, they might change back. Does not apply to most other tiles, though.

Emera 01-06-2012 08:51 PM

Quote:

He was asking about tiledefs. I believe Emera knows what that is
I can't tell if you're being sarcastic or not D:
Edit: my last post makes more sense now.

scriptless 01-06-2012 09:07 PM

Quote:

Originally Posted by Crow (Post 1681004)
He was asking about tiledefs. I believe Emera knows what that is :oo:




You must be doing something wrong. If you change bush tiles, sure, they might change back. Does not apply to most other tiles, though.

I ment when you cut a bush it grows back. If you change a tile clientside it changes back. If you edit the serveroptions to savelevel=true your tiles wont temperaily change they will just change.

Quote:

Originally Posted by Alpho (Post 1680795)
I was just thinking, is it, in anyway possible, to temporary change a tile to something else, clientside, so only you could see it?

He say's tiles, not tiledefs. x_x.

I know what Emera ment, I was only saying changing a tiledef wont change walkable tiles to non-walkable and vise versa unless changing the tileset type.. like to what Era/GK use..

Alpho 01-06-2012 09:31 PM

Yeah I want to change the tile to something, like lets say, where ever I click, it will turn into a Water tile, and I will be able to stand on it and I will start 'swimming'. And possibly be able to say /undo or something, and it will undo the changes.
-Just a thought.

Crow 01-06-2012 09:37 PM

Quote:

Originally Posted by scriptless (Post 1681007)
If you change a tile clientside it changes back.

No, it will not.

callimuc 01-06-2012 09:52 PM

Quote:

Originally Posted by Alpho (Post 1681012)
Yeah I want to change the tile to something, like lets say, where ever I click, it will turn into a Water tile, and I will be able to stand on it and I will start 'swimming'. And possibly be able to say /undo or something, and it will undo the changes.
-Just a thought.

Itīs possible. Just read my post above.

scriptless 01-06-2012 10:35 PM

Quote:

Originally Posted by Crow (Post 1681013)
No, it will not.

Then you have savelevels=true. Because I was having this very problem on N-Pulse while scripting a shovel for them. When the server had an OLE for lats it casued tiles to not change back to origonal tiles. But with savelevels=false the tiles would only be changes for the amount of time that a bush would stay cut for.

Also savelevels=true stopped bush's from respawning alltogether. I had to constantly "updatelevel" to return bush's.

Crow 01-06-2012 10:37 PM

Quote:

Originally Posted by scriptless (Post 1681021)
Then you have savelevels=true. Because I was having this very problem on N-Pulse while scripting a shovel for them. When the server had an OLE for lats it casued tiles to not change back to origonal tiles. But with savelevels=false the tiles would only be changes for the amount of time that a bush would stay cut for.

Also savelevels=true stopped bush's from respawning alltogether. I had to constantly "updatelevel" to return bush's.

The savelevels server option does not change the behavior of clientside tile changes at all.


All times are GMT +2. The time now is 09:20 AM.

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