Register for your free account! | Forgot your password?

You last visited: Today at 13:40

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

Advertisement



Adding Wiki

Discussion on Adding Wiki within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2017
Posts: 32
Received Thanks: 0
Thumbs up Adding Wiki

Hello anyone knows this error when compiling for adding Wiki Item list?


Kakerou is offline  
Old 09/10/2017, 12:58   #2
 
elite*gold: 0
Join Date: Aug 2014
Posts: 49
Received Thanks: 37
PHP Code:
#ifdef __WIKI
    
AddAppletFuncAppMain_WikiAPP_WIKI_T("WndWiki"), _T("Icon_Applet.dds"), _T("Item List"), 0);
#endif // __WIKI 
No Problem.
Exrib0. is offline  
Thanks
1 User
Old 09/10/2017, 14:11   #3
 
elite*gold: 0
Join Date: Sep 2017
Posts: 32
Received Thanks: 0
Thanks so much Exrib0 I compiled it perfect awesome, I love you! But sad when I try to access /wiki then neuz crash. what you think the problem my friend?
Kakerou is offline  
Old 09/11/2017, 01:50   #4
 
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
@

try to look at your resdata.inc maybe thats the problem. the APP_WIKI is not working well in your resdata.inc
Yolo143 is offline  
Thanks
1 User
Old 09/11/2017, 02:28   #5
 
elite*gold: 0
Join Date: Sep 2017
Posts: 32
Received Thanks: 0
Thumbs up w0w it works

wow it works my friend thanks so much i love you But the font is color white do you know where to change it?
Kakerou is offline  
Old 09/11/2017, 03:30   #6
 
elite*gold: 0
Join Date: Jul 2015
Posts: 181
Received Thanks: 199
Quote:
Originally Posted by Kakerou View Post
wow it works my friend thanks so much i love you But the font is color white do you know where to change it?
WndControl.cpp
Code:
	if( pWnd->GetWndId() == APP_WIKI )
	{
		CWndWiki *pWndWiki = (CWndWiki*)pWnd;
		m_nFontHeight = 40;
		CPoint pt(10,3);
		DWORD dwColor;
		vector<ItemProp*> *pVecItems = pWndWiki->GetItemList();
		CRect rectClient = GetClientRect();
		dwColor = D3DCOLOR_ARGB( 255, 0, 0, 0 );
		int nPage = rectClient.Height() / m_nFontHeight;
		m_wndScrollBar.SetScrollRange( 0, pVecItems->size() );
		m_wndScrollBar.SetScrollPage( nPage );

		for( unsigned i = (unsigned)m_wndScrollBar.GetScrollPos(); i < (unsigned)(pVecItems->size()); ++i )
		{
			if( i > (unsigned)(nPage + m_wndScrollBar.GetScrollPos()) )
				break;
			ItemProp *pProp = pVecItems->at(i);
			CString strBuf;

			p2DRender->RenderLine(CPoint(-2,pt.y+37),CPoint(rectClient.right,pt.y+37),0xFF776655);
			if( i == m_nCurSelect )
			{
				CRect DrawRect = CRect(0,pt.y-2,rectClient.right,pt.y+36);
				p2DRender->RenderFillRect(DrawRect,0xFFECF3F7);
				p2DRender->RenderRect(DrawRect,0xFFe1ebf2);
			}
			if( strlen( pProp->szIcon) )
			{
				CTexture *pIcon = CWndBase::m_textureMng.AddTexture(p2DRender->m_pd3dDevice, MakePath(DIR_ITEM,pProp->szIcon),0xffff00ff);
				pIcon->Render(p2DRender,pt);
			}
			CRect rectToolTip(pt.x,pt.y,pt.x+35,pt.y+35);
			if( rectToolTip.PtInRect(m_ptMouse) )
			{
				CPoint pt2 = m_ptMouse;
				ClientToScreen(&pt2);
				ClientToScreen(&rectToolTip);
				CItemElem Item;
				Item.m_dwItemId = pProp->dwID;
				g_WndMng.PutToolTip_Item(&Item,pt2,&rectToolTip,APP_WIKI);
			}
			pt.x += 40;
			pt.y += 10;
			p2DRender->TextOut(pt.x,pt.y,pProp->szName,dwColor);
			pt.x += 250;
			if( pProp->dwItemJob < MAX_JOB )
				p2DRender->TextOut(pt.x,pt.y,prj.m_aJob[pProp->dwItemJob].szName,dwColor);
			pt.x += 150;
			int nLevel = (pProp->dwLimitLevel1 == NULL_ID ? 1 : pProp->dwLimitLevel1);
			strBuf.Format("%d",nLevel);
			p2DRender->TextOut(pt.x,pt.y,strBuf,dwColor);
			pt.x = 10;
			pt.y += m_nFontHeight - 10;
		}
	}else
KetchupSamurai is offline  
Thanks
1 User
Old 09/11/2017, 16:39   #7
 
elite*gold: 0
Join Date: Sep 2017
Posts: 32
Received Thanks: 0
Wow Awesome! Thank you so much Samurai, Yolo, Exrib0 for the help. I love you

Hello I am adding now the Model View when I compile I got some error x.x



I added WndModelView.cpp and WndModelView.h in the source

Kakerou is offline  
Old 09/12/2017, 08:30   #8
 
elite*gold: 0
Join Date: Apr 2017
Posts: 95
Received Thanks: 2
Quote:
Originally Posted by Kakerou View Post
Wow Awesome! Thank you so much Samurai, Yolo, Exrib0 for the help. I love you

Hello I am adding now the Model View when I compile I got some error x.x



I added WndModelView.cpp and WndModelView.h in the source

make sure that you include the .cpp and .h into your neuz
Yolo143 is offline  
Reply


Similar Threads Similar Threads
[Private Wiki]Schnelles Wiki für alle
03/26/2015 - Metin2 PServer Advertising - 63 Replies
Heute stelle ich euch mein Projekt "Private Wiki Cloud" vor Für die, die nicht viel lesen wollen direkt einmal ein paar Beispiele: Metin2013 Private Wiki Cloud - Metin2013 Schwarzstahl-Panzer - Metin2013 Sensenmanntruhe - Metin2013 Sensenmann - Metin2013
Wiki: Bearbeitungen in der Wiki geöffnet!
11/27/2011 - Metin2 - 15 Replies
Liebe Spieler! Um euch die Benutzung der Wiki zu vereinfachen, haben wir heute die Bearbeitung für alle User geöffnet. Das heißt, ihr könnt nun die Wiki bearbeiten, ohne euch einen Account anzulegen - einfach nur auf "Bearbeiten" in der jeweiligen Seite klicken! Wir hoffen, dadurch wieder mehr User für die Wiki zu gewinnen und euch die Verwendung zu vereinfachen. :) Dazu sei aber noch gesagt: Wer glaubt, Unsinn treiben zu müssen, indem er Seiten verunstaltet oder falsche Informationen...



All times are GMT +1. The time now is 13:43.


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