Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 23:05

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

Advertisement



[REQUEST] Raised Pet Scroll to 1/3/5/7/9 or 9/9/9/9/9

Discussion on [REQUEST] Raised Pet Scroll to 1/3/5/7/9 or 9/9/9/9/9 within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
yazuka21's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
[REQUEST] Raised Pet Scroll to 1/3/5/7/9 or 9/9/9/9/9

Someone teach me how to make Scroll of Perfect Raised Pet or Donate Pet

This image will explain clearly.


Thanks in Advance.


#I_Am_Noob
yazuka21 is offline  
Old 05/27/2017, 21:27   #2
 
elite*gold: 0
Join Date: Feb 2016
Posts: 312
Received Thanks: 31
just add a new item with a GM command.
/plvl what ever
fastdxbuy is offline  
Old 05/27/2017, 21:31   #3
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,497
Received Thanks: 3,524
Quote:
Originally Posted by fastdxbuy View Post
just add a new item with a GM command.
/plvl what ever
but you need char and pet name for this command. How will you handle this?
Lumi is offline  
Old 05/27/2017, 22:17   #4
 
elite*gold: 0
Join Date: Feb 2016
Posts: 312
Received Thanks: 31
Quote:
Originally Posted by ​Lumi View Post
but you need char and pet name for this command. How will you handle this?
you don't need char name sir just try it urself
fastdxbuy is offline  
Old 05/28/2017, 09:34   #5
 
elite*gold: 0
Join Date: May 2017
Posts: 146
Received Thanks: 31
Ingame Command: /Pet UserName 0 100 99999 100
Result: Str Pet (Tiger) lv 9/9/9/9/9 (Str +180 i think)...
You Need to Change something at the code.
Xeylou is offline  
Old 05/28/2017, 13:41   #6
 
yazuka21's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
Quote:
Originally Posted by Xeylou View Post
Ingame Command: /Pet UserName 0 100 99999 100
Result: Str Pet (Tiger) lv 9/9/9/9/9 (Str +180 i think)...
You Need to Change something at the code.
I know what are those command, but I just like that only the player could do that... they don't need me to make their D.Pet..
yazuka21 is offline  
Old 05/28/2017, 16:31   #7
 
banktakung's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 306
Received Thanks: 59
PHP Code:

#ifdef __RAISED_PET
BOOL CDPSrvr::DoUseItemTarget_PerfectPetCUserpUserCItemElempMaterialCItemElempTarget )
{
#ifdef __SYSSECURITY
try{
#endif    
    
BOOL bPet;
    
BYTE nKind;
    
BYTE nExpRate 99//EXP RATE
    
BYTE nLevel 5;// S KLASSE
    
BYTE nLife 25;//Life is 25
    
CPetpPet pUser->GetPet();
    
    if(
pUser->HasPet())
    {
        if( 
pTarget->GetProp()->dwItemKind1 == IK1_GENERAL && pTarget->GetProp()->dwItemKind3 == IK3_EGG )
        {
            if( 
pUser->GetPet()->GetLevel() != PL_EGG )
            {
                
pUser->AddText"Only use with egg." );
                return 
FALSE;
            }

            switch( 
pMaterial->m_dwItemId )
            {
                case 
II_SYS_SYS_SCR_TOPPET_LION:
                
nKind 1;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_RABBIT:
                
nKind 2;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_TIGER:
                
nKind 0;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_UNICORN:
                
nKind 6;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_DRAGON:
                
nKind 4;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_EAGLE:
                
nKind 5;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_NINEFOX:
                
nKind 3;
                
bPet TRUE;
                break;

                default:
                break;
            }
            if( 
bPet == TRUE)
            {
                if( 
nLevel PL_S )
                return 
TRUE;

                
CItemElempItemElem2 pUser->GetPetItem();
                
pPet->SetKindnKind );
                
pPet->SetLevelnLevel );
                
pItemElem2->m_dwItemId pPet->GetItemId();
                
pPet->SetEnergypPet->GetMaxEnergy() );
                
DWORD dwExp pPet->GetMaxExp() * nExpRate 100;
                
pPet->SetExpdwExp );

                
//for( int i = 0; i < 6; i++ )
                
