• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Time Reward Help

Status
Not open for further replies.

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

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!
 
Status
Not open for further replies.
Top