Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 10:38

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

Advertisement



Question about Setvendortype NPC's

Discussion on Question about Setvendortype NPC's within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2012
Posts: 141
Received Thanks: 7
Question about Setvendortype NPC's

Hello EPVP

So i have a question about the Setvendortype in npc's, for instance setvendortype is penya and setvendortype1 is often red chips guys likes waforu have that. How can i set so a npc sell items for a new currency i made? called colosseum chips what vendortype do i put and where can i edit thoose kind of things?
laitila is offline  
Old 08/28/2015, 17:01   #2
 
Marc~'s Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 677
Received Thanks: 390
WndManager.cpp

Search for
Code:
void CWndMgr::PutItemGold( CMover* pMover, CItemElem* pItemElem, CEditString* pEdit, int flag )
Code:
#if __VER >= 11 // __CSC_VER11_3
			if(lpCharacter && lpCharacter->m_nVenderType == 1)
			{
				CString temp;
				temp.Format(" %s", prj.GetText(TID_GAME_REDCHIP));
				strTemp += temp;
			}
#endif //__CSC_VER11_3

and WndItemCtrl.cpp

Search for:
Code:
void CWndItemCtrl::RanderIcon( C2DRender* p2DRender, CItemElem* pItemElem, int x, int y, int nParent, int nalpha )
Code:
#if __VER >= 11 // __CSC_VER11_3
		if( nParent == APP_SHOP_ )
		{
			CWndShop* pWndBase = (CWndShop*)g_WndMng.GetWndBase( APP_SHOP_ );
			LPCHARACTER lpCharacter = pWndBase->m_pMover->GetCharacter();
			if(lpCharacter && lpCharacter->m_nVenderType == 1)
			{
				if( bRander == 0 && g_pPlayer->m_Inventory.GetAtItemNum( II_CHP_RED ) < (int)pItemElem->GetChipCost() )
					bRander = 1;
			}
		}
		else
		{
			if( bRander == 0 && g_pPlayer->GetGold() < (int)pItemProp->dwCost )
				bRander = 1;
		}
#else //__CSC_VER11_3
		if( bRander == 0 && g_pPlayer->GetGold() < (int)pItemProp->dwCost )
			bRander = 1;
#endif //__CSC_VER11_3
I guess you've to add:
Code:
if(lpCharacter && lpCharacter->m_nVenderType == 2)
			{
				if( bRander == 0 && g_pPlayer->m_Inventory.GetAtItemNum( II_CHP_COLOSSEUM ) < (int)pItemElem->GetChipCost() )
					bRander = 1;
			}
And you've to add a new currency at propitem/specitem.txt
Code:
(int)pItemElem->GetChipCost() )
Marc~ is offline  
Thanks
1 User
Old 08/28/2015, 18:32   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
I sell a good system for do all this in resource and not in source. PM me if interested.
alfredico is offline  
Old 09/22/2015, 02:48   #4
 
elite*gold: 0
Join Date: May 2014
Posts: 43
Received Thanks: 0
And you've to add a new currency at propitem/specitem.txt
Code:
(int)pItemElem->GetChipCost() )

how to add new column ?
sonbaotvk is offline  
Old 09/27/2015, 08:54   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 481
Received Thanks: 218
Its easy to add new currency without the source. Please roam around your resource folder.
There's no need to buy those systems. Already discovered the trick behind it. :P
Burdenz2007 is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 10:39.


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.