Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 08:28

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

Advertisement



Adding quick jobchanger problem.

Discussion on Adding quick jobchanger problem. within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
marvincod1's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 86
Received Thanks: 9
Adding quick jobchanger problem.

Hello,

Can anyone help me out here?

I'm adding quick jobchanger but i get this error:

WorldServer error LNK2019: unresolved external symbol "private: void __thiscall CDPSrvr::OnUpdateJob(class CAr &,unsigned long,unsigned long,unsigned char *,unsigned long)" (?OnUpdateJob@CDPSrvr@@AAEXAAVCAr@@KKPAEK@Z) referenced in function "public: __thiscall CDPSrvr::CDPSrvr(void)" (??0CDPSrvr@@QAE@XZ)

I've been struggling for hours now..

this is the full function of CDPSrvr::OnUpdateJob

Code:
#ifdef __BEASTJobchanger
void CDPSrvr::OnUpdateJob( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long )
{
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );

if( IsValidObj( pUser ) == TRUE )
{
int nJob, nLevel;
ar >> nJob;
if( pUser->m_nJob >= nJob )
return;
if( nJob < MAX_EXPERT && pUser->m_nLevel != MAX_JOB_LEVEL )
return;
else if( nJob >= MAX_EXPERT && nJob < MAX_PROFESSIONAL && pUser->m_nLevel != (MAX_EXP_LEVEL + MAX_JOB_LEVEL) )
return;
else if( nJob >= MAX_PROFESSIONAL && nJob < MAX_HERO && pUser->m_nLevel != MAX_GENERAL_LEVEL && pUser->GetExpPercent() != 9999 ) 
return;
else if( nJob >= MAX_HERO && pUser->m_nLevel != MAX_LEGEND_LEVEL && pUser->GetExpPercent() != 9999 )
return;

if( nJob < MAX_EXPERT )
nLevel = MAX_JOB_LEVEL;
else if( nJob < MAX_PROFESSIONAL )
nLevel = MAX_JOB_LEVEL + MAX_EXP_LEVEL;
else if( nJob < MAX_MASTER )
nLevel = MAX_JOB_LEVEL + MAX_EXP_LEVEL;
else if( nJob < MAX_HERO )
nLevel = MAX_GENERAL_LEVEL;
else if( nJob < MAX_JOB )
nLevel = MAX_LEGEND_LEVEL;
else
return;

pUser->InitFastJobChange( nJob, nLevel, TRUE );
}
}
#endif //beastjobchanger
Help will be much appreciated!

~Me
marvincod1 is offline  
Old 06/04/2014, 14:16   #2
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,497
Received Thanks: 3,524
Did you check all your codes that you have added?
It seems that you forgot something.
Lumi is offline  
Old 06/04/2014, 14:26   #3
 
marvincod1's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 86
Received Thanks: 9
Quote:
Originally Posted by ​Lumi View Post
Did you check all your codes that you have added?
It seems that you forgot something.
Yup i did, i even downloaded GOH source and copyed all the codes from there to my source. But no succes >.<
marvincod1 is offline  
Old 06/04/2014, 14:33   #4
 
elite*gold: 23
Join Date: Dec 2010
Posts: 743
Received Thanks: 617
*YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE* *YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE*
*YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE* *YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE*
.SnoX is offline  
Thanks
1 User
Old 06/04/2014, 14:36   #5
 
marvincod1's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 86
Received Thanks: 9
Quote:
Originally Posted by .SnoX View Post
*YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE* *YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE*
*YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE* *YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE**YOLOCODE*
hahaha ye, i added myself a define name because on the release there wasn't one ;p

and i have defined in both versioncommon.h files.
marvincod1 is offline  
Old 06/04/2014, 15:41   #6
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Did you have only 1 UpdateJob inside DPSrvr.cpp?

Or more?
raventh1984 is offline  
Old 06/04/2014, 16:40   #7
 
marvincod1's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 86
Received Thanks: 9
Quote:
Originally Posted by raventh1984 View Post
Did you have only 1 UpdateJob inside DPSrvr.cpp?

