buddybuddy
New Member
- Joined
- Aug 7, 2012
- Messages
- 62
- Reaction score
- 0
it seems the DB is not following instruction from my script particularly when using "IF" condition very well, yes it does what is told to do but when the condition is changed it doesnt follow, my script is program that IF im in town it will use the waypoint, however when the toon dies, and my toon revived "NOT" in town, it "STILL" uses waypoint ,, what gives??? I watched all my runs with this script, and 90% of the time the IF condition failed, well atleast for me,
i also found a little similar thread to mine, http://www.thebuddyforum.com/demonbuddy-forum/developers/63865-usewaypoint-profile-parser-bug.html
however im not really sure if this is a bug or im doing it wrong, but i think theres nothing wrong with the script,
its just a simple "IF" statement, pls point me in the right direction if im doing it wrong or atleast enlighten me.
MORE POWER DEMONBUDDY
note: i tested again.. both
produce this bug or ... ?
im using Demonbuddy 1.0.843.199, 0 plugins loaded,
tested also with gilesworldobjecthandler plugin ON (i think this is irrelevant)
my script
LOG:
Blacklisting 89AB0086 for 00:10:00
[10:05:11.470 V] Using power Walk clickPos:<2238.029, 3949.888, 0.1000005> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:15.002 N] Player died
[10:05:15.006 N] Clicked revive button
[10:05:18.312 N] Player died, Resetting caches.
[10:05:18.318 D] Resetting current behavior.
[10:05:18.319 N] Player died, Resetting caches.
[10:05:18.319 D] Resetting current behavior.
[10:05:18.319 N] Player died, Resetting caches.
[10:05:18.319 D] Resetting current behavior.
[10:05:18.320 D] Calling OnDone() on current behavior. MoveToTag: X: 2002.511, Y: 3971.922, Z: 0.1, PathPrecision: 15, Position: <2002.511, 3971.922, 0.1>, UnsafeRandomDistance: 0, Name: null, IsDone: False, QuestId: 1, StepId: 0, QuestName: Quest Id: 1, IsDoneCache: False, Behavior: Zeta.TreeSharp.PrioritySelector,
[10:05:18.320 D] Navigator.Clear
[10:05:18.489 D] [WorldObjectHandler] Blacklisting a container [LootType2_Adventurer_B_Corpse_02-4756] because we never want to open it.
[10:05:18.489 V] Blacklisting 89B80081 for 00:10:00
[10:05:18.490 D] [WorldObjectHandler] Blacklisting a world object [Waypoint-4753] because it was an unknown object type.
[10:05:18.490 V] Blacklisting 89B50086 for 00:10:00
[10:05:18.492 D] [WorldObjectHandler] Blacklisting a container [LootType2_Adventurer_B_Corpse_02-4755] because we never want to open it.
[10:05:18.492 V] Blacklisting 89B70020 for 00:10:00
[10:05:18.494 N] ###################### REPORT ######################
[10:05:18.497 N] Gold: 218990
[10:05:18.507 N] Blues: 20
[10:05:18.519 N] Yellows: 0
[10:05:18.532 N] Legendaries: 0
[10:05:18.541 N] Set items: 0
[10:05:18.541 N] ####################################################
[10:05:18.735 D] Replaced hook [ProfileOrderBehavior_Hook] bddc65ff-2778-49e1-bb47-1a5648b7bea3
[10:05:18.769 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:18.773 D] Raycast path generated.
[10:05:18.773 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 1 hops.
[10:05:18.778 V] Using power Wizard_Teleport clickPos:<2981.73, 2835.009, 24.90835> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:20.183 V] Using power Walk clickPos:<2981.73, 2835.009, 24.90835> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:22.965 D] [Stuck Handler] We're stuck at <2314.432, 4753.634, -0.7237789>
[10:05:22.971 D] Navigator.Clear
[10:05:22.971 V] Using power Walk clickPos:<2324.432, 4753.634, -0.7237789> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:24.617 D] [WorldObjectHandler] Blacklisting a container [LootType2_Adventurer_B_Corpse_02-4779] because we never want to open it.
[10:05:24.617 V] Blacklisting 89CF0081 for 00:10:00
[10:05:24.652 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.004 D] Waiting for path request to finish...
[10:05:25.177 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.180 D] Waiting for path request to finish...
[10:05:25.349 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.355 D] Waiting for path request to finish...
[10:05:25.547 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.561 D] Waiting for path request to finish...
[10:05:25.724 D] Navigator.Clear
[10:05:25.889 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.893 D] Waiting for path request to finish...
[10:05:25.925 N] Path with 2 hops received (partial: True)
[10:05:26.056 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:26.056 V] Path with 2 hops received (partial: True)
[10:05:26.064 D] Nav Service path generated.
[10:05:26.064 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 2 hops.
[10:05:26.064 V] Using power Walk clickPos:<2319, 4752, -0.9422264> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:28.931 D] [Stuck Handler] We're stuck at <2319.084, 4756.386, -0.5744729>
[10:05:28.949 D] Navigator.Clear
[10:05:28.949 V] Using power Walk clickPos:<2328.481, 4759.806, -0.5744729> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:30.637 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:30.643 D] Waiting for path request to finish...
[10:05:30.849 D] Navigator.Clear
[10:05:31.009 N] Path with 2 hops received (partial: True)
[10:05:31.068 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:31.082 V] Path with 2 hops received (partial: True)
[10:05:31.082 D] Nav Service path generated.
[10:05:31.082 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 2 hops.
[10:05:31.082 V] Using power Walk clickPos:<2319, 4752, -0.9422264> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:35.008 D] [Stuck Handler] We're stuck at <2319.36, 4756.435, -0.575928>
[10:05:35.113 D] Navigator.Clear
[10:05:35.113 V] Using power Walk clickPos:<2328.757, 4759.855, -0.575928> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:36.785 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:36.885 D] Waiting for path request to finish...
[10:05:37.071 D] Navigator.Clear
[10:05:37.242 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:37.246 N] Path with 2 hops received (partial: True)
[10:05:37.263 D] Nav Service path generated.
[10:05:37.263 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 2 hops.
[10:05:37.263 V] Using power Walk clickPos:<2319, 4752, -0.9422264> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:38.048 D] Start/Stop Button Clicked!
View attachment 50371
i also found a little similar thread to mine, http://www.thebuddyforum.com/demonbuddy-forum/developers/63865-usewaypoint-profile-parser-bug.html
however im not really sure if this is a bug or im doing it wrong, but i think theres nothing wrong with the script,
its just a simple "IF" statement, pls point me in the right direction if im doing it wrong or atleast enlighten me.
MORE POWER DEMONBUDDY
note: i tested again.. both
PHP:
<If condition="Me.IsInTown">
<If condition="Me.IsInTown==True">
im using Demonbuddy 1.0.843.199, 0 plugins loaded,
tested also with gilesworldobjecthandler plugin ON (i think this is irrelevant)
my script
PHP:
<Profile>
<Name>jay-1-highlands-crossing-1</Name>
<GameParams quest="72801" step="-1" act="A1" difficulty="Nightmare" resumeFromSave="True" isPrivate="True" numGames="-1" />
<Order>
<WriteReport/>
<If condition="Me.IsInTown==True">
<UseWaypoint questId="72801" stepId="-1" x="2981.73" y="2835.009" z="24.90835" levelArea="1999503360" actorId="223757" waypointNumber="11" />
<WaitTimer questId="1" waitTime="1000"/>
</If>
<WaitTimer questId="1" waitTime="1000"/>
<MoveTo questId="1" x="2316.152" y="4799.38" z="1.280543" pathPrecision="15" />
<WaitTimer questId="1" waitTime="1000"/>
<!-- GOING TO THE BRIDGE -->
<MoveTo questId="1" x="2382.422" y="4841.432" z="-0.7079395" pathPrecision="5" />
<MoveTo questId="1" x="2388.069" y="4797.327" z="5.431834" pathPrecision="5" />
<MoveTo questId="1" x="2383.656" y="4627.497" z="0.1131324" pathPrecision="5" />
<!-- <MoveTo questId="1" x="2334.68" y="4422.688" z="0.1000157" pathPrecision="15" /> -->
<!-- <MoveTo questId="1" x="1869.043" y="4439.779" z="0.1000007" pathPrecision="15" /> -->
<!-- <MoveTo questId="1" x="2324.68" y="4420.688" z="0.1000157" pathPrecision="15" /> -->
<MoveTo questId="1" x="2467.278" y="3944.334" z="0.1" pathPrecision="15" />
<MoveTo questId="1" x="2002.511" y="3971.922" z="0.1" pathPrecision="15" />
<MoveTo questId="1" x="1999.248" y="4193.507" z="0.1000311" pathPrecision="15" />
<WaitTimer questId="1" waitTime="10000"/>
<UseTownPortal questId="1" />
<WaitTimer questId="1" waitTime="10000"/>
<LeaveGame reason="I have finished the run." />
<MoveTo />
</Order>
<KillMonsters>True</KillMonsters>
<PickupLoot>True</PickupLoot>
</Profile>
LOG:
Blacklisting 89AB0086 for 00:10:00
[10:05:11.470 V] Using power Walk clickPos:<2238.029, 3949.888, 0.1000005> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:15.002 N] Player died
[10:05:15.006 N] Clicked revive button
[10:05:18.312 N] Player died, Resetting caches.
[10:05:18.318 D] Resetting current behavior.
[10:05:18.319 N] Player died, Resetting caches.
[10:05:18.319 D] Resetting current behavior.
[10:05:18.319 N] Player died, Resetting caches.
[10:05:18.319 D] Resetting current behavior.
[10:05:18.320 D] Calling OnDone() on current behavior. MoveToTag: X: 2002.511, Y: 3971.922, Z: 0.1, PathPrecision: 15, Position: <2002.511, 3971.922, 0.1>, UnsafeRandomDistance: 0, Name: null, IsDone: False, QuestId: 1, StepId: 0, QuestName: Quest Id: 1, IsDoneCache: False, Behavior: Zeta.TreeSharp.PrioritySelector,
[10:05:18.320 D] Navigator.Clear
[10:05:18.489 D] [WorldObjectHandler] Blacklisting a container [LootType2_Adventurer_B_Corpse_02-4756] because we never want to open it.
[10:05:18.489 V] Blacklisting 89B80081 for 00:10:00
[10:05:18.490 D] [WorldObjectHandler] Blacklisting a world object [Waypoint-4753] because it was an unknown object type.
[10:05:18.490 V] Blacklisting 89B50086 for 00:10:00
[10:05:18.492 D] [WorldObjectHandler] Blacklisting a container [LootType2_Adventurer_B_Corpse_02-4755] because we never want to open it.
[10:05:18.492 V] Blacklisting 89B70020 for 00:10:00
[10:05:18.494 N] ###################### REPORT ######################
[10:05:18.497 N] Gold: 218990
[10:05:18.507 N] Blues: 20
[10:05:18.519 N] Yellows: 0
[10:05:18.532 N] Legendaries: 0
[10:05:18.541 N] Set items: 0
[10:05:18.541 N] ####################################################
[10:05:18.735 D] Replaced hook [ProfileOrderBehavior_Hook] bddc65ff-2778-49e1-bb47-1a5648b7bea3
[10:05:18.769 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:18.773 D] Raycast path generated.
[10:05:18.773 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 1 hops.
[10:05:18.778 V] Using power Wizard_Teleport clickPos:<2981.73, 2835.009, 24.90835> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:20.183 V] Using power Walk clickPos:<2981.73, 2835.009, 24.90835> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:22.965 D] [Stuck Handler] We're stuck at <2314.432, 4753.634, -0.7237789>
[10:05:22.971 D] Navigator.Clear
[10:05:22.971 V] Using power Walk clickPos:<2324.432, 4753.634, -0.7237789> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:24.617 D] [WorldObjectHandler] Blacklisting a container [LootType2_Adventurer_B_Corpse_02-4779] because we never want to open it.
[10:05:24.617 V] Blacklisting 89CF0081 for 00:10:00
[10:05:24.652 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.004 D] Waiting for path request to finish...
[10:05:25.177 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.180 D] Waiting for path request to finish...
[10:05:25.349 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.355 D] Waiting for path request to finish...
[10:05:25.547 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.561 D] Waiting for path request to finish...
[10:05:25.724 D] Navigator.Clear
[10:05:25.889 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:25.893 D] Waiting for path request to finish...
[10:05:25.925 N] Path with 2 hops received (partial: True)
[10:05:26.056 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:26.056 V] Path with 2 hops received (partial: True)
[10:05:26.064 D] Nav Service path generated.
[10:05:26.064 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 2 hops.
[10:05:26.064 V] Using power Walk clickPos:<2319, 4752, -0.9422264> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:28.931 D] [Stuck Handler] We're stuck at <2319.084, 4756.386, -0.5744729>
[10:05:28.949 D] Navigator.Clear
[10:05:28.949 V] Using power Walk clickPos:<2328.481, 4759.806, -0.5744729> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:30.637 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:30.643 D] Waiting for path request to finish...
[10:05:30.849 D] Navigator.Clear
[10:05:31.009 N] Path with 2 hops received (partial: True)
[10:05:31.068 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:31.082 V] Path with 2 hops received (partial: True)
[10:05:31.082 D] Nav Service path generated.
[10:05:31.082 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 2 hops.
[10:05:31.082 V] Using power Walk clickPos:<2319, 4752, -0.9422264> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:35.008 D] [Stuck Handler] We're stuck at <2319.36, 4756.435, -0.575928>
[10:05:35.113 D] Navigator.Clear
[10:05:35.113 V] Using power Walk clickPos:<2328.757, 4759.855, -0.575928> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:36.785 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:36.885 D] Waiting for path request to finish...
[10:05:37.071 D] Navigator.Clear
[10:05:37.242 D] Generating path to Moving to use waypoint - <2981.73, 2835.009, 24.90835>
[10:05:37.246 N] Path with 2 hops received (partial: True)
[10:05:37.263 D] Nav Service path generated.
[10:05:37.263 D] Generated path to <2981.73, 2835.009, 24.90835> (Moving to use waypoint) with 2 hops.
[10:05:37.263 V] Using power Walk clickPos:<2319, 4752, -0.9422264> worldDynamicId:1999503360 targetACDGuid:-1
[10:05:38.048 D] Start/Stop Button Clicked!
View attachment 50371