PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => DiXBoT => AllInOne Scripts => DiXBoT - Support => Topic started by: pR0Ps on 25 June, 2010, 19:24:48

Title: External Script to use Mailbox
Post by: pR0Ps on 25 June, 2010, 19:24:48
Hey,

Is is possible to use an external script to send mail to a user? What I am attempting to do is send an offline message to a user when a request that they have made (to a release/request bot I've made) has been filled. Is there a way to to this from a script or will I have to modify the mailbox database file manually?

Thanks,

pR0Ps

EDIT: After some experimenting, simply updating the file is not enough, the entire DiXBot script must restart. Any ideas or am I going to have to develop my own mailbox script?
Title: Re: External Script to use Mailbox
Post by: Dessamator on 25 June, 2010, 19:42:26
There are various ways to do it, you can edit the file, using the script and add the new offline message, you can  use the function from the offline script through your "request/release "script.(using dofile("offlinescript.lua")), you can copy the offline script function to your script and that will store the offline message.

There are millions of ways to kill a cat, you just have to choose the most effective way for you.