Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 01:58

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

Advertisement



[source edit]Swap bug fix

Discussion on [source edit]Swap bug fix within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2008
Posts: 48
Received Thanks: 31
[source edit]Swap bug fix

Hi I fixed the swap bug a long time ago it got tested on my server and it worked :thumbup1:
I posted this because someone kinda posted a youtube thingy about it :O.

Find this in DPSrv.cpp @ worldserver
Code:
void CDPSrvr::OnDoEquip( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
	DWORD nId;
	int nPart;

	ar >> nId;
	ar >> nPart;		
	
	if( nPart >= MAX_HUMAN_PARTS )	
		return;

	CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
And put this under it

Code:
#ifdef __QUGET_SWAP_FIX

				if( pUser->GetHitPoint() >  pUser->GetMaxHitPoint() )
					 pUser->SetHitPoint( pUser->GetMaxHitPoint());

				if( pUser->GetManaPoint() >  pUser->GetMaxManaPoint() )
					 pUser->SetManaPoint( pUser->GetMaxManaPoint() );

				if( pUser->GetFatiguePoint() >  pUser->GetMaxFatiguePoint() )
					 pUser->SetFatiguePoint( pUser->GetMaxFatiguePoint() );

#endif
find this in function void CDPClient::OnDoEquip( OBJID objid, CAr & ar ) @ DPClient.cpp
and add under
Code:
if( g_WndMng.m_pWndBeautyShop && g_WndMng.m_pWndBeautyShop->m_pModel )
			{
				CMover::UpdateParts( pPlayer->GetSex(), pPlayer->m_dwSkinSet, pPlayer->m_dwFace, pPlayer->m_dwHairMesh, pPlayer->m_dwHeadMesh, pPlayer->m_aEquipInfo, g_WndMng.m_pWndBeautyShop->m_pModel, &pPlayer->m_Inventory );
			}
this
Code:
#ifdef __QUGET_SWAP_FIX
				if( pPlayer->GetHitPoint() >  pPlayer->GetMaxHitPoint() )
					 pPlayer->SetHitPoint( pPlayer->GetMaxHitPoint());

				if( pPlayer->GetManaPoint() >  pPlayer->GetMaxManaPoint() )
					 pPlayer->SetManaPoint( pPlayer->GetMaxManaPoint() );

				if( pPlayer->GetFatiguePoint() >  pPlayer->GetMaxFatiguePoint() )
					 pPlayer->SetFatiguePoint( pPlayer->GetMaxFatiguePoint() );

#endif
and then define __QUGET_SWAP_FIX in versioncommon.h @neuz and worldserver
darking1assist is offline  
Thanks
5 Users
Old 09/25/2011, 18:15   #2
 
elite*gold: 0
Join Date: Dec 2010
Posts: 463
Received Thanks: 97
Nice

Sry can everyone explain the swap bug

Kann mir das mal wer erklären?
MysticAngelz is offline  
Old 09/25/2011, 18:44   #3
 
Doomm's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 150
Received Thanks: 42
Schau auf youtube in Video an !
Doomm is offline  
Old 09/25/2011, 20:37   #4
 
elite*gold: 1
Join Date: Dec 2009
Posts: 504
Received Thanks: 71
Besser Gesagt auf Deutsch Psy Switch Bug
-*N1ce. is offline  
Old 09/25/2011, 21:18   #5
 
elite*gold: 59
Join Date: Aug 2009
Posts: 1,586
Received Thanks: 489
Nicht nur Psy, sondern auch BP ^^ Bzw jeden Bug. H P Bug etc..
.Tear is offline  
Old 09/26/2011, 20:40   #6
 
elite*gold: 0
Join Date: Dec 2008
Posts: 48
Received Thanks: 31
updated main post forgot the neuz part :P
darking1assist is offline  
Old 09/27/2011, 01:24   #7



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,177
Received Thanks: 14,471
Quote:
Originally Posted by darking1assist View Post
updated main post forgot the neuz part :P
If you update the serversided part you dont need the client sided.
Sedrika is offline  
Old 09/27/2011, 22:04   #8
 
elite*gold: 0
Join Date: Dec 2008
Posts: 48
Received Thanks: 31
Quote:
Originally Posted by Sedrika View Post
If you update the serversided part you dont need the client sided.
It would be nice to see a non bugged HP bar right
darking1assist is offline  
Thanks
2 Users
Old 12/12/2011, 09:30   #9
 
elite*gold: 0
Join Date: Mar 2010
Posts: 107
Received Thanks: 1
is this working?
clinkz96 is offline  
Old 12/12/2011, 11:24   #10
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
Quote:
Originally Posted by clinkz96 View Post
is this working?
yes. it is pretty easy to understand.

b2t
Nice and so easy
Jopsi332 is offline  
Old 02/18/2012, 07:13   #11
 
elite*gold: 0
Join Date: Jan 2009
Posts: 96
Received Thanks: 10
Das funktioniert bei mir nur client side.

Server side bugt die HP/MP/FP noch genau wie vorher, jedoch client side sieht man sie nie "über voll" dennoch kann man troz dieses fixx genau wie zuvor auch buggen.


hat jemand ne andere lösung oder nen fixx? ich habe es jetzt mehrmals ausprobiert und alles kontrolliert, ich bezweifle das ich etwas falsch gemacht habe.
Xefiroid is offline  
Old 02/18/2012, 19:27   #12
 
Yoshii50000's Avatar
 
elite*gold: 260
Join Date: Apr 2011
Posts: 414
Received Thanks: 478
für MP musst du in der attackarbieter die berechnung nur umändern das der wenn man über 100% mp hat trd mit 100% rechnet HP/FP müsste ich auch mal suchen da hab ich mich nie für interessiert
Yoshii50000 is offline  
Old 02/18/2012, 23:22   #13
 
elite*gold: 0
Join Date: Jan 2009
Posts: 96
Received Thanks: 10
Quote:
Originally Posted by Yoshii50000 View Post
für MP musst du in der attackarbieter die berechnung nur umändern das der wenn man über 100% mp hat trd mit 100% rechnet HP/FP müsste ich auch mal suchen da hab ich mich nie für interessiert
wichtig ist mir aber auch die HP.

könntest du mal so ne zeile posten? ich habe leider nicht allzu viel ahnung von c++, einfügen sollte für mich aber kein problem sein^^
Xefiroid is offline  
Old 02/18/2012, 23:53   #14
 
Yoshii50000's Avatar
 
elite*gold: 260
Join Date: Apr 2011
Posts: 414
Received Thanks: 478
Quote:
Originally Posted by Xefiroid View Post
wichtig ist mir aber auch die HP.

könntest du mal so ne zeile posten? ich habe leider nicht allzu viel ahnung von c++, einfügen sollte für mich aber kein problem sein^^
code ist ganz einfach

Code:
	int nMP = m_pAttacker->GetManaPoint();	
	if( nMP > m_pAttacker->GetMaxManaPoint()) 
                   nMP = m_pAttacker->GetMaxManaPoint();
Yoshii50000 is offline  
Old 02/19/2012, 02:25   #15
 
elite*gold: 0
Join Date: Dec 2011
Posts: 206
Received Thanks: 224
Quote:
Originally Posted by Yoshii50000 View Post
code ist ganz einfach

Code:
	int nMP = m_pAttacker->GetManaPoint();	
	if( nMP > m_pAttacker->GetMaxManaPoint()) 
                   nMP = m_pAttacker->GetMaxManaPoint();
Wieso so unnötig Prüfen?

Einfach in der SetDestParamEquip beim anziehen von zeugs das dir FP MP HP gibt überprüfen ob dieser Wert das maximum übersteigt? ;S

Außerdem liegt das Problem der HPBar (sie ist zu groß) der Speedbug usw.. an ein und der selben sache

Kuckt euch mal genau an wie dieser Bug auftrettet und versucht ihn gezielt zu replizieren.
Ihr werdet merken das der Server etwas vergisst zu updaten ;]
yannickFlyff is offline  
Reply


