Eae galera do XTibia
Eu gostaria de pedir uma ajuda para editar um script de SENZU que eu tenho
Gostaria de tirar esse Nome "Estou Usando Senzu Vip!"
E por para mostrar a quantia que Heala 180000+ )
aparecer acor da quantia em YELLOW(AMARELO) tem como ?
Exemplo : o jogador clica no item , e mostra a quantidade que o senzu heala só que com uma cor diferente que será YELLOW(AMARELA)
Script :
function onUse(cid, item, fromPosition, itemEx, toPosition)
ITEM = 2157
local storage = 50000
local wait = 1.5
local pos1 = {x = getPlayerPosition(cid).x + 1, y = getPlayerPosition(cid).y + 0, z = getPlayerPosition(cid).z}
if fromPosition.x ~= CONTAINER_POSITION and exhaustion.get(cid, storage) == FALSE then
REG_HEALTH = 180000
REG_MANA = 180000
doPlayerAddMana(cid, REG_MANA)
doCreatureAddHealth(cid, REG_HEALTH)
doCreatureSay(cid, 'Estou Usando Senzu Vip!', TALKTYPE_ORANGE_1)
doSendMagicEffect(pos1, 76)
exhaustion.set(cid, storage, wait)
elseif item.itemid == ITEM and exhaustion.get(cid, storage) == FALSE then
REG_HEALTH = 180000
REG_MANA = 180000
doPlayerAddMana(cid, REG_MANA)
doCreatureAddHealth(cid, REG_HEALTH)
doCreatureSay(cid, 'Estou Usando Senzu Vip!', TALKTYPE_ORANGE_1)
doSendMagicEffect(pos1, 76)
exhaustion.set(cid, storage, wait)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
return TRUE
end
Rep ++