BetterSister 367 Posted August 1, 2016 Share Posted August 1, 2016 How do i tell the bot to check if boss in dungeon is dead? Sure i can use ObjectManager.GetWoWUnitHostile() but it's not fail proof Link to comment https://wrobot.eu/forums/topic/3539-is-dungeon-boss-dead/ Share on other sites More sharing options...
Bugreporter 93 Posted August 1, 2016 Share Posted August 1, 2016 (UnitHealth("target")==0) or direct with UnitIsDead or, in a quester profile: (wManager.Wow.Helpers.Lua.LuaDoString("local _, _, numCriteria = C_Scenario.GetStepInfo(); if not numCriteria or numCriteria == 0 then completedObj = 'true'; return; end; local critID; _, _, completedObj,_,_,_,_,_,critID = C_Scenario.GetCriteriaInfo(4); if critID ~= 24921 then completedObj = 'true'; end;", "completedObj").ToLower() == "true") (You have o change the (4) in GetCriteriaInfo and the 24921 to the critID of your dungeon Link to comment https://wrobot.eu/forums/topic/3539-is-dungeon-boss-dead/#findComment-16331 Share on other sites More sharing options...
BetterSister 367 Posted August 1, 2016 Author Share Posted August 1, 2016 same result as using GetWoWUnitHostile() but since blizzard has own builtin system that tells if you've killed boss already there must be a way to use it Link to comment https://wrobot.eu/forums/topic/3539-is-dungeon-boss-dead/#findComment-16332 Share on other sites More sharing options...
Bugreporter 93 Posted August 1, 2016 Share Posted August 1, 2016 another possibility is to check the saved instances....I've no working code here, but some samples to start are here : https://www.thebuddyforum.com/honorbuddy-forum/200290-checking-instance-locked.html Link to comment https://wrobot.eu/forums/topic/3539-is-dungeon-boss-dead/#findComment-16333 Share on other sites More sharing options...
eeny 523 Posted August 1, 2016 Share Posted August 1, 2016 Droidz made a dungeon sample- check this <iscomplete> condition return (wManager.Wow.Helpers.Lua.LuaDoString("local _, _, numCriteria = C_Scenario.GetStepInfo(); if not numCriteria or numCriteria == 0 then completedObj = 'true'; return; end; local critID; _, _, completedObj,_,_,_,_,_,critID = C_Scenario.GetCriteriaInfo(1); ", "completedObj").ToLower() == "true"); C_Scenario.GetCriteriaInfo(1) <<< change the number depending on what number the boss is on the list. I'M surprised you got botanica to work without that string... Link to comment https://wrobot.eu/forums/topic/3539-is-dungeon-boss-dead/#findComment-16340 Share on other sites More sharing options...
BetterSister 367 Posted August 1, 2016 Author Share Posted August 1, 2016 4 minutes ago, eeny said: Droidz made a dungeon sample- check this <iscomplete> condition return (wManager.Wow.Helpers.Lua.LuaDoString("local _, _, numCriteria = C_Scenario.GetStepInfo(); if not numCriteria or numCriteria == 0 then completedObj = 'true'; return; end; local critID; _, _, completedObj,_,_,_,_,_,critID = C_Scenario.GetCriteriaInfo(1); ", "completedObj").ToLower() == "true"); C_Scenario.GetCriteriaInfo(1) <<< change the number depending on what number the boss is on the list. I'M surprised you got botanica to work without that string... i made botanica compatible with WOTLK so i didn't want to use it Link to comment https://wrobot.eu/forums/topic/3539-is-dungeon-boss-dead/#findComment-16341 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