August 1, 20169 yr 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
August 1, 20169 yr (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
August 1, 20169 yr Author 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
August 1, 20169 yr 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
August 1, 20169 yr 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...
August 1, 20169 yr Author 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
Create an account or sign in to comment