Page 2 of 2
Re: Attack with Warden pet attack (ctrl+3) first?
Posted: Mon Dec 26, 2011 11:12 pm
by kuripot
how to put in profile and waypoint>>??
Re: Attack with Warden pet attack (ctrl+3) first?
Posted: Tue Dec 27, 2011 1:46 am
by lisa
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.
Re: Attack with Warden pet attack (ctrl+3) first?
Posted: Tue Dec 27, 2011 2:08 am
by lisa
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
Re: Attack with Warden pet attack (ctrl+3) first?
Posted: Tue Dec 27, 2011 6:46 am
by kuripot
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
Re: Attack with Warden pet attack (ctrl+3) first?
Posted: Tue Dec 27, 2011 1:00 pm
by rock5
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.
Re: Attack with Warden pet attack (ctrl+3) first?
Posted: Tue Dec 27, 2011 3:00 pm
by kuripot
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..
Re: Attack with Warden pet attack (ctrl+3) first?
Posted: Sun Jan 01, 2012 11:36 am
by lisa
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