Skip to content

Commit

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

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
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)]],
'0953' => ['actor_look_at', 'v C', [qw(head body)]],
'0932' => ['item_take', 'a4', [qw(ID)]],
'0933' => ['item_drop', 'v2', [qw(index amount)]],
'093F' => ['storage_item_add', 'v V', [qw(index amount)]],
'0875' => ['storage_item_remove', 'v V', [qw(index amount)]],
'0438' => ['skill_use_location', 'v4', [qw(lv skillID x y)]],
'096A' => ['actor_info_request', 'a4', [qw(ID)]],
'0368' => ['actor_name_request', 'a4', [qw(ID)]],
'0363' => ['item_list_res', 'v V2 a*', [qw(len type action itemInfo)]],
'0937' => ['map_login', 'a4 a4 a4 V C', [qw(accountID charID sessionID tick sex)]],
'0940' => ['party_join_request_by_name', 'Z24', [qw(partyName)]], #f
'0436' => ['homunculus_command', 'v C', [qw(commandType, commandID)]], #f
'087A' => ['storage_password'],
'087C' => ['actor_action', 'a4 C', [qw(targetID type)]],
'022D' => ['skill_use', 'v2 a4', [qw(lv skillID targetID)]],
'0871' => ['character_move','a3', [qw(coords)]],
'0873' => ['sync', 'V', [qw(time)]],
'0949' => ['actor_look_at', 'v C', [qw(head body)]],
'0937' => ['item_take', 'a4', [qw(ID)]],
'095E' => ['item_drop', 'v2', [qw(index amount)]],
'089B' => ['storage_item_add', 'v V', [qw(index amount)]],
'0870' => ['storage_item_remove', 'v V', [qw(index amount)]],
'093F' => ['skill_use_location', 'v4', [qw(lv skillID x y)]],
'0368' => ['actor_info_request', 'a4', [qw(ID)]],
'0960' => ['actor_name_request', 'a4', [qw(ID)]],
'093E' => ['item_list_res', 'v V2 a*', [qw(len type action itemInfo)]],
'0935' => ['map_login', 'a4 a4 a4 V C', [qw(accountID charID sessionID tick sex)]],
'08A3' => ['party_join_request_by_name', 'Z24', [qw(partyName)]], #f
'08A1' => ['homunculus_command', 'v C', [qw(commandType, commandID)]], #f
'0933' => ['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(177154580, 1966238259, 392561856);
$self->cryptKeys(1744136847, 1367935516, 1020023531);

return $self;
}
Expand Down

0 comments on commit 4181bae

Please sign in to comment.