• 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!

Feature Unset monster after client 'Exit' game

elf

Sing, sing blue silver
Senator
Joined
Dec 11, 2007
Messages
3,666
Solutions
1
Reaction score
125
Location
Warsaw, Poland
GitHub
tayandenga
Twitch
tayandenga
Its a good anti-bot feature, 2 lines code.

Open player.cpp and find:
Code:
		if(client)
			client->sendPing();
Add just after it:
Code:
		else
			setAttackedCreature(NULL);
Save, close and recompile.

Everything :D
 
if someones X-logs out of tibia any creatures targeting them will stop targeting them(i think thats what this does)
 
if someones X-logs out of tibia any creatures targeting them will stop targeting them(i think thats what this does)

No, it's working on the other side. If player have target (eg. other player) and will "Exit" then he'll stop attacking that player which was his target.
 
Back
Top