Register for your free account! | Forgot your password?

You last visited: Today at 16:55

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

Advertisement



I Need Help Egg

Discussion on I Need Help Egg within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2016
Posts: 52
Received Thanks: 3
I Need Help Egg

Hello i need help , how to remove the raised pet in the egg
Houyi201cz is offline  
Old 09/04/2016, 21:31   #2
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,496
Received Thanks: 3,518
I would say in textclient.inc / .txt.txt
Lumi is offline  
Old 09/04/2016, 21:36   #3
 
elite*gold: 0
Join Date: Aug 2016
Posts: 52
Received Thanks: 3
Yeah but why not work ? i add this and nothing
Houyi201cz is offline  
Old 09/04/2016, 21:46   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 333
Received Thanks: 284
Because you Have no clue what you are doing
Nortix is offline  
Old 09/04/2016, 22:57   #5
 
elite*gold: 0
Join Date: Aug 2016
Posts: 52
Received Thanks: 3
sssssss

Quote:
Originally Posted by Nortix View Post
Because you Have no clue what you are doing
i add this ..
and not working , i think is for the egg already raised .. or what ??

how to remove raised pet ?? in the egg , its the default egg
. i need edit the code in moverskill.cpp or what ?
Code:
   #ifdef __RAISE_PET
#ifdef __WORLDSERVER
	BOOL bPet;
	BYTE nKind;
	CUser *pUser = ((CUser*)this);//Momentan User der die scroll auslöst
		CPet* pPet	= pUser->GetPet();//Pet hohlen
	if( pPet && pUser->GetPet()->GetLevel() != PL_EGG )//IST ES HÖHER ALS EGG?
	{
		return FALSE;
	}
	if( pItemProp->dwID == II_SYS_LION )//LÖWE
	{
		nKind = 1;
		bPet = FALSE;
	}
	else if( pItemProp->dwID == II_SYS_RABBIT )//HASE
	{
		nKind = 2;
		bPet = FALSE;
	}
		else if( pItemProp->dwID == II_SYS_TIGER )//TIGER
	{
		nKind = 0;
		bPet = TRUE;
	}
		else if( pItemProp->dwID == II_SYS_HORSE )//PFERD
	{
		nKind = 6;
		bPet = TRUE;
	}
		else if( pItemProp->dwID == II_SYS_DRAGON )//DRACHE
	{
		nKind = 4;
		bPet = TRUE;
	}
			else if( pItemProp->dwID == II_SYS_HIPPOGRIPH )//HIPPOGREIF
	{
		nKind = 5;
		bPet = TRUE;
	}
			else if( pItemProp->dwID == II_SYS_FOX )//FUCHS
	{
		nKind = 3;
		bPet = TRUE;
	}
	if( bPet == TRUE)//SCROLL OF RAISE PET ?
	{
	if( IsValidObj( pUser ) == FALSE )//FEHLER ABGFRAGE
		return TRUE;

	if( pPet == NULL )	//FEHLER ABFRAGE
		return TRUE;

	// kind
	if( nKind >= PK_MAX ) //FEHLER ABFRAGE
		return TRUE;

	// exp
	BYTE nExpRate	= 99; //EXP RATE

	BYTE nLevel		= 5;// S KLASSE

	if( nLevel > PL_S ) //FEHLER CODE ABFRAGE
		return TRUE;

	
	BYTE nLife; //LIFE
		nLife	= 99;//LEBEN AUF 99 SETZEN

	CItemElem* pItemElem2	= pUser->GetPetItem();
	pPet->SetKind( nKind );//ART DES PETS
	pPet->SetLevel( nLevel );//LEVEL SETZEN
	if( nLevel == PL_EGG )
		pPet->SetKind( 0 );	// initialize
	pItemElem2->m_dwItemId	= pPet->GetItemId();
	pPet->SetEnergy( pPet->GetMaxEnergy() );//MAXIMALE ENERGY
	DWORD dwExp		= pPet->GetMaxExp() * nExpRate / 100;
	pPet->SetExp( dwExp );

	for( int i = 0; i < 6; i++ )//LEVEL SETZEN
		pPet->SetAvailLevel( i, 9 );


	pPet->SetLife( nLife );//DIE LEBEN SETZEN

	if( pUser->HasPet() )
		pUser->RemovePet();//EGG REINHOHLEN

	g_dpDBClient.CalluspPetLog( pUser->m_idPlayer, pItemElem2->GetSerialNumber(), 0, PETLOGTYPE_LEVELUP, pPet );

	pUser->AddPet( pPet, PF_PET_GET_AVAIL );	// PET EINFÜGEN
	g_UserMng.AddPetLevelup( pUser, MAKELONG( (WORD)pPet->GetIndex(), (WORD)pPet->GetLevel() ) );	// öâ
	pUser->UpdateItem( (BYTE)pItemElem->m_dwObjId, UI_NUM, 0 );//SCROLL LÖSCHEN
	return TRUE;
	}
#endif//__WORLDSERVER
#endif//__RAISE_PET
Houyi201cz is offline  
Reply




All times are GMT +1. The time now is 16:55.


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.