Extracting Transmutation System

Junior Spellweaver
Joined
Aug 5, 2011
Messages
167
Reaction score
7
Hello!
I want to implement the Transmutation System in my main server... and I have another server's files which has the Transmutation System. Since I'm really noob, I have a question:

If I search for LOOKCHANGE in the source of the second server, then a lot of files containing LOOKCHANGE will appear. If I open each of them and take the code regarding the LOOKCHANGE and put into my server's source and compile... should that work?

Thanks!
 
You mean you want to have your source the Transmutation System?
Just Copy the Code from the Source then Paste it to your OWN SOURCE.
After that Compile.
 
Ok I tried that but I got a ton of errors to compile... it took me over an hour to copy/paste the LOOKCHANGE codes.. so I'm really tired of it xD

Question:

What if I compile the other server's source and use it while using my server resource? Would that work?
 
I got a Transmutation System released on EPvpers, it's just a bunch of .cpp files and .h files but it also shows you where to add the code within the source.
I did that, but when I try to compile, I get some errors:

1) 'bIsLooksChangeMaterial' : is not a member of 'Itemprop'

2) 'dwLook' : is not a member of '_EQUIP_INFO'
Code:
#ifdef __LOOKCHANGE
						ar << m_a[B]EquipInfo[/B][i].dwLook;
#endif

3) case expression not constant (a problem with DPClient, which I did not edit)

4) syntax error: ')'
Code:
((CWndLookChange*)pWndBase)->SetItem((CItemElem*)pFocusItem);
Code:
CWndLookChange *pLook = (CWndLookChange*)g_WndMng.GetWndBase(APP_LOOKCHANGE);

5) syntax error: identifier CWndLookChange
Code:
pLook = new CWndLookChange();

6) CWndLookChange : undeclared identifier

7) Left of '-> Destroy' must point to class/struct/union. type is "unknown-type"
Code:
#ifdef __LOOKCHANGE
	pWndBase	= g_WndMng.GetWndBase( APP_LOOKCHANGE );
	if( pWndBase )
		pWndBase->Destroy();
#endif

8) CUser::AddLookChange : cannot access private member declared in class 'CUser'



And some more errors... any idea on how to solve them? A big thanks in advance!
 
VS error logs? Where can I get them? By the way, that's not compiling the Neuz and the WorldServer.exe

I'm still learning how to use VS properly :P
 
Try to compare the Transmutation System with the Virtous Source and you will find it there.

I did this and I found out that I had many things to fix, so thanks to you.

I managed to fix some errors.. but I am still getting "undeclared identifier" errors...

Code:
WndField.cpp(1130) : error C2065: 'pWndBase' : undeclared identifier
WndField.cpp(1131) : error C3861: 'pWndBase': identifier not found, even with argument-dependent lookup
WndField.cpp(1132) : error C2227: left of '->Destroy' must point to class/struct/union
WndField.cpp(1132) : error C3861: 'pWndBase': identifier not found, even with argument-dependent lookup
WndField.cpp(1132) : error C3861: 'pWndBase': identifier not found, even with argument-dependent lookup
WndWorld.cpp(6316) : error C2065: 'CWndLookChange' : undeclared identifier
WndWorld.cpp(6316) : error C2065: 'pLook' : undeclared identifier
WndWorld.cpp(6316) : error C2061: syntax error : identifier 'CWndLookChange'
WndWorld.cpp(6317) : error C2227: left of '->Initialize' must point to class/struct/union
WndWorld.cpp(6317) : error C3861: 'pLook': identifier not found, even with argument-dependent lookup

Any idea about how to solve them? Thanks in advance.

EDIT: I fixed the errors regarding WndWorld.cpp but the WldField.cpp errors remain.

EDIT2: I fixed the errors regarding WndField.cpp by adding:

Code:
#if __VER >= 19
					CWndBase *pWndBase = NULL;
#endif
before
Code:
#ifdef __LOOKCHANGE
	pWndBase	= g_WndMng.GetWndBase( APP_LOOKCHANGE );
	if( pWndBase )
		pWndBase->Destroy();
#endif
and
Code:
#ifdef __LOOKCHANGE
					if( (pWndBase = g_WndMng.GetWndBase(APP_LOOKCHANGE)) )
					{
						if(pFocusItem->GetExtra() < ((CItemElem*)pFocusItem)->m_nItemNum)
						{	
							((CWndLookChange*)pWndBase)->SetItem((CItemElem*)pFocusItem);
							return TRUE;
						}
					}
#endif //__LOOKCHANGE

It compiled with no errors... lol

Don't check the spoiler xD
All errors are fixed and the transmutation is working :)
 
Last edited:
Back