pPet->SetAvailLevel1);
                
pPet->SetAvailLevel2);
                
pPet->SetAvailLevel3);
                
pPet->SetAvailLevel4);
                
pPet->SetAvailLevel5);

                
pPet->SetLifenLife );

                if( 
pUser->HasPet() )
                
pUser->RemovePet();

                
g_dpDBClient.CalluspPetLogpUser->m_idPlayerpItemElem2->GetSerialNumber(), 0PETLOGTYPE_LEVELUPpPet ); //Log the change into database

                
pUser->AddPetpPetPF_PET_GET_AVAIL ); // 
                
g_UserMng.AddPetLeveluppUserMAKELONG( (WORD)pPet->GetIndex(), (WORD)pPet->GetLevel() ) );
                
pUser->UpdateItem( (BYTE)pMaterial->m_dwObjIdUI_NUM);//Remove the scroll
                //return TRUE;

            
}
        }
    }
    else
    {
        
pUser->AddDiagTextprj.GetTextTID_USE_PET_FOR_RISE ) );
        return 
TRUE;
    }
    return 
TRUE;

#ifdef __SYSSECURITY
}
catch(...)
{
    
Error("Error on Line %d in %s",__LINE__,__FILE__);
}
#endif
}
#endif __RAISED_PET 
banktakung is offline  
Old 05/29/2017, 09:26   #8
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
Quote:
Originally Posted by naruto66620 View Post
add after

Code:
#ifdef __SYSSECURITY
try{
#endif
Code:
if (!pUser || !pMaterial || !pTarget)
return;
That's not necessary as DoUseItemTarget_ functions are handled by CDPSrvr::OnDoUseItemTarget()




On function CDPSrvr::OnDoUseItemTarget() you must add this

case II_SYS_SYS_SCR_TOPPET_LION:
case II_SYS_SYS_SCR_TOPPET_RABBIT:
case II_SYS_SYS_SCR_TOPPET_TIGER:
case II_SYS_SYS_SCR_TOPPET_UNICORN:
case II_SYS_SYS_SCR_TOPPET_DRAGON:
case II_SYS_SYS_SCR_TOPPET_EAGLE:
case II_SYS_SYS_SCR_TOPPET_NINEFOX:
b = DoUseItemTarget_PerfectPet( pUser, pMaterial, pTarget );
break;
alfredico is offline  
Old 06/05/2017, 02:40   #9
 
yazuka21's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
Thank you so much guys.

Quote:
Originally Posted by naruto66620 View Post
add after

Code:
#ifdef __SYSSECURITY
try{
#endif
Code:
if (!pUser || !pMaterial || !pTarget)
return;
Where should I put those codes sir ?

I'm really sorry but I don't know where :/

Thanks again.

Quote:
Originally Posted by banktakung View Post
PHP Code:

#ifdef __RAISED_PET
BOOL CDPSrvr::DoUseItemTarget_PerfectPetCUserpUserCItemElempMaterialCItemElempTarget )
{
#ifdef __SYSSECURITY
try{
#endif    
    
BOOL bPet;
    
BYTE nKind;
    
BYTE nExpRate 99//EXP RATE
    
BYTE nLevel 5;// S KLASSE
    
BYTE nLife 25;//Life is 25
    
CPetpPet pUser->GetPet();
    
    if(
pUser->HasPet())
    {
        if( 
pTarget->GetProp()->dwItemKind1 == IK1_GENERAL && pTarget->GetProp()->dwItemKind3 == IK3_EGG )
        {
            if( 
pUser->GetPet()->GetLevel() != PL_EGG )
            {
                
pUser->AddText"Only use with egg." );
                return 
FALSE;
            }

            switch( 
pMaterial->m_dwItemId )
            {
                case 
II_SYS_SYS_SCR_TOPPET_LION:
                
nKind 1;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_RABBIT:
                
nKind 2;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_TIGER:
                
nKind 0;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_UNICORN:
                
nKind 6;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_DRAGON:
                
nKind 4;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_EAGLE:
                
nKind 5;
                
bPet TRUE;
                break;
                case 
II_SYS_SYS_SCR_TOPPET_NINEFOX:
                
nKind 3;
                
bPet TRUE;
                break;

                default:
                break;
            }
            if( 
bPet == TRUE)
            {
                if( 
nLevel PL_S )
                return 
TRUE;

                
CItemElempItemElem2 pUser->GetPetItem();
                
pPet->SetKindnKind );
                
pPet->SetLevelnLevel );
                
pItemElem2->m_dwItemId pPet->GetItemId();
                
pPet->SetEnergypPet->GetMaxEnergy() );
                
DWORD dwExp pPet->GetMaxExp() * nExpRate 100;
                
pPet->SetExpdwExp );

                
//for( int i = 0; i < 6; i++ )
                
pPet->SetAvailLevel1);
                
