Por IMakarov, 01 de set. de 2012 em Scripts
info
Grupo: Campones
Registrado: 01/09/12
Posts: 23
Reputação: -1
Oi galera eu criei um servidor de WODBO que vem com senzu infinito.
Eu queria saber como por pra ele ficar Finito ( que acabe quando use )
O script ai:
function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 0 local exhausted_storagevalue = 10 local mana_minimum = 70000 local mana_maximum = 70000 local mana_add = math.random(mana_minimum, mana_maximum) if(item.type >= 1) then if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then if(isPlayer(cid) == 1) then doSendMagicEffect(topos,13) doSendMagicEffect(topos,14) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add) doPlayerSay(cid, 'Senzu Normal!', TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doChangeTypeItem(item.uid, item.type - 0) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") end else if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") else if(isPlayer(cid) == 1) then doSendMagicEffect(topos,13) doSendMagicEffect(topos,14) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add*1.5) doPlayerSay(cid,"Senzu Normal!",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doRemoveItem(item.uid, 1) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end end end return 1 end
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local exhausted_seconds = 0
local exhausted_storagevalue = 10
local mana_minimum = 70000
local mana_maximum = 70000
local mana_add = math.random(mana_minimum, mana_maximum)
if(item.type >= 1) then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
if(isPlayer(cid) == 1) then
doSendMagicEffect(topos,13)
doSendMagicEffect(topos,14)
doPlayerAddMana(cid, mana_add)
doPlayerAddHealth(cid, mana_add)
doPlayerSay(cid, 'Senzu Normal!', TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
doChangeTypeItem(item.uid, item.type - 0)
else
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exchausted.")
end
doPlayerSendCancel(cid, "You are exhausted.")
if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then
doPlayerAddHealth(cid, mana_add*1.5)
doPlayerSay(cid,"Senzu Normal!",1)
doRemoveItem(item.uid, 1)
return 1
Obrigado pela atenção!!
Desculpem mais concigui achar a solução!
escript com senzu que acaba:
function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 1 local exhausted_storagevalue = 7480 local mana_minimum = 40000 local mana_maximum =40000 local mana_add = math.random(mana_minimum, mana_maximum) if(item.type >= 1) then if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then if(isPlayer(cid) == 1) then doSendMagicEffect(topos,12) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add) doPlayerSay(cid,"I feel the best",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doChangeTypeItem(item.uid, item.type - 1) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") end else if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") else if(isPlayer(cid) == 1) then doSendMagicEffect(topos,12) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add*1.5) doPlayerSay(cid,"I feel the best",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end end end return 1 end
function onUse(cid, item, frompos, item2, topos)
local exhausted_seconds = 1
local exhausted_storagevalue = 7480
local mana_minimum = 40000
local mana_maximum =40000
doSendMagicEffect(topos,12)
doPlayerSay(cid,"I feel the best",1)
doChangeTypeItem(item.uid, item.type - 1)
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have
Ja que foi resolvido
Topico Movido
info
Grupo: Campones
Registrado: 01/09/12
Posts: 23
Reputação: -1
Oi galera eu criei um servidor de WODBO que vem com senzu infinito.
Eu queria saber como por pra ele ficar Finito ( que acabe quando use )
O script ai:
Obrigado pela atenção!!
Desculpem mais concigui achar a solução!
escript com senzu que acaba: