Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 19:51

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

Advertisement



About Online Staff

Discussion on About Online Staff within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
About Online Staff

Hi i'm adding the
#define __CHECKSTAFF from the Dragon Cross source and i have added it however when i check the list only the character's name who's currently logged in is on the list.

The feature is supposed to show the list of online staff.


Can someone help me please?
Thanks in advance
elitemember21 is offline  
Old 02/02/2017, 21:30   #2
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,499
Received Thanks: 3,527
Isn't that the sense of this define? o: However you can show us your command lines.
Lumi is offline  
Old 02/03/2017, 06:40   #3
 
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
Hi thanks a lot for the reply.
Here's the code i used from the dragon cross.


#ifdef __CHECKSTAFF
#include "WndStaffUser.h"
#endif //__CHECKSTAFF



#ifdef __CHECKSTAFF
DECLAREAPPLET( AppMain_WndCheckStaff , new CWndCheckStaff );
#endif //__CHECKSTAFF



#ifdef __CHECKSTAFF
DECLAREAPPLET( AppMain_CheckStaff , new CWndCheckStaff );
#endif //__CHECKSTAFF


#ifdef __CHECKSTAFF
AddAppletFunc( AppMain_CheckStaff , APP_STAFFON , _T("WndCheckStaff") , _T("Icon_Applet.dds") , _T("Check-Staff") , 0 );
#endif //__CHECKSTAFF



#ifdef __CHECKSTAFF
CWndCheckStaff* pWndStaffUser = (CWndCheckStaff*)g_WndMng.GetWndBase( APP_STAFFON );
if(pWndStaffUser!= NULL)
pWndStaffUser->SetVisible(FALSE);
#endif //__CHECKSTAFF




#ifdef __CHECKSTAFF
CWndCheckStaff* pWndStaffUser = (CWndCheckStaff*)g_WndMng.GetWndBase( APP_STAFFON );
if(pWndStaffUser!= NULL)
pWndStaffUser->SetVisible(TRUE);
#endif //__CHECKSTAFF






#ifdef __CHECKSTAFF
#include "WndStaffUser.h"
#endif //__CHECKSTAFF



#ifdef __CHECKSTAFF
CWndCheckStaff* pWndStaffUser;
#endif //__CHECKSTAFF




WndStaffUser.cpp

#include "stdafx.h"
#include "resData.h"
#include "defineText.h"
#include "DefinePetfilter.h"


#ifdef __CLIENT
#include "WndStaffUser.h"
#include "DPClient.h"
extern CDPClient g_DPlay;



#ifdef __CHECKSTAFF
CWndCheckStaff::CWndCheckStaff()
{
}
CWndCheckStaff::~CWndCheckStaff()
{
}
void CWndCheckStaff::OnDraw( C2DRender* p2DRender )
{


DWORD dwMyState;
CString strState;
dwMyState = FRS_ONLINE;
strState.Format( "(%s)", prj.GetText( dwMyState + TID_FRS_ONLINE ) );
LPCTSTR pszName = g_pPlayer->GetName( TRUE );
p2DRender->TextOut( 20, 17, 1, 1, pszName, 0xff00ff00 );
//p2DRender->TextOut( 71, 2, 1, 1, pszName, 0xff00ff00 );
p2DRender->TextOut( 90, 17, 1, 1, strState, 0xff00ff00 );

}
void CWndCheckStaff::OnInitialUpdate()
{
CWndNeuz::OnInitialUpdate();
MoveParentCenter();

}
// óÀ½ ÀÌ ÇÔ¼ö¸¦ ºÎ¸£¸é À©µµ°¡ ¿*¸°´Ù.
BOOL CWndCheckStaff::Initialize( CWndBase* pWndParent, DWORD /*dwWndId*/ )
{
// Daisy¿¡¼* ¼³Á¤ÇÑ ¸®¼Ò½º·Î À©µµ¸¦ ¿¬´Ù.
return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_STAFFON, WBS_MOVE, CPoint( 0, 0 ), pWndParent );

}

