Register for your free account! | Forgot your password?

You last visited: Today at 05:54

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

Advertisement



RELEASE NAV TIME

Discussion on RELEASE NAV TIME within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2021
Posts: 27
Received Thanks: 3
RELEASE NAV TIME

Hello

I publish this system not very useful but that can serve to have the time below the browser


hwoption.cpp, after function :

Code:
void COption::Init()

ADD :

Code:
#ifdef __NAV_TIME
	m_NavTime = 1;
#endif
AFTER :

Code:
#if __VER >= 12 // __UPDATE_OPT
	else if(scan.Token == _T( "VIEWMASK" ))
	{
		m_bViewMask = scan.GetNumber();
	}
#endif
ADD :

Code:
#ifdef __NAV_TIME
																					else
																						if (scan.Token == _T("NavTime"))
																						{
																							m_NavTime = scan.GetNumber();
																						}
#endif
and at the end of the file just before fclose(fp); add :

Code:
#ifdef __NAV_TIME
	_ftprintf(fp, _T("NavTime %d\n"), m_NavTime);
#endif


HWOPTION.H

after

Code:
#if __VER >= 8 //__CSC_VER8_3
	int m_BuffStatusMode;
#endif //__CSC_VER8_3
ADD :

Code:
#ifdef __NAV_TIME
	BOOL m_NavTime;
#endif

Wndworld.cpp

After :

Code:
	if( pItemElem && pItemElem->GetProp()->dwItemKind3 == IK3_BOW ) 
	{
		// 그리고 왼쪽 버튼을 누르고 포커스가 있어야한다. 그래야 마법 타이밍 작동하니까.
		if( pFocus && pFocus->GetType() == OT_MOVER && g_pPlayer->IsLive() )
		{
			bRenderGauge = TRUE;
			if( m_bLButtonDown && m_bSelectTarget )
			{
				if( nPower >= MAX_CHARGE_LEVEL )			// 맥스치가 되면 자동으로 발사됨.
					dwShootItemKind = IK3_BOW;
			}
		}
	}
Add :

Code:
#ifdef __NAV_TIME
	CWndNavigator* pWndNavigator = (CWndNavigator*)g_WndMng.GetWndBase(APP_NAVIGATOR);
	if (pWndNavigator && pWndNavigator->IsVisible())
	{
		if (g_Option.m_NavTime)
		{
			CRect crBoard = pWndNavigator->GetWndRect();
			crBoard.left += 50;
			crBoard.top += 183;
			crBoard.right = crBoard.left + 87;
			crBoard.bottom = crBoard.top + /*50*/ 32;
			if (g_Option.m_Multi == FALSE)
			{
				p2DRender->RenderFillRect(crBoard, D3DCOLOR_ARGB(220, 250, 234, 234));
				p2DRender->RenderRect(CRect(crBoard.left - 1, crBoard.top + 1, crBoard.right + 1, crBoard.bottom + 1), D3DCOLOR_ARGB(255, 200, 166, 148));
			}
			else
			{
				p2DRender->RenderFillRect(crBoard, D3DCOLOR_ARGB(240, 0, 0, 0));
				p2DRender->RenderRect(CRect(crBoard.left - 1, crBoard.top + 1, crBoard.right + 1, crBoard.bottom + 1), D3DCOLOR_ARGB(255, 255, 194, 64));
			}

			CString str;
			CTexture* pIcon;
			CPoint	pt;
			CTime tmptime;
			DWORD dwc = g_Option.m_Multi ? D3DCOLOR_XRGB(255, 255, 255) : D3DCOLOR_XRGB(0, 0, 0);
			LPCTSTR path = g_Option.m_Multi ? DIR_THEME19 : DIR_THEME;
			float scale = 0.5f;

			pt.SetPoint(crBoard.left + 4, crBoard.top + 13);
			pIcon = CWndBase::m_textureMng.AddTexture(p2DRender->m_pd3dDevice, MakePath(path, "heurenav.png"), 0xffff00ff);
			p2DRender->RenderTexture(pt, pIcon, 255, scale, scale);

			tmptime = CTime::GetCurrentTime(); // Server time todo
			str = tmptime.Format("%H:%M:%S");
			p2DRender->TextOut(pt.x + pIcon->m_size.cx * scale + 4, pt.y + 1, str, dwc);
		}
	}
#endif


ADD __NAV_TIME in version common

For option navigator v19 not before

it will work with the old browser just make a setting with the resize and the position of the icon

image add in your theme folder, sorry for my bad english, bye

ryandif is offline  
Old 01/11/2022, 05:40   #2
TBM Head Mod





 
Icetea's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 23,934
Received Thanks: 2,046
Arrow Flyff -> Flyff PServer Gui…

#moved
Icetea is offline  
Thanks
1 User
Old 01/11/2022, 12:13   #3
 
akosidogie's Avatar
 
elite*gold: 0
Join Date: May 2018
Posts: 3
Received Thanks: 0
thanks! may i know who made that
akosidogie is offline  
Old 01/11/2022, 15:47   #4
 
elite*gold: 0
Join Date: Sep 2021
Posts: 27
Received Thanks: 3
It's not me, it's a system that I found by chance in but source file and that some asked me on discord so I released it directly
it can still be used, it's a small system it can be easily modified for a design
ryandif is offline  
Reply




All times are GMT +2. The time now is 05:54.


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.