Page 6 of 6
Re: DoD First Boss spam solo and party, full DoD now too
Posted: Fri Jan 11, 2013 3:32 pm
by Ego95
As far as I tested it it does everything it should. Only have to change something because my healer targets my main after each cast and then retargets the boss, so I need to think about something that lets the healer concentrate on my main and doesn't fight against the boss.
Thanks for your help

Re: DoD First Boss spam solo and party, full DoD now too
Posted: Sat Jan 19, 2013 10:17 am
by Ego95
Here I am again
Don't get the cleansing part working like I want.
Code: Select all
function settings.profile.events.onSkillCast()
if player.Name == "MyHealer" then
if player:findNearestNameOrId(103170) then
local target = RoMScript("TargetUnit(\"party1\")")
if target then
target:updateBuffs()
if target:hasDebuff("Gedankenkontrolle") then
player:cast("PRIEST_CLEANSE")
end
end
end
end
end
This is what I have got now. At the moment, when my chars fight the second boss, my healer switches between my main char that he should clean and the boss very quickly. On the one hand he wants to attack the boss, but on the other hand he wants to use the code above. What I thought abaout is to repeat the cleansing part until he leaves combat.
Code: Select all
repeat
local target = RoMScript("TargetUnit(\"party1\")")
if target then
target:updateBuffs()
if target:hasDebuff("Gedankenkontrolle") then
player:cast("PRIEST_CLEANSE")
end
end
until player leaves battle
Is it possible to do something like this? Or are there any better solutions how to solve the prblem?
Edit: I thought about this again, but it would not solve the problem because he will still try to attack the boss. Additionally he would go on using this code if the boss is death and he should loot.
AlterEgo95
Re: DoD First Boss spam solo and party, full DoD now too
Posted: Sat Jan 19, 2013 5:35 pm
by lisa
Code: Select all
-- first need to make sure you are in combat before starting the next loop
repeat
player:update()
yrest(100)
until player.Battling
-- now do this until not in combat
repeat
-- stuff here
player:update()
yrest(100)
until not player.Battling
I wouldn't add that to onskill cast but I would add it to the specific waypoint for the boss fight.
As for the cleanse handling.
Code: Select all
PartyTable() -- populate party info
player:checkSkills(true); -- heal or buff yourself
player:checkPotions(); -- use potions if needed
for i,v in ipairs(partymemberpawn) do -- does entire party including yourself
player:target(partymemberpawn[i])
player:update()
partymemberpawn[i]:update()
partymemberpawn[i]:updateBuffs()
local target = player:getTarget();
if target.HP/target.MaxHP*100 > 10 then -- make sure target isn't dead
player:checkSkills(true); -- heal/buff as needed
if target:hasDebuff("Gedankenkontrolle") then -- maybe change to ID ?
player:cast("PRIEST_CLEANSE")
end
end
end
Re: DoD First Boss spam solo and party, full DoD now too
Posted: Mon Jan 21, 2013 7:09 pm
by Ego95
Something like this is the best solution! Thanks a lot for that! As far as I tested it it recognizes the debuff but has problems to cast the cleansing skill:
Code: Select all
Party member 1 has the name of MyMain
Drücke MACRO: PRIEST_HEALING_SALVE=> <UNKNOWN> (1000/1000)
Drücke MACRO: PRIEST_WAVE_ARMOR => MyHealer (63280/63280)
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_WAVE_ARMOR => MyOtherChar (51876/51876)
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_HEALING_SALVE=> MyOtherChar (44449/51876)
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_WAVE_ARMOR => MyOtherChar (44450/51876)
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
Drücke MACRO: PRIEST_CLEANSE => * Cast gescheitert *
The couldn't figure out why it fails. If I use Cleanse manually then it can always be casted, it does not matter if I target a mob, npc or an other character. So I don't understand why it fails casting.
For that what you have posted you are a god for me
AlterEgo95
Re: DoD First Boss spam solo and party, full DoD now too
Posted: Mon Jan 21, 2013 7:40 pm
by lisa
AlterEgo95 wrote:So I don't understand why it fails casting.
Since it isn't a skill used by bot normally maybe check the ID
Code: Select all
<skill name="PRIEST_CLEANSE" id="491175" range="200" type="heal" target="friendly" cooldown="10" />
I'm not sure if type="heal" would be best for a debuff skill, could be that aswell causing the issue.
As a comparison druid antidote is a type buff.
Code: Select all
<skill name="DRUID_ANTIDOTE" id="493535" range="200" cooldown="10" type="buff" target="friendly" />
Failing that maybe try using a RoMScript like useskillbyname or useskill with the tab and index of the skill.
Re: DoD First Boss spam solo and party, full DoD now too
Posted: Sat Jan 26, 2013 5:23 pm
by solembum05
Hi,
I try the bot with your files
http://www.solarstrike.net/phpBB3/viewt ... =27&t=4070
i had problem my leader don't attack okander, he try to find loot before kill okander ><