twRO: quest updating packet : 02B5

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

twRO: quest updating packet : 02B5

#1 Post by sofax222 »

I paly a Champion on free twRO, and processing the mission for upgrading to Shura.
I found the length of 02B5 packet (quest_update_mission_hunt) is incorrect.
The length should be changed from 10 to 12 for each quest update block.

I change some codes (src/Network/Receive/ServerType0.pm) as following:
Original Code Lines:

Code: Select all

# 02B5
# note: this packet updates the objectives counters
sub quest_update_mission_hunt {
	my ($self, $args) = @_;
	for (my $i = 0; $i < $args->{amount}; $i++) {
		my ($questID, $mobID, $count) = unpack('V2 v', substr($args->{RAW_MSG}, 6+$i*10, 10));
		my $mission = \%{$questList->{$questID}->{missions}->{$mobID}};
		$mission->{count} = $count;
		$mission->{mobID} = $mobID;
		debug sprintf ("questID (%d) - mob(%s) count(%d) \n", $questID, monsterName($mobID), $count), "info";
	}
}
New Code Lines:

Code: Select all

# 02B5
# note: this packet updates the objectives counters
sub quest_update_mission_hunt {
	my ($self, $args) = @_;
	for (my $i = 0; $i < $args->{amount}; $i++) {
		my ($questID, $mobID, $goal, $count) = unpack('V2 v2', substr($args->{RAW_MSG}, 6+$i*12, 12));
		my $mission = \%{$questList->{$questID}->{missions}->{$mobID}};
		$mission->{goal} = $goal;
		$mission->{count} = $count;
		$mission->{mobID} = $mobID;
		debug sprintf ("questID (%d) - mob(%s) goal(%d) count(%d) \n", $questID, monsterName($mobID), $goal, $count), "info";
	}
}
User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: quest updating packet : 02B5

#2 Post by kLabMouse »

Nice!.

Devs:
The packet should be checked on other Servers too.
May-be create some binary pattern to search over .exe files ?
If it apply to more then 50% of servers, it should go to ST0, else to Server Types that use it.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: quest updating packet : 02B5

#3 Post by EternalHarvest »

Commited in r7757.