SRL Archive - SRL Bugs

hoverskill error


grats

2011-12-08 05:15:26

A lot of them work, only one I saw gives an error every time

HoverSkill(skill_attack,false);

that gives me an error, strength and hitpoints works 100% though (I don't use others in script)

Flight

2011-12-08 05:24:57

What error does it give?

grats

2011-12-08 05:46:19

** Warning in SkillToCoords: Invalid Skill Name/Number: ' ' **


just spams that I don't think there is a wait because it caps out my cpu and doesn't stop spamming that in the debug box lol

Flight

2011-12-08 06:06:23

Looks right to me.

case skNo of
Skill_Attack : SkillPT := Point(1,1);

Try just using HoverSkill('attack', false); instead.

grats

2011-12-08 06:35:19

oh am I not supposed to use skill_namehere

I saw it like that in a different script, wasn't sure how to use it before that.. looks like it works with the way you said to use it

how come attack is the only one that doesn't work with skill_attack?

Flight

2011-12-08 06:52:58

That's a good question, I looked around and couldn't find any difference. Yeah you can use a number or string for the input, as the function itself accepts a variant (number or string).

grats

2011-12-08 07:16:53

alright, yea the HoverSkill('attack', false); works fine so I'll just leave that in there

thanks though, had no idea I could use 'attack' I tried just HoverSkill(attack, false); before I searched someone elses script to figure out how to use it lol

Coh3n

2011-12-09 00:02:42

I'll look into this later, since it's not a huge issue. I'm going to restructure the Public SVN section and I'll follow it with a whole bunch of updates. :)

E: Fixed for the next version, this line in HoverSkill needed to be >= 0 rather than > 0.

if Skill >= 0 then
Thanks, grats.