Requ
-
Posts
19 -
Joined
-
Last visited
Reputation Activity
-
Requ reacted to Matenia in WRobot no longer works with TellMeWhen
It's not a bug. wRobot executes Lua code in a secure environment, which no "addon" should be able to do. All addons can only execute codes through the macro API.
A more simple version of this used to be known as a Lua unlocker.
Now that servers found a way to execute code in your WoW client (like any abitrary Lua code they want), wRobot needs to intercept this to taint the environment again to prevent detection by the server (tainted = insecure). You can just execute Lua code from within wRobot, you don't need an addon to provide additional functionality (and if you need a helper function it provides, you can move that to the Lua code you execute within wRobot).
If you aren't interested in executing secure Lua code (just stuff an addon could do to begin with), you can use these options:
Lua.SecureLuaCall = false; Lua.LuaDoString(string command, bool notInGameMode, bool ignoreSecureLuaCallOption);
-
Requ got a reaction from Matenia in Rogue poisons
Those are my mainhand and offhand checks, dunno how much API has changed since TBC, but you might wanna try it:
var needsMainHandRefresh = Lua.LuaDoString<bool>("local hasMainHandEnchant, mainHandExpiration, _, _, _, _ = GetWeaponEnchantInfo(); return not hasMainHandEnchant or (mainHandExpiration / 1000 / 60) <= 15;"); var needsOffHandRefresh = Lua.LuaDoString<bool>("local _, _, _, hasOffHandEnchant, offHandExpiration, _ = GetWeaponEnchantInfo(); return not hasOffHandEnchant or (offHandExpiration / 1000 / 60) <= 15;"); Checks if enchant is missing at all, or remaining time is smaller than 15 minutes (you might wanna remove that or change value for your own purposes)
-
Requ reacted to Droidz in Custom Profile + Pet Battle Fight Class
Hello, try that:
Pet_Battle.Bot.PetBattleSetting.Load(); wManager.Wow.Helpers.PetBattles.ReviveOne = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.ReviveOne; wManager.Wow.Helpers.FightBattlePet.CaptureAllPets = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.CaptureAllPets; wManager.Wow.Helpers.FightBattlePet.CaptureIDontHavePets = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.CaptureIDontHavePets; wManager.Wow.Helpers.FightBattlePet.CaptureRarePets = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.CaptureRarePets; wManager.Wow.Helpers.FightBattlePet.PetBattlesDontFight = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.DontFight; wManager.Wow.Helpers.FightBattlePet.AutoOrderPetByLevel = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.AutoOrderPetByLevel; wManager.Wow.Helpers.FightBattlePet.LuaCode = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.LuaHook; wManager.Wow.Helpers.FightBattlePet.AutoChooseBestPet = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.AutoChooseBestPet; wManager.Wow.Helpers.FightBattlePet.AbilitiesBlackListed = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.AbilitiesBlackListed; wManager.Wow.Helpers.FightBattlePet.FightClass = Pet_Battle.Bot.PetBattleSetting.CurrentSetting.FightClass; (and compile custom profile dll (don't forget to add in reference "Pet battle.dll") (if you don't wont generate dll, use quester product to run your c# code, quester prelaod "pet battle.dll")