[Fix] Bead Stat Hack

02/11/2015 20:11 -Venom'#1
Hallo Elitepvpers,
da ich nicht weiß ob es schon Releast wurde mach ich es einfach mal.
(Sollte es schon Public sein sagt es mir bitte)

WndField.cpp

Sucht nach:

Code:
BOOL CWndRemovePiercing::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )
Fügt unter:

Code:
		if(m_pItemElem == NULL && pTempElem != NULL)
		{
			pItemProp = pTempElem->GetProp();
Das ein:

Code:
#ifdef __BEAD_STAT_FIX
        if( pItemProp->dwItemKind3 == IK3_PET )
        {
        g_WndMng.PutString( prj.GetText( TID_GAME_REMOVE_PIERCING_ERROR_EX ), NULL, prj.GetTextColor( TID_GAME_REMOVE_PIERCING_ERROR_EX ) );
        return 0;
        }
#endif // __BEAD_STAT_FIX
Sucht nach:

Code:
void CWndRemovePiercing::SetSuit(CItemElem* pItemElem)
fügt unter:

Code:
	if(m_pItemElem == NULL && pItemElem != NULL)
	{
		ItemProp* pProp = pItemElem->GetProp();
Das ein:

Code:
#ifdef __BEAD_STAT_FIX
        if( pProp->dwItemKind3 == IK3_PET )
        {
        g_WndMng.PutString( prj.GetText( TID_GAME_REMOVE_PIERCING_ERROR_EX ), NULL, prj.GetTextColor( TID_GAME_REMOVE_PIERCING_ERROR_EX ) );
        return;
        }
#endif // __BEAD_STAT_FIX
In der versionCommon.h der Neuz:

Code:
#define __BEAD_STAT_FIX
Achtung: Ich habe es selber noch nicht getestet.

Ceditz:
Seb

Wenn es Hilfreich war hinterlasst ein Thanks.
02/11/2015 20:53 Sedrika#2
Lieber ss fixen als cs
02/11/2015 22:46 Drabur#3
[Only registered and activated users can see links. Click Here To Register...]


Fast 3 Monate is der Fix schon ServerSide released.
02/12/2015 03:18 マリブ#4
Gibt auch noch eine andere möglichkeit.

Code:
	for( int i=pItemElem->GetPiercingSize()-1; i>=0; i-- )
	{
		if( pItemElem->GetPiercingItem( i ) != 0 )
		{
			pUser->AddGold( -nPayPenya );	// Æä³Ä ÁöºÒ
			pUser->AddDefinedText(TID_GAME_REMOVE_PIERCING_SUCCESS);

			// piercing remove fix (remove bead when the pet is activated)
			if (pUser->GetVisPetItem() == pItemElem)
			{
				ItemProp *pPropVis = prj.GetItemProp(pItemElem->GetPiercingItem(i));
				if (pPropVis)
				{
					// reset the stats
					pUser->ResetDestParam(0, pPropVis);
					pUser->ResetDestParam(1, pPropVis);
					pUser->ResetDestParam(2, pPropVis);
				}
			}
			// end fix
02/12/2015 07:51 Spraystar#5
THanks könnten viele gebrauchen wenn du noch mehr fix kennst immer her damit :)
02/12/2015 11:17 Wanetrain#6
Quote:
Originally Posted by Spraystar View Post
THanks könnten viele gebrauchen wenn du noch mehr fix kennst immer her damit :)
Wie den unbekannten Guild War Crash? Den kein Schwanz kennt weil es scheinbar kein juckt? :)

@Thread: Naja...Den fixx kann man durchaus so machen, aber, warum Released du ein Copy & Paste fixx wobei du nicht weiß ob er Funktioniert oder nicht? Da stellt sich mir die Frage woher hast du den eigtl.?
02/12/2015 11:24 -Venom'#7
Quote:
Originally Posted by Wanetrain View Post
Wie den unbekannten Guild War Crash? Den kein Schwanz kennt weil es scheinbar kein juckt? :)

@Thread: Naja...Den fixx kann man durchaus so machen, aber, warum Released du ein Copy & Paste fixx wobei du nicht weiß ob er Funktioniert oder nicht? Da stellt sich mir die Frage woher hast du den eigtl.?
Der Fix funktioniert.
Habe ihn vorhin noch getestet.

