Ir para conteúdo

Posts Recomendados

Bom,va em actions/scripts e crie um chamado manaliferune e escreva la dentro:

 


-- New ML rune by TulioAC 3.0 version --
function onUse(cid, item, frompos, item2, topos)
playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253}
player = getThingfromPos(playerpos)
ml = getPlayerMagLevel(cid)
lvl = getPlayerLevel(cid)
formula = math.random(((lvl+ml)*30)-(lvl-ml))
if item2.itemid == 1 and ml >= 2 then
doSendMagicEffect(playerpos,1)
doSendMagicEffect(playerpos,CONST_ME_MAGIC_BLUE)
doPlayerAddHealth(cid,500)
doPlayerAddMana(cid,5000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,0)
end
end
if item2.itemid == 1 and ml <= 1 then
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You dont Have Magic Level to use this rune.")
end
if item2.itemid >= 2 then
doPlayerSendCancel(cid,"You can only use this rune in you or in players.")
doSendMAgicEffect(frompos,2)
end
return 1
end[/code]

 

logo apos va em actions.xml e adicione:

 

<action itemid="2297" script="manaliferune.lua" />

Link para o comentário
https://xtibia.com/forum/topic/91229-god-rank-rune/
Compartilhar em outros sites

×
×
  • Criar Novo...