Openkore.com

OpenKore Forums
It is currently 10 Dec 2018, 21:08

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Code Send Packet Open Buying Store
PostPosted: 23 Apr 2015, 17:41 
Offline
Noob
Noob

Joined: 25 Jan 2013, 06:19
Posts: 14
# By DarkSam
# Send Packet Open Buying Store

Code:
sub sendOpenBuying {
   my ($self, $title, $items, $zeny) = @_;

   my $length = 0x59 + 0x08 * @{$items};
   my $msg = pack("C*", 0x11, 0x08).
      pack("v*", $length).
      pack("V*", $zeny).
      pack("C*", 0x01).
      pack("a80", stringToBytes($title));

   foreach my $item (@{$items}) {
      $msg .= pack("v1", $item->{nameID}).
         pack("v1", $item->{amount}).
         pack("V1", $item->{price});
   }
   $self->sendToServer($msg);
}


use Skill or item before Send Packet.


Top
 Profile  
 
 Post subject: Re: Code Send Packet Open Buying Store
PostPosted: 18 May 2015, 01:48 
Offline
Noob
Noob

Joined: 18 May 2015, 01:46
Posts: 1
Ok, so i modified /src/commands.pm
How do i use this? Does it get the information he needs from a file?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group