Page 1 of 1
got a error, dont know why O.o
Posted: Tue Dec 14, 2010 4:44 am
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
Re: got a error, dont know why O.o
Posted: Tue Dec 14, 2010 5:43 am
by lisa
Without testing it or anything I would look at the "" in
("WARRIOR_BLOCKING_STANCE");
so maybe this?
(WARRIOR_BLOCKING_STANCE);
Re: got a error, dont know why O.o
Posted: Tue Dec 14, 2010 6:08 am
by botje
oh, i see what ya mean, the "" arent there on knight part xd
sometimes you just dont see the little things
Ill try
Botje
Re: got a error, dont know why O.o
Posted: Tue Dec 14, 2010 11:43 am
by Petzzz
try player:cast("KNIGHT_ENHANCED_ARMOR"); and see if that helps

Re: got a error, dont know why O.o
Posted: Wed Dec 15, 2010 11:22 am
by lisa
lol yeah i got it backwards, add the "" to the other skills, I'm sure you got it going by now though

Re: got a error, dont know why O.o
Posted: Wed Dec 15, 2010 11:39 am
by botje
yeah thanx again ^^
Botje