Or more?
nop.

this one:

Code:
#ifdef __BEASTjobchanger
	ON_MSG( PACKETTYPE_UPDATE_JOB, OnUpdateJob );
#endif //beast jobchanger
and this one:

Code:
#ifdef __BEASTJobchanger
void CDPSrvr::OnUpdateJob( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long )
{
    try
    {
        CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
        
        if( IsValidObj( pUser ) == TRUE )
        {
			int nJob, nLevel;
            ar >> nJob >> nLevel;
			if( pUser->m_nJob >= nJob )
				return;
			if( nJob < MAX_EXPERT && pUser->m_nLevel != 15 )
				return;
			else if( nJob >= MAX_EXPERT && nJob < MAX_PROFESSIONAL && pUser->m_nLevel != 60 )
				return;
			else if( nJob >= MAX_PROFESSIONAL && nJob < MAX_HERO && pUser->m_nLevel != 120 && pUser->GetExpPercent() != 9999 ) 
				return;
			else if( nJob >= MAX_HERO && pUser->m_nLevel != 129 && pUser->GetExpPercent() != 9999 )
				return;

			pUser->InitLevelPumbaaa( nJob, nLevel, TRUE );
		}
    }
    catch(...)
    {
        Error("Exception caught in File %s on line %d", __FILE__, __LINE__);
    }
}
#endif //beastjobchanger
which should be fine..

i removed; CDPSrvr:: now neuz compills fine, but now the world still has the same problem..
marvincod1 is offline  
Old 06/04/2014, 23:36   #8
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,497
Received Thanks: 3,524
Did you add 2 files to project neuz (& world) ? I think its called WndJobChangeEx.h and .cpp.
Lumi is offline  
Old 06/05/2014, 09:13   #9
 
marvincod1's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 86
Received Thanks: 9
Quote:
Originally Posted by ​Lumi View Post
Did you add 2 files to project neuz (& world) ? I think its called WndJobChangeEx.h and .cpp.
also to the world?
marvincod1 is offline  
Reply


Similar Threads Similar Threads
[HELP] Adding NPC problem
07/04/2014 - Metin2 Private Server - 3 Replies
Link: http://www.elitepvpers.com/forum/metin2-pserver-gu ides-strategies/1844577-release-new-mount-ferrari. html Description: Added Npclist.txt, 20234 fuzi23_ferrari But it did not. http://t1306.hizliresim.com/1b/7/nvwh9.bmp
problem adding quick job change on RoC source?
05/15/2012 - Flyff Private Server - 0 Replies
15,60,master,hero are perfectly working but 3rd job arent.. mmm.. when i reach level 130 my exp is 99% not zero.. how can i fix this.? sory for my bad english.. and the window is not appering!
Hilfe mit JobChanger ;D
10/31/2008 - Flyff Private Server - 0 Replies
Hilfe ich habe ein paar probleme mit dem Jobchanger. D.h. 1st/2nd Master/Hero geht iwie nicht kann mir damit mal jemand helfen ? 1. Wie kann ich machen das die auf Janne und Hachal sind. 2. Wie bekomme ich di zum laufen ;D im ******** Forum ist das komisch beschrieben Hilfe pls
[Suche] Funktionierende JobChanger
10/04/2008 - Flyff Private Server - 0 Replies
Wer Die Beiden Hatt Soll Sie Bitte Den Link Posten Oda Mich Pm wäre sehr nett da (wir) die brauchen da unsere net mehr gehen o.o mfg.aibatt
gunslinger und ninja jobchanger custom quests
09/22/2006 - Ragnarok Online PServer Hosting - 7 Replies
ich habe mal für den gunslinger und den ninja custom quests gemacht ^^: ############################# Ninja: http://home.arcor.de/melphis/script/ninja.txt ############################# Gunslinger: http://home.arcor.de/melphis/script/gunslinger.tx t #############################



All times are GMT +1. The time now is 08:28.


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.