[V C++ + python] DLL + metin2

07/05/2013 19:36 dramcio#1
Hello.

I made a simple script in v studio this is my func :

Code:
extern "C" __declspec(dllexport) int Suma(int a, int b);


int Suma(int a, int b){
	return a+b;
}
I compile this to PlikDLL and want to use this func in metin2.

So i injected dll file, and next inject my python script :

Code:
import PlikDLL
import chat

cos = PlikDLL.Suma(10,5)
chat.AppendChat(chat.CHAT_TYPE_INFO, str(cos))
Is problem because my Python script dont find PlikDLL libary :(

What i should do?

--------
In the future i need to make a dll which returns int value, how to send this value to python func ?

------

Is possible to track metin2, to find a hook what is actually running ?
Like pickup items etc.
Regards.
08/09/2013 18:58 evasmoky#2
because you not inject PlikDLL in client . rename PlikDLL in PlikDLL.mix and try again.. sorry for my eng