-
botje
- Posts: 656
- Joined: Wed Oct 27, 2010 7:17 am
#1
Post
by botje » Tue Dec 14, 2010 4:44 am
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
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#2
Post
by lisa » Tue Dec 14, 2010 5:43 am
Without testing it or anything I would look at the "" in
("WARRIOR_BLOCKING_STANCE");
so maybe this?
(WARRIOR_BLOCKING_STANCE);
-
botje
- Posts: 656
- Joined: Wed Oct 27, 2010 7:17 am
#3
Post
by botje » Tue Dec 14, 2010 6:08 am
oh, i see what ya mean, the "" arent there on knight part xd
sometimes you just dont see the little things
Ill try
Botje
-
Petzzz
- Posts: 12
- Joined: Tue Nov 16, 2010 10:47 am
#4
Post
by Petzzz » Tue Dec 14, 2010 11:43 am
try player:cast("KNIGHT_ENHANCED_ARMOR"); and see if that helps
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#5
Post
by lisa » Wed Dec 15, 2010 11:22 am
lol yeah i got it backwards, add the "" to the other skills, I'm sure you got it going by now though
-
botje
- Posts: 656
- Joined: Wed Oct 27, 2010 7:17 am
#6
Post
by botje » Wed Dec 15, 2010 11:39 am
yeah thanx again ^^
Botje
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 0 guests