t0gexdarki 2 Postado Novembro 10, 2013 Share Postado Novembro 10, 2013 (editado) Uso PDA by bolz, soh quero mudar o sistema de boost para dar boost em todas stones q estão na máquina de uma vez, ao invés de 1 boost de cada vez como ta agora. Alguem sabe? vlw ah e, queria tirar o cooldown do !love mas n to axando Editado Novembro 10, 2013 por t0gexdarki Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/ Compartilhar em outros sites More sharing options...
zipter98 1102 Postado Novembro 10, 2013 Share Postado Novembro 10, 2013 Poderia postar seu love.lua? [data/talkactions/scripts] Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/#findComment-1580805 Compartilhar em outros sites More sharing options...
t0gexdarki 2 Postado Novembro 10, 2013 Autor Share Postado Novembro 10, 2013 love.lua 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 ta ai ! Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/#findComment-1580824 Compartilhar em outros sites More sharing options...
zipter98 1102 Postado Novembro 10, 2013 Share Postado Novembro 10, 2013 function onSay(cid, words, param) if param ~= "" then return false end if string.len(words) ~= 5 then return false 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) end exhaustion.set(cid, 88727, 3) addEvent(doLovePokemon, 1150, cid) return true end Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/#findComment-1580945 Compartilhar em outros sites More sharing options...
SmiX 265 Postado Novembro 10, 2013 Share Postado Novembro 10, 2013 Assim seria melhor: function onSay(cid, words, param) if param ~= "" then return false end if string.len(words) ~= 5 then return false 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 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) end addEvent(doLovePokemon, 1150, cid) return true end Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/#findComment-1580952 Compartilhar em outros sites More sharing options...
t0gexdarki 2 Postado Novembro 10, 2013 Autor Share Postado Novembro 10, 2013 vou testar daqui a pouco posto! Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/#findComment-1580977 Compartilhar em outros sites More sharing options...
Gabrieltxu 737 Postado Novembro 18, 2013 Share Postado Novembro 18, 2013 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/#findComment-1583213 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 21, 2018 Share Postado Abril 21, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário https://xtibia.com/forum/topic/223731-encerrado-boost/#findComment-1735681 Compartilhar em outros sites More sharing options...
Posts Recomendados