Quote:
Originally Posted by Kenjiro
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: