Difference between revisions of "Isloggedin"
From Hercules Wiki
(Created page with "==Syntax== *'''isloggedin'''(<account id>[, <char id>]); ==Description== This function checks, whether an character with given account id is currently online (1) or n...") |
(nevermind me [6] (testing stuff)) |
||
Line 19: | Line 19: | ||
==See Also== | ==See Also== | ||
* [[attachrid]] | * [[attachrid]] | ||
+ | |||
+ | |||
[[Category:Script Command]] | [[Category:Script Command]] |
Latest revision as of 14:11, 17 January 2015
Contents |
Syntax
- isloggedin(<account id>[, <char id>]);
Description
This function checks, whether an character with given account id is currently online (1) or not (0). Additionally a char id can be specified, for exact character matching.
Examples
input .@aid; if(isloggedin(.@aid)) { mes "A character with account id "+.@aid+" is currently around."; } else { mes "Sorry, there is no character online with account id "+.@aid+","; mes "or the account does not exist."; }