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

Problem with BasicMoveTo

ajnbuddy

New Member
Joined
Oct 29, 2010
Messages
23
Reaction score
0
Hi!

How exactly do I prevent the Bot from moving to my BasicMoveTo hotspots, if the Quest this is needed for already has been done?
PHP:
<PickUp>
<CustomBehavior File="BasicMoveTo"
                   Location="-8375.872 1350.234 101.9414" />


<CustomBehavior File="BasicMoveTo"
                   Location="-8330.752 1329.326 87.1834" />

<CustomBehavior File="BasicMoveTo"
                   Location="-8273.138 1297.955 57.61878" />

<CustomBehavior File="BasicMoveTo"
                   Location="-8185.759 1294.425 27.67559" />

<CustomBehavior File="BasicMoveTo"
                   Location="-8179.562 1318.212 27.53888" />

<CustomBehavior File="BasicMoveTo"
                   Location="-8125.987 1345.93 17.2847" />

<CustomBehavior File="BasicMoveTo"
                   Location="-8110.062 1454.712 9.963076" />

<CustomBehavior File="BasicMoveTo"
                   Location="-8073.156 1478.71 8.880159" />

<TurnIn>
<PickUp>
<TurnIn>

If I do it like that, when restarting the bot, it first runs to all the hotspots. I've tried it with an If clause, but to be serious, I don't get it.

Thank you.
 
I use:

PHP:
<RunTo QuestId="" X Y Z />

but you can also do ...

PHP:
<If Condition="((HasQuest()) &amp;&amp; (!IsQuestCompleted()))" >
       <CB />
</If>

&& is & amp ; & amp ; (it translates over to && automatically)
 
Last edited:
As Kick said, you should prefer RunTo. Here it is with a Quest check...

PHP:
<PickUp>
    <If Condition="HasQuest(1234) &amp;amp;&amp;amp; !IsQuestComplete(1234)">
        <RunTo X="-8375.872" Y="1350.234" Z="101.9414" />
        <RunTo X="-8330.752" Y="1329.326" Z="87.1834" />
        <RunTo X="-8273.138" Y="1297.955" Z="57.61878" />
        <RunTo X="-8185.759" Y="1294.425" Z="27.67559" />
        <RunTo X="-8179.562" Y="1318.212" Z="27.53888" />
        <RunTo X="-8125.987" Y="1345.93" Z="17.2847" />
        <RunTo X="-8110.062" Y="1454.712" Z="9.963076" />
        <RunTo X="-8073.156" Y="1478.71" Z="8.880159" />
    </If>
<TurnIn>
<PickUp>

A couple of notes...
  • BasicMoveTo provides no value at all over RunTo
    Both will defend themselves, but RunTo 'clears mobs from the path in front of it' (safer behavior), RunTo will use mounts, RunTo will use flightpoints. BasicMoveTo will do none of these.

  • IsQuestComplete() is persnickity to say the least.
    Apparently, the quest must be in your WoWclient's cache for it to even think about returning the correct answer. Ideally, we'd like this to do something like Carbonite and fetch the information from the server, if needed. But alas, for now it seems to be semi-broken.

    Because of this semi-broken behavior, you may be better off for now using the form:
    &lt;RunTo QuestId="1234" X="-8375.872" Y="1350.234" Z="101.9414" /&gt;
    ...and omit the wrapping &lt;If&gt; statement.

cheers,
chinajade
 
Last edited:
CJ, i've actually noticed that the bot doesn't like IsQuestCompleted or !IsQuestCompleted *not* being in parenthesis... which is kind of weird -- so the bot kind of ignores it.

or it might ignore the &&'s if they're not in a ().

I don't know if the dev's can fix it, or if it's up the profile creators to bang our heads against the wall ;)
 
Thanks to both pf you for the fast help! I'll give it a try again tomorrow.
 
Back
Top