Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   GS2: player.level issues (https://forums.graalonline.com/forums/showthread.php?t=59232)

Rick 06-03-2005 08:24 AM

GS2: player.level issues
 
It appears that the player.level variable is getting trashed by having the wrong object type.

In Control-NPC (possibly other DB-NPCs too) and Weapons:

HTML Code:

sendToNC(objecttype(player.level));
gives: TServerNPC

In a player.join()'d class:

HTML Code:

sendToNC(objecttype(player.level));
gives: TServerPlayer


In all cases
HTML Code:

sendToNC(player.level.name);
gives the correct name of the level.

Admins 06-03-2005 12:29 PM

must be player.level.objecttype(), otherwise it is calling this.objecttype() and is ignoring the parameters

Rick 06-03-2005 08:12 PM

Quote:

Originally Posted by Stefan
must be player.level.objecttype(), otherwise it is calling this.objecttype() and is ignoring the parameters

o.O

Why doesn't it cause an error?! Rah! Rah! Rah!

Also, that's not how it was documented in the docus :(

Oh well.


All times are GMT +2. The time now is 11:17 PM.

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