October 24, 20187 yr 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.
October 24, 20187 yr Author 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
October 24, 20187 yr 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, 20187 yr by Ordush
October 24, 20187 yr Author got a profile for it Just now, Ordush said: Ah. You can just check your pet name. ? how can i do that? Lupos.xml
October 24, 20187 yr 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;
October 24, 20187 yr 33 minutes ago, Ordush said: if (ObjectManager.Pet.Name == "Wolf") return true; else return false; Oh honey... return ObjectManager.Pet.Name == "Wolf"
October 24, 20187 yr 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, 20187 yr by Ordush
October 24, 20187 yr 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.
October 24, 20187 yr 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. ?
Create an account or sign in to comment