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

Portal destination

Wyhk

New Member
Joined
May 3, 2013
Messages
36
Reaction score
0
Hi all,

I have a problem writing my profile.
My bot is supposed to enter a portal from a resume game.
The pb is that if the bot get stuck in the next area of the profile trinity restart the game (which is good)
the portal location change and the bot get stuck for the infinite as the currentworldid is not good anymore

I did not any way to make the bot TP back to town if the currentlevelarea is not good (the bot try to find the portal location in base coordinates over and over)

Here is the coding pb: the bot should arrive in WorldId 123183 and levelarea 123182 after using the portal
I try to add an if condition if the area is 57425 instead of the 123182 expected but it looks like the bot never ever leave the first "if condition" and try to find the portal over and over which it cannot as the coordinates cant be reached ....

<If condition="ActorExistsAt(191492, 309.3586, 274.4218, 0.1000001, 40)">

<UseObject questId="121792" stepId="-1" actorId="191492" x="309.3586" y="274.4218" z="0.1000001" isPortal="True" destinationWorldId="123183" />
<WaitTimer questId="121792" stepId="-1" waitTime="1000" />
</If>

<If condition="CurrentLevelAreaId == 57425" >
<MoveTo questId="121792" stepId="-1" x="3017.046" y="4612.956" z="100.1988" pathPrecision="5" />
<UseTownPortal questId="121792" stepId="-1"/>
</If>

I didnt find any way to make it use the portal only if the right destination would be reached (this dumb ass use it as long as it is available)
I really need trinity game restater and this portal from resume game

Any idea?

Thx
 
Yyy...
I would like to help but without any info like what act/quest/step/checkpoint you are trying to use it may be hard (at least for me, 'cause I'm sure there are some magic people with crystal balls here :D)
 
hi, thank you for trying to help but i am really not sure act quest will really help you as it is more a coding pb.
Anyway, I am in act 2 trying to clear Vault of assassin from a resume game (portal to it) then clearing many part of act 2 finishing by oasis, leaving game and starting again with vault portal (if working :))))
 
So, let me think out loud for a moment.

You want to make profile that will start with checkpoint in VoA (checkpoint gained by hand or bot will get there on its own?).
Than, after clearing VoA bot will port to town, use waypoint somewhere, clean this comewhere, port again and so on, and so on.
Am I understanding it correctly?
 
yes you are right !
checkpoint will be found by bot on first run (but this is not the pb here)
what i want to do is make it skip the protal if the location is not good or make it use it and then tp back home if not the right location
 
So, I would do this like:
Code:
	<!-- In town, use portal to last checkpoint -->
    	<If condition="Me.IsInTown">
      		<LogMessage questId="72095" stepId="11" output="Using portal to last checkpoint" />
      		<TakeTownPortal questId="72095" stepId="11" />
		<WaitTimer questId="72095" stepId="11" waitTime="1000" />
    	</If>
        <If condition="CurrentWorldId &lt; xxxxx">
                <UseTownPortal questId="72095" stepId="11" />
        </If>
Make sure you have 1000-1500 wait after using any portals so game has time to load world id.
 
Thank you evry much !! it is working fine ! didnt know the taketownportal command existed !

I have another pb now
I found this command line in a profile to clear the randomized dungeon in a proper way : no backtracking

<If condition="Me.CurrentScene.Name.Contains('_NSEW')">
<If condition="Me.CurrentScene.Name.Contains('_NSE')" >
<If condition="Me.CurrentScene.Name.Contains('_SEW')" >
<If condition="Me.CurrentScene.Name.Contains('_NEW')" >
<If condition="Me.CurrentScene.Name.Contains('_NSW')" >

My pb is I have absolutely no idea how it works, or where to find the value

Could you help me with this? :)
 
Well, in my profiles I used tag given by DB/Trinity to explore dungeons.

ExploreArea Tag.


Explores a dungeon or static area

Attributes
"until" - Decides when we are done when the tag, acceptable values: [required]
FullyExplored - Keep exploring until the whole area is explored.
ExitFound - Keep exploring until the exit is found.
ObjectFound - KeepExploring until a certain object is found


"exitNameHash" - the name hash of the exit if until is used with ExitFound, can be found in the info dumping tab in the log after pressing Dump Mapmarkers. [optional]
"boxSize" - The size of the boxes the tsp uses when planning routes, can be visualized in the the mapviewer
"boxTolerance" - Tolerance for how many walkable cells a node needs to be added to the nodelist used by the tsp.
"actorId" - Id of the object to find, can be used in conjunction with the ObjectFound option together with the until attribute. [optional]


Example Usage.
Code:
<ExploreArea  questId="72095" stepId="11" boxTolerance="0.30" boxSize="15" until="ExitFound" exitNameHash="-816183389" statusText="Searching for deckard cain!" />
 
i know how to use this but with the command line i pasted here you can configure your bot to clear a dungeon without backtracking !
I found this profile here http://www.thebuddyforum.com/demonb...act-2/105440-act2-inferno-vault-assassin.html

It is very useful as the bot do not have to search its own path + it doesnt make the bot use max cpu as it does in large area (making my d3 crash in oasis for example)

Any idea?
 
To tell you the truth I have no idea.
I know that "ExploreArea" tag - DB's as well as Trinity's - sux and sometimes it can give really strange results.

I would use the profile for VoA that is given and modify it to your needs.
Since it is posted on forum you are free to use it as long as you put credits for original author (if you are planning to place it on forum of course).
 
that si what i did but i really want to understand how it works to apply it to more dungeon/area :)

Thank you for the help though
 
Well, you can always try to PM the author of the original profile ;)
That's how I used to handle some things I couldn't understand in Magi's or Rrrix's profiles.
 
Back
Top