Raikou
Well-Known Member
- Joined
- Jul 18, 2007
- Messages
- 145
- Solutions
- 2
- Reaction score
- 54
Hello all,
I got a very basic problem/annoyance.
Within a spell I want to get the players skill lvl.
I tried several variations of something like below but i keep getting nill/nothing.
of course this does nothing, i just want to get the skill level of the casting player within onCastSpell, not outside in the sneaky "onGetFormulaValues".
I got a very basic problem/annoyance.
Within a spell I want to get the players skill lvl.
I tried several variations of something like below but i keep getting nill/nothing.
Lua:
function onCastSpell(creature, var, player) -- seems i cant get player here?
local skill = player:getSkillLevel(SKILL_DISTANCE)
print (skill)
-- ... more stuff not important ...
end