Jump to content

Harvest Golem

WRobot user
  • Content Count

    243
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Harvest Golem reacted to Zer0 in c# offmesh connection to use elevator   
    Here's the method I've made to handle elevators:
    public static void AddTransportOffMesh( Vector3 waitForTransport, Vector3 stepIn, Vector3 objectDeparture, Vector3 objectArrival, Vector3 stepOut, int objectId, ContinentId continentId, string name = "", float precision = 0.5f) { OffMeshConnection offMeshConnection = new OffMeshConnection(new List<Vector3> { waitForTransport, new Vector3(stepIn.X, stepIn.Y, stepIn.Z, "None") { Action = "c#: Logging.WriteNavigator(\"Waiting for transport\"); " + "while (Conditions.InGameAndConnectedAndProductStartedNotInPause) " + "{ " + $"var elevator = ObjectManager.GetWoWGameObjectByEntry({objectId}).OrderBy(o => o.GetDistance).FirstOrDefault(); " + $"if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3({objectDeparture.X.ToString().Replace(",", ".")}, {objectDeparture.Y.ToString().Replace(",", ".")}, {objectDeparture.Z.ToString().Replace(",", ".")})) < {precision.ToString().Replace(",", ".")}) " + "break; " + "Thread.Sleep(100); " + "}" }, new Vector3(stepOut.X, stepOut.Y, stepOut.Z, "None") { Action = "c#: Logging.WriteNavigator(\"Wait to leave Elevator\"); " + "while (Conditions.InGameAndConnectedAndProductStartedNotInPause) " + "{ " + $"var elevator = ObjectManager.GetWoWGameObjectByEntry({objectId}).OrderBy(o => o.GetDistance).FirstOrDefault(); " + $"if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3({objectArrival.X.ToString().Replace(",", ".")}, {objectArrival.Y.ToString().Replace(",", ".")}, {objectArrival.Z.ToString().Replace(",", ".")})) < {precision.ToString().Replace(",", ".")}) " + "break; " + "Thread.Sleep(100); " + "}" }, }, (int)continentId, OffMeshConnectionType.Unidirectional, true); offMeshConnection.Name = name; OffMeshConnections.Add(offMeshConnection, true); } And here is how I use it:
    AddTransportOffMesh(new Vector3(2865.628, 6211.75, 104.262), // wait for transport new Vector3(2878.712, 6224.032, 105.3798), // Step in new Vector3(2878.315, 6223.635, 105.3792), // Object departure new Vector3(2892.18, 6236.34, 208.908), // Object arrival new Vector3(2880.497, 6226.416, 208.7462, "None"), // Step out 188521, ContinentId.Northrend, "Warsong Hold Elevator UP"); AddTransportOffMesh(new Vector3(2880.497, 6226.416, 208.7462, "None"), // wait for transport new Vector3(2891.717, 6236.516, 208.9086, "None"), // Step in new Vector3(2892.18, 6236.34, 208.908), // Object departure new Vector3(2878.315, 6223.635, 105.3792), // Object arrival new Vector3(2865.628, 6211.75, 104.262), // Step out 188521, ContinentId.Northrend, "Warsong Hold Elevator DOWN"); I've used this for our FlightMaster plugin. In theory, it should also work for other transports.
  2. Thanks
    Harvest Golem reacted to TheSmokie in Get Account Name   
    Hey @pudge, While i was looking to help you, I've looking into offsets that does what you asking, this works, I tested it on my account and it returned the name. enjoy.
    Note : i only ran in dev tools.
    var accountName = wManager.Wow.Memory.WowMemory.Memory.ReadStringUTF8(0x10D7914); if(!string.IsNullOrEmpty(accountName)) { Logging.Write(accountName.ToString()); }  
  3. Thanks
    Harvest Golem reacted to Droidz in Pathfinder server   
    Hi, the problem should be solved.
  4. Like
    Harvest Golem reacted to Droidz in ClickToMove.CGPlayer_C__ClickToMove(x, y, z, 0, (int)ClickToMoveType.Move, 0);   
    Hi,
    If I'm not mistaken, by default Wow uses 0 (and since a few updates the bot forces the use of 0 internally)
  5. Like
    Harvest Golem reacted to Matenia in ClickToMove.CGPlayer_C__ClickToMove(x, y, z, 0, (int)ClickToMoveType.Move, 0);   
    It's CTM, it's used for everything movement related, interaction, targeting etc. That's what the WoW client uses it for under the hood.
    Precision is how close you have to be to the target vector for movement to stop.
  6. Like
    Harvest Golem reacted to Zer0 in MovementManager.Go   
    If you want to move to the first spot on the list, use
    GoToTask.ToPosition(path[0]); If you want to find nearest spot on the list, you can do it this way:
    using System.Linq; List<Vector3> closestSpots = path .OrderBy(spot => spot.Position.DistanceTo(ObjectManager.Me.Position)) .ToList(); Vector3 closestSpot = closestSpots[0]; I haven't tested it and there's probably a more efficient way to do it, but that should work.
  7. Sad
    Harvest Golem got a reaction from Messerboogie in [Wotlk] FlightMaster   
    The problem is quite acute. All the checkboxes are marked with the code from the previous post, and here is what happens: bot just goes from flightmaster to flightmaster in an endless loop. He interacts with the flightmaster, all the nodes that he needs are open, and that's what is in the log:

    17:13:48 - [FlightMaster] Cannot found npc of taxi node Orgrimmar, Durotar, disable it.
    17:13:48 - [FlightMaster] Try to take taxi at 
    17:14:07 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:16:40 - [FlightMaster] Try to take taxi at Vhulgra
    17:16:45 - [FlightMaster] No found useful destination on FlightMaster Vhulgra, skip it.
    17:16:45 - [FlightMaster] Cannot take taxi, Blacklist flightmaster 30 min and taxi node for session.
    17:16:46 - [Mount] Mounting ground mount Summon Charger
    17:16:46 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:16:48 - [FlightMaster] Cannot found npc of taxi node Splintertree Post, Ashenvale, disable it.
    17:16:48 - [FlightMaster] Try to take taxi at 
    17:16:56 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:17:04 - [FlightMaster] Cannot found npc of taxi node Splintertree Post, Ashenvale, disable it.
    17:17:04 - [FlightMaster] Try to take taxi at 
    17:17:05 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Valormok, Azshara, go to npc.
    17:17:51 - [Mount] Mounting ground mount Summon Charger
    17:20:49 - [FlightMaster] Try to take taxi at Doras
    17:20:59 - [FlightMaster] No found useful destination on FlightMaster Doras, skip it.
    17:20:59 - [FlightMaster] Cannot take taxi, Blacklist flightmaster 30 min and taxi node for session.
    17:20:59 - [Mount] Mounting ground mount Summon Charger
    17:20:59 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Valormok, Azshara, go to npc.
    17:21:02 - [FlightMaster] Cannot found npc of taxi node Orgrimmar, Durotar, disable it.
    17:21:02 - [FlightMaster] Try to take taxi at 
    17:22:03 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Valormok, Azshara, go to npc.
    17:23:10 - [FlightMaster] Cannot reach position of taxi node , disable it.
    17:23:10 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Valormok, Azshara, go to npc.
    17:23:12 - [FlightMaster] Cannot found npc of taxi node Orgrimmar, Durotar, disable it.
    17:23:12 - [FlightMaster] Try to take taxi at 
    17:23:31 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:23:54 - [Mount] Dismount
    17:24:06 - [Mount] Mounting ground mount Summon Charger
    17:26:17 - [FlightMaster] Cannot reach position of taxi node , disable it.
    17:26:17 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:26:19 - [FlightMaster] Cannot found npc of taxi node Splintertree Post, Ashenvale, disable it.
    17:26:19 - [FlightMaster] Try to take taxi at 
    17:27:14 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:28:09 - [FlightMaster] Cannot reach position of taxi node , disable it.
    17:28:09 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:28:10 - [FlightMaster] Cannot found npc of taxi node Splintertree Post, Ashenvale, disable it.
    17:28:10 - [FlightMaster] Try to take taxi at 
    17:28:11 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Valormok, Azshara, go to npc.
    17:31:52 - [FlightMaster] Cannot reach position of taxi node , disable it.
    17:31:58 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Valormok, Azshara, go to npc.
    17:31:59 - [FlightMaster] Cannot found npc of taxi node Orgrimmar, Durotar, disable it.
    17:31:59 - [FlightMaster] Try to take taxi at 
    17:32:24 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Valormok, Azshara, go to npc.
    17:32:50 - [FlightMaster] Cannot found npc of taxi node Orgrimmar, Durotar, disable it.
    17:32:50 - [FlightMaster] Try to take taxi at 
    17:33:08 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:35:45 - [FlightMaster] Cannot reach position of taxi node , disable it.
    17:35:45 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Valormok, Azshara, go to npc.
    17:35:47 - [FlightMaster] Cannot found npc of taxi node Splintertree Post, Ashenvale, disable it.
    17:35:47 - [FlightMaster] Try to take taxi at 
    17:39:11 - [FlightMaster] Try to take taxi at Kroum
    17:39:16 - [FlightMaster] No found useful destination on FlightMaster Kroum, skip it.
    17:39:16 - [FlightMaster] Cannot take taxi, Blacklist flightmaster 30 min and taxi node for session.
    17:39:17 - [Mount] Mounting ground mount Summon Charger
    17:39:17 - [FlightMaster] Try to take taxi node Valormok, Azshara to Emerald Sanctuary, Felwood, go to npc.
    17:39:19 - [FlightMaster] Cannot found npc of taxi node Valormok, Azshara, disable it.
    17:39:19 - [FlightMaster] Try to take taxi at 
    17:39:20 - [FlightMaster] Try to take taxi node Orgrimmar, Durotar to Emerald Sanctuary, Felwood, go to npc.
    17:41:10 - [FlightMaster] Try to take taxi node Splintertree Post, Ashenvale to Orgrimmar, Durotar, go to npc.
     
    Settings:
    [F] 12:56:38 - NewUserSettings = False ; LastProductSelected = Quester ; CustomClass = pal_default.cs ; DetectEvadingMob = True ; FightInteractTargetMinDistance = 30 ; IgnoreFightWhenInMove = True ; DismountLandGroundDistance = 20 ; SkipRegenIfFlaggedInCombat = False ; TryToUseBestBagFoodDrink = True ; EquipAvailableBagIfFreeContainerSlot = True ; FoodMaxPercent = 89 ; DrinkMaxPercent = 72 ; LootAndHarvestRangeQuickly = True ; LootInCombat = False ; SkipNodesInWater = False ; MaxUnitsNearMobs = 1 ; MaxUnitsNearObjects = 50 ; SearchRadiusMobs = 50 ; SearchRadiusObjects = 300 ; MaxZDistanceAttack = 150 ; MaxZDistanceIsAttacked = 150 ; MaxZDistanceFarm = 2000 ; BlacklistTaxiDefaultTimeMs = 1800000 ; BlacklistUnitDefaultTimeMs = 120000 ; BlacklistGameObjectDefaultTimeMs = 120000 ; MaxTryPerNode = 2 ; MaxCheckIfGoodMouseShortcutsWhenInteract = 2 ; HearthstoneAfterXBlockagesLatest10Minutes = 10 ; HearthstoneNameOrIdAfterXBlockagesLatest10Minutes = 6948 ; RecordChatInLog = True ; UseSpiritHealerAfterXDeathsLatest10Minutes = 0 ; IgnoreFightWithPlayer = False ; WaitWhenBuffWaitingToResurrect = False ; UseCTM = True ; AcceptOnlyProfileNpc = True ; PathFinderServerSeemDownPauseBotTimeSec = 10 ; PathFinderRequestLog = False ; PathFinderFromServer = True ; OffMeshConnectionsSearchDistance = 1600 ; PathFinderRequestTimeoutMs = 80000 ; TryToAvoidEnemyGroupsRatio = 0 ; IgnoreServerRoadsWater = False ; SmoothPath = False ; SmoothPathDistance = 1 ; KeyboardToTurn = False ; ReadObjectManagerFTS = 8 ; ForceAutoLoot = False ; RetrieveCorpseMaxDistance = 40 ; KeyBindingMacro = P ; EventsLuaWithArgsWaitTime = 150 ; DismountWhenStuck = True ; NpcScanRepair = False ; NpcScanAuctioneer = True ; NpcScanVendor = False ; NpcScanMailboxes = True ; SkipInOutDoors = False ; RandomJumping = True ; SizeWidth = 535 ; SizeHeight = 375 ; SaveWindowPosition = False ; WindowPosX = 0 ; WindowPosY = 0 ; MyMacro1 = wManager.wManagerSetting+MyMacro ; MyMacro2 = wManager.wManagerSetting+MyMacro ; MyMacro3 = wManager.wManagerSetting+MyMacro ; MyMacro4 = wManager.wManagerSetting+MyMacro ; PluginsSettings = auto_accept.cs = False, auto_decline.cs = False, ChatTradersAlert.cs = False, DungeonHelper.dll = False, Multi_Pull_V2.cs = False, RequestHandler.cs = False, Roboalert.dll = True, TotemKiller.dll = False, UsefulPluginV2 - Copy.cs = False, UsefulPluginV2.cs = True, UseStuckWhenStuck.cs = False, WhisperReply.dll = False, WhoreKiller.dll = False, Multi_Pull_V2_OLD.cs = False ; CurrentSetting = wManager.wManagerSetting ; AssignTalents = False ; TrainNewSkills = False ; CanAttackUnitsAlreadyInFight = False ; DontStartFighting = False ; UseSpiritHealer = False ; UseMount = True ; UseGroundMount = True ; GroundMountName = Summon Charger ; MountDistance = 37 ; IgnoreFightGoundMount = True ; FlyingMountName = ; UseFlyingMount = False ; AquaticMountName = ; FoodName = Holy Light ; FoodPercent = 59 ; DrinkName = ; DrinkPercent = 30 ; RestingMana = False ; FoodIsSpell = True ; DrinkIsSpell = False ; LootMobs = True ; DetectNodesStuck = True ; LootChests = True ; SkinMobs = False ; SkinNinja = True ; HarvestMinerals = True ; HarvestHerbs = True ; HarvestTimber = False ; HarvestAvoidPlayersRadius = 50 ; MaxUnitsNear = 25 ; SearchRadius = 175 ; HarvestDuringLongMove = True ; Smelting = False ; Prospecting = False ; ProspectingInTown = False ; ProspectingTime = 15 ; ProspectingList = ; Milling = False ; MillingInTown = False ; MillingTime = 15 ; MillingList = ; BlackListHarvestByName = ; ListHarvestByName = ; Relogger = False ; AccountEmail = ; AccountPassword = ; BNetName = ; FoodAmount = 0 ; DrinkAmount = 0 ; MinFreeBagSlotsToGoToTown = 0 ; UseMammoth = False ; ToTownTimer = 40 ; ToTownTimerActivated = False ; Repair = True ; Selling = True ; SellGray = True ; SellWhite = True ; SellGreen = True ; SellBlue = True ; SellPurple = True ; DoNotSellList = Tankard O' Terror, Wodin's Lucky Necklase, Belt of the Lonely Noble, Leggings of Dubious Charms, Harbinger's Bone Band, Ring of Rotting Sinew, King's Square Bracers, Saronite Defender, Saronite Bulwark, Cloak of Bloodied Waters, Aviary Guardsman's Hauberk, Tattered Castle Drape, Skullcage of Eternal Terror, Swiftarrow Shoulderguards, Swiftarrow Hauberk, Swiftarrow Helm, Swiftarrow Belt, Swiftarrow Boots, Swiftarrow Bracers, Swiftarrow Gauntlets, Swiftarrow Leggings, Refined Ore Gloves, Crusader's Square Pauldrons, Berserker's Sabatons, Savage Saronite Bracers, Savage Saronite Gauntlets, Savage Saronite Hauberk, Savage Saronite Legplates, Savage Saronite Pauldrons, Savage Saronite Skullshield, Savage Saronite Waistguard, Savage Saronite Walkers, Belt of Tasseled Lanterns, Titansteel Destroyer, Dragonstompers, Cast Iron Shackles, Whale-Stick Harpoon, Eviscerator's Facemask, Spored Tendrils Spaulders, Corehound Fang Shoulderpads, Belt of Tasseled Lanterns, Swiftarrow Belt, Eviscerator's Waistguard, Dark Arctic Leggings, Eviscerator's Legguards, Leggings of Visceral Strikes, Boots of the Terrestrial Guardian, Drake-Champion's Bracers, Eviscerator's Bindings, Eviscerator's Gauntlets, Emerald Choker, Burning Skull Pendant, Cloak of Bloodied Waters, Ink of the Sea, Snowfall Ink, Virtuoso Inking Set, Fishing Pole, Simple Grinder, Cardinal Ruby, King's Amber, Majestic Zircon, Ametrine, Mining Pick, Arcane Crystal, Star Ruby, Mithril Ore, Truesilver Ore, Fel Iron Ore, Adamantite Ore, Khorium Ore, Primal Fire, Eternium Ore, Cobalt Ore, Saronite Ore, Titanium Ore, Chalcedony, Eternal Life, Eternal Earth, Eternal Air, Eternal Fire, Eternal Shadow, Adder's Tongue, Lichbloom, Cobalt Bar, Saronite Bar, Titanium Bar, Titansteel Bar, Mithril Bar, Fel Iron Bar, Khorium Bar, Eternium Bar, Dream Shard, Abyss Crystal, Infinite Dust, Oily Blackmouth, Stranglekelp, Blackmouth Oil, Skinning Knife, Borean Leather, Heavy Borean Leather, Arctic Fur, Borean Leather Scraps, Netherweave Bag, Frostweave Bag, Sky Sapphire, Scarlet Ruby, Autumn's Glow, Twilight Opal, Forest Emerald, Monarch Topaz, Nerubian Chitin, Icy Dragonscale, Rune of Portals, Heart of the Wild, Icecap, Mountain Silversage, Primal Might, Runic Mana Potion, Corpse Dust, Devout Candle, Flask of Endless Rage, Noggenfogger Elixir, Drums of Forgotten Kings, Pygmy Oil, Indestructible Potion, Runescroll of Fortitude, Drums of the Wild, Free Action Potion, Lesser Flask of Toughness, Swiftness Potion, Heavy Frostweave Bandage, Runic Mana Injector, Runic Healing Injector, Savory Deviate Delight, Cobalt Frag Bomb, Symbol of Kings, Dragonfin Filet, Briny Hardcheese, Grilled Sculpin, Frostbite Bullets, Terrorshaft Arrow, Living Action Potion, Mead Basted Caribou, Shadowmourne, Death's Choise, Death's Verdict, Penumbra Pendant, Deathbringer's Will, Sharpened Twilight Scale, Bryntroll, the Bone Arbiter, Apocalypse's Advance, Skeleton Lord's Circle, Winding Sheet, Corroded Skeleton Key, Whispering Fanged Skull, Havoc's Call, Blade of Lordaeron Kings, Bloodsurge, Kel'Thuzad's Blade of Agony, Coldwraith Links, Fleshrending Gauntlets, Ring of the Kirin Tor, Garrosh's Rage, Might of Blight, Agin's Crushing Carapace, Avool's Sword of Jin, Banner Slicer, Belt of Crystalline Tears, Blade-Binding Bulwark, Bloodwood Greatstaff, Bracers of Accurate Fire, Bracers of Sizzling Heat, Bracers of Unmitigated Larceny, Bulge-Concealing Breastplate, Charlotte's Chastizing Pauldrons, Cloak of the Agile Mind, Condor-Bone Chestguard, Cracklefire Wristguards, Draconic Choker of Ferocity, Dragonjaw Mauler, Gauntlets of Disembowelment, Girdle of Unerring Flight, Gnarled Shovelhorn Spaulders, Greathelm of the Unyielding Bull, Grips of the Warming Heart, Gwyneth's Runed Dragonwand, Je'Tze's Bell, Leggings of the Water Moccasin, Leggings of Violent Exsanguination, Legguards of the Forlorn Seas, Lydia's Sharpened Swordbreaker, Melia's Magnificent Scepter, Namlak's Supernumerary Sticker, Nixod's Chain-Threshed Spaulders, Petrified Ironwood Smasher, Raine's Choker of Combustion, Raine's Signet of Blasting, Rhie-Ay's Clutching Gauntlets, Roc-Feather Longbow, Ryft's Deathgaze, Sash of Jordan, Shimmerthread Girdle, Signet of Edward the Odd, Skullcage of Eternal Terror, Torta's Oversized Choker, Twisted Puzzle-Ring, Wapach's Spaulders of Solidarity, Wristguards of Verdant Recovery, Zabra's Misplaced Staff, Zoe's Comforting Cape, Zom's Crackling Bulwark, Frozen Orb, 44695, Corroded Faceguard, Dimensional Ripper - Everlook, Dimensional Ripper - Area 52, Ultrasafe Transporter: Toshley's Station, Ultrasafe Transporter: Gadgetzan, World Enlarger, Hearthstone ; ForceSellList = ; BuyList = ; UseMail = False ; UseMollE = False ; MailRecipient = ; MailSubject = Hey ; MailGray = False ; MailWhite = True ; MailGreen = True ; MailBlue = True ; MailPurple = True ; DoNotMailList = ; ForceMailList = ; CloseIfFullBag = False ; CloseIfReached4000HonorPoints = False ; CloseIfPlayerTeleported = False ; CloseAfterXLevel = 100 ; CloseIfWhisperBiggerOrEgalAt = 1000 ; CloseAfterXBlockagesLatest10Minutes = 25 ; CloseAfterXMin = 2880 ; SecurityPauseBotIfNerbyPlayer = False ; SecurityRecordWhisperInLogFile = True ; SecuritySongIfNewWhisper = False ; UsePathsFinder = True ; NpcMailboxSearchRadius = 10000 ; HelpingGroupMembers = True ; AttackElite = True ; CloseAfterXBlockagesActive = True ; CloseAfterXDeathsActive = False ; CloseAfterXDeathsLatest10Minutes = 5 ; CloseAfterXMinActive = False ; AttackBeforeBeingAttacked = False ; SpellRotationSpeed = False ; IgnoreFightDuringFarmIfDruidForm = False ; WaitResurrectionSickness = False ; BlackListZoneWhereDead = False ; DisableNearPlayerToTown = False ; GoToTownHerbBags = False ; GoToTownMiningBags = False ; CalcuCombatRange = False ; UnlockMaxFps = False ; IgnoreCombatWithPet = True ; UseLuaToMove = False ; SecurityPauseBotIfNerbyPlayerRadius = 1000 ; SecurityPauseBotIfNerbyPlayerTime = 20 ; SecurityShutdownComputer = False ; LatencyMin = 283 ; LatencyMax = 283 ; AddToNpcDb = False ; BlackListTrainingDummy = True ; AvoidWallWithRays = True ; FlyAboveGroundHeight = 1.5 ; AvoidBlacklistedZonesPathFinder = True ; BlackListIfNotCompletePath = True ; WallDistancePathFinder = 0.6 ; PathFinderPostionOffset = 1 ; FlightMasterDiscoverRange = 500 ; FlightMasterTaxiDistance = 500 ; FlightMasterTaxiUse = True ; FlightMasterTaxiUseOnlyIfNear = False ;
  8. Like
    Harvest Golem reacted to Droidz in wManager.wManagerSetting.CurrentSetting.Save();   
    Hi,
    When you edit "wManager.wManagerSetting.CurrentSetting" change is instant. Maybe quest profile change settings, if you save settings when running, quester cannot restore default settings
  9. Like
    Harvest Golem reacted to eeny in Snippets codes for quest profiles   
    Use item on dead mob ( after looting)
    Use like the use item on weakened mob- you need to modify the item ID and Quest ID for your quest.
     
     
    Thread t = new Thread(() => { uint itemId = 9618; int questId = 25336; while (robotManager.Products.Products.IsStarted) { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { if (!Quest.HasQuest(questId)) break; if (ObjectManager.Target.IsValid && ObjectManager.Target.IsDead) { ItemsManager.UseItem(itemId); } } Thread.Sleep(500); } }); t.Start();  
  10. Like
    Harvest Golem reacted to Droidz in Snippets codes for quest profiles   
    Use item on hostile weakened mob
    Add step type "PickUp" (put quest name in parameter) Add step type "RunCode", in parameter put this code: Thread t = new Thread(() => { uint itemId = 62899; int questId = 28000; while (robotManager.Products.Products.IsStarted) { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { if (!Quest.HasQuest(questId)) break; if (ObjectManager.Target.IsValid && ObjectManager.Target.IsAlive && ObjectManager.Target.HealthPercent <= 25) { ItemsManager.UseItem(itemId); } } Thread.Sleep(500); } }); t.Start();  (you need to have quest in your questlog, you can replace "62899" but the item id, "28000" by the quest id and "25" by the max target health)
    Add step type "Pulse" (put quest name in parameter) (use quest type kill or interact)
    Add step type "TurnIn" (put quest name in parameter)
    (sample if based on this quest: http://www.wowhead.com/quest=28000/do-the-imp-possible )
  11. Thanks
    Harvest Golem reacted to Droidz in Delete one blacklist of zone   
    Hi, try
    wManager.wManagerSetting.GetListZoneBlackListed().RemoveAll(z => z.Comment == "comment to remove"); // or wManager.wManagerSetting.GetListZoneBlackListed().RemoveAll(z => z.GetPosition().DistanceTo(new Vector3(1, 2, 3)) < 0.5);  
  12. Like
    Harvest Golem reacted to inselmann in WOW Vanilla - Taxi Nodes EnableAll Plugin   
    Hi there,
    i noticed on vanilla wow that my taxi nodes are disabled from time to time.
    I checked the flightmaster coords and they were okay, i deleted the TaxiNodes.xml
    so wrobot can make the file again from games data. But at the end i still saw some
    taxi nodes deactivated which were used before without any problems.
    I am not sure what causes these problems on vanilla.
    So i wrote a small plugin to activate all taxinodes every 5 minutes.
    I added my file.
    Maybe it helps somebody.
    Best regards
    [Vanilla]TaxiNodes-EnableAll.cs
  13. Like
    Harvest Golem reacted to Matenia in [Wotlk] FlightMaster   
  14. Like
    Harvest Golem reacted to Droidz in [Quester] He's trying to pickup quest for more than 120 secondes, go to next step   
    Hi,
    wManager.Wow.Helpers.Quest.QuesterCurrentContext.SkipPickUpQuestAfterXSecondes you need to change it in questcontext
     
  15. Like
    Harvest Golem reacted to Matenia in Bot ignoring complete condition   
    GoToTask is blocking, it will not stop walking unless you also pass a breaking condition to the "whileCondition" parameter.
    Or use normal MovementManager.Go which is not blocking - but if you have a complete condition, it will just call MovementManager.Go over and over until the condition is fulfilled.

    This is tick-based vs blocking.
  16. Like
    Harvest Golem reacted to TheSmokie in Bot ignoring complete condition   
    @pudge i do not know if you fix this problem, but i got it working by using this as a return complete condition.
    return Usefuls.SubMapZoneName.Contains("The Vault of Lights"); if(GoToTask.ToPositionAndIntecractWithGameObject(new Vector3(5699.33, 735.217, 641.767), 191007)) { Thread.Sleep(5000); } return true; tested, works gread.
     
    Transport to Exodar from Dalaran.xml
  17. Thanks
    Harvest Golem got a reaction from zhxwbr8 in ignore macros?   
    // off before quest wManager.wManagerSetting.CurrentSetting.MyMacro1.Actif = false; wManager.wManagerSetting.CurrentSetting.MyMacro2.Actif = false; wManager.wManagerSetting.CurrentSetting.MyMacro3.Actif = false; //4 5 6 etc  
    //on after quest wManager.wManagerSetting.CurrentSetting.MyMacro1.Actif = true; wManager.wManagerSetting.CurrentSetting.MyMacro2.Actif = true; wManager.wManagerSetting.CurrentSetting.MyMacro3.Actif = true; //4 5 6 etc Use Runcode before and after quest, where u need off macros. Shoud work
  18. Like
    Harvest Golem reacted to Droidz in Maximize / restore down wow window attached to wrobot process   
    hi, try  
    System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle  
  19. Thanks
    Harvest Golem reacted to Matenia in IsValid and != null   
    IsValid checks if it still exists in objectmanager. You never need it, unless you store a unit over a long period of time.
    Because when you move 100 yards from the point of unit acquire, it might have disappeared from the objectmanager and not been updated either.
  20. Thanks
    Harvest Golem got a reaction from OMGhixD in Disable auto accept invites   
  21. Thanks
    Harvest Golem reacted to Droidz in Maximize / restore down wow window attached to wrobot process   
    You need more code 
    using System; using System.Runtime.InteropServices; using System.Windows.Forms; public class Main : wManager.Plugin.IPlugin { [DllImport("user32.dll", SetLastError = true)] static extern int GetWindowLong(IntPtr hWnd, int nIndex); public const uint WS_MINIMIZE = 0x20000000; public const uint WS_MAXIMIZE = 0x01000000; public const int GWL_STYLE = -16; void GetState() { int style = GetWindowLong(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, GWL_STYLE); if ((style & WS_MAXIMIZE) == WS_MAXIMIZE) { MessageBox.Show("maximized"); } else if ((style & WS_MINIMIZE) == WS_MINIMIZE) { MessageBox.Show("minimized"); } else { // normal style? MessageBox.Show("Normal??? > style=" + style.ToString("x8")); } } public void Initialize() { GetState(); robotManager.Helpful.Win32.Native.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, 6); GetState(); robotManager.Helpful.Win32.Native.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, 3); GetState(); robotManager.Helpful.Win32.Native.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, 4); GetState(); } public void Dispose() { } public void Settings() { } }  
  22. Thanks
    Harvest Golem reacted to Droidz in Maximize / restore down wow window attached to wrobot process   
    hi, try 
    robotManager.Helpful.Win32.Native.ShowWindow(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, 3); (no tested)
  23. Like
    Harvest Golem reacted to 79135 in Change character   
    I want to change a character . I start 1st char after some time i need to change the char on the realm.
    I use:  logout -> press button System.Windows.Forms.Keys.Down  -> System.Windows.Forms.Keys.Enter.
    Earlier just restarted the bot and after restart the bot connecting to a 2nd char, now restarting bot and game.
    Please will make what bot just restart himself, without game. thanks
  24. Like
    Harvest Golem reacted to TheSmokie in PQR Undetected   
    Hello !
    Today i wanted to release my copy of PQR aka Rotation here to help others.
    What is PQR ?
    PQR is a bot designed to perform complex DPS, healing and tanking rotations for the player. It was mainly designed to reduce the tediousness of performing a complex rotation for hours on end, which for many can be a huge relief and provide them with a better WoW experience where they may have wanted to quit in other cases.
    No addons to configure.
    No pixel scanning to hinder performance.
    Easily customizable and shareable abilities and rotations.
    Note: this copy of pqr is Undetected on ALL servers 
    This only works for 3.3.5a Wrath Of the Lich King.
    Servers that been tested :
    Warmane (Undetected)
    SunWell (Undetected)
    Wow-Circle (Undetected)
    Sirus (Semi Undetected, Read how to for Custom servers.)
    Dalaran-Wow (Undetected)

    How to install :
    *NOTE: Since you are downloading an EXE directly, some web browsers may consider it malicious*
    Download file from below,
    extract folder with all files content inside to somewhere on your computer.
    Select the process you would like to attach to. You must be logged into your character to do this.
    Install and Select your Primary and Secondary rotations.
    Press ALT+X to start your Primary rotation, and ALT+Z to start your Secondary rotation. Pressing the key(s) again will either stop the bot or switch the rotation, depending on what you have selected.
    Configuring a Rotation :
    Select the "Rotation Editor"
    Select the Class that you wish to edit.
    Select the Profile you wish to edit, or create a new profile.
    Select the rotation you wish to edit, or add a new rotation.
    The "Current Abilities" list is the rotation that will be used from top to bottom.
    Rotations are automatically saved as you make changes.
    You may also provide a static download address for your profiles to allow users to use the "Download Update" button as well as provide a note to users so they have more details on what the rotation is supposed to do.

    How to use on Custom Servers :
    Note : This is just a work around, and Can be Detected AnyTime :
    These kind of servers using a custom Mpq file to stop users from using some lua functions, like (CastSpellByName)
    i have gotten it to work by using RunMacroText(/cast Spell), you will need to modify whatever profile you are using to use this casting method.
    DO NOT NEED EWT TO RUN THIS ,
    Credit goes to my friend Scizzydo
    Credit for the Rotation bot :  Xelper
    if you find any bugs or suggestions please report on my discord :PQR SUPPORT
    Download LINK :
    Rotation
     
    Rotation.rar
  25. Like
    Harvest Golem reacted to Matenia in Conditions.IsAttackedAndCannotIgnore   
    Sometimes it returns true if you can ignore the mobs attacking you, for example if you're on mount with the correct options or you're supposed to ignore pulls while traveling or if Conditions.ForceIgnoreIsAttacked is activated. 

    I recommend you just decompile the binaries and see for yourself. Even with the code being obfuscated, you can usually see these simple things.
×
×
  • Create New...