StealthBot.net: Mailer Script - StealthBot.net

Jump to content

  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Mailer Script Extensive mail system

#1 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 01, 2009 - 08:11 AM

Mailer

Author: The-Black-Ninja
Version: 1.4 Revision 1
Description: Greatly improves the built-in mail system.

Commands:
inbox = Reads a single message that has not been read yet. 200 access.
mail (priority) [Username / peons / grunts / shams / allclan] [Message] = Sends a message to a single user, peons, grunts, shamans, or everyone in the clan. Can optionally add a priority level from 1 (normal) to 3 (urgent). If no level is given, it will default to 1. 200 access.
mailgroup (priority) [Group name] [Message] = Sends a message to a specified group within the database manager. Can optionally add a priority level from 1 (normal) to 3 (urgent). If no level is given, it will default to 1. 200 access.
mailcrs (priority) [CRS rank #] [Message] = Sends a message to all CRS users with the specified CRS rank. Can optionally add a priority level from 1 (normal) to 3 (urgent). If no level is given, it will default to 1. 200 access.
delmail [ID / all / old] = Deletes; a mail message associated with an ID, all messages from the user's inbox, or all the user's old mail that has been read but not saved. 200 access.
mymail (message ID) = Displays all the mail messages for the user. If there are too many messages, only the ID's will be shown along with who sent them and the priority. If the user provides a message ID, that message will be shown to the user. 200 access.
savemail [ID] = Saves a message so that it will not be automatically removed if message has not been read in the set number of days. 200 access.
purgedb = Removes all messages from the mail database. Available to the console only.


Example Usages:
.delmail 4o1f
.delmail old
.delmail all

.mymail
.mymail 4f1t


Important Notes:
  • Users should disable the built-in inbox command because this script uses that same command.
  • Users cannot read other user's mail, even if they type a message ID that was not destined for them
  • The current setup will allow for 92752 stored messages, each with a unique ID attached to them, before the database will run out of ID combinations
  • The mail messages themselves are whispered to the user for privacy reasons. The IDs remain public but cannot be accessed by anyone else
  • To allow multiple bots sharing the same database, make sure all bots are reading from the same database. This can be changed/checked in the scripts.ini, under the [crs] heading, at the db_path entry.

Attached File(s)



#2 User is offline   DemonHunter Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 176
  • Joined: September-12 09

Posted November 01, 2009 - 08:34 AM

Awesome, TBN u're the best.

#3 User is offline   HecAtic Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: October-07 09

Posted November 01, 2009 - 03:05 PM

Thank you so much for developing this!

:)
Posted Image

HecAtic

#4 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 01, 2009 - 04:58 PM

You're welcome :) But re-download, I forgot one little thing :P

#5 User is offline   TicK Icon

  • TicK
  • PipPipPip
  • Group: Members
  • Posts: 103
  • Joined: September-27 09

Posted November 10, 2009 - 11:24 PM

When mailing clan, is it possible to mail an extension clan while mailing the main one too? I own two clans, NZL & NZL2.
Live in New Zealand? Click HERE now!

#6 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 11, 2009 - 12:24 AM

That's not possible because this script makes use of the Clan object that returns a list of users and their rank in the clan the bot is currently in. There's no way to get a clan list and ranks from other clans unless you use packets or get the info from the internet, which is highly overkill for something like this.

#7 User is offline   DemonicRuins Icon

  • Good Ol' Southern 13oy
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: November-14 09

Posted November 14, 2009 - 06:56 PM

I have manually put it into my script folder as the same as a few others.. did the reload script. But the actually script itself is not working... I did a simple !mail allclan New Mailing System Is Operational.. and nothing happened.. Is there something That must be done with the bot's built in mailing system?

#8 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 14, 2009 - 07:46 PM

Yes, you'll need to disable the bot's default mail command, bmail, within the command manager.

#9 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 16, 2009 - 01:13 AM

Updated to work with CRS ranks.

If you're downloading this script for the first time, ignore this, otherwise existing users should go into the Command Manager, navigate to the mailer commands and delete the "mail" command, so when you reload the script, you'll get the updated description and stuff when you do the help command.

