Jump to content
  • 0

A script command for mailbox


nanakiwurtz

Question


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I'd like to request a mailbox command for script.

A command that can send an online/offline player some items or zeny, with a syntax like:

mailbox <zeny amount>{,<item>,<amount>,<item>,<amount>};

This way, we can use the command to send the zeny/items to event winner, that will work whether the player is online or offline.

Possible usage examples are: weekly/monthly ladder, daily event, lottery, lucky draw, instances, battlegrounds, etc...

/ok

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

This isn't exactly answering your question, but you can also directly insert mail entries into the SQL table - online users will just have to relog to get the mail. I do this in my WOE controller, if you need an example.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

use query_sql if the player is offline

http://www.eathena.ws/board/index.php?s=&showtopic=191107&view=findpost&p=1050527

but if you want a notification for online player

actually somebody has already written *sendmail before

http://rathena.org/board/topic/74969-send-mail-via-scriptcommand/

but that script command operation also not quite safe ...

so I also want to write hahaha

EDIT:

use attachments

sendmail_20140217.diff

tested with

[paste=5dtzwyhu0qnr]

I also tested there is no need the mail box full error

if using query_sql or this *sendmail script command to send a mail, can always bypass the 30 max inbox limit

Edited by AnnieRuru
  • Upvote 1
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...