Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Flyff › Flyff Private Server
You last visited: Today at 01:47

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

Advertisement



New Stackable Amplis

Discussion on New Stackable Amplis within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1

 
Crowley�'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 1,335
Received Thanks: 505
New Stackable Amplis

Hey Leute, habe folgendes Problem bei diesen defines
Code:
//	mulcom	END100125	이벤트용 리스킬 및 이벤트용 리스테트 사용 내역에 대한 로그 추가
							//////////////////////////////////////////////////////////////////////////
						}
					}
				}
				break;
#ifdef __NEW_PROP_PARAMETER
			case IK2_ONCE:
				{
					int nResult = 0;
					nResult = DoUseItemOnce( pItemProp, pItemElem, nPart );
					{
						if( 0 < nResult )
						{
							if( nResult == 2 )
							{
								((CUser*)this)->AddDefinedText( TID_GAME_LIMITED_USE, "" ); // 사용중이어�* 사용할수 없음
							}
							else if( nResult == 3 )
							{
								((CUser*)this)->AddDefinedText( TID_GAME_NOTOVERLAP_USE, "" ); // 이 아이템과는 중복하여 사용할 수 없습니다
							}
							return FALSE;
						}
					}
				}
				break;
			case IK2_KEEP:
				{
#ifndef __NEW_STACKABLE_AMPS
					int nResult = 0;
					nResult = DoUseItemSystem( pItemProp, pItemElem, nPart );
					{
						if( 0 < nResult )
						{
							if( nResult == 2 )
							{
								((CUser*)this)->AddDefinedText( TID_GAME_LIMITED_USE, "" ); // 사용중이어�* 사용할수 없음
							}
							else if( nResult == 3 )
							{
								((CUser*)this)->AddDefinedText( TID_GAME_NOTOVERLAP_USE, "" ); // 이 아이템과는 중복하여 사용할 수 없습니다
							}
							return FALSE;
						}
					}
#else //  __NEW_STACKABLE_AMPS
					int nResult = 0;
					nResult = DoUseItemKeep( pItemProp, pItemElem, nPart );
					{
						if( 0 < nResult )
						{

							if( nResult == 1 )
							{
								CString str;
								str.Format( "%d - %d", pItemProp->nMinLimitLevel, pItemProp->nMaxLimitLevel );
								((CUser*)this)->AddDefinedText( TID_GAME_EXP_NOTUSELEVEL, "\"%s\"", str ); // 
								return FALSE;
							}
							else if( nResult == 2 )
							{
								((CUser*)this)->AddDefinedText( TID_GAME_LIMITED_USE, "" ); // 사용중이어�* 사용할수 없음
								return FALSE;
							}
							else if( nResult == 3 )
							{
								CString str;
								str.Format( "%d", GetLevel());
								CString szMaxBuf;
								szMaxBuf.Format( "%d", pItemProp->nMaxDuplication );
								((CUser*)this)->AddDefinedText( TID_GAME_EXP_NOTUSE, "\"%s\" \"%s\"", str, szMaxBuf ); // 
								//((CUser*)this)->AddDefinedText( TID_GAME_NOTOVERLAP_USE, "" ); // 이 아이템과는 중복하여 사용할 수 없습니다
								return FALSE;
							}
							else if( nResult == 4 )
							{
								int nExtraEXP = 0;
								for( MAPBUFF::iterator i = m_buffs.m_mapBuffs.begin(); i != m_buffs.m_mapBuffs.end(); ++i )
								{
									ItemProp* pAmpProp = prj.GetItemProp( i->second->GetId());

									if( pAmpProp )
									{
										if( pAmpProp->dwItemKind3 == IK3_EXP_RATE )
										{
											nExtraEXP += pAmpProp->nEffectValue;
										}
									}
								}
								CString strTemp;
								strTemp.Format( "%s %d%% %s", prj.GetText( TID_GAME_EXPITEM_TOOLTIP ), nExtraEXP, prj.GetText( TID_GAME_EXPITEM_TOOLTIP1 ) );
								((CUser*)this)->AddText( strTemp ); // 
							}
						}
					}
#endif // __NEW_STACKABLE_AMPS
				}
				break;
#endif // __NEW_PROP_PARAMETER

