Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 08:28

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

Advertisement



[Help] deleting item on character

Discussion on [Help] deleting item on character within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
aoyamananami's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 11
[Help] deleting item on character

is there a code to delete the item on character?
or query on sql?

please someone help me
aoyamananami is offline  
Old 01/18/2018, 08:25   #2
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Item Wiper? or individual item only?
babyminion is offline  
Old 01/18/2018, 10:14   #3
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
Quote:
Originally Posted by aoyamananami View Post
is there a code to delete the item on character?
or query on sql?

please someone help me
Pretty annoying if you are still using the inventory strings.
There are plenty of ways, but the ITEM_REMOVE_TBL inside the CHARACTER_DBF might be your weapon of choice when it comes to difficulty.
xTwiLightx is offline  
Thanks
1 User
Old 01/18/2018, 10:28   #4
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
is this not what you are searching for?

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;
}
If i recall it correctly you only need the slot from the inventory where the item is located. I could be wrong though
raventh1984 is offline  
Thanks
1 User
Old 01/19/2018, 05:56   #5
 
aoyamananami's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 11
Quote:
Originally Posted by xTwiLightx View Post
Pretty annoying if you are still using the inventory strings.
There are plenty of ways, but the ITEM_REMOVE_TBL inside the CHARACTER_DBF might be your weapon of choice when it comes to difficulty.
thank you sir ill try this one!
aoyamananami is offline  
Old 01/27/2018, 11:06   #6
 
aoyamananami's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 11
Quote:
Originally Posted by xTwiLightx View Post
Pretty annoying if you are still using the inventory strings.
There are plenty of ways, but the ITEM_REMOVE_TBL inside the CHARACTER_DBF might be your weapon of choice when it comes to difficulty.
how can i delete the item sir? because after i close all of .exe from account to worldserver my character get auto close when i try to go ingame.
aoyamananami is offline  
Old 03/07/2018, 10:14   #7
 
aoyamananami's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 11
Quote:
Originally Posted by raventh1984 View Post
is this not what you are searching for?

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;
}
If i recall it correctly you only need the slot from the inventory where the item is located. I could be wrong though
i want to know how to use this code ingame .
aoyamananami is offline  
Old 03/07/2018, 11:31   #8
 
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
Add it into your source first?
KingKeesie is offline  
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
help deleting character from 5165?
03/22/2012 - CO2 Private Server - 19 Replies
public static void DeleteCharacter(string Name) { File.Delete(@"C:\OldCODB\Users\Characters\&qu ot; + Name + ".chr"); MySqlCommand Cmd = new MySqlCommand("UPDATE accounts SET EntityName = '' WHERE EntityName = '" + Name + "'", DatabaseConnection.Connection); Cmd.ExecuteNonQuery(); } Is the code. "The name 'DatabaseConnection' does not exist in the current context." any help would be appreciated :D
[question] deleting character
02/01/2009 - Dekaron Private Server - 4 Replies
How to delete character? when i press delete I need to write something. What must be written in there? thx
Anyway to bypass the warehouse for deleting a character
09/24/2007 - Conquer Online 2 - 9 Replies
as the title says is there any known way of bypassing the warehouse to delete a character without the warehouse pass? or a program to do so, thanks :)



All times are GMT +1. The time now is 08:28.


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.