Jensen- 25 Posted October 23, 2018 Share Posted October 23, 2018 looking for a is complete condition to tame a specifik pet Link to comment Share on other sites More sharing options...
Ordush 185 Posted October 24, 2018 Share Posted October 24, 2018 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 More sharing options...
Jensen- 25 Posted October 24, 2018 Author Share Posted October 24, 2018 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 More sharing options...
Ordush 185 Posted October 24, 2018 Share Posted October 24, 2018 (edited) 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 October 24, 2018 by Ordush Link to comment Share on other sites More sharing options...
Jensen- 25 Posted October 24, 2018 Author Share Posted October 24, 2018 got a profile for it Just now, Ordush said: Ah. You can just check your pet name. ? how can i do that? Lupos.xml Link to comment Share on other sites More sharing options...
Ordush 185 Posted October 24, 2018 Share Posted October 24, 2018 11 minutes ago, Jensen- said: got a profile for it how can i do that? Lupos.xml if (ObjectManager.Pet.Name == "Wolf") return true; else return false; Link to comment Share on other sites More sharing options...
Matenia 625 Posted October 24, 2018 Share Posted October 24, 2018 33 minutes ago, Ordush said: if (ObjectManager.Pet.Name == "Wolf") return true; else return false; Oh honey... return ObjectManager.Pet.Name == "Wolf" Link to comment Share on other sites More sharing options...
Ordush 185 Posted October 24, 2018 Share Posted October 24, 2018 (edited) 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 October 24, 2018 by Ordush Link to comment Share on other sites More sharing options...
Matenia 625 Posted October 24, 2018 Share Posted October 24, 2018 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 More sharing options...
Ordush 185 Posted October 24, 2018 Share Posted October 24, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now