Register for your free account! | Forgot your password?

You last visited: Today at 11:29

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

Advertisement



[Fix] V21 Dungeon NPC

Discussion on [Fix] V21 Dungeon NPC within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
Ssam_'s Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 8
Received Thanks: 5
[Fix] V21 Dungeon NPC

Hi everyone,

V21 WorldDialog doesn't contain the code for the NPC that teleports you into the Contamined Trails dungeon.
More infos about this dungeon and how to enter it .

Here's the fix for this! (Note that in the server source, the define for this is SCRIPT_ENTER_INSTANCEDUNGEON).

Quote:
+ in WorldDialog/FunctionsInfo.h

Find
Code:
typedef int (WINAPI *PFAddGPPoint)( NPCDIALOG_INFO* pInfo , int nAddGPPoint );
Add right after
Code:
typedef int	(WINAPI* PFEnterInstanceDungeon)(NPCDIALOG_INFO* pInfo, DWORD dwTeleWorld, int nX, int nY, int nZ);
typedef int	(WINAPI* PFChkPartyLowLevel)(NPCDIALOG_INFO* pInfo, int nLv);
Find
Code:
PFAddGPPoint AddGPPoint;
Add right after
Code:
PFEnterInstanceDungeon EnterInstanceDungeon;
PFChkPartyLowLevel ChkPartyLowLevel;
+ in WorldDialog/NpcScript.cpp

Find the g_nKeys array, go at the end, you should have something like this
Code:
42,
43,
865,
866,
};
Add right after 866,
Code:
1812,
Find
Code:
if (::strcmp("AddGPPoint", szFunc) == 0)
{
	/*kNPCScript.*/AddGPPoint(args.at(0));
	return 0;
}
Add right after
Code:
if (::strcmp("EnterInstanceDungeon", szFunc) == 0)
{
	return EnterInstanceDungeon(static_cast<DWORD>(args.at(0)), args.at(1), args.at(2), args.at(3));
}
if (::strcmp("ChkPartyLowLevel", szFunc) == 0)
{
	return ChkPartyLowLevel(args.at(0));
}
+ in WorldDialog/NpcScript.h

Find
Code:
void	AddGPPoint( int nAddGPPoint );
Add right after
Code:
int	EnterInstanceDungeon(DWORD dwTeleWorld, int nX, int nY, int nZ);
int	ChkPartyLowLevel(int nLvl);
+ in WorldDialog/NpcScriptHelper.cpp

Find
Code:
void CNpcScript::AddGPPoint( int nAddGPPoint )
{
	if( m_pInfo != NULL )
	{
		Functions* pTable = m_pInfo->GetFunctions();
		if( pTable != NULL )
		{
			pTable->AddGPPoint( m_pInfo , nAddGPPoint );
		}
	}
}
Add right after
Code:
int CNpcScript::EnterInstanceDungeon(DWORD dwTeleWorld, int nX, int nY, int nZ)
{
	if (m_pInfo != NULL)
	{
		Functions* pTable = m_pInfo->GetFunctions();
		if (pTable != NULL)
		{
			return pTable->EnterInstanceDungeon(m_pInfo, dwTeleWorld, nX, nY, nZ);
		}
	}
	return 0;
}

int CNpcScript::ChkPartyLowLevel(int nLvl)
{
	if (m_pInfo != NULL)
	{
		Functions* pTable = m_pInfo->GetFunctions();
		if (pTable != NULL)
		{
			return pTable->ChkPartyLowLevel(m_pInfo, nLvl);
		}
	}
	return 0;
}
Hope this kind of release will encourage you to use V21

Ssam.
Ssam_ is offline  
Thanks
4 Users
Old 03/20/2022, 17:29   #2
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,739
Received Thanks: 1,669
You forgot to add both functions to the Functions struct.

FunctionsInfo.h, below
Code:
PFAddGPPoint AddGPPoint;
add those
Code:
	PFEnterInstanceDungeon EnterInstanceDungeon;
	PFChkPartyLowLevel ChkPartyLowLevel;
xTwiLightx is offline  
Thanks
1 User
Old 03/20/2022, 20:40   #3
 
Ssam_'s Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 8
Received Thanks: 5
Quote:
Originally Posted by xTwiLightx View Post
You forgot to add both functions to the Functions struct.

FunctionsInfo.h, below
Code:
PFAddGPPoint AddGPPoint;
add those
Code:
	PFEnterInstanceDungeon EnterInstanceDungeon;
	PFChkPartyLowLevel ChkPartyLowLevel;
Thanks I updated the thread !
Ssam_ is offline  
Thanks
1 User
Reply

Tags
fix, v21, worldialog


Similar Threads Similar Threads
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html



All times are GMT +2. The time now is 11:29.


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.