Code Send Packet Open Buying Store

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
yuranansam
Noob
Noob
Posts: 9
Joined: 25 Jan 2013, 06:19
Noob?: Yes

Code Send Packet Open Buying Store

#1 Post by yuranansam »

# By DarkSam
# Send Packet Open Buying Store

Code: Select all

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.

kashero
Noob
Noob
Posts: 1
Joined: 18 May 2015, 01:46
Noob?: Yes

Re: Code Send Packet Open Buying Store

#2 Post by kashero »

Ok, so i modified /src/commands.pm
How do i use this? Does it get the information he needs from a file?

Post Reply