Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 17:42

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

Advertisement



Drops direkt mit awake

Discussion on Drops direkt mit awake within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 2
Join Date: Mar 2009
Posts: 338
Received Thanks: 63
Drops direkt mit awake

Weiß einer wo man in der Source ändert das das item was man droppt direkt ein awa hat?
Weiß einer wie es geht wenn ja würde mich über jede hilfe freuen
Spraystar is offline  
Old 05/19/2016, 15:48   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 333
Received Thanks: 284
Such die Stelle, an der das Item gedroppt wird und füg den Code um es zu erwecken ein.
Nortix is offline  
Old 07/15/2016, 12:38   #3
 
elite*gold: 2
Join Date: Mar 2009
Posts: 338
Received Thanks: 63
Push
Spraystar is offline  
Old 07/15/2016, 12:45   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 333
Received Thanks: 284
Hast du überhaupt irgendwelche Anstalten gemacht um das Problem selbst zu lösen? Scheinbar hast du keine Sekunde damit verbracht selbst nachzuschauen, obwohl du sogar einen Tipp bekommen hast.
Nortix is offline  
Thanks
4 Users
Old 07/15/2016, 17:21   #5
 
elite*gold: 2
Join Date: Mar 2009
Posts: 338
Received Thanks: 63
Doch habe ich sonst würde ich nicht Pushen guck mal wie lange das her ist da habe ich schon geschaut <.<
Spraystar is offline  
Old 07/15/2016, 18:21   #6
 
Mike Oxmaul's Avatar
 
