|
You last visited: Today at 18:06
Advertisement
How i can put /awak comand for normal players?
Discussion on How i can put /awak comand for normal players? within the Flyff Private Server forum part of the Flyff category.
09/05/2017, 15:04
|
#1
|
elite*gold: 0
Join Date: Aug 2011
Posts: 86
Received Thanks: 2
|
How i can put /awak comand for normal players?
Good Morning !
how i can put /awak comand for normal players?
|
|
|
09/06/2017, 02:07
|
#2
|
elite*gold: 0
Join Date: Dec 2013
Posts: 228
Received Thanks: 99
|
FuncTextCmd.cpp
replace the function
PHP Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
with
PHP Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
{
#ifdef __WORLDSERVER
CUser* pUser = (CUser*)s.dwValue;
CItemElem* pItemElem = pUser->m_Inventory.GetAt( 0 );
#ifdef __AWA_WITH_PENYACOST
if( pItemElem )
{
int nCost = 500000;
int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
if( 0 < nCost )
{
if( nRandomOptionKind >= 0 )
{
if( pUser->GetGold() > nCost )
{
if(pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET )
{
char chMessage[100];
sprintf( chMessage, "Unsummon your pet/cs pet or you wont be able to awake it !" );
pUser->AddText( chMessage );
}
else
{
pUser->AddGold( -( nCost ) );
g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
}
}
else
{
pUser->AddText( "You dont have enough money!" );
}
}
}
}
else
{
pUser->AddText( " To awake an item it has to be in the first slot of your inventory !" );
}
#else
if( pItemElem )
{
int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
if( nRandomOptionKind >= 0 ) // ¾ÆÀÌÅÛ °¢¼º, ¿©½ÅÀÇ ÃູÀÌ °¡´ÉÇÑ ´ë»ó
{
if(pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET )
{
char chMessage[100];
sprintf( chMessage, "Unsummon your pet/cs pet or you wont be able to awake it !" );
pUser->AddText( chMessage );
}
else
{
g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
}
}
}
#endif //__AWA_WITH_PENYACOST
#endif // __WORLDSERVER
return TRUE;
}
under
PHP Code:
ON_TEXTCMDFUNC( TextCmd_gml, "gmlist", "gm", "", "", TCM_SERVER, AUTH_GENERAL , "" )
this
PHP Code:
ON_TEXTCMDFUNC( TextCmd_GenRandomOption, "Awakening", "awa", "°¢¼ºÃູ", "°¢Ãà", TCM_BOTH, AUTH_GENERAL, "" )
Versioncommon.h from Neuz an Worldserver
PHP Code:
#define __AWA_WITH_PENYACOST
|
|
|
10/19/2017, 13:27
|
#3
|
elite*gold: 0
Join Date: Aug 2011
Posts: 86
Received Thanks: 2
|
thx sir
|
|
|
10/09/2020, 00:21
|
#4
|
elite*gold: 0
Join Date: Aug 2008
Posts: 49
Received Thanks: 0
|
Quote:
Originally Posted by Grening
FuncTextCmd.cpp
replace the function
PHP Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
with
PHP Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
{
#ifdef __WORLDSERVER
CUser* pUser = (CUser*)s.dwValue;
CItemElem* pItemElem = pUser->m_Inventory.GetAt( 0 );
#ifdef __AWA_WITH_PENYACOST
if( pItemElem )
{
int nCost = 500000;
int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
if( 0 < nCost )
{
if( nRandomOptionKind >= 0 )
{
if( pUser->GetGold() > nCost )
{
if(pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET )
{
char chMessage[100];
sprintf( chMessage, "Unsummon your pet/cs pet or you wont be able to awake it !" );
pUser->AddText( chMessage );
}
else
{
pUser->AddGold( -( nCost ) );
g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
}
}
else
{
pUser->AddText( "You dont have enough money!" );
}
}
}
}
else
{
pUser->AddText( " To awake an item it has to be in the first slot of your inventory !" );
}
#else
if( pItemElem )
{
int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
if( nRandomOptionKind >= 0 ) // ¾ÆÀÌÅÛ °¢¼º, ¿©½ÅÀÇ ÃູÀÌ °¡´ÉÇÑ ´ë»ó
{
if(pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET )
{
char chMessage[100];
sprintf( chMessage, "Unsummon your pet/cs pet or you wont be able to awake it !" );
pUser->AddText( chMessage );
}
else
{
g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
}
}
}
#endif //__AWA_WITH_PENYACOST
#endif // __WORLDSERVER
return TRUE;
}
under
PHP Code:
ON_TEXTCMDFUNC( TextCmd_gml, "gmlist", "gm", "", "", TCM_SERVER, AUTH_GENERAL , "" )
this
PHP Code:
ON_TEXTCMDFUNC( TextCmd_GenRandomOption, "Awakening", "awa", "°¢¼ºÃູ", "°¢Ãà", TCM_BOTH, AUTH_GENERAL, "" )
Versioncommon.h from Neuz an Worldserver
PHP Code:
#define __AWA_WITH_PENYACOST
|
How to /Awakenig use scrolls?
|
|
|
 |
Similar Threads
|
[Selling] Lvl 57 Sorc 194/174/210 AP/Awak/DP
10/21/2016 - Black Desert Trading - 0 Replies
NA - UNO
Level: 57
Class: Sorceress
Energy: 288
Contribution: 189
http://i.imgur.com/pMoVtXF.png
http://i.imgur.com/YkW5aQA.png
http://i.imgur.com/pgwtIfF.png
|
(Windrest)CHEAP/Verkaufe 40Gold//Kung Fu Master.45.Awak Siren////Suche Paypal
05/09/2016 - Blade & Soul Trading - 11 Replies
Wie das Topic schon sagt verkaufe ich 40g und/oder/zusammen einen Account mit 13 Tagen Premium noch , Premium Level 4,Awakened Siren Gauntlet(ist Kung Fu Master) und kompletten True Infernal Schmuck. Einzig nennenswertes Crafting ist Tree Fellers auf Stufe 3. Der Account hat noch ein paar Mats , ist Crimson Faction Warrior und hat eine ganze Menge Auswahl an Outfits (Luna,Crimson Robe, Fire Lord,Old Stratus....). Bei Interesse kann ich gerne Screenshots nachliefern. Das Gold würde ich so für...
|
[Selling] Ancient Axe 2h (7/7) (Awak +22STA) <- Clockwork!
12/30/2014 - Flyff Trading - 0 Replies
Hey,
i wanna sell my Ancient Axe 2h for Penya or ingame WCoins (no PP/PSC and the other ...)
So far i would say its currently the best Ancient Axe 2h on Clockwork
http://fs1.directupload.net/images/141230/mmvz29m d.png
Ancient Axe 2h
(7/7) Wind B's
|
[S] Awak Bot für Pserver
02/13/2012 - Flyff Private Server - 3 Replies
Hey Community,
Ich suche einen Awak Bot für Pserver die mit /awake funktionieren. Ich suche es den trotz dem schnellen awaken verklick ich mich wenn erwünschte Ziel raus kommt es dauert trotzdem seine Zeit. Ich weiß nicht ob einer existiert, doch wenn würde es mich sehr freuen. Man sollte eingeben können wann er stoppt.
Danke im vorraus.
|
All times are GMT +1. The time now is 18:06.
|
|