ittiphol Posted April 25, 2021 Posted April 25, 2021 Send mail but mail box not refresh new message. Must click refresh by self or logout select character again. query_sql("INSERT INTO `mail` (`id`, `send_name`, `send_id`, `dest_name`, `dest_id`, `title`, `message`, `time`, `status`, `zeny`, `type`) VALUES ('', 'System', '150001', 'Admin', '150000', 'Test', 'Test mail', unix_timestamp( now() ), '1', '0', '0') "); Sorry my english. Thank you advance. Quote
0 LearningRO Posted April 25, 2021 Posted April 25, 2021 Why not use Script command mail Example of sending mail with items: .@charid = getcharid(0); .@sender$ = "Angeling"; .@title$ = "Welcome"; .@body$ = "Hi! I'm a simple Angeling from the Prontera fields! Welcome to Ragnarok!"; .@zeny = 0; setarray .@mailitem[0], 504, 505, 2220, 1214; // White Potion, Blue Potion, Hat, Dagger setarray .@mailamount[0], 10, 5, 1, 1; // 10 White Potions, 5 Blue Potions, 1 Hat, 1 Dagger setarray .@mailrefine[0], 0, 0, 3, 10; // +3 Hat, +10 Dagger setarray .@mailbound[0], 0, 0, Bound_Account, Bound_Char; // Account bounded Hat, Char bounded Dagger setarray .@mailcard0[0], 0, 0, 4198, 4092; // Attach Maya Purple Card to the Hat, Attach Skeleton Worker Card to Dagger setarray .@mailcard1[0], 0, 0, 0, 4092; // Attach Skeleton Worker Card to Dagger setarray .@mailcard2[0], 0, 0, 0, 4092; // Attach Skeleton Worker Card to Dagger mail .@charid, .@sender$, .@title$, .@body$, .@zeny, .@mailitem, .@mailamount, .@mailrefine, .@mailbound, .@mailcard0, .@mailcard1, .@mailcard2; Quote
Question
ittiphol
Send mail but mail box not refresh new message.
Must click refresh by self or logout select character again.
query_sql("INSERT INTO `mail` (`id`, `send_name`, `send_id`, `dest_name`, `dest_id`, `title`, `message`, `time`, `status`, `zeny`, `type`) VALUES ('', 'System', '150001', 'Admin', '150000', 'Test', 'Test mail', unix_timestamp( now() ), '1', '0', '0') ");
Sorry my english.
Thank you advance.
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.