Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tileset and standard features questions (https://forums.graalonline.com/forums/showthread.php?t=134262193)

AlexanderK 02-22-2011 03:16 AM

Tileset and standard features questions
 
As I'm planning to have spikes that hurt the player when it walk on them, and pits, the player falls down, I looked into tiletypes, at is much easier to check for the tiletype than to check for single tiles.
This raised some questions:
http://i54.tinypic.com/2uyot1s.png
Blue field:
Is it just my server's configuration or has lava been removed? All the templates say that there should be lava, but I can swim everywhere in there and tiletype(x,y) returns 11.

Red field:
tiletype(x,y); returns 2, hurting underground. When you stand on there, your character slowly looses 0.5 player.hearts until he dies. Is there a way to stop that? I guess I could use some kind of loop and add player.hearts but maybe theres something like disablehurtinggrounds(); or disabledying(); or a serveroption I don't know about.

Green field:
tiletype(x,y) returns 10. I have found no documentation about that tiletype. Is it undefined? Well then I could use it for scriptinng purposes without having to worry about the game's features interfering.

Finally, is there a way to turn off the little animations by your feet when you stand in water or wamp or just change their look?

Crow 02-22-2011 12:22 PM

Quote:

Originally Posted by AlexanderK (Post 1632553)
Red field:
tiletype(x,y); returns 2, hurting underground. When you stand on there, your character slowly looses 0.5 player.hearts until he dies. Is there a way to stop that? I guess I could use some kind of loop and add player.hearts but maybe theres something like disablehurtinggrounds(); or disabledying(); or a serveroption I don't know about.

There's nothing, nope.


Quote:

Originally Posted by AlexanderK (Post 1632553)
Green field:
tiletype(x,y) returns 10. I have found no documentation about that tiletype. Is it undefined? Well then I could use it for scriptinng purposes without having to worry about the game's features interfering.

You can do that. It seems to be unused. I did use the same space on Era to do some fancy stuff in the past, which hasn't even been used as far as I know.


Quote:

Originally Posted by AlexanderK (Post 1632553)
Finally, is there a way to turn off the little animations by your feet when you stand in water or wamp or just change their look?

You can try removing the sprites from sprites.png, renaming it to something else and then using setspritesimage() to locally switch sprites.png with another image.

AlexanderK 02-24-2011 06:24 PM

So does anyone know what might have happened to the lava?

Soala 02-24-2011 06:55 PM

Quote:

Originally Posted by AlexanderK (Post 1633078)
So does anyone know what might have happened to the lava?

someone threw some water and turned it to obsidian

WhiteDragon 02-24-2011 09:17 PM

In general, to get rid of all this stuff you need to use a servermode that kills literally all the default stuff (including movement, pking, etc.). If you want to go that route you need to ask Stefan to turn on that servermode for you. But it'll be a decent amount of work to script back all that stuff that goes away.

Doahh_p2p 02-25-2011 02:03 AM

might as well rescript it anyways. Opens up way more possibilities.

DustyPorViva 02-25-2011 02:13 AM

Quote:

Originally Posted by Doahh_p2p (Post 1633143)
might as well rescript it anyways. Opens up way more possibilities.

Way easier said than done.


All times are GMT +2. The time now is 11:35 AM.

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