function onUse(cid, item, fromPosition, itemEx, toPosition)
if(doAddCondition(cid, condition)) then
doCreatureSay(cid, "Munch.",TALKTYPE_ORANGE_1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "its speed was increased by 1 hour.")
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "You are full.")
end
Pergunta
Emooooo 0
colocar exausted de 10 minutos nesse item +rep
local config = {
storage = 10000, --use empty storage
exhaust = 1800 --Exhaust is in seconds 600 equals 10min
}
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3600000)
setConditionFormula(condition, 9.4, -24, 10.9, -24)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(doAddCondition(cid, condition)) then
doCreatureSay(cid, "Munch.",TALKTYPE_ORANGE_1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "its speed was increased by 1 hour.")
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "You are full.")
end
return true
end
Link para o comentário
Compartilhar em outros sites
9 respostass a esta questão
Posts Recomendados