recent problem with skills.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

recent problem with skills.

#1 Post 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: recent problem with skills.

#2 Post 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
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
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: recent problem with skills.

#3 Post 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: recent problem with skills.

#4 Post 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.
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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: recent problem with skills.

#5 Post 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
  • 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
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: recent problem with skills.

#6 Post by botje »

Blocking Stance: 503514

and how would i go about targetting myself then?

botje
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: recent problem with skills.

#7 Post by Administrator »

botje wrote: and how would i go about targetting myself then?
F1, probably.
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: recent problem with skills.

#8 Post 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
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: recent problem with skills.

#9 Post by Administrator »

There is an option for auto self-cast under Interface Options, I think. Make sure you have that enabled.
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: recent problem with skills.

#10 Post 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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: recent problem with skills.

#11 Post 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.
  • 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
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: recent problem with skills.

#12 Post by botje »

well, like i said, it doesnt use the skill anymore.

Botje
Post Reply