WE
dúvida

Como Diminuir O Tempo Do !love

Por webmasterxd, 29 de set. de 2012 em Scripts

pokemon absol
7
1.2k
webmasterxdW
29 de setembro de 2012 às 19:29

Galera queria sber como dimuir o tempo do love pra deixa 30 seg -

caoticC
29 de setembro de 2012 às 19:38

Meu colega recomendamos que o seu sistema seja postado para melhor compreendimento.

Para que o tempo seja alterado mude a variável da exaustão.

webmasterxdW
29 de setembro de 2012 às 20:18

Se der pra almentar mais a chance de ficar feliz ?

 

 

function onSay(cid, words, param)

 

if param ~= "" then

return false

end

 

if string.len(words) ~= 5 then

return false

end

 

local cd = exhaustion.get(cid, 88727)

 

if not cd then

cd = 0

end

 

if cd > 0 then

doPlayerSendCancel(cid, "You have to wait "..cd.." seconds.")

return true

end

 

if #getCreatureSummons(cid) <= 0 then

doPlayerSendCancel(cid, "You need a pokemon to use this command.")

return true

end

 

doSendMagicEffect(getThingPos(cid), 180)

 

local function doLovePokemon(cid)

if not isCreature(cid) then return true end

if #getCreatureSummons(cid) <= 0 then return true end

if exhaustion.get(cid, 88727) and exhaustion.get(cid, 88727) > 3 then return true end

local a = getCreatureSummons(cid)[1]

local b = getPlayerStorageValue(a, 1008)

if b > 250 then

doPlayerSendCancel(cid, "Your pokemon is already so happy.")

return true

end

doSendMagicEffect(getThingPos(a), 180)

setPlayerStorageValue(a, 1008, b + 45)

exhaustion.set(cid, 88727, 180)

end

 

exhaustion.set(cid, 88727, 3)

addEvent(doLovePokemon, 1150, cid)

 

return true

end

Editado Setembro 29 por webmasterxd

SlicerS
29 de setembro de 2012 às 20:33

mano n da pra usar spoiler n? .. ;/

 

function onSay(cid, words, param)

 

if param ~= "" then

return false

end

 

if string.len(words) ~= 5 then

return false

end

 

local cd = exhaustion.get(cid, 88727)

 

if not cd then

cd = 0

end

 

if cd > 0 then

doPlayerSendCancel(cid, "You have to wait "..cd.." seconds.")

return true

end

 

if #getCreatureSummons(cid) <= 0 then

doPlayerSendCancel(cid, "You need a pokemon to use this command.")

return true

end

 

doSendMagicEffect(getThingPos(cid), 180)

 

local function doLovePokemon(cid)

if not isCreature(cid) then return true end

if #getCreatureSummons(cid) <= 0 then return true end

if exhaustion.get(cid, 88727) and exhaustion.get(cid, 88727) > 3 then return true end

local a = getCreatureSummons(cid)[1]

local b = getPlayerStorageValue(a, 1008)

if b > 250 then

doPlayerSendCancel(cid, "Your pokemon is already so happy.")

return true

end

doSendMagicEffect(getThingPos(a), 180)

setPlayerStorageValue(a, 1008, b + 45)

exhaustion.set(cid, 88727, 180)

end

 

exhaustion.set(cid, 88727, 3)

addEvent(doLovePokemon, 1150, cid)

 

return true

end

 

em azul = qnt de felicidade q eh aumentada...

em vermelho = o tempo de CD, em segs...

120 = 2min

60 = 1min...

Editado Setembro 29 por Slicer

webmasterxdW
29 de setembro de 2012 às 20:37

Ainda nao aprendi nao entendi como usava spolier

SlicerS
29 de setembro de 2012 às 21:08

mano faz assim..

[ spoiler] coloca aki teu script [ /spoiler]

sem os espaços entre '['... ;x tpw..

 

[ spoiler]Ola meu nome eh Slicer

e eu estou no xtibia o/[ /spoiler]

 

soh tirar os espaços ali entre [ s e [ /s ... ;x

webmasterxdW
29 de setembro de 2012 às 22:51

Brigadão ai rep+ pra vc

Editado Setembro 29 por webmasterxd