Register for your free account! | Forgot your password?

You last visited: Today at 01:55

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

Advertisement



[Mini-Release] Drop awake staff

Discussion on [Mini-Release] Drop awake staff within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
Steffen Tequila's Avatar
 
elite*gold: 51
Join Date: May 2009
Posts: 338
Received Thanks: 76
[Mini-Release] Drop awake staff

Jow, wers' gebrauchen kann. wollt ich mal nutzen, aber kam doch nicht dazu.
Ihr erweckt damit fallen gelassene items von montser automatisch.

Etwas abgeänderter Code für 3line Awakes weil der andere nicht funkt auf 3lines.
Für die, die keine ahnung haben, der funkt 100% auf 3lines. ;-)

Ps: is' halt nur eine Kleinigkeit geändert, also nix großes.

Der Code ist unten zu finden, soll nur Orientierung sein.

Mover.cpp,
BOOL CMover :: DropItem,

Code:
							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_SHIVA
							int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind(pItemElem);
							if (nRandomOptionKind >= 0)	
							{
								g_xRandomOptionProperty->InitializeRandomOption(pItemElem->GetRandomOptItemIdPtr());
								g_xRandomOptionProperty->GenRandomOption(pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts, FALSE);
							}
#endif __DROP_AWAKE_SHIVA
greez stevyboy
Steffen Tequila is offline  
Thanks
3 Users
Old 02/19/2020, 03:38   #2
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
you can also random just about anything that drops if you want to.
SetAbilityOption
SetPiercingSize
SetPiercingItem
SetUltimatePiercingSize
m_bItemResist
m_nResistAbilityOption
SetRandomOpt
SetLevelDown
Avalion is offline  
Thanks
7 Users
Old 02/22/2020, 02:39   #3
 
Hyellow's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
Quote:
Originally Posted by Avalion View Post
you can also random just about anything that drops if you want to.
SetAbilityOption
SetPiercingSize
SetPiercingItem
SetUltimatePiercingSize
m_bItemResist
m_nResistAbilityOption
SetRandomOpt
SetLevelDown
Its so good to see you active again. <3
Hyellow is offline  
Old 02/26/2020, 17:47   #4
 
elite*gold: 0
Join Date: Apr 2019
Posts: 81
Received Thanks: 7
Quote:
Originally Posted by Steffen Tequila View Post
Jow, wers' gebrauchen kann. wollt ich mal nutzen, aber kam doch nicht dazu.
Ihr erweckt damit fallen gelassene items von montser automatisch.

Etwas abgeänderter Code für 3line Awakes weil der andere nicht funkt auf 3lines.
Für die, die keine ahnung haben, der funkt 100% auf 3lines. ;-)

Ps: is' halt nur eine Kleinigkeit geändert, also nix großes.

Der Code ist unten zu finden, soll nur Orientierung sein.

Mover.cpp,
BOOL CMover :: DropItem,

Code:
							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_SHIVA
							int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind(pItemElem);
							if (nRandomOptionKind >= 0)	
							{
								g_xRandomOptionProperty->InitializeRandomOption(pItemElem->GetRandomOptItemIdPtr());
								g_xRandomOptionProperty->GenRandomOption(pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts, FALSE);
							}
#endif __DROP_AWAKE_SHIVA
greez stevyboy

is this a code for a drop item with awakes am i right sir?
IFlyffMc is offline  
Old 02/27/2020, 14:53   #5



 
- DK's Avatar
 
elite*gold: 7
Join Date: Sep 2012
Posts: 4,466
Received Thanks: 3,218
Quote:
Originally Posted by IFlyffMc View Post
is this a code for a drop item with awakes am i right sir?
Thats right.
- DK is offline  
Thanks
1 User
Old 04/09/2020, 14:46   #6
 
elite*gold: 0
Join Date: Feb 2018
Posts: 32
Received Thanks: 3
After adding your code, often times Items are dropping without Awakening .. Can you tell me why ?
TestUrSkillz is offline  
Reply


Similar Threads Similar Threads
B> Ele Gear Lv 105+ 10 | Anc Staff With Good Awake L\O
10/19/2017 - Flyff Trading - 1 Replies
Buying Good Elementor +10 Set (lvl 105) and Anc Staff with gOod Awake L\o pls or Skype name (Clockworks)
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
BUYING ANCIENT STAFF WITH GOOD AWAKE
10/30/2015 - Flyff Trading - 1 Replies
BUYING ANY+ ANCIENT STAFF WITH GOOD AWAKE..CLOCKWORKS SERVER (EU) PAYING: PAYPAL / PENYA /WCOINS... LEAVE INFO AND OFFER... push.... up...
[WTB] unded mini ghostly/mini panada/mini polar bear
05/07/2012 - Guild Wars Trading - 2 Replies
Hi, Would like to buy one of those pets. Make me an offer if you got one. Thanks.



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


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.