ID:115463
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Summary: This proc would check to see if the player is logged in as a guest or not. Would make blocking guest keys from joining a game easier.

I was thinking it would work like the IsByondMember() proc:
mob/var
is_guest

mob/Login()
if(client.IsGuest())
is_guest = TRUE
src << "Log into your pager for a fuller game experience!"
else
is_guest = FALSE
src << "Thank you for playing!"
..()


I have a habit of blocking guest keys and from what I know of, there isn't a legit way of checking if the player is on a guest key or not. This would be a nice simple addition, in my opinion.
isGuest(person)
if(copytext(person,1,6)=="Guest")
return TRUE
else
return FALSE
Super Saiyan X's function will do fine. The registration system doesn't allow keys to be made with 'Guest' at the beginning. The 'Guest' key Hiro mentioned is still used for DMCGI and similar things as the guest account.
Ah, I wasn't aware that the locksmith had reserved names.
At present, "Telnet@" and (in the future) "Flash@" are also used at the beginning of guest keys for those connection types.