Code:
#ifdef __NEW_PROP_PARAMETER
int CMover::DoUseItemOnce( ItemProp* pItemProp, CItemElem* pItemElem, int nPart)
{
	int nResult = 0;
#ifdef __WORLDSERVER
	if( HasBuffByIk3( pItemProp->dwItemKind3 ))
		nResult = 2;
	else
		DoApplySkill( (CCtrl*)this, pItemProp, NULL );
#endif // __WORLDSERVER
	return nResult;
}
int CMover::DoUseItemKeep( ItemProp* pItemProp, CItemElem* pItemElem, int nPart)
{
#ifdef __WORLDSERVER
#ifdef __NEW_STACKABLE_AMPS
// First Check how many Amps are currently active.
	int nAmount = 0;

	for( MAPBUFF::iterator i = m_buffs.m_mapBuffs.begin(); i != m_buffs.m_mapBuffs.end(); ++i )
	{
		ItemProp* pItemProp = prj.GetItemProp( i->second->GetId());

		if( pItemProp )
		{
			if( pItemProp->dwItemKind3 == IK3_EXP_RATE )
			{
				nAmount++;
			}
		}
	}
// Cant hold more Amps
	if( nAmount >= MAX_AMP_STACK_COUNT )
	{
		return 2;
	}
// Check Level
	if( GetLevel() < pItemProp->nMinLimitLevel || GetLevel() > pItemProp->nMaxLimitLevel )
	{
		return 1;
	}
// Can hold more Amps. Try activating scroll
	if( HasBuff( BUFF_ITEM, (WORD) ( pItemProp->dwID )))
	{
		MAPAMPSTORE::iterator i	= prj.m_mapAmpStore.find( pItemProp->dwID );
		if( i != prj.m_mapAmpStore.end() )
		{
			AMP_STORE_INFO* info = i->second;
			if( HasBuff( BUFF_ITEM, (WORD)(info->dwIDSecond)))
			{
				if( HasBuff( BUFF_ITEM, (WORD)(info->dwIDThird)))
				{
					if( HasBuff( BUFF_ITEM, (WORD) (info->dwIDFourth)))
					{
						if( HasBuff( BUFF_ITEM, (WORD) (info->dwIDFifth)))
						{
							return 2;
						}
						else
						{
							if( pItemProp->nMaxDuplication >= 5 )
							{
								ItemProp* pAmpProp = prj.GetItemProp( info->dwIDFifth );
								DoApplySkill( (CCtrl*)this, pAmpProp, NULL );
								return 4;
							}
						}
					}
					else
					{
						if( pItemProp->nMaxDuplication >= 4 )
						{
							ItemProp* pAmpProp = prj.GetItemProp( info->dwIDFourth );
							DoApplySkill( (CCtrl*)this, pAmpProp, NULL );
							return 4;
						}
					}
				}
				else
				{
					if( pItemProp->nMaxDuplication >= 3 )
					{
						ItemProp* pAmpProp = prj.GetItemProp( info->dwIDThird );
						DoApplySkill( (CCtrl*)this, pAmpProp, NULL );
						return 4;
					}
				}
			}
			else
			{
				if( pItemProp->nMaxDuplication >= 2 )
				{
					ItemProp* pAmpProp = prj.GetItemProp( info->dwIDSecond );
					DoApplySkill( (CCtrl*)this, pAmpProp, NULL );
					return 4;
				}
			}
		}
	}
	else
	{
//		DoApplySkill( (CCtrl*)this, pItemProp, NULL );
		Error( "%d", (DWORD)pItemProp->dwSkillTime );
		AddBuff( BUFF_ITEM, (WORD)(pItemProp->dwID), 0, pItemProp->dwSkillTime, GetId() );
		return 4;
	}
#endif // __NEW_STACKABLE_AMPS
#endif // __WORLDSERVER
	return 3;
}
#endif // __NEW_PROP_PARAMETER
wollte fragen ob mir wer eben die __NEW_PROP_PARAMETER defines entfernen kann, da ich diese nicht use und so etliche errors bekomme.
schonmal danke f�r euere hilfe.
mfg. Crowley
Crowley� is offline  
Old   #2
 
elite*gold: 0
Join Date: Apr 2012
Posts: 169
Received Thanks: 96
speicher das hier

Code:
FINDSTR /s "__NEW_PROP_PARAMETER" *.* > 1.txt
als .bat ab

und tuh die batch dazei in deinen program ordner der source

�ffne die batchdatei und warte bis die batchdatei sich geschlossen hat

dan m�sste eine datei namens 1.txt dort sein, und dort stehen alle eintr�ge und

