Quest List fix.

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
Historm
Human
Human
Posts: 27
Joined: 01 Jun 2011, 01:59
Noob?: No

Quest List fix.

#1 Post by Historm »

File \src\Network\Receive\servertype0.pm
depending on revision, starting at line 7060

Code: Select all

sub quest_update_mission_hunt {
	my ($self, $args) = @_;
	my ($questID, $mobID, $goal, $count) = unpack('V2 v2', substr($args->{RAW_MSG}, 6));
	my $quest = \%{$questList->{$questID}};
	my $mission = \%{$quest->{missions}->{$mobID}};
	$mission->{goal} = $goal;
	$mission->{count} = $count;
	debug "- $questID $mobID $count $goal\n", "info";
	#for my $mob (@{$args->{mobs}}) {
	#	@{$questList->{$mob->{questID}}{missions}{$mob->{mobID}}}{@$_} = @{$mob}{@$_} for [qw(mobID goal count)];
	#}
}
Implementing the following code will fix all issues related to repeatable exp kill count quests.

http://forums.openkore.com/viewtopic.ph ... 676#p30676

questList->{questID}->{missions}->{mobID}->{count} will always return the actual count, enabling easy use of macros.