Similar Threads Similar Threads
-Swap- Trading 120 rs acc for Aion Wings code for GW -swap-
02/19/2010 - Aion Trading - 8 Replies
Trading this account for gw stuff. http://i65.photobucket.com/albums/h235/e4sykillx/ rsacc.jpg http://i65.photobucket.com/albums/h235/e4sykillx/ rsbank.jpg http://i65.photobucket.com/albums/h235/e4sykillx/ norecovery2.jpg http://i65.photobucket.com/albums/h235/e4sykillx/ blackmarks.jpg
|SWAP| Swaping this for Possibly Aion Wings Code |SWAP|
02/19/2010 - Aion Trading - 2 Replies
Hello, I am trading this miniature main account for guild wars items and cash. The picture is not that good but there is 8.1 almost 8.2mill on that picture below. http://i65.photobucket.com/albums/h235/e4sykillx/ money-1.jpg http://i65.photobucket.com/albums/h235/e4sykillx/ stats-5.jpg http://i65.photobucket.com/albums/h235/e4sykillx/ norecovery2.jpg
-Swap- 8 Digit Steam Acc -Swap-
02/18/2010 - Steam Trading - 10 Replies
I am trading this account for guild wars it is an 8 digit account ending in 1337 which is cool for collectors I guess here is a picture Steam_0:0:1XXX1337 http://i65.photobucket.com/albums/h235/e4sykillx/ Untitled-28.jpg http://i65.photobucket.com/albums/h235/e4sykillx/ steamacc.jpg I only want guildwars gold items worth the value of the steam acc hopefully
[HELP]Edit in source :)
09/06/2009 - CO2 Private Server - 9 Replies
#REQUEST CLOSED, i got all what i need! When i edit in source and add codes and all that, nothing happens. The server is still the same and i have changed everything to mine, but it still use the old codes. Can anyone help me how to edit the codes? Example: i open Client.cs and edit the text of NPC's and what they say, but they still say the old things and i change the login messages, but they still says the same. If anyone can help me i would thanks very much:)



All times are GMT +2. The time now is 01:58.


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