Skip to content

Commit

Permalink
Merge pull request #405 from lututui/master
Browse files Browse the repository at this point in the history
[2017-01-17] Connection files for bRO
  • Loading branch information
itsrachelfish committed Jan 19, 2017
2 parents ce632ab + abe6c44 commit e93c3c0
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 197 deletions.
2 changes: 1 addition & 1 deletion src/Network/Receive/bRO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sub new {
);
# Sync Ex Reply Array
$self->{sync_ex_reply} = {
'0281', '0966', '085A', '08AA', '085B', '0923', '085C', '086F', '085D', '07EC', '085E', '0888', '085F', '0889', '0860', '088A', '0861', '088B', '0862', '088C', '0863', '088D', '0864', '088E', '0865', '088F', '0866', '0890', '0436', '0891', '0868', '0892', '0869', '0364', '086A', '0894', '086B', '0895', '086C', '0896', '086D', '0897', '0940', '0898', '07E4', '0899', '0870', '089A', '0871', '089B', '0872', '089C', '0873', '089D', '0874', '089E', '0875', '089F', '0876', '08A0', '0877', '08A1', '0878', '08A2', '0879', '08A3', '087A', '08A4', '0361', '08A5', '087C', '08A6', '087D', '08A7', '022D', '08A8', '087F', '08A9', '0880', '0885', '0881', '08AB', '0882', '08AC', '0883', '08AD', '0917', '0941', '0918', '0942', '0919', '0362', '091A', '0944', '091B', '0945', '091C', '0946', '091D', '0947', '091E', '0948', '091F', '0949', '0920', '094A', '0921', '094B', '0365', '094C', '0886', '094D', '0924', '094E', '0925', '094F', '0926', '0950', '0927', '0951', '0928', '023B', '0929', '0953', '092A', '0954', '0202', '0955', '092C', '0956', '092D', '0957', '092E', '0958', '092F', '0959', '0930', '095A', '0931', '0363', '0932', '095C', '0933', '095D', '0934', '095E', '0935', '095F', '0936', '0960', '0937', '0961', '0938', '0962', '0939', '0963', '093A', '0964', '093B', '0965', '093C', '0884', '093D', '0967', '093E', '0968', '093F', '0969'
'08A3', '07E4', '0918', '0871', '0937', '0926', '0928', '0969', '095A', '0883', '0931', '023B', '0938', '0942', '091A', '0940', '0873', '0952', '094D', '094F', '0893', '0872', '08A9', '095C', '092B', '0954', '091D', '088B', '0865', '088A', '087A', '0882', '0895', '0866', '0958', '0927', '087B', '035F', '0877', '095F', '085B', '0956', '0878', '0964', '092A', '0202', '096A', '0951', '08AB', '0817', '0894', '089A', '0922', '0921', '0835', '0881', '0899', '0862', '0944', '08A5', '0936', '0861', '0949', '0946', '0950', '0943', '0930', '092C', '087F', '0365', '0917', '0948', '085A', '08AD', '0953', '093E', '0879', '083C', '0885', '088C', '0888', '089C', '091F', '0811', '0955', '0889', '088F', '093F', '091E', '0869', '091C', '0961', '0898', '0815', '095E', '08A8', '0925', '08A4', '086F', '092D', '094C', '07EC', '0361', '0874', '0368', '0880', '088D', '092E', '08AA', '086C', '0941', '08A2', '0965', '0929', '0863', '0957', '0919', '0932', '0887', '0924', '094A', '0281', '092F', '0886', '0870', '095B', '022D', '087E', '0933', '0968', '0923', '093D', '0437', '085E', '085F', '0860', '08A7', '086B', '094B', '0864', '0364', '0947', '0963', '085D', '089E', '0896', '086A', '0897', '0960', '093A', '093B', '08A6', '0875', '0867', '095D', '0959', '0884', '0363', '0819', '02C4', '088E', '086E', '0367', '0802', '087C', '085C', '0360', '0967'
};

foreach my $key (keys %{$self->{sync_ex_reply}}) { $packets{$key} = ['sync_request_ex']; }
Expand Down
36 changes: 18 additions & 18 deletions src/Network/Send/bRO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ sub new {
my $self = $class->SUPER::new(@_);

my %packets = (
'0369' => ['actor_action', 'a4 C', [qw(targetID type)]],
'083C' => ['skill_use', 'v2 a4', [qw(lv skillID targetID)]],
'0437' => ['character_move','a3', [qw(coords)]],
'035F' => ['sync', 'V', [qw(time)]],
'087B' => ['actor_look_at', 'v C', [qw(head body)]],
'0802' => ['item_take', 'a4', [qw(ID)]],
'095B' => ['item_drop', 'v2', [qw(index amount)]],
'0893' => ['storage_item_add', 'v V', [qw(index amount)]],
'0922' => ['storage_item_remove', 'v V', [qw(index amount)]],
'0438' => ['skill_use_location', 'v4', [qw(lv skillID x y)]],
'02C4' => ['actor_info_request', 'a4', [qw(ID)]],
'0368' => ['actor_name_request', 'a4', [qw(ID)]],
'086E' => ['item_list_res', 'v V2 a*', [qw(len type action itemInfo)]],
'0867' => ['map_login', 'a4 a4 a4 V C', [qw(accountID charID sessionID tick sex)]],
'096A' => ['party_join_request_by_name', 'Z24', [qw(partyName)]], #f
'087E' => ['homunculus_command', 'v C', [qw(commandType, commandID)]], #f
'0952' => ['storage_password'],
'087D' => ['actor_action', 'a4 C', [qw(targetID type)]],
'08A1' => ['skill_use', 'v2 a4', [qw(lv skillID targetID)]],
'0939' => ['character_move','a3', [qw(coords)]],
'086D' => ['sync', 'V', [qw(time)]],
'0962' => ['actor_look_at', 'v C', [qw(head body)]],
'0945' => ['item_take', 'a4', [qw(ID)]],
'0892' => ['item_drop', 'v2', [qw(index amount)]],
'0966' => ['storage_item_add', 'v V', [qw(index amount)]],
'089B' => ['storage_item_remove', 'v V', [qw(index amount)]],
'0436' => ['skill_use_location', 'v4', [qw(lv skillID x y)]],
'0934' => ['actor_info_request', 'a4', [qw(ID)]],
'091B' => ['actor_name_request', 'a4', [qw(ID)]],
'08AC' => ['item_list_res', 'v V2 a*', [qw(len type action itemInfo)]],
'0362' => ['map_login', 'a4 a4 a4 V C', [qw(accountID charID sessionID tick sex)]],
'0891' => ['party_join_request_by_name', 'Z24', [qw(partyName)]], #f
'0920' => ['homunculus_command', 'v C', [qw(commandType, commandID)]], #f
'094E' => ['storage_password'],
);

$self->{packet_list}{$_} = $packets{$_} for keys %packets;
Expand All @@ -48,7 +48,7 @@ sub new {

while (my ($k, $v) = each %packets) { $handlers{$v->[0]} = $k}
$self->{packet_lut}{$_} = $handlers{$_} for keys %handlers;
$self->cryptKeys(56370083, 657588397, 500198140);
$self->cryptKeys(677317540, 2078100023, 1590852363);

return $self;
}
Expand Down
Loading

0 comments on commit e93c3c0

Please sign in to comment.