Register for your free account! | Forgot your password?

You last visited: Today at 07:39

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

Advertisement



Expired Item

Discussion on Expired Item within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Expired Item

Hi,

I just wanted to know to make expired item cannot be wear/use again?
Because I set the days for expiration of the item via box, but after a the expiration they can still wear it (But no effect anymore) I just wanted to know how can I make it Auto Unwear and cannot be use/Wear again?

Thank you more power!
Yolo143 is offline  
Old 08/30/2017, 20:05   #2
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
Hi,

as long as you set the CItemElem::expired Flag correctly ( which is used for this kind of stuff ) you can simply add:

Code:
SendDoEquip( pItemElem, pItemProp->dwParts );
in Function CDPClient::OnJoin( CAr & ar ) under:

Code:
sprintf( lpString, prj.GetText( TID_GAME_ENDUSE ), pItemProp->szName );
g_WndMng.PutString( lpString, NULL, prj.GetTextColor( TID_GAME_ENDUSE ) );
and the item will be unequipped if expired on login.

I didn't checked what happens if the item expires and the user is logged in - maybe it gets unequipped by default but if not, you have to loop the items in mover process or something like that ( would acually have a hard impact on performance i guess as long as you dont send a packet from client side if the item expires ).
iSynaptic is offline  
Thanks
1 User
Old 08/31/2017, 02:40   #3
 
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
How about making it auto delete? do you have an idea for that? I mean if the item is expired the item will be automatically deleted? Thank you for your response!

EDIT:

they only automatically remove from being wear but they can still use it
Yolo143 is offline  
Old 09/01/2017, 06:56   #4
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
Thats not possible without rewriting some other systems as well. The Pet System for example also uses the "expired" flag for pets that are dead and it would be a bad desicion to simply remove every expired item by default. There are may also other systems which use expired items in a important way - didnt researched it much.
iSynaptic is offline  
Old 09/01/2017, 14:22   #5
 
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Quote:
Originally Posted by iSynaptic View Post
Thats not possible without rewriting some other systems as well. The Pet System for example also uses the "expired" flag for pets that are dead and it would be a bad desicion to simply remove every expired item by default. There are may also other systems which use expired items in a important way - didnt researched it much.
I see

I want to know how can I fix cannot equip expired item because its not working on me they can still wear it

Can you take alook here if this is correct or not :3 and also the auto remove item is only working on fashion part its not working on weapons please help me

