Register for your free account! | Forgot your password?

You last visited: Today at 12:49

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

Advertisement



[Request]

Discussion on [Request] within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
[Request]

can anyone have this feature?
after i upgrade my weapon/accessories to +10/+20 system will announce my name?
babyminion is offline  
Old 08/13/2017, 22:59   #2
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,994
Received Thanks: 3,389
Arrow Flyff Main - Discussions / Questions -> Flyff PServer - D…

#moved
Nick is offline  
Old 08/14/2017, 08:40   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 481
Received Thanks: 218
Quote:
Originally Posted by babyminion View Post
can anyone have this feature?
after i upgrade my weapon/accessories to +10/+20 system will announce my name?
Actually you can have this feature. But i can assure you its not released here yet.
Burdenz2007 is offline  
Old 08/15/2017, 04:49   #4
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
It's not that hard to realize. The Upgrade is already on the World Server end, you can simply check the upgrade value and you can send a all notice from there.
iSynaptic is offline  
Old 08/15/2017, 13:32   #5
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Quote:
Originally Posted by iSynaptic View Post
It's not that hard to realize. The Upgrade is already on the World Server end, you can simply check the upgrade value and you can send a all notice from there.
sorry master but i can't do that things coz im just new in flyff developing
babyminion is offline  
Old 08/16/2017, 01:52   #6
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
The most basic way would be like:

In DPSrvr.cpp on Line 5647 under
Code:
BYTE nResult = CItemUpgrade::GetInstance()->OnSmeltSafety( pUser, pItemElem0, pItemElem1, pItemElem2, pItemElem3 );
Add:

Code:
if ( nResult == 1 && *pItemElem0->GetAbilityOptionPtr() == 9 ) // 9 + successs = 10
	{
		char szUpgradeNotice[150] = { 0, };
		sprintf(szUpgradeNotice, "%s just successfully upgradet an item to +10", pUser->GetName());
		g_DPCoreClient.SendSystem(szUpgradeNotice);
	}
But keep in mind, that this message only appears on Safe Upgrade if a item reaches +10 and via the standard /sys notice.

You can also select the Itemname and print it out for example, or make a difference between accessory which acually should also print a message if it reach +10 instead of +20, but i wont give you everything fully done.

This is just as start point - go, get some expierence by yourself.

Synaptic
iSynaptic is offline  
Old 08/16/2017, 07:36   #7
 
elite*gold: 0
Join Date: Jun 2017
Posts: 46
Received Thanks: 29
Quote:
Originally Posted by iSynaptic View Post
The most basic way would be like:

In DPSrvr.cpp on Line 5647 under
Code:
BYTE nResult = CItemUpgrade::GetInstance()->OnSmeltSafety( pUser, pItemElem0, pItemElem1, pItemElem2, pItemElem3 );
Add:

Code:
if ( nResult == 1 && *pItemElem0->GetAbilityOptionPtr() == 9 ) // 9 + successs = 10
	{
		char szUpgradeNotice[150] = { 0, };
		sprintf(szUpgradeNotice, "%s just successfully upgradet an item to +10", pUser->GetName());
		g_DPCoreClient.SendSystem(szUpgradeNotice);
	}
But keep in mind, that this message only appears on Safe Upgrade if a item reaches +10 and via the standard /sys notice.

You can also select the Itemname and print it out for example, or make a difference between accessory which acually should also print a message if it reach +10 instead of +20, but i wont give you everything fully done.

This is just as start point - go, get some expierence by yourself.

Synaptic
wouldnt at that moment "GetAbilityOptionPtr" would return 10 since the value would increase on success before returning the result to this function? also y even get the pointer from the reference of the value when you can just check the default value with GetAbilityOption(). you're not applying an edit to the pointer anyway. its unneeded schematics.

but yes this code is pretty much how one would do it
Hekmatyar is offline  
Thanks
1 User
Old 08/16/2017, 08:10   #8
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
Quote:
Originally Posted by Hekmatyar View Post
wouldnt at that moment "GetAbilityOptionPtr" would return 10 since the value would increase on success before returning the result to this function? also y even get the pointer from the reference of the value when you can just check the default value with GetAbilityOption(). you're not applying an edit to the pointer anyway. its unneeded schematics.

but yes this code is pretty much how one would do it
You are absolutly right. I copied the wrong code. When i did the tests, i addet the following lines of code:


Code:
// acually 9 because were in the success bracket 
			if (*pAbilityOption == 9) {
				char szUpgradeNotice[150] = { 0, };
				sprintf(szUpgradeNotice, "%s just successfully upgradet an item to +10", pUser->GetName());
				g_DPCoreClient.SendSystem(szUpgradeNotice);
			}
not under the SafeUpgrade location, but under

Code:
void CDPSrvr::OnEnchant( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize)
above:

Code:
			// ¼º°ø
			pUser->AddDefinedText( TID_UPGRADE_SUCCEEFUL, "" );
			pUser->AddPlaySound( SND_INF_UPGRADESUCCESS );
This would also cover the normal upgrade.
Well, ive just copyied the *pAbilityOption from 20 lines above:

Code:
if( *pAbilityOption >= nLevDown )
Thanks for the hint.
iSynaptic is offline  
Reply


Similar Threads Similar Threads
[REQUEST] Can i Request A Acc/Char PHP Script
09/27/2008 - CO2 Private Server - 6 Replies
hello i was wondering if anyone have made a acc/char creation page in one yet? is so can anyone release itplease?
[Request] thats right [b]I[/b] have a request
09/24/2008 - CO2 Private Server - 0 Replies
How would I go about removing an item from a character's model without removing it from the inventory? for(byte i=0; i < 10; i++) SendPacket(General.MyPackets.RemoveItem((long)MyCh ar.Equips_UIDs, i, 6)); this removes them from the char and from their inventory screen... , the RemoveItem packet is as follows: public byte RemoveItem(long UID, byte pos, byte type)
[REQUEST]2 small simple request please look in here
09/20/2008 - CO2 Private Server - 6 Replies
Hello all no one here knows me i am Rukia Owner Od DarkAngelzCO 2.0 i was wondering if anyone can kindly show me 1 solutions first off can anyone tell me how i can add day/night to work for everyone i have been searching deeply for it can anyone please show me with a guide how to get it on my server?
*REQUEST* Powerlevel spots 30-70* *REQUEST*
09/10/2008 - Silkroad Online - 16 Replies
Hello, this is just a request, please can someone do a list of the powerlevel spots with a screenshot of the map and the area high lighted from 30-70, I mean lvl 30 mobs to lvl 70 mobs, thanks alot :)
[Request] Make a Request section
05/09/2007 - Conquer Online 2 - 15 Replies
Here is my propsal (I posted this idea in another topic but I felt that it needs its own topic). I would like to request on behalf of all the CO community here, that the staff at elitepvp make a requests section. This section would be a place for all these people asking for requests - be it the noob asking for "duep haxz", or the guy asking for a new proxy. What I mean is it would be a request forum, to handle all requests. I also propose that in this forum, post count will not increase....



All times are GMT +1. The time now is 12:57.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.