Jump to content

Droidz

Administrators
  • Posts

    12519
  • Joined

  • Last visited

Everything posted by Droidz

  1. 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);
  2. When you click in WRobot tab "Tools" > "Development Tools" > "Bag items list" the items don't appear in the list?
  3. Hello, your quest is complete ? In you bag do you have http://www.wowhead.com/item=128493/yotnars-left-arm and http://www.wowhead.com/item=128495/yotnars-right-arm and http://www.wowhead.com/item=128497/yotnars-left-foot and http://www.wowhead.com/item=128496/yotnars-right-foot ?
  4. 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
  5. Hello, you can add it in your fightclass: http://wrobot.eu/forums/topic/3560-fight-class-tutorial-video/
  6. Hello, if you can, use normal version and ignore this messagebox.
  7. Hello, if you can wait next update
  8. http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966
  9. Changed Status to Not a Bug Changed Version to All
  10. Bonjour, http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966 étape 10, 14
  11. If you can wait next update and tell me if problem is resolved.
  12. 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).
  13. 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?
  14. 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 ?
  15. 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.
  16. hello, https://www.google.com/search?q=stagger+site:wrobot.eu ( http://wrobot.eu/files/file/305-brewmaster-monk-54/ )
  17. Hello, in quests order, you can add step type "MessageBox".
  18. Don't forget to share your log file if your problem is not resovled.
  19. Hello, http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966 step 1, 6, 10, 14, 15
  20. Hello, http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/ step 6 (share you log files if your problem is not resolved)
  21. Hello, I comeback here when is added
  22. Hello, http://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966 steps 10, 14 and 6
  23. Bonjour, relancé WRobot un foi le personnage changé.
  24. Bonjour, merci de créer un nouveau sujet dans le forum Français avec vos fichier journals (log files) et plus de détails.
  25. Or like this http://wrobot.eu/forums/topic/2173-click-to-accept-click-to-turn-in-quests-droidz-budday/?do=findComment&comment=10188 (if no button name change since)
×
×
  • Create New...