I've been thinking of a way to mimic the way the Auction System mails the item / zeny back to the player. I have overlooked the various source files regarding auction and have tried copy pasting + editing parts of them to work with a command that follows the syntax:
*mail <charid>,"subject","body",<zeny>,<itemid>;
However, everything I've tried has completely and utterly failed. I assume the easiest way would be to manually add the entry into the mail table in the database, however the recipient would only notice this when they relog to see the new mail.
With the mail command I hope it would send a real mail, as well as do the normal things mail should do (such as inform the player they have a mail, etc). Is this even possible to do?
Edit: Here's a little snippet. Even with it being manually placed in the code (without the script in general, I can't even compile the server due to an error.
mail_sendmail(0, "SenderName", 150000, "RecipientName", "Title", "Body of message.", 0, NULL);
I know enough enough scripting / programming in other languages to understand basic things in C+ however, I am unable to understand this and can't pinpoint what I did wrong / forgot to do to make this work
Question
Bake Mono
I've been thinking of a way to mimic the way the Auction System mails the item / zeny back to the player. I have overlooked the various source files regarding auction and have tried copy pasting + editing parts of them to work with a command that follows the syntax:
*mail <charid>,"subject","body",<zeny>,<itemid>;
However, everything I've tried has completely and utterly failed. I assume the easiest way would be to manually add the entry into the mail table in the database, however the recipient would only notice this when they relog to see the new mail.
With the mail command I hope it would send a real mail, as well as do the normal things mail should do (such as inform the player they have a mail, etc). Is this even possible to do?
Edit: Here's a little snippet. Even with it being manually placed in the code (without the script in general, I can't even compile the server due to an error.
mail_sendmail(0, "SenderName", 150000, "RecipientName", "Title", "Body of message.", 0, NULL);
I know enough enough scripting / programming in other languages to understand basic things in C+ however, I am unable to understand this and can't pinpoint what I did wrong / forgot to do to make this work
Edited by Bake MonoLink to comment
Share on other sites
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.