SHARE
TWEET

Untitled

a guest Nov 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int CHARACTER::GetQuestFlag(const std::string& flag) const
  2. {
  3.     quest::CQuestManager& q = quest::CQuestManager::instance();
  4.     quest::PC* pPC = q.GetPC(GetPlayerID());
  5.     if(!pPC) {
  6.         sys_err("Nullpointer in CHARACTER::GetQuestFlag %lu", GetPlayerID());
  7.         return 0;
  8.     }
  9.     return pPC->GetFlag(flag);
  10. }
  11.  
  12. void CHARACTER::SetQuestFlag(const std::string& flag, int value)
  13. {
  14.     quest::CQuestManager& q = quest::CQuestManager::instance();
  15.     quest::PC* pPC = q.GetPC(GetPlayerID());
  16.     if(!pPC) {
  17.         sys_err("Nullpointer in CHARACTER::GetQuestFlag %lu", GetPlayerID());
  18.         return;
  19.     }
  20.     pPC->SetFlag(flag, value);
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top