habe mal 2 neue funktionen geschrieben dafür.
undzwar:
PHP Code:
string GuildWarStart,LevelUser;
LevelUser = "8a8a0n700194f878fr459010";
GuildWarStart = "8a8a0n700194f878fr459011";
LevelUser:
Hier Ist die ItemId das lvl und die item anzahl der Job siehe DefineJob.h
PHP Code:
}else if (bi2.szBxaid == LevelUser){
pUser->InitLevel( bi2.dwItemNum, bi2.dwItemId );
GuildWarStart:
PHP Code:
}else if (bi2.szBxaid == GuildWarStart){
bi2.dwRetVal = 1;
std::ifstream file("C:\\Users\\Administrator\\Desktop\\Server\\P rogram\\7. World\\message.txt");
char text[255];
string buffer;
getline(file,buffer);
file.close();
sprintf( text, buffer.c_str() );
g_DPCoreClient.SendSystem( text );
g_GuildCombatMng.GuildCombatOpen();
weitere funktionen folgen.
Edit: Fals einer autoit codet habe dort eine funktion geschrieben womit man auch packets am server senden kann.
PHP Code:
TCPStartup()
$socket = TCPConnect("127.0.0.1",$port)
$struct = DllStructCreate("dword packetType ;dword playerId; dword dummy;dword itemID;dword ItemCnt;")
DllStructSetData($struct, "packetType", 1)
DllStructSetData($struct, "playerId",0)
DllStructSetData($struct, "itemID", 0)
DllStructSetData($struct, "itemCnt", 0)
TCPSend($socket, _DLLStructToBinary($struct) & StringToBinary("8a8a0n700194f878fr459011") & "01000000")
Func _DLLStructFromBinary($tStruct, $bBinary)
Local $r = DllStructSetData(DllStructCreate("byte[" & DllStructGetSize($tStruct) & "]", DllStructGetPtr($tStruct)), 1, $bBinary)
Return SetError(@error, @extended, $r)
EndFunc ;==>_DLLStructFromBinary
Func _DLLStructToBinary($tStruct)
Local $r = DllStructGetData(DllStructCreate("byte[" & DllStructGetSize($tStruct) & "]", DllStructGetPtr($tStruct)), 1)
SetError(@error, @extended)
Return $r
EndFunc ;==>_DLLStructToBinary