DoD First Boss spam solo and party, full DoD now too

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: DoD First Boss spam solo and party, full DoD now too

#101 Post by Ego95 » Fri Jan 11, 2013 3:32 pm

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 :)

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: DoD First Boss spam solo and party, full DoD now too

#102 Post by Ego95 » Sat Jan 19, 2013 10:17 am

Here I am again :D

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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: DoD First Boss spam solo and party, full DoD now too

#103 Post by lisa » Sat Jan 19, 2013 5:35 pm

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
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

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: DoD First Boss spam solo and party, full DoD now too

#104 Post by Ego95 » Mon Jan 21, 2013 7:09 pm

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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: DoD First Boss spam solo and party, full DoD now too

#105 Post by lisa » Mon Jan 21, 2013 7:40 pm

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.
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

User avatar
solembum05
Posts: 57
Joined: Tue Jun 19, 2012 8:29 am

Re: DoD First Boss spam solo and party, full DoD now too

#106 Post by solembum05 » Sat Jan 26, 2013 5:23 pm

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 ><
Forget yesterday, live today and dream tomorrow.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest