View Single Post
Old 02.11.2006, 08:03   #11
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Quote:
Originally Posted by Kenjiro View Post
Working delete2 function:

Code:
function l2_delitem2 ( $item_id, $amount ) {
  // 54 - DelItem2, item_id, amount
  $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 );
}
Variable $item_id is from user_item table.
Thanks!
Will add this function in the next build!
PS: Got it from L2z?

Could anyone explain, how different "V" and "i" in pack() function? :wave:
hel is offline