Code:
void CDPClient::OnJoin( CAr & ar )
{
	CNetwork::GetInstance().OnEvent( CACHE_ACK_JOIN );
	
	// ata2k - (2)시간 해제
	g_Neuz.m_dwTimeOutDis = 0xffffffff;

	CWndBase* pWndBase	= g_WndMng.GetWndBase( APP_SELECT_CHAR );
	if( pWndBase )
		( (CWndSelectChar*)pWndBase )->Destroy();
	g_WndMng.CloseMessageBox();

	fJoin	= TRUE;
	OnSnapshot( ar );
	fJoin	= FALSE;

	CMover* pMover	= CMover::GetActiveMover();
	if( pMover )
	{
		time_t	tNULL	= time_null();
		for( int i = 0; i < pMover->m_Inventory.GetMax(); i++ )
		{
			CItemElem* pItemElem	= pMover->m_Inventory.GetAtId( i );
			if( pItemElem && pItemElem->m_dwKeepTime )
			{
				char lpString[260]	= { 0, };
				ItemProp* pItemProp		= pItemElem->GetProp();
				if( pItemElem->IsFlag( CItemElem::expired ) )
				{
					sprintf( lpString, prj.GetText( TID_GAME_ENDUSE ), pItemProp->szName );
					g_WndMng.PutString( lpString, NULL, prj.GetTextColor( TID_GAME_ENDUSE ) );
					SendDoEquip( pItemElem, pItemProp->dwParts );

				}
				else
				{
					time_t t	= pItemElem->m_dwKeepTime - tNULL;
					if( t > 0 )
					{
						CTimeSpan time( t );
						if( time.GetDays() )
						{
							sprintf( lpString, prj.GetText( TID_GAME_DAYUSE ), pItemProp->szName, static_cast<int>(time.GetDays() + 1) );
							g_WndMng.PutString( lpString, NULL, prj.GetTextColor( TID_GAME_DAYUSE ) );
						}
						else
						{
							sprintf( lpString, prj.GetText( TID_GAME_TIMEUSE ), pItemProp->szName, time.GetHours() + 1 );
							g_WndMng.PutString( lpString, NULL, prj.GetTextColor( TID_GAME_TIMEUSE ) );
						}
					}
					else
					{
						sprintf( lpString, prj.GetText( TID_GAME_TIMEUSE ), pItemProp->szName, 0 );
						g_WndMng.PutString( lpString, NULL, prj.GetTextColor( TID_GAME_TIMEUSE ) );
					}
				}
			}
		}
	}

#ifdef __GAME_GRADE_SYSTEM
	g_Neuz.m_dwTimeGameGradeMarkRendering = g_tmCurrent + SEC( CNeuzApp::GAME_GRADE_MARK_RENDERING_INTERVAL_SECOND );
#endif // __GAME_GRADE_SYSTEM

}
Yolo143 is offline  
Old 09/02/2017, 06:46   #6
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
If this dont work, there is simply no m_dwKeepTime set on the items you provide.
I tested it with a 7 Days CS Set - Roled my Server to 7 days in future and the items got unequiped on login, so it worked there.
iSynaptic is offline  
Old 09/03/2017, 01:25   #7
 
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
There is I set it on 3 days (weapon) but the only item that is being remove is only the fashion party only and also even if its not expired the item will remove after you log-in again xD
Yolo143 is offline  
Old 09/03/2017, 02:15   #8
 
iSynaptic's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 195
Received Thanks: 65
If you changed the Server Settings, you also have to restart the DB Server, not only the World Server. Just create a 7 Days Set, equip it and relog and you will see that it dont get unequiped ( at least on my server ).
iSynaptic is offline  
Old 09/03/2017, 06:40   #9
 
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
So I think there's something wrong with my files now, yup I restarted my server but still got the same ending btw thanks again!
Yolo143 is offline  
Reply


Similar Threads Similar Threads
Cirno's hack trigger expired not yet its the web host that is expired Update
01/20/2017 - Grand Chase Hacks, Bots, Cheats & Exploits - 2 Replies
While mines did worked as an alternative fix to the Jan of 2017 it seems mines having tech issues the hack trigger works the web host has now expired don't give up hope not yet One of my friends is going to decode hack trigger and recode it with an working site Problem has been detected : Large number of feedback states HackTrigger broken either patched its not actually patched as in PATCHED the web host that had hack trigger operational has officially expired the webmaster has...
..Expired please download a new copy...
04/21/2007 - Silkroad Online - 11 Replies
I'm using 1.54 +easter SM, recently i'm reciving this kind of error, and i know most of you already aware of it and managed to fix it at your own client. I've tried to download Trial Reset but i cant run it, somehow it always shows me the error " this software shutdown, if you were in any procces... the usual Windows error". I tried to download it from many sites, even downloaded from japanese one 0.o and im still getting this error .. So my main question is; Is there ANY other ways to...
Expired Edition.
04/14/2007 - Silkroad Online - 11 Replies
Ok, my sro was working fine, was happily botting away then i logged out and now i cant get back in because of the expired issue - AGAIN! I think we need a new version, it seems Easter SM is now old.
Expired Issue
04/10/2007 - Silkroad Online - 4 Replies
Sorry to open this issue agai as i am unable to use the trial-reset 3.0 RC7. So i am unable to detect the registry. Anyone can help me? or intro an other spyware to detect this?



All times are GMT +1. The time now is 07:41.


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.