Und woher ich den Fix habe ist doch releativ egal.
02/17/2015 21:03 sebariio#8
when you copy my tutorial don't change the define
02/17/2015 23:55 -Venom'#9
Quote:
when you copy my tutorial don't change the define
I can change the Defines how I want it.
Or, you can now charge a copyright on it?
02/18/2015 00:38 xBleak#10
Quote:
Originally Posted by Titanos™ View Post
Der Fix funktioniert.
Habe ihn vorhin noch getestet.

Und woher ich den Fix habe ist doch releativ egal.
Achtung: Ich habe es selber noch nicht getestet.

Ceditz:
Seb

Wenn es Hilfreich war hinterlasst ein Thanks.



OKKKKKKKKKKKKKK
02/18/2015 12:45 Quadrilateral#11
Der Fix funktioniert nur bedingt, wenn ich nun nen Paket mit den Informationen an den Server sende, was bei so einem Hack empfehlenswert ist (sonst dauert das doch ewig bis man einen signifikanten Effekt hat), ist der Fix auch bypassed.

Malibus Fix scheint mir am sinnvollsten weil der Spielfluss so nicht unterbrochen wird was bestimmt frustrierend sein kann wenn man mehrmals vergisst sein Pet zu deaktivieren.
02/18/2015 18:24 sebariio#12
I am 100% sure that you do not even know to understand this little rule , if you are careful prettais two minutes you would see that it is a client-side protection and it is easy to bypass this protection , so before changing a define at least try to understand

use a server protection, and then you can change my define
04/11/2015 09:23 pakinglalat#13
I have added Malibus fix but I have compiling errors, could you guys help? Here is the compiling error:

Quote:
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2306): error C2601: 'CItemUpgrade::TransFormVisPet' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(499): error C2601: 'CItemUpgrade::OnEnchant' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(543): error C2601: 'CItemUpgrade::OnSmeltSafety' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(584): error C2601: 'CItemUpgrade::SmeltSafetyNormal' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(604): error C2601: 'CItemUpgrade::SmeltSafetyGeneral' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(714): error C2601: 'CItemUpgrade::SmeltSafetyAccessory' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(786): error C2601: 'CItemUpgrade::SmeltSafetyPiercingSize' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(883): error C2601: 'CItemUpgrade::BarunaSafe' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(974): error C2601: 'CItemUpgrade::RefineAccessory' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1043): error C2601: 'CItemUpgrade::RefineCollector' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1096): error C2601: 'CItemUpgrade::SmeltSafetyAttribute' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1206): error C2601: 'CItemUpgrade::EnchantGeneral' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1360): error C2601: 'CItemUpgrade::GetGeneralEnchantProb' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1375): error C2601: 'CItemUpgrade::EnchantBaruna' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1510): error C2601: 'CItemUpgrade::GetBarunaEnchantProp' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1518): error C2601: 'CItemUpgrade::GetBarunaEnchantDowngradeProp' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1526): error C2601: 'CItemUpgrade::GetBarunaPetMultiplicator' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1535): error C2601: 'CItemUpgrade::GetBarunaFailForNextLevel' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1544): error C2601: 'CItemUpgrade::CreateBarunaCrystal' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1591): error C2601: 'CItemUpgrade::BarunaChaosGemExtract' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1662): error C2601: 'CItemUpgrade::CreateBarunaChaosGem' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1690): error C2601: 'CItemUpgrade::CreateStone' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1729): error C2601: 'CItemUpgrade::EnchantAttribute' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1896): error C2601: 'CItemUpgrade::ChangeAttribute' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1962): error C2601: 'CItemUpgrade::GetAttributeEnchantProb' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1971): error C2601: 'CItemUpgrade::GetAttributeDamageFactor' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1984): error C2601: 'CItemUpgrade::GetAttributeDefenseFactor' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(1996): error C2601: 'CItemUpgrade::GetAttributeAddAtkDmgFactor' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2009): error C2601: 'CItemUpgrade::WhatEleCard' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2031): error C2601: 'CItemUpgrade::OnItemTransy' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2098): error C2601: 'CItemUpgrade::RunItemTransy' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2144): error C2601: 'CItemUpgrade::PetVisSize' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2179): error C2601: 'CItemUpgrade::SetPetVisItem' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2241): error C2601: 'CItemUpgrade::RemovePetVisItem' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2267): error C2601: 'CItemUpgrade::PutPetVisItemLog' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2279): error C2601: 'CItemUpgrade::SwapVis' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2292): error C2601: 'CItemUpgrade::ChangeVisPetSfx' : local function definitions are illegal
c:\Users\Administrator\Desktop\SERVER\Source\WORLD SERVER\ItemUpgrade.cpp(2338): fatal error C1075: end of file found before the left brace '{' at 'ItemUpgrade.cpp(475)' was matched
Please help me with this.

