• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Source] Player does not lose target

DanielViana

New Member
Joined
Sep 20, 2009
Messages
1
Reaction score
0
Hello, I do not know if I am in the correct area more we go there, and first everything it would like already asking for excuses, therefore my not and very good English.

Good then we go there, this tutorial one goes to teach as to arrange the error of the player it does not lose the target when it attacks.

1° Go in its sources

2° Open the archive, protocolgame.cpp

3° Locates this code:
void ProtocolGame::sendCancelTarget()
{
NetworkMessage_ptr msg = getOutputBuffer();
if(msg)
{

4° Change for this code:
void ProtocolGame::sendCancelTarget()
{
NetworkMessage_ptr msg = getOutputBuffer();
if(msg)
{
TRACK_MESSAGE(msg);
msg->AddByte(0xA3);
msg->AddU32(0);
}
}
TRACK_MESSAGE(msg);
msg->AddByte(0xA3);
}
}

5° Close and save, and ready. Now all will be losing the target after something to leave the screen or you, to go up or to go down stairs.

Good luck to that they will go to try and for if entereçar in this topic. E is mine here hugs for all! :)
 
only
Code:
void ProtocolGame::sendCancelTarget()
{
	NetworkMessage_ptr msg = getOutputBuffer();
	if(msg)
	{
		TRACK_MESSAGE(msg);
		msg->AddByte(0xA3);
		msg->AddU32(0);
	}
}
 
how do you know what AddByte(hex) u can use and where? sorry im a noob
 
Back
Top