Ok, that seems to have worked. I did have to move the stopfollow=true so it was after the player:moveto. Kept getting target acquired before moving.
I really hate to say this.... but there's another problem now.... After I break party and reform to reset the instance the heal bot stops responding to the markers.
I may just set a 5 minute rest for reset....
Question for Lisa: Party Bot
Re: Question for Lisa: Party Bot
Scout/Knight/Rogue 70/66/66
Re: Question for Lisa: Party Bot
Ok, I'm just too tired to keep going tonight.... 1am....
Scout/Knight/Rogue 70/66/66
Re: Question for Lisa: Party Bot
Code: Select all
if icon == 4 and stopfollow ~= true then
stopfollow = true
player:moveTo(CWaypoint(-11837, 8644));
waitForLoadingScreen(5)
PartyHeals()
end
if icon ~= 4 then
getNameFollow()
stopfollow = false
end
if icon == 3 then
repeat
yrest(2000)
until RoMScript("GetNumPartyMembers()") == 0
waitForLoadingScreen(5)
repeat
yrest(2000)
until RoMScript("GetNumPartyMembers()") > 0
PartyHeals()
end
if icon == 2 then
player:mount()
end
-- set icon on leader to 2 when you mount up, add a yrest(2000) after you use player:mount() on leader.
That should cover most things for now =)
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Question for Lisa: Party Bot
ok... I'm at my wits' end. I've got an idea partially working but now it's stuck in a loop at one point.
Not sure if the last code you posted would work as that is going on the basis of breaking party within the instance and riding back. I'd prefer not to do that as it takes extra time to travel back. What I'm doing is
1) WP start in front of Origin
2) Enter Origin
3) Kill LL
4) Walk back and exit Origin
5) Break party
6) Repeat
Here's what I have done so far. I made a starting waypoint file for the healer. Once it detects it's in a party it enters Origin. This works as it should. Once it is fully loaded into Origin it loads the partyhealer WP. This also works. I have it so when it detects the V marker it should load the original starting WP, go to point 3 and exit Origin. This only partially works and is where I'm stuck. It loads the WP like it should but immediately loads the partyhealer WP and gets stuck in a loop. How it is finding the partyhealer WP I do not understand.
Party.lua
farmLLhealer.xml
partyhealer.xml
If I use the following code in party.lua it just sits there retargeting.
How do I break it out of the partyhealer loop?
Not sure if the last code you posted would work as that is going on the basis of breaking party within the instance and riding back. I'd prefer not to do that as it takes extra time to travel back. What I'm doing is
1) WP start in front of Origin
2) Enter Origin
3) Kill LL
4) Walk back and exit Origin
5) Break party
6) Repeat
Here's what I have done so far. I made a starting waypoint file for the healer. Once it detects it's in a party it enters Origin. This works as it should. Once it is fully loaded into Origin it loads the partyhealer WP. This also works. I have it so when it detects the V marker it should load the original starting WP, go to point 3 and exit Origin. This only partially works and is where I'm stuck. It loads the WP like it should but immediately loads the partyhealer WP and gets stuck in a loop. How it is finding the partyhealer WP I do not understand.
Here's the codeWaiting for party before entering
We changed the option 'MAX_TARGET_DIST' from '201' to '50'.
Loaded waypoint path farmLLhealer.xml
No return path with default naming farmLLhealer_return.xml found.
We use the normal waypoint path farmLLhealer.xml now.
Moving to waypoint #1, (-11724, 8629)
Use MACRO: PRIEST_EMBRACE_OF_TH=> <UNKNOWN> (1000/1000)
Use MACRO: PRIEST_MAGIC_BARRIER=> <UNKNOWN> (1000/1000)
Use MACRO: PRIEST_AMPLIFIED_ATT=> <UNKNOWN> (1000/1000)
Moving to waypoint #2, (-11834, 8641)
Player address changed: 0x39815A00 <-- Entered Origin
Party healer WP loaded <-- Loaded partyhealer
Exiting Origin <-- Marker V set
Exiting Origin to reset instance
We changed the option 'MAX_TARGET_DIST' from '50' to '50'.
Loaded waypoint path farmLLhealer.xml
Waypoint #3 is closer then #1. Hence we start with waypoint #3.
No return path with default naming farmLLhealer_return.xml found.
We use the normal waypoint path farmLLhealer.xml now.
Exiting Origin <-- How on earth did it reload partyhealer?
Exiting Origin to reset instance
We changed the option 'MAX_TARGET_DIST' from '50' to '50'.
Loaded waypoint path farmLLhealer.xml
Waypoint #3 is closer then #1. Hence we start with waypoint #3.
No return path with default naming farmLLhealer_return.xml found.
We use the normal waypoint path farmLLhealer.xml now.
Party.lua
Code: Select all
if (not player.Battling) then
if icon == 5 and stopfollow ~= true then
cprintf(cli.yellow,"\n Exiting Origin\n")
loadPaths("farmLLhealer");
end
Code: Select all
<onLoad>
local zoneid = RoMScript("GetZoneID()")
if zoneid == 4 then
cprintf(cli.yellow,"\n Waiting for party before entering\n")
__WPL:setWaypointIndex(1);
else
cprintf(cli.yellow,"\n Exiting Origin to reset instance\n")
__WPL:setWaypointIndex(3);
end
changeProfileOption("MAX_TARGET_DIST", 50)
</onLoad>
<!-- # 1 --><waypoint x="-11724" z="8629" y="118" tag="llstart">
yrest(10000);
repeat
yrest(2000)
until RoMScript("GetNumPartyMembers()") > 0
__WPL:setWaypointIndex(__WPL:findWaypointTag("llenter"));
</waypoint>
<!-- # 2 --><waypoint x="-11834" z="8641" y="122" tag="llenter">
waitForLoadingScreen();
yrest(2000);
loadPaths("partyhealer");
cprintf(cli.yellow,"\n Loading party healer WP\n")
</waypoint>
<!-- # 3 --><waypoint x="707" z="909" y="118" tag="llexit">
waitForLoadingScreen();
yrest(10000);
__WPL:setWaypointIndex(1);
</waypoint>
Code: Select all
<onload>
cprintf(cli.yellow,"\n Party healer WP loaded\n")
while(true) do
player:lootAll()
PartyHeals()
healing()
end
</onload>
Code: Select all
if (not player.Battling) then
if icon == 5 and stopfollow ~= true then
stopfollow = true
cprintf(cli.yellow,"\n Exiting Origin\n")
loadPaths("farmLLhealer");
end
Scout/Knight/Rogue 70/66/66
Re: Question for Lisa: Party Bot
Is that a V mark on the mob? I seem to remember Lisa saying that if you mark a mob then kill it, when it respawns it will still be marked if you haven't reused the mark. Maybe that's your problem.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Question for Lisa: Party Bot
The V mark needs to be on party leader. Healer won't detect it on mobs, also it's unreliable if you set it on the healer.rock5 wrote:Is that a V mark on the mob? I seem to remember Lisa saying that if you mark a mob then kill it, when it respawns it will still be marked if you haven't reused the mark. Maybe that's your problem.
From first glance it is loading coords #3 of your farmLLhealer.xml because it is closer. So the code checking zone and telling it to use coords #1 either isn't working or the character is still inside?
I am curious why you went with using different WP and linking them together instead of just doing it all in the code section.
Code: Select all
if icon == 4 and stopfollow ~= true then
stopfollow = true
player:moveTo(CWaypoint(-11837, 8644));
waitForLoadingScreen(5)
PartyHeals()
end
if icon ~= 4 and icon ~= 3 then
getNameFollow()
stopfollow = false
end
if icon == 3 and stopfollow ~= true then
stopfollow = true
player:moveTo(CWaypoint(-11837, 8644)); -- change coords for exiting
waitForLoadingScreen(5)
repeat
yrest(2000)
until RoMScript("GetNumPartyMembers()") == 0
repeat
yrest(2000)
until RoMScript("GetNumPartyMembers()") > 0
PartyHeals()
end
Make sure your leader checks it is in a party then put 4 icon on itself, then enter instance.
Also make sure PartyHeals() has near the top
Code: Select all
stopfollow = falseRemember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Question for Lisa: Party Bot
I had tried putting it all in the code, but the healer bot would stop responding completely. Maybe I was doing it wrong. I'll try the code you put in and see what happens but that will have to wait till tomorrow when I get home. Gotta work tomorrow and it's getting late.
Scout/Knight/Rogue 70/66/66