Ir para conteúdo

[Pedido] Magia Healarea


renee

Posts Recomendados

entao... tenho esse script aqui de poketibia eh a magia HEALAREA:

 

 

 

elseif pokemon.x.spell == "Healarea" then

doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)

doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)

exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)

doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), hl, ((num1)+(getPlayerLevel(cid)*(num3))), ((num2)+(getPlayerLevel(cid)*(num3))), 12)

doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))

doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 12)

return 0

 

 

 

mas ele ta com erro, tpw, ele solta de boa a magia com a area certa, mas soh heala o poke q usou a magia, agora os players e pokes de outro players e nem o proprio dono ele heala =\

sera que alguem sabe o q eh??

vai ganhar REP+ com ctz

 

ae fecha o topico, resolvi ja

Link para o comentário
Compartilhar em outros sites

axo ki isso resolve

 

elseif pokemon.x.spell == "Healarea" then
doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_HEALING, getThingPos(getCreatureSummons(cid)[1]), hl, ((num1)+(getPlayerLevel(cid)*(num3))), ((num2)+(getPlayerLevel(cid)*(num3))), 12)
doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))
doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 12)
return 0

 

se n resolver eu sei outro modo um poukinhu mais complicado

=)

n precisa dar rep se n quiser

mas eu ficaria muito agradecido se vc jogasse um pouco do meu server que ta na minha assinatura

=)

Link para o comentário
Compartilhar em outros sites

ta ae soluçao q eu encontrei

 

 

elseif pokemon.x.spell == "Healarea" then

doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)

doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)

exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)

doAreaCombatHealth(Player(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), hl, ((num1)+(getPlayerLevel(cid)*(num3))), ((num2)+(getPlayerLevel(cid)*(num3))), 12)

doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))

doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 12)

return 0

 

 

 

 

coloke isso ae no lugar do healarea :D

Link para o comentário
Compartilhar em outros sites

eh q os nomes estao errados....

vai no MOVE5 no data/talkactions

da ctrl+f e poin healarea e procura a parte do codigo dele e poin isso ae...

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...