Attack with Warden pet attack (ctrl+3) first?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Attack with Warden pet attack (ctrl+3) first?

#21 Post by kuripot » Mon Dec 26, 2011 11:12 pm

how to put in profile and waypoint>>??

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

Re: Attack with Warden pet attack (ctrl+3) first?

#22 Post by lisa » Tue Dec 27, 2011 1:46 am

Still haven't decided best way to do it yet.

If added to profile-skills then it would need to be added to skills database and then also added into skills.lua as usage for it. Not sure if it is necessary to add in 3 different places just to do 1 thing.

At the moment I am thinking along the lines of making it a function that is only called if main class is a warden and just have a profile option for pet to initiate attack or not.
That way all the code to deal with warden pet is all in one place.

I am half thinking to just make a classes/wardenpet.lua and put any code in there, that way if things are developed further there is already a place for any code to be added.

Since you obviously have a high lvl warden can you make up a list/table of each pet and what skills are in which action bar.

Something like this
Oak
6 -- punch -- can auto attack -- auto attack is good.

auto attack is when you right click skill and you get the swirl around the icon.

Also any important information like the crystal thingy doesn't actually attack and it's skills are buffs.
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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Attack with Warden pet attack (ctrl+3) first?

#23 Post by lisa » Tue Dec 27, 2011 2:08 am

In the mean time you could test this out in your profile.

Code: Select all

	<onPreSkillCast>
target = player:getTarget();
	if player.Class1 == 7 and target.Type == 2 and (not player.Battling) then
		RoMScript("UsePetAction(3)")
		yrest(5000) -- pause to let pet attack before bot
	end
	</onPreSkillCast>
So it will check target is a mob and you are a warden and also not in combat yet then it will tell pet to attack and wait 5 seconds to give pet a chance to attack.

I assume if you are in combat then the pet will be defending you so no need to tell it to attack if in combat. Also means you won't be constantly telling pet to attack every time you go to use a skill.


--=== Edit ===--
I did a little testing and it always tries to get in 50 range before melee and then takes a swing at mob before even attempting to use a skill.
Would be a different story if you had a ranged skill to pull, like Wd/S
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

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Attack with Warden pet attack (ctrl+3) first?

#24 Post by kuripot » Tue Dec 27, 2011 6:46 am

6----Centaur's Arrow---Range:250---Casting Time:2sec---(Right-Click to initiate automatic attack) CD:0 sec.

7----Valiant Shot------Range:250---Casting Time:2sec---(Right-Click to initiate automatic attack) CD:6 secs.

3----Attack

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Attack with Warden pet attack (ctrl+3) first?

#25 Post by rock5 » Tue Dec 27, 2011 1:00 pm

I agree pet skills need to be separate to player skills as most of the checks done on player skills don't apply to pet skills. Eg. pet skill needs 30 energy, is it player energy or pet energy. Pet skill has casttime of 2 seconds, does that mean the player will be casting for 2 seconds? No it doesn't. You get the picture.
  • 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

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Attack with Warden pet attack (ctrl+3) first?

#26 Post by kuripot » Tue Dec 27, 2011 3:00 pm

lisa wrote:In the mean time you could test this out in your profile.

Code: Select all

	<onPreSkillCast>
target = player:getTarget();
	if player.Class1 == 7 and target.Type == 2 and (not player.Battling) then
		RoMScript("UsePetAction(3)")
		yrest(5000) -- pause to let pet attack before bot
	end
	</onPreSkillCast>
So it will check target is a mob and you are a warden and also not in combat yet then it will tell pet to attack and wait 5 seconds to give pet a chance to attack.

I assume if you are in combat then the pet will be defending you so no need to tell it to attack if in combat. Also means you won't be constantly telling pet to attack every time you go to use a skill.


--=== Edit ===--
I did a little testing and it always tries to get in 50 range before melee and then takes a swing at mob before even attempting to use a skill.
Would be a different story if you had a ranged skill to pull, like Wd/S



as of now onPreSkillCast are working fine for me... i use ("UsePetAction(6)") to use Centaur's Arrow.. Because Centaur's Arrow has 250 range.. my pet cast the arrow in his range..

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

Re: Attack with Warden pet attack (ctrl+3) first?

#27 Post by lisa » Sun Jan 01, 2012 11:36 am

Just so you know, latest revision has had a total redo for pet usage.

Keep in mind it is still set to have pet attack when in combat and not before hand, so you will still need to use the code you currently have to deal with that.

revision notes are here.
http://www.solarstrike.net/phpBB3/viewt ... =30&t=3341
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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests