Advertisement
Guest User

Send-Sakexe_2008_01_02a modified

a guest
Oct 15th, 2013
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.74 KB | None | 0 0
  1. #########################################################################
  2. #  OpenKore - Packet sending
  3. #  This module contains functions for sending packets to the server.
  4. #
  5. #  This software is open source, licensed under the GNU General Public
  6. #  License, version 2.
  7. #  Basically, this means that you're allowed to modify and distribute
  8. #  this software. However, if you distribute modified versions, you MUST
  9. #  also distribute the source code.
  10. #  See http://www.gnu.org/licenses/gpl.html for the full license.
  11. #
  12. #  $Revision: 6687 $
  13. #  $Id: kRO.pm 6687 2009-04-19 19:04:25Z technologyguild $
  14. ########################################################################
  15. # Korea (kRO)
  16. # The majority of private servers use eAthena, this is a clone of kRO
  17.  
  18. package Network::Send::kRO::Sakexe_2008_01_02a;
  19.  
  20. use strict;
  21. use base qw(Network::Send::kRO::Sakexe_2007_11_27a);
  22.  
  23. use Log qw(message warning error debug);
  24.  
  25. sub new {
  26.     my ($class) = @_;
  27. #   return $class->SUPER::new(@_);
  28.     my $self = $class->SUPER::new(@_);
  29.     my %packets = (
  30. #add from Sakexe_2006_03_27a.pm
  31.         '0072' => ['skill_use', 'v x4 V v x9 a4', [qw(lv skillID targetID)]],#25
  32.     );
  33.    
  34.     $self->{packet_list}{$_} = $packets{$_} for keys %packets;
  35.    
  36.     $self;
  37. }
  38.  
  39. # 0x01df,6,gmreqaccname,2
  40. sub sendGMReqAccName {
  41.     my ($self, $targetID) = @_;
  42.     my $msg = pack('v V', 0x01DF, $targetID);
  43.     $self->sendToServer($msg);
  44.     debug "Sent GM Request Account Name.\n", "sendPacket", 2;
  45. }
  46.  
  47. =pod
  48. //custom 0072, 009f, 00bb, 0112, 0193
  49. 0x0072,25,useskilltoid,6:10:21
  50. 0x009f,14,useitem,4:10
  51. 0x00bb,5,statusup,2:4
  52. 0x0112,4,skillup,2
  53. 0x0193,2,closekafra,0
  54. //2008-01-02aSakexe
  55. 0x01df,6,gmreqaccname,2
  56. 0x02e8,-1
  57. 0x02e9,-1
  58. 0x02ea,-1
  59. 0x02eb,13
  60. 0x02ec,67
  61. 0x02ed,59
  62. 0x02ee,60
  63. 0x02ef,8
  64. =cut
  65.  
  66. 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement