Jump to content
  • 0

A script command for mailbox


Question

Posted

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

2 answers to this question

Recommended Posts

Posted

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.

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...