got a error, dont know why O.o

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

got a error, dont know why O.o

#1 Post by botje »

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
		else
			if not player:hasBuff("Blocking Stance") then
				player:cast("WARRIOR_BLOCKING_STANCE");
			end
		end
	]]></onSkillCast>
for the warrior case it works, for knight it fucks up.

any ideas?

ps. error mentioned is skill based, got nil when expecting string.

and yes, skills are in my skil list.
Botje
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: got a error, dont know why O.o

#2 Post by lisa »

Without testing it or anything I would look at the "" in
("WARRIOR_BLOCKING_STANCE");

so maybe this?
(WARRIOR_BLOCKING_STANCE);
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: got a error, dont know why O.o

#3 Post by botje »

oh, i see what ya mean, the "" arent there on knight part xd

sometimes you just dont see the little things :lol:

Ill try

Botje
Petzzz
Posts: 12
Joined: Tue Nov 16, 2010 10:47 am

Re: got a error, dont know why O.o

#4 Post by Petzzz »

try player:cast("KNIGHT_ENHANCED_ARMOR"); and see if that helps :)
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: got a error, dont know why O.o

#5 Post by lisa »

lol yeah i got it backwards, add the "" to the other skills, I'm sure you got it going by now though ;)
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: got a error, dont know why O.o

#6 Post by botje »

yeah thanx again ^^

Botje
Post Reply