View Single Post
Old 18.11.2006, 16:50   #85
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

I use DelItem2:
Code:
function l2_delitem2 ( $item_id, $amount ) {
  // 54 - DelItem2, char_id, item_id
  $cached_op = pack ( "cVVV", 54, $item_id, $amount, 1 );
  $cached_op .= ansi2unicode ( "webadmin" );
  $ret_string = l2_cached_push ( pack ( "s", strlen ( $cached_op ) + 2 ) . $cached_op );
  return ( $ret_string );
}
You must remember that You can not delete more $amount, than You have in one item_id.
Kenjiro is offline