Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Time left until Observer Mode (https://forums.graalonline.com/forums/showthread.php?t=78486)

Admins 04-21-2008 01:25 AM

Yes some servers already have that npc :)

zokemon 04-21-2008 06:10 AM

Quote:

Originally Posted by cbkbud (Post 1387018)
Awesome, I will try this out!

Does it have to be named GlobalShopControl?

It's the NPC that gets sendtext'ed or so for displaying items in the gelat shop and such so that is what he used for observer mode too I guess. (So you don't need an updated client/npc server)

Admins 04-21-2008 04:53 PM

Actually the script can trigger any npc, but the shop control is somehow related to observer mode so it's better to just use one npc (and not flood the npc list of servers with npcs).

cbk1994 04-21-2008 11:04 PM

Quote:

Originally Posted by Stefan (Post 1387076)
Actually the script can trigger any npc, but the shop control is somehow related to observer mode so it's better to just use one npc (and not flood the npc list of servers with npcs).

Fair enough.

bscharff 05-16-2008 03:30 AM

I never thought it would happen :)

Soala 05-16-2008 04:46 PM

Nice >:O !

[email protected] 05-16-2008 11:33 PM

Quote:

Originally Posted by Stefan (Post 1387017)
Ok added an event: add an npc GlobalShopControl:
PHP Code:

function onReceiveText(texttypetextoptiontextlines) {
  if (
texttype=="lister" && textoption=="prepareobserver"
    echo(
"account " textlines[0] @ " will be switched to observer mode in 5 seconds!");



what if you want it the other way around? observer to normal ??

cbk1994 05-16-2008 11:39 PM

Quote:

Originally Posted by [email protected] (Post 1391129)
what if you want it the other way around? observer to normal ??

onActionPlayerOnline() ? I think this is called when they come back on.

[email protected] 05-16-2008 11:41 PM

hmm i dont think so, can anyone confirm?

Admins 05-17-2008 01:53 PM

There are still onSwitchPlayerToObserver and onSwitchObserverToPlayer, and a few months ago it has been changed to also do onPlayerLogin, onPlayerLogout and onActionPlayerOnline to work better with servers by default.

Robin 05-17-2008 03:52 PM

Bring back VIP :(


All times are GMT +2. The time now is 02:28 PM.

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