// v2.1.0 - Updated for new Rez system.
//::////////////////////////////////////////////////////////////////////////////
//:: FileName:  hark_d_rez_pc_20
//::////////////////////////////////////////////////////////////////////////////
/*
   This will set a timed local which indicates that the PC refused/cant help.
*/
//::////////////////////////////////////////////////////////////////////////////
#include "hark_i0_generic"
//::////////////////////////////////////////////////////////////////////////////
void main()
{
  // Take the Gold that is needed and reset the locals.
  object oPC = GetPCSpeaker();
  string sVarName = HS_REZ_REFUSED + GetTag(OBJECT_SELF);
  SetLocalInt(oPC, sVarName, TRUE);
  AssignCommand(GetModule(), DelayCommand(300.0, DeleteLocalInt(oPC, sVarName)));

  // Give master some FeedBack.
  object oMaster = GetRealMaster();
  string sPCName = GetName(oPC);
  string sMyName = GetName(OBJECT_SELF);
  int bFeedBack = GetLocalInt(GetObjectByTag(HS_VARS_OBJ), HS_VAR_REZ_FDB);
  if (bFeedBack)
    { SendMessageToPC(oMaster, sMyName + REZ_MSG25 + sPCName + "."); }
}
//::////////////////////////////////////////////////////////////////////////////
