kusanagy
Respected Member
Hello friends.
I want from your knowledge, who can help me, adding, a detect AFK, and not being able to receive the Recompense.
player.cpp
I need that if the player, is in AFK, does not receive said Reward.
thanks Guys!
I want from your knowledge, who can help me, adding, a detect AFK, and not being able to receive the Recompense.
player.cpp
Code:
LoginDatabase.Execute(stmt);
}
+ // PlayedTimeReward
+ if (ptr_Interval > 0)
+ {
+ if (ptr_Interval <= p_time)
+ {
+ GetSession()->SendAreaTriggerMessage("Bonus for played time.");
+ ModifyMoney(ptr_Money);
+ ModifyHonorPoints(ptr_Honor);
+ ModifyArenaPoints(ptr_Arena);
+ ptr_Interval = sConfigMgr->GetIntDefault("PlayedTimeReward.Interval", 0);
+ }
+ else
+ ptr_Interval -= p_time;
+ }
+
if (!m_timedquests.empty())
I need that if the player, is in AFK, does not receive said Reward.
thanks Guys!