Jump to content
  • 0

Mail Command


Bake Mono

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  11/15/11
  • Last Seen:  

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);

1>------ Build started: Project: map-server_sql, Configuration: Release Win32 ------
1>script.obj : error LNK2001: unresolved external symbol _mail_sendmail
1>..\map-server_sql.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========

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 Mono
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

post your script sir

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...