Preciso que alguém me ajude a modificar esse script, para que so a vocação de id "x" possa da use nele, script abaixo.
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) > 3 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ja esta usando uma reencarnação ou um pet")
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 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[/b]
[b]end
Pergunta
TheSource 4
Preciso que alguém me ajude a modificar esse script, para que so a vocação de id "x" possa da use nele, script abaixo.
Link para o comentário
https://xtibia.com/forum/topic/211054-so-da-use-quem-e-de-x-voca%C3%A7%C3%A3o/Compartilhar em outros sites
11 respostass a esta questão
Posts Recomendados