Senzu sem Exhaust!

saddnl
Por saddnl
em Actions e Talkactions

saddnl

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 25/01/19Posts: 8

Galera, a um tempo atrás joguei um server de Dbo que os Senzus (pot) não tinham exhaust. Tipo eu consegui abrir porta mesmo usando o senzu sabe? Enfim, gostaria que os senzus do meu server funcionasse do mesmo jeito. Se alguém poder ajudar agradeço.

 

 

Action do Senzu

Spoiler

function onUse(cid, item, fromPosition, itemEx, toPosition)
ITEM = 12779
local storage = 64997
local wait = 1.1
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 = 30000
REG_MANA = 30000
doPlayerAddMana(cid, REG_MANA)
doCreatureAddHealth(cid, REG_HEALTH)
doCreatureSay(cid, 'Aaahhh! Bem Melhor!', TALKTYPE_ORANGE_1)
doSendMagicEffect(pos1, 82)
exhaustion.set(cid, storage, wait)
elseif item.itemid == ITEM and exhaustion.get(cid, storage) == FALSE then
REG_HEALTH = 30000
REG_MANA = 30000
doPlayerAddMana(cid, REG_MANA)
doCreatureAddHealth(cid, REG_HEALTH)
doCreatureSay(cid, 'Aaahhh! Bem Melhor!', TALKTYPE_ORANGE_1)
doSendMagicEffect(pos1, 82)
exhaustion.set(cid, storage, wait)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
return TRUE
end

 

ITALOx

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 05/07/15Posts: 99Gênero: MasculinoChar no Tibia: [ADM] Ricky
local wait = 1.1

 

Só deixar ai 0.5 ou 0.1

 

Servidor Dragon Ball Tibia: https://www.facebook.com/DBOevolutiononline (EM ANDAMENTO)