#10 User is offline   DemonicRuins Icon

  • Good Ol' Southern 13oy
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: November-14 09

Posted November 16, 2009 - 03:46 PM

as always thank you again TBN..... lol

#11 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 08, 2010 - 04:52 AM

Would it be to difficult to add a forward command that would allow you to send a message that you have received to someone else?

#12 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 08, 2010 - 06:40 AM

Sorry for double post but I read on the forum somewhere that it should merge the two posts.

I get this error when I try to use the CRS rank to mail:

Quote

[10:21:53 PM] Scripting runtime error '5' in mailer: (line 154; column 0)
[10:21:53 PM] Invalid procedure call or argument
[10:21:53 PM] Offending line: >>
[10:21:53 PM] Scripting runtime error '5' in mailer: (line 154; column 0)
[10:21:53 PM] Invalid procedure call or argument
[10:21:53 PM] Offending line: >>


I also noticed that when someone joins the channel they don't receive a "You have # new messages. Type !inbox to retrieve." Could you add that back in? Since it was very useful for alerting people that they do have mail. Could you also post a example of how to use priority? I've tried a few combination's but I can't get it to work. Thx

#13 User is offline   Steward Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: February-09 10

Posted February 09, 2010 - 06:53 AM

Could you add the ability to mail all the people in the bots database or ppl with a certain access?

Ex
!mailall [message]
!mailacc [message]

#14 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 11, 2010 - 04:12 AM

I'll have to look at this further to make it send access.

#15 User is offline   Fallen-God Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 364
  • Joined: September-11 09

Posted February 11, 2010 - 05:38 PM

What about mailing lists?
You can add another table on the database for users, and have a column for their mailing list.
Choose Functional.

#16 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 12, 2010 - 01:59 AM

Tried to remove script and go back to regular since I need the part that tells people that they have mail but now the alias doesn't want to work.

#17 User is offline   DarthRahn Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: January-25 10

Posted February 13, 2010 - 12:10 PM

Hello! Could you please add an option to !reply? This command should require no access.

#18 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 14, 2010 - 05:28 PM

I've updated it so it will say a user has mail.

#19 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 15, 2010 - 04:22 AM

View PostThe-Black-Ninja, on 14 February 2010 - 09:28 AM, said:

I've updated it so it will say a user has mail.


Tested it out and I get no message telling me that I have mail.

#20 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 15, 2010 - 04:51 AM

I can't reproduce.

#21 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 15, 2010 - 05:01 AM

View PostThe-Black-Ninja, on 14 February 2010 - 08:51 PM, said:

I can't reproduce.

Could be a user error. I might be doing or not doing something that I should. Any suggestions?

#22 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 15, 2010 - 05:31 AM

Nope, I don't know what it is. I sent a mail to my other account, rejoined with that account, and it said I had a new message.

Quote

/mail heather[hang] test
[23:51:56.832] Mail sent to " heather[hang] "
[23:52:48.379] -- Heather[Hang] has left the channel.
[23:52:49.238] -- Heather[Hang] [62ms] has joined the channel using WarCraft III: Reign of Chaos (Level: 0, icon tier Random, peon icon, in clan Hang).
[23:52:50.597] <To Heather[Hang]> You have 1 new messages waiting. Type <3mymail to retrieve.


#23 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 15, 2010 - 07:14 AM

View PostThe-Black-Ninja, on 14 February 2010 - 09:31 PM, said:

Nope, I don't know what it is. I sent a mail to my other account, rejoined with that account, and it said I had a new message.

This is frustrating. I've reloaded scripts, restarted bot, deleted the mailer txt file, downloaded a fresh mailer txt file, deleted maildatabase.mdb,
tried it on different bot and all in different orders to but I still cant get it to work. Very frustrating. <_<

#24 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 15, 2010 - 07:36 AM

Have you tried re-downloading it? Maybe something got messed up.

#25 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 15, 2010 - 07:54 AM

My frustration is at an end! Works perfectly now. Thanks Ninja. :D

  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users