Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   TServerPlayer.isobserver (https://forums.graalonline.com/forums/showthread.php?t=134257683)

LoneAngelIbesu 01-16-2010 11:37 PM

TServerPlayer.isobserver
 
While debugging a serious problem on Valikorlia, I noticed that TServerPlayer.isobserver is not correct, at all.

The problem involved certain variables on the player object not being created, because the player was in observer. However, the function creating those variables should never have been triggered, because TServerPlayer.isobserver is checked. If it's true, the function shouldn't be triggered. If it's false, it should.

What I noticed was that, on login, even if the player is in observer mode, TServerPlayer.isobserver still returns false.

cbk1994 01-16-2010 11:54 PM

Ideally players should just be logged off while in observer. This is how it's supposed to work.

fowlplay4 01-16-2010 11:55 PM

Observer mode is a burden on Graal :(

LoneAngelIbesu 01-17-2010 12:00 AM

Quote:

Originally Posted by cbk1994 (Post 1550760)
Ideally players should just be logged off while in observer. This is how it's supposed to work.

I ended up adding the MUD object creation in the observer switch actions (onObserverSwitchToPlayer, etc). These act like onActionPlayerOnline() and onPlayerLogout().

In fact, onActionPlayerOnline() seems to be triggered when a player comes out of observer mode. However, I could only get the MUD objection creation to work by using the switch actions.

Imperialistic 01-17-2010 12:22 AM

Quote:

Originally Posted by fowlplay4 (Post 1550762)
Observer mode is a burden on Graal :(

I've read tons of forums I found on Google about GraalOnline, most people really enjoyed it and liked it.. But it was the subscription plans and obs mode that keeps them from actually playing.


All times are GMT +2. The time now is 05:19 PM.

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