Ir para conteúdo

fezeRa

Membro
  • Registro em

  • Última visita

Tudo que fezeRa postou

  1. Ta mas poderia me explicar? >= 15.. etc , não vi onde eu teria que adaptar pra remover ou o tempo da storage que fica ativa
  2. Não sei fazer iss .
  3. Essa meu scroll de doble exp feito em mod, quando acaba, não da pra usar, diz que ja estou com o efeito de double exp do scroll. como colocar pra quando acabar o tempo retirar o storage sla? <?xml version="1.0" encoding="UTF-8"?> <mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="XTibia.com"> <!-- Configs and Functions --> <config name="PotionExpConfigs"><![CDATA[ ------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE configs = { time = 60, ---- TIME IN MINUTES needpa = FAlSE, needlvl = {FALSE, level = 50}, costmana = {FALSE, mana = 300}, addrate = 100, -- Exp que vai adicionar em % removeonuse = TRUE } function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end CreatureEventChecker = function(event, ...) -- Colex if isCreature(arg[1]) then event(unpack(arg)) end end creatureEvent = function(event, delay, ...) -- Colex addEvent(CreatureEventChecker, delay, event, unpack(arg)) end function getPlayerExtraExpRate(cid) -- By MatheusMkalo return (getPlayerRates(cid)[8]-1)*100 end ]]></config> <!-- exppotion.lua --> <action itemid="5958" event="script"><![CDATA[ domodlib('PotionExpConfigs') if getPlayerStorageValue(cid, 62164) >= 1 then return doPlayerSendTextMessage(cid, 22, "Voce ja esta com o efeito do Double EXP Scroll [1 Hora].") end if configs.needpa and not isPremium(cid) then return doPlayerSendCancel(cid, "You need to be a premmium account to use this item.") end if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then return doPlayerSendCancel(cid, "You need to be level " .. configs.needlvl.level .. " to use this item.") end if configs.costmana[1] then if getCreatureMana(cid) < configs.costmana.mana then return doPlayerSendCancel(cid, "You need " .. configs.costmana.mana .. " mana to use this item.") else doCreatureAddMana(cid, -configs.costmana.mana) end end if configs.removeonuse then doRemoveItem(item.uid, 1) end for i = configs.time*60, 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == configs.time*60 then creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "O efeito do Double EXP Scroll [1 Hora] acabou !") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "O efeito do Double EXP Scroll vai acabar em "..a..".") end doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) doPlayerSendTextMessage(cid, 22, "Voce ativou o Double EXP Scroll e tera 1 hora de double exp.") setPlayerStorageValue(cid, 62164, os.time()) creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62164, 0) return TRUE ]]></action> <creaturescript type="login" name="ExpPotion" event="script"><![CDATA[ domodlib('PotionExpConfigs') local time = configs.time if os.time()-getPlayerStorageValue(cid, 62164) < time *60 then doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000 , cid, 62164, 0) for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62164))), 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "O efeito do Double EXP Scroll [1 Hora] acabou!") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "O efeito do Double EXP Scroll vai acabar em "..a..".") end end return TRUE ]]></creaturescript> </mod>
  4. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    copiei e colei
  5. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    Não funciona.
  6. Não sei te responder, nao fui eu que criei.
  7. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    Não funcionou
  8. up Olha como fica a storage na database quando buga: http://prntscr.com/4byje3
  9. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    up Olha como fica a storage na database quando buga: http://prntscr.com/4byje3
  10. Então avisa seu tfs antes de fazer o pedido pois o tfs 1.0 muda muita coisa invez de ficar reclamando de quem esta passando pra tfs 0.4 que funciona.
  11. 0.4 rev3777, em ubuntu versão 10.04 11.04 12.04
  12. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    E sobre a mw e wild growth pode me ajudar a coloca-las pra não poder ser usada em cima do fire roxo? Pode ser em action elas mesmo.
  13. Sim mas dessa forma aparece como animatedText, no meu caso seria daquele jeito mesmo já padrão do tibia de mostrar
  14. Fazer com que quando uso essa mana rune, apareça quanto esta healando, igual funciona com as potions.. Sobe aquele +900 em roxo e tal... Já está ativado pra mostrar healing no config.lua, mas como minha mana rune é em actions, creio que por causa disso não apareça o quanto heala, então como fazer? local config0 = { [{"Sorcerer"}] = {min=2000, max=2500}, [{"Master Sorcerer"}] = {min=2000, max=2500}, [{"VIP Sorcerer"}] = {min=2000, max=2500}, [{"Druid"}] = {min=2000, max=2500}, [{"Elder Druid"}] = {min=2000, max=2500}, [{"VIP Druid"}] = {min=2000, max=2500}, [{"Paladin"}] = {min=700, max=1500}, [{"Royal Paladin"}] = {min=700, max=1500}, [{"VIP Paladin"}] = {min=700, max=1500}, [{"Knight"}] = {min=500, max=1000}, [{"Elite Knight"}] = {min=500, max=1000}, [{"VIP Knight"}] = {min=500, max=1000}, } local config1000 = { [{"Sorcerer"}] = {min=3000, max=4000}, [{"Master Sorcerer"}] = {min=3000, max=4000}, [{"VIP Sorcerer"}] = {min=3000, max=4000}, [{"Druid"}] = {min=3000, max=4000}, [{"Elder Druid"}] = {min=3000, max=4000}, [{"VIP Druid"}] = {min=3000, max=4000}, [{"Paladin"}] = {min=1500, max=2500}, [{"Royal Paladin"}] = {min=1500, max=2500}, [{"VIP Paladin"}] = {min=1500, max=2500}, [{"Knight"}] = {min=1000, max=2000}, [{"Elite Knight"}] = {min=1000, max=2000}, [{"VIP Knight"}] = {min=1000, max=2000} } local config1999 = { [{"Sorcerer"}] = {min=4000, max=6000}, [{"Master Sorcerer"}] = {min=4000, max=6000}, [{"VIP Sorcerer"}] = {min=4000, max=6000}, [{"Druid"}] = {min=4000, max=6000}, [{"Elder Druid"}] = {min=4000, max=6000}, [{"VIP Druid"}] = {min=4000, max=6000}, [{"Paladin"}] = {min=3500, max=4500}, [{"Royal Paladin"}] = {min=3500, max=4500}, [{"VIP Paladin"}] = {min=3500, max=4500}, [{"Knight"}] = {min=3000, max=4000}, [{"Elite Knight"}] = {min=3000, max=4000}, [{"VIP Knight"}] = {min=3000, max=4000} } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, 940) function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLevel(cid) > 1 and getPlayerLevel(cid) < 1000 then if getCreatureCondition(cid, CONDITION_EXHAUST) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") return true end doAddCondition(cid, exhaust) for i, j in pairs(config0) do if isInArray(i, getPlayerVocationName(cid)) == TRUE then doPlayerAddMana(cid,math.random(j.min,j.max)) doSendAnimatedText(getPlayerPosition(cid), "Mana Rune", 17) doSendMagicEffect(getPlayerPosition(cid), 30) end end end if getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) < 2000 then if getCreatureCondition(cid, CONDITION_EXHAUST) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") return true end doAddCondition(cid, exhaust) for i, j in pairs(config1000) do if isInArray(i, getPlayerVocationName(cid)) == TRUE then doPlayerAddMana(cid,math.random(j.min,j.max)) doSendAnimatedText(getPlayerPosition(cid), "Mana Rune", 17) doSendMagicEffect(getPlayerPosition(cid), 30) end end end if getPlayerLevel(cid) >= 2000 then if getCreatureCondition(cid, CONDITION_EXHAUST) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") return true end doAddCondition(cid, exhaust) for i, j in pairs(config1999) do if isInArray(i, getPlayerVocationName(cid)) == TRUE then doPlayerAddMana(cid,math.random(j.min,j.max)) doSendAnimatedText(getPlayerPosition(cid), "Mana Rune", 17) doSendMagicEffect(getPlayerPosition(cid), 30) end end end return true end
  15. Só te falo isso: http://www.tibiaking.com/forum/topic/32118-compilar-otserver-em-linux-ubuntu-1004/ E seja feliz.
  16. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    O evento é o Castle 24hrs porém é meio chato deixar exatamente 24 horas aberto, gostaria de colocar pelo menos que depois que 1 guild domina, as outras guilds só possam passar num certo tile (que é o caminho pro castelo) depois de 2 horas que a guild dominou. Ou seja: a Primeira guild vai lá e dominou o Castelo, beleza, kickou geral pro templo (isso já tem) dai um certo TILE as outras guilds só poderão passar depois de exatamente 2 horas que a Primeira guild dominou. Link do evento que estou utilizando: http://www.tibiaking.com/forum/topic/35731-castle-war-24h-conquiste-o-trono/
  17. Como fazer com que esse script funcionar bem: (Eu fiz isso mas nao tenho ctz se está bugado e nem de como concertar) function doCloseExf() for index, creature in ipairs(getPlayersOnline()) do if isInArea(getThingPos(creature), configExf.topleftPos, configExf.botrightPos) then doTeleportThing(creature, getTownTemplePosition(getPlayerTown(creature))) end end return true end Seria pra mandar o player que esta entre essas posições para o templo. configExf.topleftPos a configExf.botrightPos configExf = { topleftPos = {x = 997, y = 1015, z = 7}, -- canto esquerdo superior botrightPos = {x = 1048, y = 1055, z = 7}, -- canto direito inferior }
  18. fezeRa postou uma resposta no tópico em Tutoriais Websites
    Topico todo errado em formatação, arruma ai luan
  19. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    Como compilar TFS 0.4 em 64 bits? Meu tfs está fechando toda hora no meu vps 64bits acho que é porque não estou sabendo compilar para 64bits, já usei laatido, ja usei os tutoriais daqui para compilar em 64 bits mas não adianta... O que faço?
  20. Nathan esse dev cpp não da pra compilar 64 bits né pelo o que o pessoal fala, como eu posso compilar 64 bits então?!
  21. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    UP
  22. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    sim mas a outra borda "fina" n da?
  23. fezeRa postou uma resposta no tópico em Suporte Tibia OTServer
    Mas eu sou preguiçoso, uso auto border, rs

Informação Importante

Confirmação de Termo