top1 wrote:but getting a group of bots working together,... that must be terrible difficult!! how do they stay synchronized??
While entering instance, they wait for each other (isinparty function) and before attack checks for each other's buffs to see if everyone ready. When priest is ready, checks main tank, if main tank is ready it casts premeditation constantly and if main tank have premeditation buff, priest accepts tank is ready and casts Amplified Attack on it and whole group members checking tank's buffs gets the go command.
Here's the main codes about that, here's the priest command casting Amplified Attack:
Code: Select all
<!-- # 9 --><waypoint x="2123" z="2343">
sendMacro('SetLootThreshold(2)')
yrest(250);
changeProfileOption("MAX_TARGET_DIST", 120)
sendMacro('TargetUnit("party1")');
local target = player:getTarget();
target:updateBuffs()
if target:hasBuff("Premeditation") == false then
repeat
yrest(1000);
keyboardPress(key.VK_SPACE);
sendMacro('TargetUnit("party1")');
local target = player:getTarget();
target:updateBuffs()
until target:hasBuff("Premeditation") == true
end
sendMacro('TargetUnit("party1")');
yrest(1500);
player:cast("PRIEST_AMPLIFIED_ATTACK");
player:cast("PRIEST_AMPLIFIED_ATTACK");
yrest(1200);
</waypoint>
For any other party member this section is like this:
Code: Select all
<!-- # 9 --><waypoint x="2123" z="2343">
changeProfileOption("MAX_TARGET_DIST", 120)
sendMacro('TargetUnit("party2")');
local target = player:getTarget();
target:updateBuffs()
if target:hasBuff("Amplified Attack") == false then
repeat
yrest(1000);
keyboardPress(key.VK_SPACE);
sendMacro('TargetUnit("party2")');
local target = player:getTarget();
target:updateBuffs()
until target:hasBuff("Amplified Attack") == true
end
sendMacro('TargetUnit("party2")');
player:cast("DRUID_RESTORE_LIFE");
player:cast("DRUID_RESTORE_LIFE");
yrest(1100);
</waypoint>
top1 wrote:
back to the jumping (leap) problem...
does it kill your group everytime? or some of them? or do you have enough dmg to kill the boss before he is able to jump?
maybe the walking away could be triggered by the text he says... is there a possibility to scan the chat for this text and react to that?
Yes sometimes it gets some of my group members, if they didn't got their heals properly or boss uses some aoe skills together with jump so some of group members die every run with a 5% chance according to me. Thats why I have a resurrection section in waypoints
if they die, they res themselves and turns back to start point and waits for invite of the next run.
Maybe it's possible but I don't know how to scan for text, maybe with API:Chat Update?
rock5 wrote:Not sure, I know resting was changed to after combat when, previously, it was before, but I don't know why it rests at 60%. I don't see MP_REST. Maybe you have MP_REST set somewhere else to 60%?
I deleted all MP_REST or MP_something inputs from Profile.xml and waypoint since my character doesn't have mana.
rock5 wrote:It looks like that function might accept values like "target", "player" etc. If you have the mob targeted try "if UnitCastingTime("target") == "Leap" then ...".
Thx, I will try that. However my primary healer needs to target main tank for heal, so it can't be target boss at the same time or maybe there is a solution for it? Also player:findEnemy(); is not 100% working sometimes maybe distance limit or boss behind the character, don't know why..
rock5 wrote:I'm not surprised considering the game client doesn't seem to manage memory too well. Did the client crash? I just discovered a rombot bug that causes the client to crash. Once I fix it it might fix a lot of peoples problems.
Yup I got at least one crash every night and a day. That will really help a lot =)
One more thing, sometimes all party members goes out and leaves party except one idiot resting in instance after combat
Then that party member kicks out from instance to resurrection stone, and continues dod farm path like it's still inside and finally gets stuck somewhere near wodjin (!)
I guess I can use zone_ids to check if char is in correct zone after rest or after passing a waypoint maybe? What is the command to find nearest waypoint and continue from there?
Aaand sorry for my bad english