Register for your free account! | Forgot your password?

You last visited: Today at 18:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Fast Mail delete

Discussion on [Release] Fast Mail delete within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
netHoxInc's Avatar
 
elite*gold: 117
Join Date: Jan 2008
Posts: 790
Received Thanks: 992
Lightbulb [Release] Fast Mail delete

Hey there~ I've decided to setup a Flyff server locally, mainly for testing exploits and/or finding them. But as you can imagine, it get's boring somewhen, so I started to create some source functions which could, or maybe could not improve your Server.

From time to time I might release more Snippet's if people seem to find them useful. If you dont feel like needing it, or got even a better System for this Tasks, you're welcome to leave straight, instead of letting this end in a mess of Flame.


I've could not see anything like this yet released, so, for the Leecher's it might be cool:

Feature: Hold CTRL+ALT and Rightclick your unwanted mails to delete them without Yes/No Prompt.
(Feel free to change the Keys to your prefers and/or add/remove some^^)

Given checks:
- Checks if Inventory has enough Space for Items
- Checks if User has enough Space for the Penya amount
- Gives MessageBoxes if not/interupts Deletition
- If all checks passes, no Message is given, for faster re-use after deletiotion of the mail



Project: Neuz:




Feel free to Leave a comment, suggestions for new small functions, or whatever else you might want to see being released. From time to time I'll start new projects about Flyff and once I'm used to the source a little better, might Release new PvE Systems, Event Systems, or just some other stuff which could be fun, like new GM commands or something.

Credits:
Code: 100% me, netHox
Inspired by: Insanity Flyff's Right-Click on Mail's Menu (Has Get Item and Delete Mail options)
netHoxInc is offline  
Thanks
9 Users
Old 04/07/2018, 14:02   #2
 
elite*gold: 0
Join Date: Jun 2012
Posts: 9
Received Thanks: 0
Hello there,

i've added it to my server and i found one bug. When i send only an item to a character, i got the message that i have too many penya, although that char was fresh created. When i only send Penya or an item and penya, both works fine. Only sending an item does the message show up and interupts the process.
Sonraiku is offline  
Old 04/08/2018, 06:37   #3
 
netHoxInc's Avatar
 
elite*gold: 117
Join Date: Jan 2008
Posts: 790
Received Thanks: 992
Works in all ways for me, recheck if you correctly inserted code, depending on if you previous made changes to your Mailsystem it might need slight modifications in code in order to work correct with your systems.

Tried:
1. Item only with Space
2. Penya only with Space
3. Item/Penya with Space
4. Item without Space
5. Item/Penya without Space
6. Penya without Space


All worked fine for me, I only got the messages when I had no space for either items or penya.
netHoxInc is offline  
Old 05/08/2018, 21:17   #4
 
Minotaurr's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
Quote:
Originally Posted by Sonraiku View Post
Hello there,

i've added it to my server and i found one bug. When i send only an item to a character, i got the message that i have too many penya, although that char was fresh created. When i only send Penya or an item and penya, both works fine. Only sending an item does the message show up and interupts the process.
I have exactly the same bug :S
Minotaurr is offline  
Old 05/04/2020, 11:09   #5
 
Hyellow's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
Sorry wrong thread and found the answer. Pardon me.
Hyellow is offline  
Old 05/04/2020, 12:17   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
Quote:
Originally Posted by Sonraiku View Post
Hello there,

i've added it to my server and i found one bug. When i send only an item to a character, i got the message that i have too many penya, although that char was fresh created. When i only send Penya or an item and penya, both works fine. Only sending an item does the message show up and interupts the process.
Quote:
Originally Posted by Minotaurr View Post
I have exactly the same bug :S
It's because if the mail has no gold, it will throw you the error message.

Quick fix:
Code:
#ifdef __RIGHTCLICK_DELETEMAIL
BOOL CanAdd(DWORD dwGold, int nPlus)
{
	if (nPlus <= 0)		// ´õÇÏ·Á´Â °ªÀÌ 0ÀÌÇÏÀÌ¸é ³Í¼¾½º 
		return FALSE;

	int nGold = dwGold;
	ASSERT(nGold >= 0);
	return ((nGold + nPlus) > nGold);		// ´õÇÑ °ªÀÌ overflowÀÌ¸é ¸·¾Æ¾ßÇÑ´Ù.
}
void CWndPostReceive::OnRButtonUp(UINT nFlags, CPoint point)
{
	if (GetAsyncKeyState(VK_CONTROL) && GetAsyncKeyState(VK_MENU))
	{
		if (m_nMax <= 0)
			return;

		int nSelect = GetSelectIndex(point);
		if (nSelect == -1)
			return;

		m_nSelect = nSelect;

		CMailBox* pMailBox = CMailBox::GetInstance();
		CMailBox& mailbox = *pMailBox;

		if (mailbox[m_nSelect] == NULL)
			return;

		CMail* pMail = mailbox[m_nSelect];
		if (pMail)
		{
			// Get Items if available
			if (pMail->m_pItemElem)
			{
				if (g_pPlayer->m_Inventory.GetEmptyCount() < 1)
				{
					g_WndMng.OpenMessageBox(prj.GetText(TID_GAME_LACKSPACE));
					return;
				}
				g_DPlay.SendQueryGetMailItem(pMail->m_nMail);
			}
			// Get Gold if available
			if (pMail->m_nGold)
			{
				if (CanAdd(g_pPlayer->GetGold(), pMail->m_nGold))
					g_DPlay.SendQueryGetMailGold(pMail->m_nMail);
				else
				{
					g_WndMng.OpenMessageBox(prj.GetText(TID_GAME_TOOMANYMONEY_USE_PERIN));
					return;
				}
			}
			
			// Delete
			g_DPlay.SendQueryRemoveMail(pMail->m_nMail);
		}
	}
}
#endif // __RIGHTCLICK_DELETEMAIL
alfredico is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
(B) E-Mail Listen zu verkaufen! Werben Sie per E-Mail! (S) E-Mail & PP
10/23/2016 - elite*gold Trading - 3 Replies
Liebe Elitepvpers, ich biete euch hiermit die Möglichkeit eigenständig zu werben. Durch einen Kauf einer meiner Listen, können Sie für Ihre gewerbliche Tätigkeit Käufer oder Besucher finden. Damit erhöhen Sie für eine Website die Traffic, für eine Software die Nutzer und für ein Forum die User. In vielen verschiedenen Formen kann Ihnen dieses Angebot gegenüber anderen Konkurrenten einen großen Vorteil verschaffen. Werbung durch E-Mails wird Ihr Gewerbe weiter vorantreiben, in welcher...
FAST!FAST!FAST! Biete 25€ PSC Suche e*Gold | gebe first | FAST!FAST!FAST!
10/02/2011 - elite*gold Trading - 1 Replies
^regelt. Sofortkauf 1200e*Gold | offline erworben. Sonst bitte vorschläge per pn oder im Thread. Es wird nicht via treasure gehandelt, von wegen log. Bei trusted leuten gebe ich first. Alles wird gefilmt, versteht sich. rgrds
WTB CHAR FAST FAST FAST FAST ZOMG FAST xD
05/07/2011 - Silkroad Online Trading - 15 Replies
Hey noobs j/k I want to buy a char for 50EU psc as fast as possible CHAR MUST BE : -iSro or rSro -lvl 98+ -no wizards please



All times are GMT +1. The time now is 18:37.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.