View Single Post
  #7  
Old 06-21-2018, 06:04 PM
Sturm
Hill Giant
 
Join Date: Dec 2015
Posts: 116
Default

So in your player.pl file in the guildlobby folder you will see this code:

Code:
sub EVENT_ENTERZONE {
quest::settimer("afk_check", 1200); #20 minutes
}

sub EVENT_TIMER {
elsif($timer eq "afk_check") {
		#I have been idle, go auto-afk and don't draw model
		$client->Message(4, "You are idle, Auto-AFK");
		if ($client->GetPetID()) {
			$Pet_ENT = $entity_list->GetMobByID($client->GetPetID());
			$Pet_ENT->SetRace(127);
		}
		$client->SetRace(127);
		$client->SetGender(0);
		quest::stoptimer("afk_check");
	}
}
This is just a snippet of what is causing this. Hash/Comment out the timer in EVENT_ZONE and that will no longer happen.

Cheers!
__________________
Developer of the Imperium Server.
https://imperium-eq.com/
Reply With Quote