VagosClubTM
Active Member
Hi friends, I have this mana rune script, I need it to be used in the protection zone and that it cannot be used in another user since when using it in another user it takes out a white skull as if you were attacking, it would be of great help thanks . I'll leave the code here
or if it is possible to transform it to revscript it would be much better in advance, thank you very much to those who take the time to help, thank you very much.
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local level = player:getLevel()
local magLevel = player:getMagicLevel()
local min = (level * 5) + (magLevel * 3) - 50
local max = (level * 6) + (magLevel * 4)
player:addMana(math.random(min, max))
item:remove(1)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:say("Haaaa...", TALKTYPE_MONSTER_SAY)
return true
end
or if it is possible to transform it to revscript it would be much better in advance, thank you very much to those who take the time to help, thank you very much.