knights 8 Posted October 21, 2016 Share Posted October 21, 2016 Hi, I'm having a problem getting to click the button 1 on the vehicle menu on the quest "Stink Bomb Away" I tried to use the code that droidz provided but it did not really work... var nearHostile = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitHostile()); if (nearHostile.IsValid) { wManager.Wow.Helpers.ClickOnTerrain.Spell(96026, new Vector3(nearHostile.Position)); Thread.Sleep(1000); } it was displayed in the log but nothing was actually cast. [F] 00:38:28 - [Spell] Cast Toss Stink Bomb (Toss Stink Bomb) [F] 00:38:32 - [Spell] Cast Toss Stink Bomb (Toss Stink Bomb) [F] 00:38:37 - [Spell] Cast Toss Stink Bomb (Toss Stink Bomb) [F] 00:38:42 - [Spell] Cast Toss Stink Bomb (Toss Stink Bomb) [F] 00:38:46 - [Spell] Cast Toss Stink Bomb (Toss Stink Bomb) [F] 00:38:51 - [Spell] Cast Toss Stink Bomb (Toss Stink Bomb) [F] 00:38:56 - [Spell] Cast Toss Stink Bomb (Toss Stink Bomb) it works if I manually press "1"... Any advice on this? Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/ Share on other sites More sharing options...
Droidz 2738 Posted October 21, 2016 Share Posted October 21, 2016 Hello, what is the name of the button http://wrobot.eu/forums/topic/1689-useful-scripts/?do=findComment&comment=8447 Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19452 Share on other sites More sharing options...
knights 8 Posted October 22, 2016 Author Share Posted October 22, 2016 Name of the button is "Toss Stink Bomb" Tried the script above, can't find the spell id.... Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19460 Share on other sites More sharing options...
Droidz 2738 Posted October 22, 2016 Share Posted October 22, 2016 The real lua name like "ActionButton1" (not the displayed name) Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19466 Share on other sites More sharing options...
knights 8 Posted October 26, 2016 Author Share Posted October 26, 2016 On 10/22/2016 at 5:45 PM, Droidz said: The real lua name like "ActionButton1" (not the displayed name) Thank you~ will test it out Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19658 Share on other sites More sharing options...
KnightRyder 77 Posted October 27, 2016 Share Posted October 27, 2016 I've been trying to get it to push a button on my vehicle bar as well and cant get it to work. Mine's called OverrideActionBarButton1 but I can't seem to get it to work. It needs to push the button then click on the ground by the enemy. I've tried several combinations including: RunMacroText("/click OverrideActionBarButton1"); ClickOnTerrain.Pulse(new Vector3(ObjectManager.Target.Position)); Lua.LuaDoString("/click OverrideActionBarButton1"); ClickOnTerrain.Pulse(new Vector3(ObjectManager.Target.Position)); wManager.Wow.Helpers.ClickOnTerrain.Spell(218592, new Vector3(nearHostile.Position)); if (ObjectManager.Target.IsValid && ObjectManager.Target.IsAlive && ObjectManager.Target.HealthPercent <= 100) It only ever seems to target them. Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19706 Share on other sites More sharing options...
knights 8 Posted October 30, 2016 Author Share Posted October 30, 2016 On 10/28/2016 at 7:45 AM, KnightRyder said: I've been trying to get it to push a button on my vehicle bar as well and cant get it to work. Mine's called OverrideActionBarButton1 but I can't seem to get it to work. It needs to push the button then click on the ground by the enemy. I've tried several combinations including: RunMacroText("/click OverrideActionBarButton1"); ClickOnTerrain.Pulse(new Vector3(ObjectManager.Target.Position)); Lua.LuaDoString("/click OverrideActionBarButton1"); ClickOnTerrain.Pulse(new Vector3(ObjectManager.Target.Position)); wManager.Wow.Helpers.ClickOnTerrain.Spell(218592, new Vector3(nearHostile.Position)); if (ObjectManager.Target.IsValid && ObjectManager.Target.IsAlive && ObjectManager.Target.HealthPercent <= 100) It only ever seems to target them. Try this? Lua.LuaDoString("OverrideActionBarButton1:Click()"); Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19799 Share on other sites More sharing options...
KnightRyder 77 Posted October 30, 2016 Share Posted October 30, 2016 7 hours ago, knights said: Try this? Lua.LuaDoString("OverrideActionBarButton1:Click()"); Thanks, that seems to get it to click the button, but how do it get it to click under the mobs to kill them? I've tried: ClickOnTerrain.Pulse(new Vector3(ObjectManager.Target.Position)); and wManager.Wow.Helpers.ClickOnTerrain.Spell(218592, new Vector3(nearHostile.Position)); Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19802 Share on other sites More sharing options...
Droidz 2738 Posted November 2, 2016 Share Posted November 2, 2016 Lua.LuaDoString("OverrideActionBarButton1:Click()"); ClickOnTerrain.Pulse(new Vector3(ObjectManager.Target.Position)); Do you have try this? Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19937 Share on other sites More sharing options...
KnightRyder 77 Posted November 3, 2016 Share Posted November 3, 2016 10 hours ago, Droidz said: Lua.LuaDoString("OverrideActionBarButton1:Click()"); ClickOnTerrain.Pulse(new Vector3(ObjectManager.Target.Position)); Do you have try this? I did and it did not work at first. I think I had my sleep time set too high. Also It doesn't seem to be doing a very good job. It will target a mob, use the spell and kill it, but wont target another mob for a while. I think its trying to path to it or something, since this is a flying quest that we cannot control where it moves. Is there a way to temporarily turn that off? If i target another mob manually, it does use the button and kill it. Here is the log where it only killed 10 mobs: Quote [D] 22:38:55 - [Quester] New step (111): SofteningtheTargetKill>Pulse 22:39:02 - [Fight] Player Attack Darkfiend Defiler (lvl 110) 22:39:02 - [Fight] Can't reach Darkfiend Defiler, blacklisting it. 22:39:03 - [Fight] Player Attack Darkfiend Defiler (lvl 110) [N] 22:39:03 - [Path-Finding] Path Count: 5 [N] 22:39:04 - [Path-Finding] Path Count: 2 22:39:07 - [Fight] Player Attack Creeping Horror (lvl 110) [N] 22:39:07 - [Path-Finding] Path Count: 2 22:39:25 - [Fight] Player Attack Dryad of the Broken Dream (lvl 110) [N] 22:39:25 - [Path-Finding] Path Count: 3 22:39:25 - [Mount] Dismount [N] 22:39:27 - [Path-Finding] Path Count: 3 [N] 22:39:28 - [Path-Finding] Path Count: 2 [N] 22:39:30 - [Path-Finding] Path Count: 2 22:39:32 - [Fight] Player Attack Nightmare Imp (lvl 110) [N] 22:39:32 - [Path-Finding] Path Count: 2 22:39:36 - [Fight] Player Attack Darkfiend Defiler (lvl 110) [N] 22:39:36 - [Path-Finding] Path Count: 4 [N] 22:39:38 - [Path-Finding] Path Count: 2 [N] 22:39:39 - [Path-Finding] Path Count: 2 [N] 22:39:41 - [Path-Finding] Path Count: 2 [N] 22:39:42 - [Path-Finding] Path Count: 2 [D] 22:39:43 - [Fight] Mob has moved more than 45 yards 22:39:44 - [Fight] Player Attack Darkfiend Defiler (lvl 110) [N] 22:39:44 - [Path-Finding] Path Count: 2 [N] 22:39:45 - [Path-Finding] Path Count: 2 22:39:47 - [Fight] Player Attack Nightmare Imp (lvl 110) [N] 22:39:47 - [Path-Finding] Path Count: 4 22:39:58 - [Fight] Player Attack Darkfiend Defiler (lvl 110) [N] 22:39:58 - [Path-Finding] Path Count: 7 22:39:58 - [Mount] Dismount [N] 22:40:00 - [Path-Finding] Path Count: 3 [N] 22:40:01 - [Path-Finding] Path Count: 5 [N] 22:40:03 - [Path-Finding] Path Count: 7 22:40:06 - [Blacklist] 5 Units hostile Near Corruptor's Keeper 22:40:06 - [Blacklist] 5 Units hostile Near Darkfiend Defiler 22:40:06 - [Blacklist] 5 Units hostile Near Dryad of the Broken Dream 22:40:06 - [Blacklist] 5 Units hostile Near Darkfiend Defiler 22:40:06 - [Blacklist] 5 Units hostile Near Darkfiend Defiler 22:40:06 - [Fight] Player Attack Dryad of the Broken Dream (lvl 110) [N] 22:40:06 - [Path-Finding] Path Count: 3 [N] 22:40:08 - [Path-Finding] Path Count: 3 [N] 22:40:09 - [Path-Finding] Path Count: 6 [N] 22:40:11 - [Path-Finding] Path Count: 5 [N] 22:40:12 - [Path-Finding] Path Count: 4 22:40:12 - [Mount] Dismount [D] 22:40:13 - [Fight] Mob has moved more than 45 yards 22:40:13 - [Fight] Player Attack Writhing Harbinger (lvl 110) [N] 22:40:14 - [Path-Finding] Path Count: 19 22:40:14 - [Mount] Dismount 22:40:30 - [Fight] Player Attack Corruptor's Keeper (lvl 110) [N] 22:40:30 - [Path-Finding] Path Count: 9 [N] 22:40:32 - [Path-Finding] Path Count: 7 [N] 22:40:33 - [Path-Finding] Path Count: 7 [N] 22:40:35 - [Path-Finding] Partial result: Troll Raid - -6322.618;230.7595;-3613.288 - -6324.974;178.132;-3687.876 [N] 22:40:35 - [Path-Finding] Partial result: Troll Raid - -6324.974;178.132;-3687.876 - -6327.579;286.0429;-3621.333 [N] 22:40:35 - [Path-Finding] Path Count: 4 [D] 22:40:35 - [Fight] Cannot make path to the target (Corruptor's Keeper), ignore it. 22:40:35 - [Fight] Can't reach Corruptor's Keeper, blacklisting it. 22:40:35 - [Fight] Player Attack Writhing Harbinger (lvl 110) [N] 22:40:35 - [Path-Finding] Partial result: Troll Raid - -6330.993;231.9021;-3613.282 - -6372.119;167.9303;-3573.124 [N] 22:40:35 - [Path-Finding] Partial result: Troll Raid - -6372.119;167.9303;-3573.124 - -6328.474;287.6429;-3611.842 [N] 22:40:35 - [Path-Finding] Path Count: 11 [D] 22:40:35 - [Fight] Cannot make path to the target (Writhing Harbinger), ignore it. 22:40:35 - [Fight] Can't reach Writhing Harbinger, blacklisting it. 22:40:36 - [Fight] Player Attack Dryad of the Broken Dream (lvl 110) [N] 22:40:36 - [Path-Finding] Partial result: Troll Raid - -6338.572;232.8554;-3613.49 - -6320.074;179.7104;-3681.273 [N] 22:40:36 - [Path-Finding] Partial result: Troll Raid - -6320.074;179.7104;-3681.273 - -6344.813;284.843;-3614.698 [N] 22:40:36 - [Path-Finding] Path Count: 9 [D] 22:40:36 - [Fight] Cannot make path to the target (Dryad of the Broken Dream), ignore it. 22:40:36 - [Fight] Can't reach Dryad of the Broken Dream, blacklisting it. 22:40:36 - [Fight] Player Attack Nightmare Imp (lvl 110) [N] 22:40:36 - [Path-Finding] Partial result: Troll Raid - -6344.392;233.5211;-3613.526 - -6292.234;167.2555;-3560.466 [N] 22:40:36 - [Path-Finding] Partial result: Troll Raid - -6292.234;167.2555;-3560.466 - -6346.416;275.7622;-3604.798 [N] 22:40:36 - [Path-Finding] Path Count: 11 [D] 22:40:36 - [Fight] Cannot make path to the target (Nightmare Imp), ignore it. 22:40:36 - [Fight] Can't reach Nightmare Imp, blacklisting it. 22:40:37 - [Fight] Player Attack Dryad of the Broken Dream (lvl 110) [N] 22:40:37 - [Path-Finding] Partial result: Troll Raid - -6350.119;234.0766;-3613.111 - -6315.433;169.1573;-3521.924 [N] 22:40:37 - [Path-Finding] Partial result: Troll Raid - -6315.433;169.1573;-3521.924 - -6351.281;273.6208;-3602.276 [N] 22:40:37 - [Path-Finding] Path Count: 12 [D] 22:40:37 - [Fight] Cannot make path to the target (Dryad of the Broken Dream), ignore it. 22:40:37 - [Fight] Can't reach Dryad of the Broken Dream, blacklisting it. 22:40:37 - [Fight] Player Attack Creeping Horror (lvl 110) [N] 22:40:37 - [Path-Finding] Partial result: Troll Raid - -6353.694;234.2963;-3612.112 - -6228.625;173.3537;-3573.109 [N] 22:40:37 - [Path-Finding] Partial result: Troll Raid - -6228.625;173.3537;-3573.109 - -6344.14;276.843;-3607.579 [N] 22:40:37 - [Path-Finding] Path Count: 10 [D] 22:40:37 - [Fight] Cannot make path to the target (Creeping Horror), ignore it. 22:40:37 - [Fight] Can't reach Creeping Horror, blacklisting it. 22:40:37 - [Fight] Player Attack Corruptor's Keeper (lvl 110) [N] 22:40:38 - [Path-Finding] Partial result: Troll Raid - -6357.409;234.0231;-3608.944 - -6327.01;182.3098;-3739.618 [N] 22:40:38 - [Path-Finding] Partial result: Troll Raid - -6327.01;182.3098;-3739.618 - -6346.667;275.6429;-3604.491 [N] 22:40:38 - [Path-Finding] Path Count: 16 [D] 22:40:38 - [Fight] Cannot make path to the target (Corruptor's Keeper), ignore it. 22:40:38 - [Fight] Can't reach Corruptor's Keeper, blacklisting it. 22:40:38 - [Fight] Player Attack Dryad of the Broken Dream (lvl 110) [N] 22:40:38 - [Path-Finding] Path Count: 13 22:40:38 - [Mount] Dismount [N] 22:40:39 - [Path-Finding] Partial result: Troll Raid - -6356.179;229.1223;-3589.51 - -6329.215;181.2529;-3731.903 [N] 22:40:40 - [Path-Finding] Partial result: Troll Raid - -6329.215;181.2529;-3731.903 - -6352.281;271.6429;-3597.193 [N] 22:40:40 - [Path-Finding] Path Count: 11 [D] 22:40:40 - [Fight] Cannot make path to the target (Dryad of the Broken Dream), ignore it. 22:40:40 - [Fight] Can't reach Dryad of the Broken Dream, blacklisting it. 22:40:40 - [Fight] Player Attack Nightmare Imp (lvl 110) [N] 22:40:40 - [Path-Finding] Path Count: 9 22:40:40 - [Mount] Dismount 22:40:53 - [Fight] Player Attack Defiled Grovewalker (lvl 110) [N] 22:40:53 - [Path-Finding] Path Count: 2 22:40:58 - [Fight] Player Attack Creeping Horror (lvl 110) [N] 22:40:58 - [Path-Finding] Partial result: Troll Raid - -6170.359;225.672;-3513.02 - -6152.878;186.4124;-3511.696 [N] 22:40:58 - [Path-Finding] Partial result: Troll Raid - -6152.878;186.4124;-3511.696 - -6173.474;190.843;-3513.263 [N] 22:40:58 - [Path-Finding] Path Count: 2 [D] 22:40:58 - [Fight] Cannot make path to the target (Creeping Horror), ignore it. 22:40:58 - [Fight] Can't reach Creeping Horror, blacklisting it. 22:40:58 - [Fight] Player Attack Nightmare Imp (lvl 110) [N] 22:40:59 - [Path-Finding] Path Count: 3 22:41:02 - [Fight] Player Attack Creeping Horror (lvl 110) [N] 22:41:02 - [Path-Finding] Path Count: 3 22:41:02 - [Mount] Dismount 22:41:22 - [Fight] Player Attack Darkfiend Defiler (lvl 110) [N] 22:41:23 - [Path-Finding] Path Count: 2 [N] 22:41:24 - [Path-Finding] Partial result: Troll Raid - -6188.34;232.6721;-3784.723 - -6151.94;185.2169;-3726.635 [N] 22:41:24 - [Path-Finding] Partial result: Troll Raid - -6151.94;185.2169;-3726.635 - -6164.894;850.6106;-3774.372 [N] 22:41:24 - [Path-Finding] Path Count: 70 [D] 22:41:24 - [Fight] Cannot make path to the target (Darkfiend Defiler), ignore it. 22:41:24 - [Fight] Can't reach Darkfiend Defiler, blacklisting it. 22:41:24 - [Fight] Player Attack Writhing Harbinger (lvl 110) [N] 22:41:24 - [Path-Finding] Path Count: 16 22:41:24 - [Mount] Dismount 22:41:34 - [Fight] Player Attack Creeping Horror (lvl 110) 22:41:35 - [Fight] Can't reach Creeping Horror, blacklisting it. 22:41:35 - [Fight] Player Attack Nightmare Imp (lvl 110) 22:41:36 - [Fight] Can't reach Nightmare Imp, blacklisting it. 22:41:36 - [Fight] Player Attack Corruptor's Keeper (lvl 110) [N] 22:41:36 - [Path-Finding] Partial result: Troll Raid - -6302.114;219.7702;-3794.198 - -6327.288;184.1361;-3762.912 [N] 22:41:36 - [Path-Finding] Partial result: Troll Raid - -6327.288;184.1361;-3762.912 - -6309.241;242.1629;-3781.21 [N] 22:41:36 - [Path-Finding] Path Count: 4 [D] 22:41:36 - [Fight] Cannot make path to the target (Corruptor's Keeper), ignore it. 22:41:36 - [Fight] Can't reach Corruptor's Keeper, blacklisting it. 22:41:36 - [Fight] Player Attack Creeping Horror (lvl 110) [N] 22:41:37 - [Path-Finding] Path Count: 2 [N] 22:41:56 - [MovementManager] Waypoint timed out [N] 22:41:56 - [MovementManager] Report navmesh poly to avoid it [N] 22:41:56 - [Path-Finding] Path Count: 15 22:42:11 - [Fight] Player Attack Writhing Harbinger (lvl 110) [N] 22:42:11 - [Path-Finding] Path Count: 18 22:42:11 - [Mount] Dismount 22:42:29 - [Fight] Player Attack Creeping Horror (lvl 110) [N] 22:42:29 - [Path-Finding] Path Count: 6 22:42:31 - [Fight] Player Attack Nightmare Imp (lvl 110) [N] 22:42:31 - [Path-Finding] Path Count: 3 22:42:32 - [Mount] Dismount 22:42:46 - CTM disabled. 22:42:46 - [Quester] Stopped 22:42:47 - Session statistics: Elapsed time: 00h:04m:04s Kills: 16 (236/hr) Deaths: 0 (0/hr) Stucks: 0 (0/hr) Farms: 0 (0/hr) Loots: 0 (0/hr) Money/HR: 0 G 00 S 00 C (0 G 00 S 00 C) Link to comment https://wrobot.eu/forums/topic/4195-how-to-click-button-in-vehicle/#findComment-19963 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now