Register for your free account! | Forgot your password?

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

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

Advertisement



ClearInventory function not deleting all pets

Discussion on ClearInventory function not deleting all pets within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
ClearInventory function not deleting all pets

Can you tell me how to make all my pets inside my inventory using the function clear inventory function? The problem is it's only deleting the general items.
Thanks in advance
elitemember21 is offline  
Old 01/31/2017, 19:31   #2

 
elite*gold: 353
Join Date: Jan 2013
Posts: 923
Received Thanks: 616
here:
Change This :
Code:
BOOL TextCmd_InvenRemove( CScanner& scanner )       
{ 
#ifdef __WORLDSERVER
	CUser* pUser = (CUser*)scanner.dwValue;
	if( IsValidObj( pUser ) )
	{
		int nSize = pUser->m_Inventory.GetMax();
		for( int i = 0 ; i < nSize; ++i )
		{
			CItemElem* pItemElem = pUser->m_Inventory.GetAtId( i );
			if( IsUsableItem( pItemElem ) && !pUser->m_Inventory.IsEquip( pItemElem->m_dwObjId ) && !pItemElem->IsPet() && !pItemElem->IsEatPet() )
				pUser->UpdateItem( i, UI_NUM, 0 );
		}
	}
#endif	// __WORLDSERVER
	return TRUE;
}
to:
Code:
BOOL TextCmd_InvenRemove( CScanner& scanner )       
{ 
#ifdef __WORLDSERVER
	CUser* pUser = (CUser*)scanner.dwValue;
	if( IsValidObj( pUser ) )
	{
		int nSize = pUser->m_Inventory.GetMax();
		for( int i = 0 ; i < nSize; ++i )
		{
			CItemElem* pItemElem = pUser->m_Inventory.GetAtId( i );
			if( IsUsableItem( pItemElem ) && !pUser->m_Inventory.IsEquip( pItemElem->m_dwObjId ) )
				pUser->UpdateItem( i, UI_NUM, 0 );
		}
	}
#endif	// __WORLDSERVER
	return TRUE;
}
Have Fun ^^
Kiseku is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Request help! Deleting NPC & deleting items from NPC
07/28/2016 - SRO Private Server - 4 Replies
Hello Epvpers, I've got a question,, I'd like to know how to delete NPC & deleting items from NPC. I've already tried to search the files i should needed with how to add npc tutorials, but i still got an error when i launch my client. Can somebody explain me which files i must edit for deleting a NPC & NPC item properly? Thanks in advance!
[2 Questions] Deleting EU - Deleting Skills
06/26/2015 - SRO Private Server - 4 Replies
How can i disable creating eu chars WITHOUT disabling cosntaniple area on BR files ? I need to make the max level cap 80(i think i need help about it either i need to make required exp point to level up to 81, 9999999999 but from where ?) but first i need to delete 80 - 100 level skills on media pk2; from where and how ? Thanks
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Running Function 2 after Function 1 finished
09/15/2013 - AutoIt - 3 Replies
Hey, its me again. Im stuck on a problem since yesterday and as much as i hate to ask for help, i really dont know what else to try. I want Function 2 to run after Function 1 has finished. I tried GuiCtrlSetOnEvent and MsgLoop, but i dont really understand it. I tried to read tutorials but they didnt help at all. The line that are underline is what im talking about. I want gamestart() to run first and when its finished, i want iniviteteam() to run. #AutoIt3Wrapper_UseX64=n...
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack



All times are GMT +2. The time now is 05:06.


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.