___EDIT___(pra respeito ao dono)
da proxima vez coloka assim q fika + facil
_______Fim____(do edit)
function onUse(cid, item, frompos, item2, topos)mag = getPlayerMagLevel(cid)if mag >= 1 thendoSendMagicEffect(topos,1)doPlayerSay(cid,"Ahhhh! q Server rOx!!",16)doPlayerAddMana(cid, 900000)if item.type > 1 thendoChangeTypeItem(item.uid,item.type-1)elsedoRemoveItem(item.uid,1)endelsedoSendMagicEffect(frompos,2)doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")endreturn 1end
<action itemid="2296" script="manarune.lua" /> --Manarune - weight= 1.1 -156s--








info
Grupo: Campones
Registrado: 28/08/06
Posts: 15
Reputação: 0
Char no Tibia: Silt Stox
CRIE issu na pasta ACTIONS\SCRIPTS
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 1 then
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Ahhhh! q Server rOx!!",16)
doPlayerAddMana(cid, 900000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
NA PASTA ACTION EDIT ACTIONS.XML
essa tag
<action itemid="2296" script="manarune.lua" /> --Manarune - weight= 1.1 -156s--
CRETIDS:BY GM LOLZIN
id da manarune 2296
c vc quiser mudar mude para qualquer outra runa
Editado Agosto 28 por GM lolzin