Ir para conteúdo

Featured Replies

Postado

SCRIPT

function onUse(cid, item, frompos, item2, topos)
local monstro = getItemAttribute(item.uid, "corpse")
local health  = getItemAttribute(item.uid, "health")
local name  = getItemAttribute(item.uid, "monstro")
if #getCreatureSummons(cid) > 0 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ja esta usando uma reencarnação !")
return true
end
if getPlayerMana(cid) < health/100*70 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem chakra suficiente")
return true
end
if getPlayerStorageValue(cid, 24436) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode invocar mais de uma reanimação junto.")
return true
end
t = doCreateMonster(monstro, getThingPos(cid))
doConvinceCreature(cid, t)
setCreatureMaxHealth(t, health)
doCreatureAddHealth(t, health)
doPlayerAddMana(t, -getItemAttribute(item.uid, "health")/90)
setPlayerStorageValue(cid, 24436, name)
return true
end

 

erro:http://prntscr.com/b8i3c7

 

ESSA SCRIPT FUNCIONA ASSIM O PLAYER TEM X ITEM ESSE ITEM QUANDO CLIKADO NUM CORPO DE CERTA VOCAÇAO NAO SAO TODAS APENAS ALGUMAS ELAS reencarnao

FICA TIPO UM MONSTER ELE ATACA ETC.

 

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo