DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 18, 2013, 09:46:15 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: About Ye Old Mail...  (Read 460 times)
0 Members and 1 Guest are viewing this topic.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« on: July 13, 2012, 11:48:02 AM »

Is there a way to carbon copy the yoms everyone sends to one another to an table in the db that could be looked up with a module and see like letter opener, but more neatly organized.  Or have them sent to an account of choice to be read or even sent to a db table and held there?  What the mod or what ever would need to be done would do is send the yom from acctid 1 to acctid 2 and 3 but when 2 deletes it and 1 deletes it 3 still has it.  3 being either the mod used in the grotto to view it, another player, or the db table made. And if it can be done, can you  use a db table on a total other realm?  And can it be set up so acctid 1 and 2 dont know that 3 just got a copy of their message?  I am wondering this and asking it because apparently players on my realm are saying their yoms are getting out and staff that have letter opener havent been on and abusing it.  I've checked.  By a slim chance they were it was all deleted.  I also know if players break rules, they delete after it was responded too and make sure staff can never see it at all.  So I want it for that purpose too.  So any help is great. Smiley
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
Anharat
Captain of the Guard
***
Offline Offline

Posts: 191


View Profile WWW
« Reply #1 on: July 13, 2012, 01:56:06 PM »

You could create a module with a new table to store YoMs and the means to handle them in the grotto and which creates a database trigger that automatically inserts the YoM in the new table if one is sent by a player.

I've never used triggers on mysql databases but just googled them and they seem to work.
Logged

In a World of Compromise, we don't!
Nightborn
Captain of the Guard
***
Offline Offline

Posts: 157


View Profile
« Reply #2 on: July 14, 2012, 06:38:00 AM »

I wrote a "mailoutbox" module that does that.
Logged
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #3 on: July 18, 2012, 10:22:24 PM »

I have your outbox but I dont quite get how that would work.  do I have to use the Nightborn outbox option thingy...I dont get what it means or does so I havent used it.  I jsut want to see the YoMs in another places even if the sender and receiver have deleted them.
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
A Cool Guy
Militia
**
Offline Offline

Posts: 82



View Profile
« Reply #4 on: July 19, 2012, 12:35:11 AM »

You can read them all with nightborns outbox it stores them even if the player deletes them you can read them from the grotto.
Logged

If i can i will
If i cant i wont Smiley
Nightborn
Captain of the Guard
***
Offline Offline

Posts: 157


View Profile
« Reply #5 on: July 19, 2012, 01:15:29 PM »

but you need a modulehook in the YOM-core if I remember correctly.

you do *not* need the nb version of lotgd.
Logged
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #6 on: July 20, 2012, 06:18:13 PM »

What hook would that be?
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #7 on: July 20, 2012, 06:38:09 PM »

Sure it is modulehook("mailfunctions");.
Logged
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #8 on: July 21, 2012, 10:47:07 AM »

which yom core would that hook go into?
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #9 on: July 21, 2012, 12:31:13 PM »

Mail Keeper
http://dragonprime.net/index.php?topic=12146.msg101047;topicseen#new

See if that is somewhere along the lines of what you want.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
22 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search