Jump to content

pet Condition


Recommended Posts

11 hours ago, Jensen- said:

looking for a is complete condition to tame a specifik pet

You just check the quest if it's completed.
If the quest tells you to tame a pet, then you check if that quest is complete.

Link to comment
Share on other sites

1 minute ago, Ordush said:

You just check the quest if it's completed.
If the quest tells you to tame a pet, then you check if that quest is complete.

no i mean i want to tame lupos with my hunter spell, after i get him i would like the bot to go next step instead of standing in the spot for couple of hours

Link to comment
Share on other sites

6 minutes ago, Jensen- said:

no i mean i want to tame lupos with my hunter spell, after i get him i would like the bot to go next step instead of standing in the spot for couple of hours

Ah. You can just check your pet name. ?
If your pet name is wolf. then complete the step.

Edited by Ordush
Link to comment
Share on other sites

5 hours ago, Matenia said:

Oh honey...


return ObjectManager.Pet.Name == "Wolf"

 

Haha Yeah, that would work in a plugin or if you made your quester using c#.
But if you use the quest editor and you don't have "return false" it will spit out errors. ?
At least, that is my experience! ?

Edited by Ordush
Link to comment
Share on other sites

That code returns a boolean.

Your code, is literally
if (true) then return true
if (false) then return false

Because whatever is in brackets gets evaluated to a boolean first. So you might as well just return the expression that evaluates to a boolean.

Link to comment
Share on other sites

30 minutes ago, Matenia said:

That code returns a boolean.

Your code, is literally
if (true) then return true
if (false) then return false

Because whatever is in brackets gets evaluated to a boolean first. So you might as well just return the expression that evaluates to a boolean.

Yeah i understand, and that is what i do if i'm doing plugins/fc's etc.
But there is a bug with the quester. So you can't just return CODE
You have to return true/false. At least it was there when i did RFC. ?

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