How to get the guild ID of a player?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

markeeh
Noob
Noob
Posts: 5
Joined: 23 Sep 2012, 13:09
Noob?: No

How to get the guild ID of a player?

#1 Post by markeeh »

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?
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: How to get the guild ID of a player?

#2 Post by EternalHarvest »

$actor->{guildID}
markeeh
Noob
Noob
Posts: 5
Joined: 23 Sep 2012, 13:09
Noob?: No

Re: How to get the guild ID of a player?

#3 Post by markeeh »

So something like this?

Code: Select all

$g = @eval (exists $::players{$::playersID[$var]}->{guildID} ? $::players{$::playersID[$var]}->{guildID} : 'null')
when i tried it, the bot returned a undefined character. Oh and sorry for the double post, my bad.