View Single Post
Old 08.09.2006, 18:41   #8
hater
Архивный участник
 
Join Date: Aug 2006
Posts: 28
Default

Quote:
Originally Posted by bigglass View Post
ОПЕЧАТКА
пропущен один параметр,нужно было посчитать
AddItem2(char_id, 0, item_id, amount, enchants, eroded, bless, ident, wished, 1);
должно быть 10 паремтров,номер пакета не считаем.
ниже все перечислено с коментами ,показывающими что все парметры прописаны

$buf = pack("c", 55); // 55 = AddItem2Packet();
$buf .= pack("i", 3652); //char_id
$buf .= pack("i", 0); //char items
$buf .= pack("i", 57); //item_type
$buf .= pack("i", 1000); //item_amount
$buf .= pack("i", 0); //enchant
$buf .= pack("i", 0); //eroded
$buf .= pack("i", 0); //bless
$buf .= pack("i", 0); //ident
$buf .= pack("i", 0); //wished
$buf .= pack("i", 1);
Спасибо огромное, теперь все окей. :wave:
hater is offline