Postado Novembro 2, 2017 7 anos function onCastSpell(cid, var) local target = getCreatureTarget(cid) local NumberOfHits = 1 local value = getCreatureMaxMana(target)*0.20 -- 0.20 representa a 20% da mana total do seu target local restoremana = "false" if isMonster(target)then return false end for x=1,NumberOfHits do if isPlayer(target) then doCreatureAddMana(target, -value) if restoremana == "true" then doCreatureAddMana(cid, value) end end end return true end Editado Novembro 2, 2017 7 anos por DboExplorer (veja o histórico de edições) Te ajudei ?? Que tal fazer uma contribuição ?
Postado Novembro 2, 2017 7 anos @DboExplorer Funcionouuuu mt obg + REP tenta me ajudar nessa aqui \/? http://www.tibiaking.com/forum/forums/topic/84884-ajuda-area-com-limite-level/#comment-471761 TIBIA 8.6 TFS 0.4
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.