Jump to content
  • 0

How to check if the player is online


FelipeMartins

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   6
  • Joined:  07/01/12
  • Last Seen:  

I want to create a NPC informing to the players if the GM is online or not. I have an ID of the character. How can I check if my GM is online of not? (script)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

6 hours ago, FelipeMartins said:

I want to create a NPC informing to the players if the GM is online or not. I have an ID of the character. How can I check if my GM is online of not? (script)

Hi, you can use my simple script:

-	script	GmOnlineStatus	-1,{
OnPCLoginEvent: // Show message when player login
	if (isloggedin(2000000,150000) == 1) { // isloggedin(Login_id, Char_id)
		dispbottom "Game master [Balfear] : Online.",0x00FFFF;
	} else {
		dispbottom "Game master [Balfear] : Offline.",0xFF0000;
	}
	end;
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

Is it serious? Did you try to at least get the 'search' button on the forum?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   6
  • Joined:  07/01/12
  • Last Seen:  

On 9/8/2018 at 10:15 AM, Kakaroto said:

Is it serious? Did you try to at least get the 'search' button on the forum?

yes my friend!

 

.

 

I know that is simple, but I don't know how to do it, sorry.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   6
  • Joined:  07/01/12
  • Last Seen:  

4 hours ago, Balfear said:

Hi, you can use my simple script:


-	script	GmOnlineStatus	-1,{
OnPCLoginEvent: // Show message when player login
	if (isloggedin(2000000,150000) == 1) { // isloggedin(Login_id, Char_id)
		dispbottom "Game master [Balfear] : Online.",0x00FFFF;
	} else {
		dispbottom "Game master [Balfear] : Offline.",0xFF0000;
	}
	end;
}

 

I Love you! Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Reading the doc/script_commands.txt also helps quite a lot.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...