BOOL CWndCheckStaff::OnCommand( UINT nID, DWORD dwMessage, CWndBase* pWndBase )
{
return CWndNeuz::OnCommand( nID, dwMessage, pWndBase );
}
void CWndCheckStaff::OnSize( UINT nType, int cx, int cy )
{
CWndNeuz::OnSize( nType, cx, cy );
}
void CWndCheckStaff::OnLButtonUp( UINT nFlags, CPoint point )
{
}
void CWndCheckStaff::OnLButtonDown( UINT nFlags, CPoint point )
{
}
BOOL CWndCheckStaff::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
return CWndNeuz::OnChildNotify( message, nID, pLResult );
}
#endif //__CHECKSTAFF
#endif //__CLIENT



WndStaffUser.h

#ifndef __WNDCHECKSTAFF__H
#define __WNDCHECKSTAFF__H
#pragma once

#ifdef __CHECKSTAFF
class CWndCheckStaff : public CWndNeuz
{
public:
CWndCheckStaff();
~CWndCheckStaff();
virtual BOOL Initialize( CWndBase* pWndParent = NULL, DWORD nType = MB_OK );
virtual BOOL OnChildNotify( UINT message, UINT nID, LRESULT* pLResult );
virtual void OnDraw( C2DRender* p2DRender );
virtual void OnInitialUpdate();
virtual BOOL OnCommand( UINT nID, DWORD dwMessage, CWndBase* pWndBase );
virtual void OnSize( UINT nType, int cx, int cy );
virtual void OnLButtonUp( UINT nFlags, CPoint point );
virtual void OnLButtonDown( UINT nFlags, CPoint point );
};
#endif //__CHECKSTAFF
#endif //__WNDCHECKSTAFF__H




I'll be happy to hear back from you guys.
Thanks

Anyone?
elitemember21 is offline  
Old 02/03/2017, 13:24   #4
 
Sizzurpz's Avatar
 
elite*gold: 0
Join Date: Jan 2017
Posts: 26
Received Thanks: 7
Quote:
Originally Posted by ​Lumi View Post
Isn't that the sense of this define? o: However you can show us your command lines.
No, i have the same problem with this function it only shows yourself (even as a normal player) in the list
Sizzurpz is offline  
Old 02/03/2017, 16:20   #5
 
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
Quote:
Originally Posted by Avalion View Post
void CWndCheckStaff::OnDraw( C2DRender* p2DRender )
is why. It prints current user.

Hello sir would you be able to share the code please?
Thanks in advance
elitemember21 is offline  
Old 02/03/2017, 17:18   #6
 
elite*gold: 0
Join Date: Jul 2016
Posts: 230
Received Thanks: 7
Quote:
Originally Posted by Avalion View Post
Uh, you already posted code. I just noted the problem. The problem is it isn't actually grabbing any sort of list of staff members online, or their states and in the function I listed, it is printing the current user and their state.

Now, with that said, you should solve it by requesting and storing the list in the window of the client, and store the list of gm's on the worldserver so you do not have to constantly iterate over the player map upon the window opening / refreshing for each online user.

There's other ways to do it as well. GL HF.
Thanks for the reply Sir.
I guess i'll just remove it for now since i'm really new in programming.

Still hoping to hear from other developers though.

Thanks again.
elitemember21 is offline  
Old 02/04/2017, 00:12   #7
 
elite*gold: 0
Join Date: Dec 2014
Posts: 98
Received Thanks: 6
I cant compile this code, error:
Error 937 error LNK2019: unresolved external symbol "public: __thiscall CWndCheckStaff::CWndCheckStaff(void)" (??0CWndCheckStaff@@QAE@XZ) referenced in function "class CWndBase * __cdecl AppMain_CheckStaff(void)" (?AppMain_CheckStaff@@YAPAVCWndBase@@XZ) FuncApplet.obj
pedala1 is offline  
Reply




All times are GMT +1. The time now is 19:53.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.