Page 1 of 1
recent problem with skills.
Posted: Wed Jun 29, 2011 8:20 am
by botje
before we got chapter 4, everything worked fine, so it hink something messed up, because i dont know if the reason is allready known, i thought it would be smart to post it, perhaps it provides extra insights, who knows xd
Code: Select all
<onSkillCast><![CDATA[
player:updateBuffs("player")
if player.Class1 == CLASS_KNIGHT then
if not player:hasBuff("Enhanced Armor") then
player:cast("KNIGHT_ENHANCED_ARMOR");
end
if not player:hasBuff("Holy Seal") then
player:cast("KNIGHT_HOLY_SEAL");
end
end
if player.Class1 == CLASS_WARRIOR then
if not player:hasBuff("Blocking Stance") then
player:cast("WARRIOR_BLOCKING_STANCE");
end
if not player:hasBuff("Enhanced Armor") then
player:cast("KNIGHT_ENHANCED_ARMOR");
end
if player:hasBuff("Stun") then
player:cast("WARRIOR_IGNORE_PAIN");
end
end
assistPet = CEggPet(settings.profile.options.EGGPET_ASSIST_SLOT)
if( 15 > player.HP/player.MaxHP*100 ) then
assistPet:Return();
end
]]></onSkillCast>
now, as you see, those things should be used onskillcast, most work, but the WARRIOR_BLOCKING_STANCE just refuses to work lately.
and it worked just fine before.
the knight skill works, the anti stun works, just that 1 fucked up skill refuses xd
any insight would be lovely
botje
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 8:33 am
by lisa
so it just doesn't cast the warrior blocking stance?
can you post the part of profile for that skill thx
I had a browse in skills.lua and nothing seemed out of ordinary and enhanced armor also has 2 buff id's listed so if that works then I don't see why blocking stance wouldn't.
Can you also double check the buff id's
502007 503514
Your buff should be one of them
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 9:35 am
by botje
Code: Select all
<skills_warrior>
<skill name="WARRIOR_SLASH" modifier="" hotkey="VK_2" priority="90" />
<skill name="WARRIOR_OPEN_FLANK" modifier="" hotkey="VK_3" priority="80" />
<skill name="WARRIOR_SURPRISE_ATTACK" modifier="" hotkey="VK_4" priority="0" pullonly="true" />
<skill name="WARRIOR_PROBING_ATTACK" modifier="" hotkey="VK_5" priority="70" />
<skill name="WARRIOR_OPEN_FLANK" modifier="" hotkey="VK_6" priority="60" />
<skill name="WARRIOR_BLASTING_CYCLONE" modifier="" hotkey="VK_7" priority="50" />
<!--skill name="WARRIOR_MACRO" modifier="" hotkey="VK_8" priority="0" autouse="false" /-->
<skill name="WARRIOR_BLOCKING_STANCE" modifier="" hotkey="VK_9" priority="0" autouse="false" />
<!--skill name="WARRIOR_POTION" modifier="" hotkey="VK_MINUS" priority="0" autouse="false" /-->
<skill name="KNIGHT_ENHANCED_ARMOR" modifier="" hotkey="VK_EQUAL" priority="0" autouse="false" />
<skill name="WARRIOR_WHIRLWIND" modifier="" hotkey="VK_F7" priority="30" />
<skill name="WARRIOR_AGGRESSIVENESS" modifier="" hotkey="VK_F8" priority="50" inbattle="true" />
<skill name="WARRIOR_SHOUT" modifier="" hotkey="VK_F9" priority="50" inbattle="true" />
<skill name="WARRIOR_MOON_CLEAVE" modifier="" hotkey="VK_F10" priority="40" inbattle="true" />
<skill name="WARRIOR_FRENZY" modifier="" hotkey="VK_F11" priority="50" inbattle="true" />
<skill name="WARRIOR_IGNORE_PAIN" modifier="" hotkey="VK_F12" priority="0" autouse="false" />
</skills_warrior>
how do i check the buff id?
also, i notice in MM window, it tries to cast it on a enemy, maybe thats why it doesnt work?
Botje
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 9:41 am
by lisa
hmm do you need to target yourself first in order to use skill on urself, most buffs that are for the player just buff without targeting.
If you do need to target yourself then that is probably the issue.
Might need to do some xtra special coding for this buff then.
Would prob be best to remember the address of current target, then target self. do buff then go back to previous target using that address.
You could just target self use skill and then do another findenemy search and go from there but I think i would prefer to target previous target after buffing. That way you can do a check for if you do actually have a target or not and deal with it that way.
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 10:12 am
by rock5
I believe a lot of skils buffs and possibly the skills themselves have changed id number.
To check your buf id type the following in the game.
Code: Select all
/script i=1 while UnitBuff( "player", i) ~= nil do name, __, __, ID = UnitBuff( "player", i) SendSystemChat(name.." "..ID) i = i + 1 end
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 4:44 pm
by botje
Blocking Stance: 503514
and how would i go about targetting myself then?
botje
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 5:18 pm
by Administrator
botje wrote:
and how would i go about targetting myself then?
F1, probably.
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 5:26 pm
by botje
ok, but should the bot not do that itself?
i mean, its set to target=self, why doesnt it do that then?
Botje
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 5:41 pm
by Administrator
There is an option for auto self-cast under Interface Options, I think. Make sure you have that enabled.
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 5:49 pm
by botje
but it is, i allready checked that, still keeps saying in MM that it tries to damage the enemy with it xd
Botje
Re: recent problem with skills.
Posted: Wed Jun 29, 2011 6:25 pm
by rock5
botje wrote:but it is, i allready checked that, still keeps saying in MM that it tries to damage the enemy with it xd
Botje
Don't worry about what mm says, what actually happens in game? It's possible mm will write that it's casting it on the mob but it actually casts it on yourself.
Re: recent problem with skills.
Posted: Thu Jun 30, 2011 2:29 am
by botje
well, like i said, it doesnt use the skill anymore.
Botje