By any chance is there a thing that I can use to check if the Character already has a spell?
like
Something like that.Code:if(player:PlayerHasSpell(1520)) then player:UnlearnSpell(1520) end
-Sound
By any chance is there a thing that I can use to check if the Character already has a spell?
like
Something like that.Code:if(player:PlayerHasSpell(1520)) then player:UnlearnSpell(1520) end
-Sound
Wouldnt it be simpler to just unlearnspell then learn it? i mean their common functions in LUA instead of playing with something that might not be reliable? i mean then if they had it no big deal they still have it and if they didnt they do now..
Well really its not for that haha.
Its so if the person has the spell (They learned it from a talent) then I can give them the max level of the spell.
So that if the person doesn't have lets say Mortal Strike as a talent, then they wouldn't get the max level spell Mortal Strike to use even though they don't have it. Haha if that made any sense at all >.> I'm tired.
Like.
Because you can only get the first rank of Mortal Strike through talents.Code:if(player:PlayerHasSpell(Mortal Strike)) then player:LearnSpell(Mortal Strike MAX LEVEL) end
Last edited by Sounddead; 09-09-2008 at 02:10 AM.
if(player:PlayerHasSpell(Mortal StrikeSpellID)) then
if Player:Hasspell(mortalstrikeSpellid)= 1
player:LearnSpell(Mortal Strike MAX LEVELSpellID)
end
end
Something to that effect? i mean im not saying that exactly but something like that?
Yeah exactly. I just need it to work lulz.
Sorry for the double post/bump but this is main necessity to my script. I really need help.![]()
I don't think there are any functions for it in LUA, at this point.
Might wanna suggest it![]()
Well maybe I will![]()