Register for your free account! | Forgot your password?


Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 06:56

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

Advertisement



Please Help - How to add awake system like this /awake , /awa or /awakening!

Discussion on Please Help - How to add awake system like this /awake , /awa or /awakening! within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
Unhappy Please Help - How to add awake system like this /awake , /awa or /awakening!

How to add awake system like this /awake , /awa or /awakening!
jericho2nd is offline  
Old 08/26/2015, 09:35   #2
 
elite*gold: 10
Join Date: Oct 2010
Posts: 303
Received Thanks: 56
Search for /gro in FuncTextCmd and Copy it or get the System out of another Source

yours truly,
- Kevin
kevinkraus is offline  
Old 08/28/2015, 12:15   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
can you make a tut please
jericho2nd is offline  
Old 08/28/2015, 12:53   #4


 
elite*gold: 724
Join Date: Nov 2011
Posts: 3,545
Received Thanks: 540
Open your Source folder.
Go to Search - Search: "FuncTextCmd"

Search in that file: "gro", and add awake or awa to the synonyms, and the Auth down to the User-Level.

Rebuild and test it.
Flogolo is offline  
Old 08/28/2015, 15:31   #5
 
elite*gold: 0
Join Date: Sep 2011
Posts: 679
Received Thanks: 389
Replace
Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
in FuncTextCmd.cpp
by

And define in Versioncommon.h from WorldServer, Neuz and DatabaseServer
Code:
#define __AWA_WITH_PENYACOST

Edit 1:
Here you can set the price each awake:
Code:
int nCost = 10000;

Edit 2:
Search for:
Code:
ON_TEXTCMDFUNC( TextCmd_GenRandomOption
and change the last part to:
Code:
"awake",	"awa",	"각성축복", "각축",	TCM_BOTH,	AUTH_GENERAL, "" )
Marc~ is offline  
Thanks
1 User
Old 08/28/2015, 19:45   #6
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 585
Post

cleaner

Code:
BOOL TextCmd_GenRandomOption(CScanner &s)
{
#ifdef __WORLDSERVER 
	CUser* pUser = (CUser*)s.dwValue;
	CItemElem* pItemElem = pUser->m_Inventory.GetAt(0);

	if (pItemElem)
	{
		int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind(pItemElem);
		if (nRandomOptionKind >= 0)
		{
#ifdef __AWA_WITH_PENYACOST
			int nAwakeCost = 10000;
			if (pUser->GetGold() < nAwakeCost)
			{
				pUser->AddText("Not enough Gold");
				return false;
			}

			pUser->AddGold(-(nCost));
#endif
	
	g_xRandomOptionProperty->InitializeRandomOption(pItemElem->GetRandomOptItemIdPtr());
			g_xRandomOptionProperty->GenRandomOption(pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts);
			pUser->UpdateItemEx((BYTE)(pItemElem->m_dwObjId), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId());
		if (pUser->IsUsing(pItemElem) && (nRandomOptionKind == CRandomOptionProperty::eEatPet || nRandomOptionKind == CRandomOptionProperty::eSystemPet))
				pUser->ResetDestParamRandomOptExtension(pItemElem);

		}
	}
#endif
	return true;
}
Probably can make nAwakeCost static and const as well.
Avalion is offline  
Old 08/30/2015, 09:12   #7
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
Thanks to all
jericho2nd is offline  
Old 04/25/2017, 07:33   #8
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
got a problem here. penya cost doesn't exist no penya cost how to fix that ?
babyminion is offline  
Old 04/30/2017, 08:33   #9
 
elite*gold: 0
Join Date: Apr 2016
Posts: 59
Received Thanks: 5
Change nAwakeCost to nCost to remove error
direktbottle is offline  
Reply


Similar Threads Similar Threads
Hilfe Fix Awake System
10/26/2014 - Flyff Private Server - 4 Replies
Ich habe dieses System eingefgt. http://www.elitepvpers.com/forum/flyff-pserver-gui des-releases/3161647-release-fix-awake-scroll.html Es traten keine Fehlermeldungen auf ingame kann ich die Scrolls auch erstellen. Nun wenn ich doppelt raufklicke erscheint der "Hammer" nun klicke ich auf ein Item welches ich erwecken mchte. Es passiert aber nichts. Die Scroll bleibt im Inventar und das Item ist auch nicht erweckt. Wenn ich die Scroll angeklickt habe und zb. auf Food oder sowas klicke kommt...
[Frage] Transfer Awake System
07/05/2013 - Flyff Private Server - 9 Replies
Hat wer ein Transfer Awake System per scroll oder befehl :D? wre nett wenn einer eins posten wrde habe nur das von Jopsi gefunden wei aber net ob/wie ich das zu einer scroll mache ;O ~push~
Awake Bot^^
08/25/2012 - Flyff - 11 Replies
Hallo leute, Ich spiele sehr hufig FlyFF und jedesmal verschiedene Pservern zurzeit Insanity Flyff, das problem ist das ich jedesmal alles Erwecken muss ... ist ja auch normal NUR bei Pservern muss halt alles immer Perfekt sein >.< Zur meiner Frage : Gibt es einen Funktionierenden Awake Bot der automatisch die gewnschten Stats awaked und dann auch aufhrt, wenn ja wre es sehr hilfreich wenn einer den Bot mal Public machen wrde ._. Vielen dank skayla ~



All times are GMT +2. The time now is 06:56.


Powered by vBulletin®
Copyright ©2000 - 2021, 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 ©2021 elitepvpers All Rights Reserved.