Jump to content

Recommended Posts

Hello,

 

Q#1

Can someone please explain (from Quest Order Editor > Action Types) what is the meaning and the usage of these? possible examples?
 

Quote

 

While

WhileHasQuest

WriteLog

MessageBox

PulseAllInOne

 

 

 

Q#2

Can I make the bot check for quest status if (completed) or not without Pulsing the quest?

 

For example:

http://www.wowhead.com/quest=9853/gurok-the-usurper

I want the bot to Check first .. IF this quest is completed > move on to step [XX].. I have done the quest manually myself while scripting it, then I run the bot, it should move on to step [172] and recognize the quest as completed.. but it will not.

My question... Why False? Why it doesn't check if quest is completed by using "if or RunCode or While" I tried all those and all comes false.

Quote

[D] 04:34:35 - [Quester] If[165] (Quest.GetLogQuestIsComplete(9853)) | Result: False

 

My question... Why False? Why it doesn't check if quest is completed by using "if or RunCode or While" I tried all those and all comes false.

Complete False.jpg

 

Complete False2.jpg

59 minutes ago, kawanin said:

PulseAllInOne: bot will pick up, pulse and turn in the quest.

MessageBox: bot will stop and show up messagebox

 

Thank you so much! This can save me a lot of time then, and can do many cool things!

    public bool NeedToRun()
    {
      if (this.QuestClassInstance == null || this.QuestClassInstance.QuestId.Count == 0)
        return false;
      switch (this.Action)
      {
        case QuestAction.None:
          return false;
        case QuestAction.Pulse:
          if (this.QuestClassInstance.HasQuest())
            return !this.QuestClassInstance.IsComplete();
          return false;
        case QuestAction.TurnIn:
          if (this.QuestClassInstance.HasQuest() && this.QuestClassInstance.IsComplete())
            return !this.QuestClassInstance.IsCompleted();
          return false;
        case QuestAction.PickUp:
          if (!this.QuestClassInstance.HasQuest() && !this.QuestClassInstance.IsCompleted())
            return this.QuestClassInstance.CanConditions();
          return false;
        case QuestAction.PulseAllInOne:
          if (!this.QuestClassInstance.IsCompleted())
            return this.QuestClassInstance.CanConditions();
          return false;
        case QuestAction.Reset:
          return true;
        default:
          return false;
      }
    }

from wrobot source code. check what function used for quest behaviour

 

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
×
×
  • Create New...