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

Profile UseObject bug

AngC

New Member
Joined
Mar 19, 2011
Messages
85
Reaction score
1
UseObject profile tag bug (does not work on bridge from n.tristram)

Code:
    <MoveTo questId="1" x="2871.215" y="2517.948" z="0.5997875" name="Bridge" />
    <If condition="ActorExistsAt(241660, 2869.843,2502.986,16.49099, 15)  and Zeta.ZetaDia.CurrentWorldId==71150">
        <WaitTimer questId="1" waitTime="1000" />
        <UseObject questId="1" x="2869.843" y="2502.986" z="16.49099" actorId="241660" interactRange="25" isPortal="True" destinationWorldId="71150" />
    </If>
    <MoveTo questId="1" x="2868.12" y="2356.981" z="-0.9750696" name="After Bridge" />


(yes, use northern portal from tristram) Does NOT work while

Code:
    <MoveTo questId="1" x="2871.215" y="2517.948" z="0.5997875" name="Bridge" />
    <If condition="ActorExistsAt(241660, 2869.843,2502.986,16.49099, 15)  and Zeta.ZetaDia.CurrentWorldId==71150">
        <WaitTimer questId="1" waitTime="1000" />
        <UseObject questId="1" x="2869.843" y="2502.986" z="16.49099" actorId="241660" interactRange="25" isPortal="True" destinationWorldId="123456" />
    </If>
    <MoveTo questId="1" x="2868.12" y="2356.981" z="-0.9750696" name="After Bridge" />

WORKs. However pathing is messed and bot can't run by profile forward anymore.

Source and target world ids can be same.
 

Attachments

Last edited by a moderator:
the working code is in my profile
PHP:
          <If condition="IsActiveQuestStep(25) and (Me.IsInTown)">
            <MoveTo questId="72221" stepId="25" name="Bridge" pathPrecision="10" x="2867.815" y="2498.868" z="3.695187" /> <!-- Get out of town -->
            <UseObject questId="72221" stepId="25" actorId="241660" isPortal="True" interactRange="20" x="2867.815" y="2498.868" z="3.695187" /> <!-- Get out of town -->
            <WaitTimer questId="72221" stepId="25" waitTime="6000" />
           </If>
and it worked fine the last time I ran it
 
This works in my PRIVATE A1 leveling profile, so its just you who did it wrong.
 
Hey, HB0587F90

Code:
<If condition="ActorExistsAt(241660, 2869.843,2502.986,16.49099, 15)  and Zeta.ZetaDia.CurrentWorldId==71150">

That won't work because New Tristram and The Weeping Hollow exist in the same place, that being WorldId 71150, and therefore the portal (actor ID 241660) will be located at the same coordinates on both sides.

You need for something to change in order for the bot to stop trying to use the portal.

I guess that it is the step ID that changes, seeing as it comes up as true as far as being in town is concerned when you are in the Weeping Hollow side of the portal:

Code:
<If condition="IsActiveQuestStep(25) and (Me.IsInTown)">

This means that you need to run this from the point when that portal is required for a quest. I forget which part that is. I've not played in ages.

I'm currently looking at this myself, seeing as further tests of my Act 1 champ farming profile, proved that coming from the Cemetery had a high risk of getting stuck. Hmm, perhaps a plugin......

Anyway, back to it.... damn good fun, this is :)
(not sarcasm, just-in-case you are wondering, I mean it, and I don't use sarcasm)
 
Back
Top