Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   level.isnopkzone (https://forums.graalonline.com/forums/showthread.php?t=84025)

xXziroXx 02-04-2009 07:53 PM

level.isnopkzone
 
How come it isn't set back to false even if I remove noPlayerKilling() from it and even update the level? Tested it one three levels, all gave the same result, and quite frankly it's ****ing things up for me.

If anyone could double check this before Stefan get a chance to reply, it'd be great.


Note: Serversided noPlayerKilling(), not clientsided.


EDIT: It seems no level vars at all, even manually created ones, doesn't clear when I update level. :oo:

xXziroXx 02-06-2009 06:35 PM

... anyone? :whatever:

xXziroXx 02-06-2009 08:53 PM

Blah blah, triple post etc, but I consider it an importance bump.


It seems restarting the NPC-Server restores all level variables back to default, but shouldn't update level be doing it too? Once again, I'm talking about serversided level data.

Frankie 02-06-2009 09:22 PM

did you manually try setting it to false?

level.isnopkzone = false;

save the level, then remove the npc and save the level again.

xXziroXx 02-06-2009 09:56 PM

Quote:

Originally Posted by Frankie (Post 1463586)
did you manually try setting it to false?

level.isnopkzone = false;

save the level, then remove the npc and save the level again.

It's a protected variable that only noPlayerKilling(); can alter by setting it from false to true.

Saving the level is the same as updating it, if you didn't know.

Deas_Voice 02-06-2009 10:41 PM

i think level.isnopkzone should be unprotected, would make scripting with "no pk zones" much easier..

xXziroXx 02-06-2009 10:42 PM

Quote:

Originally Posted by Deas_Voice (Post 1463629)
i think level.isnopkzone should be unprotected, would make scripting with "no pk zones" much easier..

You know what else would? Level variables being cleared upon updating the level. :mad:

Deas_Voice 02-06-2009 11:04 PM

Quote:

Originally Posted by xXziroXx (Post 1463632)
You know what else would? Level variables being cleared upon updating the level. :mad:

o.o
would be logic if they did.
i rarely work with level. prefix, but level variables should be cleared when you update level / uploading a new version of the level.

Admins 02-13-2009 07:35 PM

Updatelevel is reloading the tiles and local npcs, it's not clearing scripting variables. That's similar to updating the script of an npc. You can place an npc in the level that resets the variables in onCreated().

I've modified isnopkzone to be writable, will try to update the npcservers in a few minutes.

xXziroXx 02-13-2009 07:36 PM

Quote:

Originally Posted by Stefan (Post 1466108)
I've modified isnopkzone to be writable, will try to update the npcservers in a few minutes.

Oh my god I think I love you! :D

Crow 02-13-2009 07:42 PM

Quote:

Originally Posted by Stefan (Post 1466108)
I've modified isnopkzone to be writable, will try to update the npcservers in a few minutes.

Ahh! About time that has happened. Thanks!

xXziroXx 02-13-2009 07:57 PM

Quote:

Originally Posted by Crow (Post 1466112)
Ahh! About time that has happened. Thanks!

Didn't I post a while ago that forum PMing Stefan yields result? :D

cbk1994 02-13-2009 11:08 PM

Seems to me like Stefan has no problem doing 99% of the stuff requested, you just have to get him to read it :P

Great addition, will be useful.

Crow 02-14-2009 12:08 AM

Quote:

Originally Posted by xXziroXx (Post 1466121)
Didn't I post a while ago that forum PMing Stefan yields result? :D

Okay, you win D:

cbk1994 04-02-2009 03:57 PM

Quote:

Originally Posted by Stefan (Post 1466108)
I've modified isnopkzone to be writable, will try to update the npcservers in a few minutes.

Any way you can synchronize this data clientside? It would be nice if when changing this serverside it would change on clientside (regarding whether or not players block in the level).


All times are GMT +2. The time now is 08:45 AM.

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