Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 23:52

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

Advertisement



[Source-Edit] Lord-Event als GM

Discussion on [Source-Edit] Lord-Event als GM within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
Kindergarten's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 207
Received Thanks: 79
[Source-Edit] Lord-Event als GM

So hab mir mal die Zeit genommen was zu umzuschreiben, (nein ich habs aus kein andern Forum kopiert).

Damit sollte es möglich sein als GM ganz normal die Lord-Events zu starten.

WndLord.cpp (Neuz)

BOOL CWndLordEvent::Initialize( CWndBase* pWndParent, DWORD nType)
suchen und Komplette Funktion hiermit ersetzen:
Code:
BOOL CWndLordEvent::Initialize( CWndBase* pWndParent, DWORD nType)
{
	if(CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer) || g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ))
	{
		return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_LORD_EVENT, 0, CPoint( 0, 0 ), pWndParent );
	}
	else
	{
		g_WndMng.OpenMessageBox(prj.GetText(TID_GAME_L_EVENT_CREATE_E001));
		Destroy();
		return FALSE;
	}
}
slord.cpp (World)
Suchen:
Code:
		if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) )	// is he lord?
			 return TID_GAME_L_EVENT_CREATE_E001;
und hiermit ersetzen:
Code:
		if(!pUser->IsAuthHigher(AUTH_GAMEMASTER))
		{
			if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) )
			{
				return TID_GAME_L_EVENT_CREATE_E001;
			}
		}
~ so jetzt nurnoch compilen und fertig ~



Ich haben keine Garantie darauf das es zu 100% funktioniert, hatte noch keine Zeit es zu testen.
Kindergarten is offline  
Thanks
1 User
Old 11/05/2011, 19:42   #2
 
Pumbaaa's Avatar
 
elite*gold: 20
Join Date: Apr 2009
Posts: 804
Received Thanks: 828
Nein funktioniert nicht.
Pumbaaa is offline  
Old 11/05/2011, 20:00   #3
 
elite*gold: 0
Join Date: Sep 2011
Posts: 308
Received Thanks: 162
Jo funkt nicht ^^
Blackx33! is offline  
Old 11/05/2011, 20:06   #4
 
elite*gold: 0
Join Date: Mar 2011
Posts: 715
Received Thanks: 598
Das ding wirkt ja nie beim Event starten sondern nur clientside.
yannickminecraft is offline  
Old 11/05/2011, 23:04   #5
 
N8Schatten's Avatar
 
elite*gold: 6
Join Date: Oct 2011
Posts: 506
Received Thanks: 84
Is aber ne super idee könnte das pls wer korigieren währe echt praktisch das zu können^^
N8Schatten is offline  
Old 11/05/2011, 23:08   #6
 
.Monster's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 244
Received Thanks: 96
PHP Code:
        if(!g_pPlayer->IsAuthHigherAUTH_GAMEMASTER ))    // is he gm?
        
{
            if( !
CSLord::Instance()->IsLordpUser->m_idPlayer ) )    // is he lord?
            
{
                return 
TID_GAME_L_EVENT_CREATE_E001;
            }
        } 
Wo ist da der Sinn?
.Monster is offline  
Old 11/05/2011, 23:23   #7
 
elite*gold: 2
Join Date: Jul 2009
Posts: 1,447
Received Thanks: 922
Garkein? das ! heißt NICHT das wiederrum würde so in der verwendung heißen das jeder Player diese Meldung bekomt, wenn ein GM das versucht zu öffnen würde er diese auch bekomen weil er wiederrum kein Lord ist.

Du kanst dir Lord Events erstellen indem du mal die election's commands ansiehst..

Tipp: "/election.." gibts glaub 6 Commands oder so womit du ganze Lord zeug steuern kanst.
.Crasy is offline  
Thanks
2 Users
Old 11/06/2011, 00:42   #8
 
