Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 22:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to check if the player is logged in

Discussion on How to check if the player is logged in within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 17
Received Thanks: 3
How to check if the player is logged in

Hey guys! Is there a way to check if my character is logged in the game?

I know the net module has a function called IsConnected, or something like that, but it returns true even when i'm in the character selection screen. Is there a way to check in which screen I'm at (i.e., login screen, character selection screen) or, at least, if the player is already in game?
theashmaster is offline  
Old 04/12/2021, 13:57   #2
 
elite*gold: 0
Join Date: Feb 2015
Posts: 26
Received Thanks: 8
In character selection screen, if you check against your VirtualID, it returns 0, 1, 2, 3, 4 for ebery character you have. While logged in, you aquire a VirtualID from the server which is always bigger than those values I enumerated earlier. So the easiest way is to check if vid > 4 (max characters you can have, do stuff. NPCs will never have VIDs lower or equal than 4, so it's a failsafe check.
Aeryas is offline  
Old 04/14/2021, 12:58   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 17
Received Thanks: 3
Nice! Thank you for your idea.

I realized that some info only show up when the player is in game (mov speed, att speed, etc.), and I was using those info to check if the player was logged. But for some reason it was not realiable (or my code was wrong somewhere xD).

I will try your tip. Thanks man!
theashmaster is offline  
Old 04/14/2021, 13:53   #4
 
elite*gold: 0
Join Date: Dec 2014
Posts: 442
Received Thanks: 211
just use the phase packet from the server and check against the game phase. this way you can distinguish between any phase in which the character is currently in.
_asm is offline  
Reply


Similar Threads Similar Threads
Metin2Earth - Player vs Metin Stones - Player vs Player
08/02/2018 - Metin2 PServer Advertising - 8 Replies
WEBSITE REGISTER DOWNLOAD https://metin2earth.com/images/presentation/1.png https://metin2earth.com/images/presentation/2.png https://metin2earth.com/images/presentation/3.png https://metin2earth.com/images/presentation/4.png https://metin2earth.com/images/presentation/5.png https://metin2earth.com/images/presentation/6.png https://metin2earth.com/images/presentation/7.png
Im tired of getting logged out in tg >=|
07/17/2006 - Conquer Online 2 - 4 Replies
Hey every1, yeah um this is actually my first post and well i was wondering if theirs any kind of program were i can toggle graphics on and off as i please. So like pheonix and hurculese dont give me soo much lag when i tg at night, cause im so sick of laggin out after 10 mins, extremly hard to lvl without tg =/, anyone got any suggestions or links to som kind of tool or anything? thanks for your consideration =)
tinytoon...not logged in?
09/10/2005 - World of Warcraft - 0 Replies
tach! habs nun soweit geschafft mit dem ganzen bot-hin-und-her, daß er keine fehlermeldungen mehr ausspuckt, aber wenn ich nen bot starten möchte er mir sagt, daß ich sichergehen soll, daß ich in tiny eingelogged bin. nun ist meine frage...was will er von mir? entschludigt den neuen thread aber ich möchte endlich mal vorwärtskommen :) wär nett wenn mir jemand helfen könnte.



All times are GMT +1. The time now is 22:39.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.