- 0
dúvida Duvida Sobre Mana Rune
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 1038 visualizações
-
- 0 respostas
- 3131 visualizações
-
- 3 respostas
- 4309 visualizações
-
- 2 respostas
- 1939 visualizações
-
- 1 resposta
- 1640 visualizações
-

Pergunta
SarioYana 0
e ae galera venho com mais 1 poblema aki no script da mana rune
vou postar ele aki
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 = 800 if item2.itemid == 1 and ml >= 0 then doSendMagicEffect(playerpos,1) doPlayerAddMana(player.uid,formula) doPlayerSay(player.uid,"ahhhh.....",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 endesse script ele so ta almentando a mana preciso q ele aumente a vida tambem so que com a mesma formula entao eu fiz o seguinte
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 = 800 if item2.itemid == 1 and ml >= 0 then doSendMagicEffect(playerpos,1) doPlayerAddMana(player.uid,formula)[/size] [size=5]doPlayerAddHealth(player.uid,formula) doPlayerSay(player.uid,"ahhhh.....",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 endso que deu bug da i nao almenta nem mana nem vida
ajuda ae vlww
Editado por sarioyanaLink para o comentário
https://xtibia.com/forum/topic/189555-duvida-sobre-mana-rune/Compartilhar em outros sites
9 respostass a esta questão
Posts Recomendados