Guild check

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

Moderator: Moderators

m1334
Noob
Noob
Posts: 18
Joined: 16 Oct 2010, 12:02
Noob?: Yes

Guild check

#1 Post by m1334 »

Before renewal this used to work. Now I don't have any idea what to change here. Can anybody please give me a tip. Thanks.

Code: Select all

$playerguild = @eval (exists $::players{$::playersID[$playerID]}->{guild} ? $::players{$::playersID[$playerID]}->{guild}{name} : 'null')
kabayongtao
Noob
Noob
Posts: 8
Joined: 28 Jul 2011, 09:35
Noob?: No

Re: Guild check

#2 Post by kabayongtao »

You may want to refer at Network\Receive\ServerType0

Code: Select all

sub guild_name {
	my ($self, $args) = @_;

	my $guildID = $args->{guildID};
	my $emblemID = $args->{emblemID};
	my $mode = $args->{mode};
	my $guildName = bytesToString($args->{guildName});
	$char->{guild}{name} = $guildName;
	$char->{guildID} = $guildID;
	$char->{guild}{emblem} = $emblemID;

	$messageSender->sendGuildMasterMemberCheck();	# Is this necessary?? (requests for guild info packet 014E)
	$messageSender->sendGuildRequestInfo(0);	#requests for guild info packet 01B6 and 014C
	$messageSender->sendGuildRequestInfo(1);	#requests for guild member packet 0166 and 0154
	debug "guild name: $guildName\n";
}