How to get the guild ID of a player?
Moderator: Moderators
-
- Noob
- Posts: 5
- Joined: 23 Sep 2012, 13:09
- Noob?: No
How to get the guild ID of a player?
I know that we could get the guild name via $::players{$::playersID[$var]}->{guild}{name} but is the such a way to get the guild ID rather than getting the guild name?
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: How to get the guild ID of a player?
$actor->{guildID}
-
- Noob
- Posts: 5
- Joined: 23 Sep 2012, 13:09
- Noob?: No
Re: How to get the guild ID of a player?
So something like this?
when i tried it, the bot returned a undefined character. Oh and sorry for the double post, my bad.
Code: Select all
$g = @eval (exists $::players{$::playersID[$var]}->{guildID} ? $::players{$::playersID[$var]}->{guildID} : 'null')