elite*gold: 50
Join Date: Feb 2014
Posts: 288
Received Thanks: 245
Ist nicht getestet, aber compiled ohne errors
mover.cpp
Code:
			if( xRandom( 100 ) < fItemDropRate )	// ¾ÆÀÌÅÛÀ» µå·ÓÇÒÁö ¸»Áö °áÁ¤. ·¹º§Â÷°¡ ¸¹ÀÌ ³ª¸é ¾Æ¿¹ ¶³¾îÆ®¸®Áö ¾Ê´Â´Ù.
			{
				int nSize	= lpMoverProp->m_DropItemGenerator.GetSize();
				int nNumber	= 0;
				DROPITEM* lpDropItem;
		
				for( int i = 0; i < nSize; i++ )
				{
					if( ( lpDropItem = lpMoverProp->m_DropItemGenerator.GetAt( i, bUnique, GetPieceItemDropRateFactor( pAttacker ) ) ) != NULL )
					{
						if( lpDropItem->dtType == DROPTYPE_NORMAL )
						{
#ifdef __NO_DROP_CRASH
							ItemProp * pProp = prj.GetItemProp(lpDropItem->dwIndex);
							if(!pProp)
							{
								Error("CMover::DropItemByDied() [ItemID:%d][MoverID:%d]",lpDropItem->dwIndex,GetProp()->dwID);
								continue;
							}
#endif
							DWORD dwNum		= lpDropItem->dwNumber;
							if(  dwNum == (DWORD)-1 )
								dwNum	= 1;

							if( lpMoverProp->dwFlying )
							{
								CItemElem itemElem;
								itemElem.m_dwItemId	= lpDropItem->dwIndex;
								itemElem.m_nItemNum	= (short)( xRandom( dwNum ) + 1 );
								itemElem.SetAbilityOption( lpDropItem->dwLevel );
								
								if( pAttacker->CreateItem( &itemElem ) == TRUE )
								{	// log
									ItemProp* pItemProp	= itemElem.GetProp();
									if( pItemProp )
									{
										( (CUser*)pAttacker )->AddDefinedText( TID_GAME_REAPITEM, "\"%s\"", pItemProp->szName );
										if( pItemProp->dwItemKind1 == IK1_WEAPON || pItemProp->dwItemKind1 == IK1_ARMOR || ( pItemProp->dwItemKind1 == IK1_GENERAL && pItemProp->dwItemKind2 == IK2_JEWELRY ) )
										{
											switch( pItemProp->nLog )
											{
												case 1:		g_dpDBClient.SendLogUniqueItem2( pAttacker, itemElem.GetProp(), itemElem.GetAbilityOption() );	break;
												case 2:		g_dpDBClient.SendLogUniqueItem2( pAttacker, itemElem.GetProp(), 200 );	break;
												case 3:		g_dpDBClient.SendLogUniqueItem2( pAttacker, itemElem.GetProp(), 100 );	break;
											}
										}
									}
									if( lpDropItem->dwNumber != (DWORD)-1 )
										nNumber++;
									if(  (DWORD)( nNumber ) >= lpMoverProp->m_DropItemGenerator.m_dwMax )
										break;
								}
								continue;
							}
							CItemElem* pItemElem	= new CItemElem;
							pItemElem->m_dwItemId	= lpDropItem->dwIndex;
							pItemElem->m_nItemNum	= (short)( xRandom( dwNum ) + 1 );
							

							ItemProp* pItemProp		= pItemElem->GetProp();
							if( pItemProp )
							{
								pItemElem->m_nHitPoint	= pItemProp->dwEndurance;
								pItemElem->SetRandomOpt( CRandomOptItemGen::GetInstance()->GenRandomOptItem( lpMoverProp->dwLevel, (FLOAT)nProbability / 100.0f, pItemProp, lpMoverProp->dwClass ) );
							}
							pItemElem->SetAbilityOption( lpDropItem->dwLevel );		// Ãß°¡ ´É·ÂÄ¡ +1, +2 °°Àº°Å.
							pItemElem->SetSerialNumber();
#ifdef __DROP_AWAKE
							int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind(pItemElem);
							if (nRandomOptionKind >= 0)	// ¾ÆÀÌÅÛ °¢¼º, ¿©½ÅÀÇ ÃູÀÌ °¡´ÉÇÑ ´ë»ó
							{
								g_xRandomOptionProperty->InitializeRandomOption(pItemElem->GetRandomOptItemIdPtr());
								g_xRandomOptionProperty->GenRandomOption(pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts, FALSE, pItemElem);
							}
#endif
Mike Oxmaul is offline  
Old 07/15/2016, 19:08   #7
 
elite*gold: 2
Join Date: Mar 2009
Posts: 338
Received Thanks: 63
Bei mir kommen beim compilen error
\_Common\Mover.cpp(8453): error C2660: 'CRandomOptionProperty::GenRandomOption' : function does not take 5 arguments

hier stimmt was nicht
g_xRandomOptionProperty->GenRandomOption(pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts, FALSE, pItemElem);
Spraystar is offline  
Old 07/15/2016, 20:46   #8
 
Mike Oxmaul's Avatar
 
elite*gold: 50
Join Date: Feb 2014
Posts: 288
Received Thanks: 245
Ach ja hab Vergessen das bei mir 6 awaks sind
Mike Oxmaul is offline  
Old 05/08/2019, 08:35   #9
 
elite*gold: 0
Join Date: Sep 2014
Posts: 1
Received Thanks: 0
Where do you put these codes?
magisquam is offline  
Old 05/08/2019, 10:52   #10
 
elite*gold: 60
Join Date: Sep 2017
Posts: 424
Received Thanks: 138
Quote:
Originally Posted by magisquam View Post
Where do you put these codes?
Quote:
Originally Posted by Nortix View Post
Such die Stelle, an der das Item gedroppt wird und füg den Code um es zu erwecken ein.
There.
Dr. Peacock is offline  
Reply


Similar Threads Similar Threads
Please Help - How to add awake system like this /awake , /awa or /awakening!
04/30/2017 - Flyff Private Server - 8 Replies
How to add awake system like this /awake , /awa or /awakening!
[Selling] Awake Service / Awake weapons
11/20/2015 - Flyff Trading - 2 Replies
deleted
WTB rare drops Mid Uth (dragon,worm,glacier giant , taj drops)
09/08/2011 - Trading - 0 Replies
as title says PM me what you have got and how much u want for it. Ta . Paying Paypal or Plats in game.
[GM]Code: Reich direkt wechseln / Gilde direkt...
10/14/2010 - Metin2 Private Server - 4 Replies
Hey Leuts. Habe ne frage bin aufn P server.. und wollte fragen obs geht direkt des reich zu wechseln mitn code oder halt die gilde direkt zu wechseln ohne 1 tag zu warten -.- Pls Antwort



All times are GMT +1. The time now is 17:42.


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.