Jump to content
  • 0

How to check if the player is online


Question

5 answers to this question

Recommended Posts

  • 0
Posted
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
  • 0
Posted
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...