Hi all, im trying now to make an php custom market for buying an items in website, and i would ask for help. Which is the proper way to add/send items to player with in-game mail?
I need to add new entry in mail, mail_item, and item_instance ???
Something like that?
$mail->insert(
'mail',
array(
'messageType' => 0,
'stationery' => 61,
'mailTemplateId' => 0,
'sender' => 1,
'receiver' => 2,
'subject' => 'Market item',
'body' => 'You have successfully buyed an item from market!',
'has_items' => 1,
'checked' => 0
),
array(
'%d',
'%d',
'%d',
'%d',
'%d',
'%s',
'%s',
'%d',
'%d'
)
);
$mail->insert(
'mail_items',
array(
'mail_id' => 44,
'item_guid' => 61, // ????
'receiver' => 0
),
array(
'%d',
'%d',
'%d'
)
);
Thanks.