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

PB - Waiting for gameobject

seVen

New Member
Joined
Jan 31, 2010
Messages
589
Reaction score
20
Code:
Wait (ObjectManager.GetObjectsOfType<wowgameobject>().FirstOrDefault(o => o.Entry == 176231) != null && ObjectManager.GetObjectsOfType<wowgameobject>().FirstOrDefault(o => o.Entry == 176231).Location.Distance(new WoWPoint(3872.35, -639.9439, 0.0391205)) < 15

Move To: Location X X X ( enter the ship)
got some odd problems with this piece of code, even though the ship is less than 15 yards away it still doesn't want to move to location... am i missing something important?

used the almost exact same code for the train ( stormwind to ironforge ) and it worked flawless

*image*

</wowgameobject></wowgameobject>
 
Last edited:
Sure you got the correct objectID?
(I'm horde only so I can't check)
 
Copyed from the developers tools so i think it should be the right one.
 
Grab kicks SVN and get the plugin "ProfileHelper". It actually lets you Copy and Paste the stuff, and shows you many many more things about them. Just to be sure :)
 
Grab kicks SVN and get the plugin "ProfileHelper". It actually lets you Copy and Paste the stuff, and shows you many many more things about them. Just to be sure :)


yup, its the correct id and distance seems to be okay too... *doh*

*image*

dohw.jpg
 
Last edited:
yup, its the correct id and distance seems to be okay too... *doh*

*image*

dohw.jpg
Okay... I know you're going to hate yourself... but here's your problem.
new WoWPoint(3872.35, -639.9439, 0.0391205)
new WoWPoint(-3872.35, -639.9439, -0.0391205)
... I hope we learned something here today. ProfileHelper is the shit.
 
Last edited:
Okay... I know you're going to hate yourself... but here's your problem.
new WoWPoint(3872.35, -639.9439, 0.0391205)
new WoWPoint(-3872.35, -639.9439, -0.0391205)
... I hope we learned something here today. ProfileHelper is the shit.


lulz gonna check that thanks for your good eyes panda /pet
 
okay.... that didn't work either ?_?


/delete project "fishing and cooking" , NAO

<table><tbody><tr><td><-3860.64, -300.0921, 0.2075317></td></tr></tbody></table>
^ FUFUFUFU
 
Last edited:
Even better, just use one of the damned guys on the ship, and distance to the damned guy ur standing next to... :)
Assuming these two damned persons don't patrol around... at all.
 
Even better, just use one of the damned guys on the ship, and distance to the damned guy ur standing next to... :)
Assuming these two damned persons don't patrol around... at all.

yea testing this one out.
 
okay works "okay" now, but how should i "wait" until the ship arrives? i can't really make wait until conditions (?) because of the loading screen and the not equal duration of each user
 
wait (!StyxWoW.IsInGame) or something like that. Might also be StyxWoW.IsInWorld ... Either way, you'll want to see that it is NOT (!) the exclamation point means not in game (!InGame)
Just gonna have to mess around with it.
I'm goin to sleep.
-Panda, Out.
 
Which boat is it? I know I got some working code for most of the SW boats.
Also, you can do a Wait: Me.MapId == X
and just add a long timer to it.
 
using the boat from menethil to kalimdor .

So should I make a wait timer for map change ( loading screen) and then a second one untill the ship arrives?

Isn't there a IsMoving "thing" for the ship? if Ship.IsMoving = false move to location ( off the ship )
 
Last edited:
From my experiences, you don't need to wait for the boat to get to the dock, you can just use a Fly To action. I don't think fatigue will ever be a problem. But if you would, you could do a second wait until the boat is near the dock on kalimdor
 
lulz forgot about the fly to
 
Last edited:
Okay screw my last few posts - ship doesnt work anymore... *facepalm*.. not working with npc on ship not working with a chair on ship nor the ship itself... hopeless <___<
 
check out my boat profiles - they have the exact coords and id's you need (either in my quest profiles, or the individual profiles themselves - somewhere in useful profiles)

I left a msg for highvoltz to jump in here and assist you - i don't mess with pb
 
Back
Top