Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Fun with tiledefs! (https://forums.graalonline.com/forums/showthread.php?t=67589)

Yen 07-25-2006 01:03 AM

Fun with tiledefs!
 
I have a system which loads the tilesets at log on.
However, two levels revert to the previous tileset when you enter.. And then back to the new tileset when you leave them.

I tried setting the tileset when you enter the level. It didn't work.
I looked through the level (as text) for any tile-modifying scripts. Nothing.
I cleared the level's NPCs, incase a putnpc2 was doing it. Nothing.

Any ideas?

Angel_Light 07-25-2006 03:58 AM

is the script a weapon or a level NPC?

ForgottenLegacy 07-25-2006 05:30 PM

Yen:

PHP Code:

removetiledefs(); 

I have a command on Zodiac called '/reset tiles', which calls that function. It works for me!

Yen 07-25-2006 08:13 PM

Quote:

Originally Posted by ForgottenLegacy
Yen:

PHP Code:

removetiledefs(); 

I have a command on Zodiac called '/reset tiles', which calls that function. It works for me!

That's right, but I'm not going to have players doing that every time they enter these levels.

I tried to removetildefs() when the player enters and it didn't work. :/
I'd like to remove the NPC causing this, if anyone can think of where it might be.
An NPC Weapon loads all tiledefs. There should be no local tiledef scripts.

contiga 07-25-2006 09:36 PM

A database?

KuJi 07-25-2006 10:05 PM

I am pretty sure removetiledefs(); isn't a function.

It should just be removetiledefs; (Unsure, I just know that it used to not work and give me an error in F2)

Yen 07-25-2006 11:34 PM

It works, just not in this case.

ForgottenLegacy 07-26-2006 01:04 AM

Unless it's a lag hog, you could call removetiledefs() in a timeout every 5 to 10 seconds. That'll take care of it no problem. :D

Or, when a player enters a level, have it remvoetiledefs() one second after the player enters (20 ticks)


All times are GMT +2. The time now is 03:23 AM.

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