Kindergarten's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 207
Received Thanks: 79
so habe es zum funktionieren gebracht, geänderte funktion steht oben.
und btw es hat einen Sinn, er fragt ab ob er gm ist ist dies nicht der fall fragt er ab ob er lord ist.
Sollte dies auch nicht stimmen gibt er die Fehlermeldung aus.

Ist er GM wird die ganze Abfrage übersprungen.


Den Sinn erkennt man wenn man sich die komplette Strujtur hier anschaut:
Code:
namespace	lordevent
{
	int	CreateRequirements( CUser* pUser, int iEEvent, int iIEvent )
	{
		ILordEvent* pEvent		= CSLord::Instance()->GetEvent();
		if(!pUser->IsAuthHigher(AUTH_GAMEMASTER))
		{
			if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) )
			{
				return TID_GAME_L_EVENT_CREATE_E001;
			}
		}
		if( pEvent->GetComponent( pUser->m_idPlayer ) )		// is there no event?
			return TID_GAME_L_EVENT_CREATE_E002;
		if( pUser->IsQuerying() )
			return TID_GAME_LORD_IS_QUERYING;
		__int64 iCost	= pEvent->GetCost( iEEvent, iIEvent );
		if( iCost == 0 )
			return TID_GAME_L_EVENT_CREATE_E004;
		if( iCost > pUser->GetTotalGold() )
			return TID_GAME_L_EVENT_CREATE_E003;

		pUser->SetQuerying( TRUE );
		return 0;
	}
};
Kindergarten is offline  
Old 11/06/2011, 16:44   #9
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
would this create a bug? if the player is lord but not a gm does it still work?
420twisted1 is offline  
Old 11/06/2011, 21:29   #10
 
Kindergarten's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 207
Received Thanks: 79
yes i tested it today, it checks first if the user is a GM, if its so then it skip the lordcondition.
if he's not a gm it checks if the user is the lord. else it give the normal message that only the lord can use the menu
Kindergarten is offline  
Reply


Similar Threads Similar Threads
cant save my edit by c# in my source
10/07/2011 - CO2 Private Server - 2 Replies
when i change or edit my source by c# and make f6 then f5 and see the message (build success) and when i turn on my source and go client i find nothing happen that means my edit ddnt saved how i active my edit in my source
[Mini Source - TuT] Lord
07/17/2011 - Flyff Private Server - 5 Replies
Das ist mein erster Mini Source TuT. :D 1. Lord unter Level 60 Voten Ihr öffnet euer Source Ordner -> _Common -> lord.h Ihr sucht nach enum { nMaxCandidates = 10, nLevelRequirements = 60 }; Die 10 ist wie viele Spieler sich Kandidieren(Teilnehmen) können.
PALADIN Scarab Lord-Spectral Tiger-Ashes of Al'ar-Raven Lord-Invincible-11k+ Achiv P.
04/06/2011 - World of Warcraft Trading - 5 Replies
Account Has Many Intersted and Rare Things Alt's : Warrior LvL 85 Hunter LvL 85 Rogue LvL 85 Mage LvL 81 Warlock LvL 80
The Lord of the Rings Online Europe Preview Event
10/27/2010 - Lord of the Rings Online - 4 Replies
Come and join in the European Preview Event for The Lord of the Rings Online Free-to-Play! If you'd like to participate, you can sign up at our Preview Sign-up page. The preview event will start on Monday the 25th of October. Stress tests and events will be organized on the dedicated server of the preview event, in order to prepare the F2P version for all EU servers shortly thereafter. The more players we will have to test the new content and F2P, the quicker our tests will be completed and...
[HELP]Edit in source :)
09/06/2009 - CO2 Private Server - 9 Replies
#REQUEST CLOSED, i got all what i need! When i edit in source and add codes and all that, nothing happens. The server is still the same and i have changed everything to mine, but it still use the old codes. Can anyone help me how to edit the codes? Example: i open Client.cs and edit the text of NPC's and what they say, but they still say the old things and i change the login messages, but they still says the same. If anyone can help me i would thanks very much:)



All times are GMT +1. The time now is 23:52.


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