Não faz nem um mês que o Gonorreia postou uma ManaRune no Xtibia
E o tópico dele está muito mais completo!
Eu não aprovaria issaew não. :button_cancel:
info
Grupo: Cavaleiro
Registrado: 23/04/11
Posts: 161
Reputação: +23
Char no Tibia: Daknia

Não faz nem um mês que o Gonorreia postou uma ManaRune no Xtibia
E o tópico dele está muito mais completo!
Eu não aprovaria issaew não. :button_cancel:
info
Grupo: Campones
Registrado: 02/08/11
Posts: 32
Reputação: +1
Char no Tibia: Undead

foi mal isto ai esta errado aqui o certo galera....
va em data/actions agora va a pasta:scripts
copie qualquer arquivo lua e renomeio para mfrune
agora abra-o
coloque isto dentro
-- New MF rune by arisco 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)
doPlayerAddMana(player.uid,formula)
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
depois volte a pasta actions
abra o arquivo >>actions Documento XML
em baixo que qualquer coisa bote
<action itemid="2281" script="mfrune.lua" allowfaruse="1" blockwalls="0" />
e pronto espero que ajude e e bem mais rapido o dos caras eu nunca consigo botar
se ajudar da +rep :XTibia_smile:
info
Grupo: Campones
Registrado: 02/08/11
Posts: 32
Reputação: +1
Char no Tibia: Undead
Criando mana rune
Bem, eh muito simples
vá na pasta Actions, Scripts, e crie um arquivo no bloco de notas com o nome mfrune.lua
e dentro ele coloque isso:
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 = 1000
if item2.itemid == 1 and ml >= 2 then
doSendMagicEffect(playerpos,1)
doPlayerAddMana(player.uid,formula)
doPlayerSay(player.uid,"AUMENTA MP PORRAAAA (ME DROGUEI AGORA)",2)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
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
ESSA É MANA RUNE INFINITA, SE VC KISER A LIMITADA PEGA AI:
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 = 1000
if item2.itemid == 1 and ml >= 2 then
doSendMagicEffect(playerpos,1)
doPlayerAddMana(player.uid,formula)
doPlayerSay(player.uid,"Ahhhhhh",2)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
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
e depois salve com o nome de "mfrune.lua"
Vá na pasta Actions e abra o arquivo actions.xml
e coloque isso no fim:
<action itemid="2275" script="mfrune.lua" />
No que está de vermelho é a id do iten que vai da mana. Eu dou uma sugestão da runa 2275
Comenta ai