alle dateien in dennen der define ist
.Pixelhut� is offline  
Old   #3

 
Crowley�'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 1,335
Received Thanks: 505
danke ^^

hat wer vlt noch eine andere l�sung?

ps: hab es grade mal so eingef�gt und new prop parameter ind world une neuz ausgeklammert.
es kahmen keine errors. nur das prob ist das ich nun keine amplis mehr usen kann
Crowley� is offline  
Old   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 158
Received Thanks: 256
strg+f
yannick2008 is offline  
Old   #5

 
Crowley�'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 1,335
Received Thanks: 505
Quote:
Originally Posted by yannick2008 View Post
strg+f
ja schon klar aber ich weis nicht welche eintr�ge wozu geh�ren. Deswegen w�re es nett wenn mir wer die cleanen amplis eintr�ge geben k�nnte.
au�erdem habe ich in der neuz, world, databaseserver new propparameter ausgeklammert und ich kann ig keine amplis benutzen.
Crowley� is offline  
Old   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 158
Received Thanks: 256
Wenn du es deaktivierst geht nat�rlich ncih die neuen amplis LOL weil sie werte aus den neuen eintr�gen benutzen
yannick2008 is offline  
Old   #7

 
Crowley�'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 1,335
Received Thanks: 505
Quote:
Originally Posted by yannick2008 View Post
Wenn du es deaktivierst geht nat�rlich ncih die neuen amplis LOL weil sie werte aus den neuen eintr�gen benutzen
kann die wer vlt umschreiben f�r mich?
Crowley� is offline  
Old   #8
 
Andrej-Delany's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 235
Received Thanks: 123
Verstehe ich das gerade richtig du hast jetzt via source die neuen Amplis Deaktiviert und wunderst dich warum sie nicht mehr gehen und willst jetzt auch noch das der Code so umgeschrieben wird das sie wieder gehen?
Andrej-Delany is offline  
Old   #9

 
Crowley�'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 1,335
Received Thanks: 505
Quote:
Originally Posted by Andrej-Delany View Post
Verstehe ich das gerade richtig du hast jetzt via source die neuen Amplis Deaktiviert und wunderst dich warum sie nicht mehr gehen und willst jetzt auch noch das der Code so umgeschrieben wird das sie wieder gehen?
nein...... ich habe die neuen amplis geadded. ich habe die neuen propparameter //defined da ich ja die alten nutze......
mir wurde vorhin gesagt das die stackable amplis nicht gehen ohne die neuen parameter da der code ben�tigt wird der in den new propparameter defines drinne is.
deswegen wollte ich fragen ob es wer auf die alten umschreiben kann.
Crowley� is offline  
Reply


Similar Threads Similar Threads
VK: Devos 12 Q Amplis(1Tag) 8 XR Amplis(1Tag) und 66 ES Amplis
06/22/2012 - Flyff Trading - 0 Replies
Hallo :) Wie es shcon im titel steht verkaufe ich auf Devos 8Xr und 66 ES amps Kann sie euch gerne ingame zeigen Fals interese , bitte per PM melden
Chopper stackable?
08/17/2010 - World of Warcraft - 8 Replies
Mal eine Frage: Kann man Chopper stacken? In English: Can I stack Choopers?
Stackable eps cards help
07/11/2010 - EO PServer Hosting - 1 Replies
Can some one tell me the code for the stack able 2700 ep card thank you i will thank you when u tell me !! :) thank you all and if any one can tell me how to make my server start with 1 click of a button thank you !!! love u all for helping me! XD
Stackable eps, Help Plz
09/05/2009 - EO PServer Hosting - 5 Replies
anybody have a guide to adding stackable eps, plz dont say search because they all want to use there itemtype.dat a small guide would be nice and yes i can hex edit the itemtype, if any 1 can help plz reply, Funhacker u told me before in private message but i deleted it by accident lmao.:rolleyes:
Stackable buffers
05/02/2006 - WoW Exploits, Hacks, Tools & Macros - 0 Replies
It would seem that some buffers disappear before their duration is done while other buffers can stack. If you do something to your weapon, such as use a sharpening stone on it or put some poision on it and then enter an instance, that buffer will disappear. Minimum requirements: A level 20 paladin At least 10 talents in the holy talent tree, and 1/2 talents in the Improved Lay on Hands. Rank one of lay on hands or a higher rank. This spell can be learned at level 12+



All times are GMT +1. The time now is 01:47.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.