What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Check if in vehicle?

AutomaticCoding

New Member
Joined
Dec 20, 2011
Messages
1,091
Reaction score
1
Long story short, someone asked me (No idea why) to get a cannon working.

How do I do this?

Get in cannon
Stay in cannon till you get taken out (The quest automatically ejects you)
Continue with profile

So far I have:

PHP:
<PickUp QuestName="Troggish Troubles" QuestId="27789" GiverName="Dr. Hieronymus Blam" GiverId="46664" />
		<CustomBehavior File="MountVehOnly" MobMountId="46707" />
		<CustomBehavior File="WaitTimer" WaitTime="60000" />

But, I don't like placing a timer in something that has a variable time (could be 5 seconds, could be 10 minutes), so, how do I do:

while(inCannon) {Do nothing}?
 
You do know you need to shoot the troggs right :p?
 
Last edited:
Bot does that for you, I just need to make sure it stays in the vehicle till the end.

Bot does that for you if the bot is told it needs to... and it only does it as well as it's told to (and if I'm correct, that needs a custom behavior to do it). In Megser's Azenius project, when my toon did that quest, it had zero problems with the first couple of rounds, but the last 2 it struggled with. For me it got through the next to last one on the 2nd attempt but on the last round I gave it 3-4 attempts and the 'firing widly in a circle' just didn't clear them. I stopped the bot and completed that round myself by shooting at the closer targets and those that I could take out in clumps and timing my AOE bursts.
 
Bot does that for you if the bot is told it needs to... and it only does it as well as it's told to (and if I'm correct, that needs a custom behavior to do it). In Megser's Azenius project, when my toon did that quest, it had zero problems with the first couple of rounds, but the last 2 it struggled with. For me it got through the next to last one on the 2nd attempt but on the last round I gave it 3-4 attempts and the 'firing widly in a circle' just didn't clear them. I stopped the bot and completed that round myself by shooting at the closer targets and those that I could take out in clumps and timing my AOE bursts.

Yup, it's a bit fiddly. I'm going to be screwing that zone over and going to Felwood instead. I want it to be as afk-able as possible and you can't AFK it in Blasted Lands, there's so much shit.
 
How do I explain this? It works FINE WITH THE DELAY TIMER, BUT, I DON'T LIKE VARIABLE TIMES ON SOMETHING THAT CAN CHANGE. I want to check if it's in a vehicle.
 
How do I explain this? It works FINE WITH THE DELAY TIMER, BUT, I DON'T LIKE VARIABLE TIMES ON SOMETHING THAT CAN CHANGE. I want to check if it's in a vehicle.

You can't place that in a condition as far as I know. You need either a plugin or behavior, this is what I use in my plugin I believe. Not sure.

!InVehicle <--- means if I'm not in vehicle, do this and yadda yadda, go explore in plugins / behaviors.
 
It's for your profile, you try it ?_?

Don't ask for help, then tell someone else to do it. Thats just rude.

Lastly; check the Lua API for (I think) UnitInVehicle. Just search for "Vehicle" and you'll find it. We may have it wrapped already in HB, not 100% sure.
 
Back
Top