pPet->SetAvailLevel2);
                
pPet->SetAvailLevel3);
                
pPet->SetAvailLevel4);
                
pPet->SetAvailLevel5);

                
pPet->SetLifenLife );

                if( 
pUser->HasPet() )
                
pUser->RemovePet();

                
g_dpDBClient.CalluspPetLogpUser->m_idPlayerpItemElem2->GetSerialNumber(), 0PETLOGTYPE_LEVELUPpPet ); //Log the change into database

                
pUser->AddPetpPetPF_PET_GET_AVAIL ); // 
                
g_UserMng.AddPetLeveluppUserMAKELONG( (WORD)pPet->GetIndex(), (WORD)pPet->GetLevel() ) );
                
pUser->UpdateItem( (BYTE)pMaterial->m_dwObjIdUI_NUM);//Remove the scroll
                //return TRUE;

            
}
        }
    }
    else
    {
        
pUser->AddDiagTextprj.GetTextTID_USE_PET_FOR_RISE ) );
        return 
TRUE;
    }
    return 
TRUE;

#ifdef __SYSSECURITY
}
catch(...)
{
    
Error("Error on Line %d in %s",__LINE__,__FILE__);
}
#endif
}
#endif __RAISED_PET 
Where should I put those codes sir ?

I'm really sorry but I don't know where :/

Thanks again.
yazuka21 is offline  
Old 06/05/2017, 19:33   #10
 
elite*gold: 0
Join Date: May 2017
Posts: 44
Received Thanks: 19
DPSrvr.cpp
xRageee is offline  
Old 06/07/2017, 05:05   #11
 
yazuka21's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
Quote:
Originally Posted by xRageee View Post
DPSrvr.cpp
How about definitiom at DPSrvr.h ?
yazuka21 is offline  
Reply


Similar Threads Similar Threads
About Raised Pet
04/12/2017 - Flyff Private Server - 2 Replies
Hi i have a question/problem, How to change the Pet level upgrade rate? cause in mine when i upgrade the pet to the pet tamer it automatically jumps to 1/3 then after 1/3/5 and gets perfect so easily.. i wonder where can i change the rates?
Raised Pet Problem
12/03/2012 - Flyff Private Server - 4 Replies
Every time I teleport with a raise pet, the neuz always crash.. I have been searching for hours now and I can't seem to find the right fix. Here's the log.. Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:00791871, CWorld::Process()+1217 byte(s), d:\build\program\_common\world.cpp, line 0918+0034 byte(s) - Registers EAX=0244A9E4 EBX=7EFDE000 ECX=0244A9E4 EDX=00000000 ESI=00000000 EDI=75501245 EBP=0018F9D8 ESP=0018F94C EIP=00791871 FLG=00010206...
Just raised FM 99 w/o bot OLO
06/06/2010 - Runescape - 1 Replies
FM 99 YAY!!!! ps: w/o = without



All times are GMT +1. The time now is 23:06.


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.