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)

bscharff 01-27-2008 02:22 AM

Time left until Observer Mode
 
Why not tell Trials how long they have left until Observer Mode?
At least tell them an estimate on how long they have left ("About __ minutes left").

cbk1994 01-27-2008 03:09 AM

I thought it did do this?

bscharff 01-27-2008 03:16 AM

I asked a few trials, they said it doesn't. :(

I just thought it might be nice to tell them how much longer they have.

What would even be better would be to have some sort of clientsided var (player.obstimeleft) or something :)

MysticX2X 01-27-2008 07:01 AM

Probably because they ran out their real time and thats the time where they go to observer mode every few often.

Rufus 01-27-2008 12:54 PM

I don't know if I've misinterpreted the OP or not, but I think he means time left until you hit observer mode when your time has ran out, which would be once your free time has already been and gone.

cbk1994 01-27-2008 04:16 PM

He means like time left until you go into observer mode.

I suppose you could do something like this for events

PHP Code:

if ( ( player.isTrial && player.timeLeft 500 ) || ( ! player.isTrial ) )
{
  
teleportPlayerToEvent();
  
w00t();
}
else if ( 
player.isTrial && player.timeLeft <= 500 )
{
  
player.chat "Sorry, you don't have enough time! You must have atleast 500 seconds to join. Upgrade to P2P to remove this.";


So observers couldn't join events.

Or even if it is in less than 10 seconds, warp them to a safe place until they're back. So they aren't stuck in events or blocking something, etc.

bscharff 01-30-2008 04:42 AM

I really would like this done. I'll keep bumping it lawl.

Tigairius 01-30-2008 04:43 AM

I like this idea.

zokemon 01-30-2008 02:55 PM

I vote yes on timetillobserver variable!

Admins 01-30-2008 03:33 PM

So some way to access the time from script (serverside) or for displaying it on clientside?

Chompy 01-30-2008 03:34 PM

Quote:

Originally Posted by Stefan (Post 1372682)
So some way to access the time from script (serverside) or for displaying it on clientside?

player.timetillobserver as Zero said?

napo_p2p 01-30-2008 07:08 PM

Quote:

Originally Posted by Stefan (Post 1372682)
So some way to access the time from script (serverside) or for displaying it on clientside?

The Graal client should display the time left for the trials, but there should also be a way for scripts to access the variable.

cbk1994 01-30-2008 11:59 PM

Quote:

Originally Posted by Stefan (Post 1372682)
So some way to access the time from script (serverside) or for displaying it on clientside?

From the script, so that if someone is in an event you can safely warp them away 10 seconds or so before observer mode happens (this way you don't have the problem with players sticking somewhere).

Admins 01-31-2008 01:25 PM

The observer time is accessble neither by client nor server side, the simpliest thing that could be added is to send a trigger to an npc to do the warping or so. Normally you can also catch the events triggered when the player is switched to observer mode though.

Crow 01-31-2008 03:59 PM

Quote:

Originally Posted by Stefan (Post 1372883)
The observer time is accessble neither by client nor server side, the simpliest thing that could be added is to send a trigger to an npc to do the warping or so. Normally you can also catch the events triggered when the player is switched to observer mode though.

I would love to have an event thats triggered like 5 seconds before you are switched into observer or something. With the event that triggers when you are switched, I just cant warp people out of events, they would still stand around, and be warped out after they get back.

Chompy 02-03-2008 01:43 AM

Bump, can this be added? I want to warp observers to OSL before they go away :(

bscharff 02-03-2008 02:37 AM

Quote:

Originally Posted by Chompy (Post 1373407)
Bump, can this be added? I want to warp observers to OSL before they go away :(

Agreed (x∞)

Crow 02-03-2008 12:28 PM

Quote:

Originally Posted by Chompy (Post 1373407)
Bump, can this be added? I want to warp observers to OSL before they go away :(

Same. Well, when they are in events at least.

DustyPorViva 02-03-2008 12:47 PM

Hmm, also a new var?
timeuntilobserver?

cbk1994 02-03-2008 03:45 PM

Quote:

Originally Posted by DustyPorViva (Post 1373430)
Hmm, also a new var?
timeuntilobserver?

Is that not what was originally suggested?

bscharff 02-04-2008 03:54 AM

Stefan >:O!
I would say make it clientside and serverside.

DustyPorViva 02-04-2008 09:27 AM

Quote:

Originally Posted by cbkbud (Post 1373449)
Is that not what was originally suggested?

Nope. The original suggestion was to add the minutes until observer on the top of the blue bar(where it says how many hours left). My suggestion was to add a var that scripters can access.
Imagine if you're starting an event that'll last 5 minutes, you can script it so any trial that will disappear within 5 minutes won't be allowed to join to avoid complications.

Tigairius 02-04-2008 08:33 PM

Quote:

Originally Posted by cbkbud (Post 1373449)
Is that not what was originally suggested?

...

Quote:

Originally Posted by cbkbud (Post 1372027)
Read the whole thread :rolleyes:

:rolleyes:

zokemon 02-04-2008 10:32 PM

Quote:

Originally Posted by zokemon (Post 1372678)
I vote yes on timetillobserver variable!

:)

Inverness 02-04-2008 10:37 PM

It doesn't need to be serverside, if the time is in seconds its fine on the clientside, no need to synch to server.

cbk1994 02-05-2008 12:56 AM

Quote:

Originally Posted by cbkbud (Post 1372229)
He means like time left until you go into observer mode.

I suppose you could do something like this for events

PHP Code:

if ( ( player.isTrial && player.timeLeft 500 ) || ( ! player.isTrial ) )
{
  
teleportPlayerToEvent();
  
w00t();
}
else if ( 
player.isTrial && player.timeLeft <= 500 )
{
  
player.chat "Sorry, you don't have enough time! You must have atleast 500 seconds to join. Upgrade to P2P to remove this.";


So observers couldn't join events.

Or even if it is in less than 10 seconds, warp them to a safe place until they're back. So they aren't stuck in events or blocking something, etc.

Quote:

Originally Posted by DustyPorViva (Post 1373584)
Nope. The original suggestion was to add the minutes until observer on the top of the blue bar(where it says how many hours left). My suggestion was to add a var that scripters can access.
Imagine if you're starting an event that'll last 5 minutes, you can script it so any trial that will disappear within 5 minutes won't be allowed to join to avoid complications.

:rolleyes:

Sorry if I'm coming off as rude/mean. <3

DustyPorViva 02-05-2008 01:15 AM

Ya... except that's not what was originally suggested :P
I'm allowed to suggest already suggested ideas, I'm special. And yes, I mean I'm 'short-bus' special.

bscharff 02-09-2008 03:06 AM

Bump!
Add it Stefan >:O!

bscharff 02-12-2008 04:17 AM

Bump Again! ;)

Inverness 02-12-2008 04:29 AM

Stop bumping the thread, its not going anywhere anytime soon.

Admins 02-15-2008 02:01 AM

It's not that simple to add as you might think, since the observer mode is controlled by a script running on another server, and the observer mode algorithm depends on number of players and similar. Like I said before it would be simplier to add something to trigger some npc on the server a few seconds before it happens (or trigger it, and wait 5 seconds before actually switching).
On the other hand switching someone to observer mode shouldn't bug anything, and if there is some problem it might be good to report the exact problem.

cbk1994 02-15-2008 03:58 AM

Quote:

Originally Posted by Stefan (Post 1375085)
It's not that simple to add as you might think, since the observer mode is controlled by a script running on another server, and the observer mode algorithm depends on number of players and similar. Like I said before it would be simplier to add something to trigger some npc on the server a few seconds before it happens (or trigger it, and wait 5 seconds before actually switching).
On the other hand switching someone to observer mode shouldn't bug anything, and if there is some problem it might be good to report the exact problem.

Sure.

When someone is kicked onto observer mode, their player stays where it is. They still block, etc. Really annoying at events. Can't d/c by RC, can't use any in-game tools, can't do anything at all.

Scripts recognize the player as still there, such as you can see them in playerlist, or in players var. However, no functions work on them.

Crow 02-15-2008 01:10 PM

Quote:

Originally Posted by cbkbud (Post 1375091)
Sure.

When someone is kicked onto observer mode, their player stays where it is. They still block, etc. Really annoying at events. Can't d/c by RC, can't use any in-game tools, can't do anything at all.

Scripts recognize the player as still there, such as you can see them in playerlist, or in players var. However, no functions work on them.

There you go Steban. Just add the 5 second delay, it would be very cool, seriously.

Admins 02-16-2008 04:00 PM

Observers are in allplayers[] but not in players[]. Also the "Can't d/c by RC" thing has been fixed a few weeks ago I think.

zokemon 02-16-2008 04:16 PM

Quote:

Originally Posted by Stefan (Post 1375260)
Observers are in allplayers[] but not in players[].

Clientside, too?

cbk1994 02-17-2008 04:00 AM

Quote:

Originally Posted by Stefan (Post 1375260)
Observers are in allplayers[] but not in players[].

Well then it isn't updating.

Quote:

Originally Posted by Stefan (Post 1375260)
Also the "Can't d/c by RC" thing has been fixed a few weeks ago I think.

Okay, I will try this.

Also, any way to make them not block, or implement the 5 second delay?

Inverness 02-17-2008 04:08 AM

Can you just implement the 5 second event, I think that would be best solution.

cbk1994 02-17-2008 06:11 AM

Quote:

Originally Posted by Inverness (Post 1375389)
Can you just implement the 5 second event, I think that would be best solution.

Also make players not block, because that's just a glitch.
But yah, the event does sound best.

Admins 04-21-2008 12:35 AM

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!");



cbk1994 04-21-2008 12:41 AM

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!");



Awesome, I will try this out!

Does it have to be named GlobalShopControl?


All times are GMT +2. The time now is 02:25 AM.

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