Everything posted by Droidz
-
Get WoWPlayer Realm
In CastSpellByNameOn you need to put lua unit id (not unit name) To don't stop move, you can try: Interact.InteractGameObject(partyMember.GetBaseAddress, false, true);
- Wrobot Don`t detect when quest is finish
-
Snippets codes for quest profiles
Dump all quests in "Quests log" with lua ret = ''; local numEntries, numQuests = GetNumQuestLogEntries(); for questLog = 1, numEntries do local questTitle, _, _, _, _, _, _, id = GetQuestLogTitle(questLog); if id > 0 and questTitle then local q = '\n================='; q = q .. '\n' .. tostring(questTitle) .. ' (' .. id .. ')'; local numObjectives = GetNumQuestLeaderBoards(questLog); for i=1,numObjectives do local description, objectiveType, isCompleted = GetQuestLogLeaderBoard(i,questLog); if description then q = q .. '\nObjective count: ' .. i .. ', Description: ' .. tostring(description) .. ', ObjectiveType: ' .. tostring(objectiveType) .. ', IsCompleted: ' .. tostring(isCompleted); end end q = q .. '\n================='; print(q); ret = ret .. q; end end Go to WRobot tab "Tools" > "Development Tools" > paste this lua code in textbox and click on button "Lua (return value in 'ret')"
- Wrobot Don`t detect when quest is finish
- Wrobot Don`t detect when quest is finish
-
Focus<->Target swap will confuse wrobot.
Seem not stop fight: 2016-09-09_14-15-52.mp4
-
A way to list all the world quests and the rewards?
I have found this profile: https://www.thebuddyforum.com/honorbuddy-forum/honorbuddy-profiles/267654-world-quests-wip.html Converted for WRobot: TestWorldQuest.xml (not tested) Class code: using System; using System.Collections.Generic; using System.Linq; using robotManager.Helpful; using wManager.Wow.Class; using wManager.Wow.Enums; using wManager.Wow.Helpers; public class WorldQuestData { public int ID; public string Name; public System.DateTime ExpireTime; } public class WorldQuestInfo : QuestClass { public WorldQuestInfo() { Name = "WorldQuestInfo"; } static List<WorldQuestData> _cache = new List<WorldQuestData>(); static internal bool _dirty = true; static internal bool _setup = false; static WorldQuestInfo() { Setup(); } public static void Setup() { if (_setup) return; EventsLua.AttachEventLua(LuaEventsId.WORLD_MAP_UPDATE, m => WorldQuestMarkDirty()); EventsLua.AttachEventLua(LuaEventsId.SUPER_TRACKED_QUEST_CHANGED, m => WorldQuestMarkDirty()); EventsLua.AttachEventLua(LuaEventsId.WORLD_QUEST_COMPLETED_BY_SPELL, m => WorldQuestMarkDirty()); UpdateWorldQuests(); _setup = true; } public static void WorldQuestMarkDirty() { _dirty = true; } public static bool HasWorldQuest(int questid) { UpdateWorldQuests(); var quest = _cache.FirstOrDefault(q => q.ID == questid); if (quest == null || quest.ExpireTime <= System.DateTime.UtcNow) return false; return true; } public static void UpdateWorldQuests() { if (!_dirty) return; _cache = new List<WorldQuestData>(); int BrokenIslesMapArea = 1007; var numZones = Lua.LuaDoString<int>(string.Format("return C_MapCanvas.GetNumZones({0});", BrokenIslesMapArea)); for (int i = 1; i < numZones; ++i) { var zoneID = Lua.LuaDoString<int>(string.Format("local zoneMapID, zoneName, zoneDepth, left, right, top, bottom = C_MapCanvas.GetZoneInfo({0}, {1}); return zoneMapID;", BrokenIslesMapArea, i)); var zoneName = Lua.LuaDoString<string>(string.Format("local zoneMapID, zoneName, zoneDepth, left, right, top, bottom = C_MapCanvas.GetZoneInfo({0}, {1}); return zoneName;", BrokenIslesMapArea, i)); var zoneDepth = Lua.LuaDoString<int>(string.Format("local zoneMapID, zoneName, zoneDepth, left, right, top, bottom = C_MapCanvas.GetZoneInfo({0}, {1}); return zoneDepth;", BrokenIslesMapArea, i)); if (zoneDepth > 1) //Do not look at subzones { Logging.WriteDebug(string.Format("[WorldQuestInfo] Ignoring {0} ({1}) as ZoneDepth > 1 ({2})", zoneID, zoneName, zoneDepth)); continue; } string toRun = string.Format(@" local questids = ''; local taskInfo = C_TaskQuest.GetQuestsForPlayerByMapID({0}, {1}); if taskInfo then for i, info in ipairs(taskInfo) do if HaveQuestData(info.questId) then if QuestMapFrame_IsQuestWorldQuest(info.questId) then questids = questids .. info.questId .. '#LUASEPARATOR#'; end end end end return questids; ".Replace("#LUASEPARATOR#", Lua.ListSeparator), zoneID, BrokenIslesMapArea); var questids = Lua.LuaDoString<List<int>>(toRun); foreach (var questid in questids) { if (questid <= 0) continue; //TimeLeft is in minutes var TimeLeft = Lua.LuaDoString<int>(string.Format("return C_TaskQuest.GetQuestTimeLeftMinutes({0});", questid)); var QuestInfo = Lua.LuaDoString<string>(string.Format("return C_TaskQuest.GetQuestInfoByQuestID({0});", questid)); Logging.WriteDebug(string.Format("[WorldQuestInfo] WorldQuest {0} ({2}) active ({1}m left)", QuestInfo, TimeLeft, questid)); var data = new WorldQuestData(); data.ID = questid; data.Name = QuestInfo; data.ExpireTime = DateTime.UtcNow.AddMinutes(TimeLeft); _cache.Add(data); } } _dirty = false; } public static bool IsWorldQuest(int questid) { string lua = string.Format("local tagID, tagName, worldQuestType, rarity, isElite, tradeskillLineIndex = GetQuestTagInfo({0}); return worldQuestType;", questid); var ret = Lua.LuaDoString<string>(lua); if (string.IsNullOrWhiteSpace(ret) || ret == "nil") return false; return true; } } Usage: bool hasWorldQuest = WorldQuestInfo.HasWorldQuest(int QuestId); bool isWorldQuest = WorldQuestInfo.IsWorldQuest(int questid);
- Wrobot Don`t detect when quest is finish
- Wrobot Don`t detect when quest is finish
-
Fisherbot Quest
Hello, use quest type "OverridePulseCSharpCode" with code: Vector3 fishPosition = new Vector3(-9387.61, -120.2896, 58.53797, "Flying"); float fishRotation = 4; if (!FishingTask.IsLaunched) { if (GoToTask.ToPosition(fishPosition, 1.5f)) { ObjectManager.Me.Rotation = fishRotation; FishingTask.LoopFish(); } } return true; (replace "-9387.61, -120.2896, 58.53797" by fishing position and 4 by fishing rotation (you can get position and rotation in WRobot tab "Tools" > "Dev... tools" > "Me/Target Position")) Don't forget to stop fishing, for it, after pulse fishing quest, in quests order add step type "RunCode" with code: wManager.Wow.Bot.Tasks.FishingTask.StopLoopFish(); Sample profile: FishingTest.xml
-
Holy Prism
Hello, you can add it in your fightclass: http://wrobot.eu/forums/topic/3560-fight-class-tutorial-video/
-
win xp No DX
Hello, if you can, use normal version and ignore this messagebox.
-
winxp relogger error
Hello, if you can wait next update
-
impossible de me co
http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966
-
il me dit deja utiliser
Changed Status to Not a Bug Changed Version to All
-
il me dit deja utiliser
Bonjour, http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966 étape 10, 14
-
Relogger problem
If you can wait next update and tell me if problem is resolved.
-
Buy items only if > didn't work
If you can wait next update (in next Wrobot check before buy the item and check if current money - item price is bigger at min money, before wrobot checked only one time by buy step).
-
Focus<->Target swap will confuse wrobot.
Hello, When you use lua global variable ("result" in you scripts) don't forget to assign it at the code start (to avoid to get last result or result of others script), put at the start: result=false; I cannot reproduct your problem. What WRobot product do you use?
-
WRobot No DX less efficient ?
It is not 10min, it is 4 hours (and wow don't seem crash on this session). Do you run softwares when WRobot is running? If yes can you give me names. Do you have disable "Bliz Streaming" feature? Do you have try to reinstall WRobot and SlimDX ?
-
Quester - Blacklist doesnt work?
Hello, in tab "Map" you see blacklisteds zones when your profile running? You get this problem only in "UseItemOn", can you send me screenshot of you quest.
-
How to detect stagger? Like Energy or Chi
hello, https://www.google.com/search?q=stagger+site:wrobot.eu ( http://wrobot.eu/files/file/305-brewmaster-monk-54/ )
-
popup with "continue" and "stop" buttons
Hello, in quests order, you can add step type "MessageBox".
-
Game stuck as soon as I press Launch bot.
Don't forget to share your log file if your problem is not resovled.
-
Game stuck as soon as I press Launch bot.
Hello, http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966 step 1, 6, 10, 14, 15