antiblock
https://i.imgur.com/aJ17bf7.gif
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
Mago_pt

Alguem Sabe A Função Pc.getqf() Na Source

Question

pessoal tipo eu utilizo esta função nas quests  pc.getqf() para comparar ou verificar o valor do quest flag

 

mas eu queria comparar/verificar o valor do quest flag na source alguem sabe qual é a função?

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

CHARACTER::GetQuestFlag

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

CHARACTER::GetQuestFlag

if(CHARACTER::GetQuestFlag("ola") == 1000){

 

}

 

assim né?

Share this post


Link to post
Share on other sites
  • 0

Não, tens de ter um LPCHARACTER pointer para chamares a função.

Exemplo (assim é feito nas quests):

LPCHARACTER pChar = quest::CQuestManager::instance().GetCurrentCharacterPtr();
if (pChar->GetQuestFlag("questName.questFlag") == 1000){
  // stuff
}

Share this post


Link to post
Share on other sites
  • 0

ok acho que percebi

Share this post


Link to post
Share on other sites
  • 0

assim tá certo?

bool CHARACTER::ExchangeStart(LPCHARACTER victim)
{
LPCHARACTER pChar = quest::CQuestManager::instance().GetCurrentCharacterPtr();
if (pChar->GetQuestFlag("Negocio.feio") == 11){
return false;
}

ps reparei num ficheiro que tá assim :

int RefineChance = GetQuestFlag("main_quest_lv7.refine_chance");

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this