So it turned out that it was my fault, I just missed a 2 closing brackets.
04/11/2015 11:21 - DK#14
Quote:
Originally Posted by pakinglalat View Post
I have added Malibus fix but I have compiling errors, could you guys help? Here is the compiling error:



Please help me with this.

So it turned out that it was my fault, I just missed a 2 closing brackets.
Remove it and use this :
[Only registered and activated users can see links. Click Here To Register...]
04/11/2015 17:58 マリブ#15
Quote:
Originally Posted by pakinglalat View Post
I have added Malibus fix but I have compiling errors, could you guys help? Here is the compiling error:



Please help me with this.

So it turned out that it was my fault, I just missed a 2 closing brackets.
Code:
void CItemUpgrade::OnPiercingRemove( CUser* pUser, DWORD objId )
{
	CItemElem* pItemElem = pUser->m_Inventory.GetAtId( objId );
	if( !IsUsableItem( pItemElem ) || !pItemElem->IsPierceAble() )
		return;

	if( pUser->m_Inventory.IsEquip( objId ) )
		return;

	// ÇǾî½Ì ¿É¼ÇÀÌ ¾ø´Â °æ¿ì
	if( pItemElem->GetPiercingSize() == 0 || pItemElem->GetPiercingItem( 0 ) == 0 )
	{
		pUser->AddDefinedText( TID_GAME_REMOVE_PIERCING_ERROR );
		return;
	}
	const int nPayPenya = 1000000; // ÁöºÒÇÒ Æä³Ä
	if( pUser->GetGold() < nPayPenya )	// Æä³Ä°¡ ºÎÁ·ÇÏ´Ù.
	{
		pUser->AddDefinedText( TID_GAME_LACKMONEY );
		return;
	}

	for( int i=pItemElem->GetPiercingSize()-1; i>=0; i-- )
	{
		if( pItemElem->GetPiercingItem( i ) != 0 )
		{
			pUser->AddGold( -nPayPenya );	// Æä³Ä ÁöºÒ
			pUser->AddDefinedText(TID_GAME_REMOVE_PIERCING_SUCCESS);

			// piercing remove fix (remove bead when the pet is activated)
			if (pUser->GetVisPetItem() == pItemElem)
			{
				ItemProp *pPropVis = prj.GetItemProp(pItemElem->GetPiercingItem(i));
				if (pPropVis)
				{
					// reset the stats
					pUser->ResetDestParam(0, pPropVis);
					pUser->ResetDestParam(1, pPropVis);
					pUser->ResetDestParam(2, pPropVis);
				}
			}
			// end fix

			pUser->UpdateItem( (BYTE)( pItemElem->m_dwObjId ), UI_PIERCING, MAKELONG( i, 0 ) );

			LogItemInfo aLogItem;
			aLogItem.Action = "$";
			aLogItem.SendName = pUser->GetName();
			aLogItem.RecvName = "PIERCING_REMOVE";
			aLogItem.WorldId = pUser->GetWorld()->GetID();
			aLogItem.Gold = pUser->GetGold() + nPayPenya;
			aLogItem.Gold2 = pUser->GetGold();
			aLogItem.Gold_1 = -nPayPenya;
			g_DPSrvr.OnLogItem( aLogItem, pItemElem, 1 );


			break;
		}
	}
}
#endif // __EXT_PIERCING