Ir para conteúdo

Magalhaes92

Banido
  • Registro em

  • Última visita

Tudo que Magalhaes92 postou

  1. Queria saber onde que mudo o efeito ao char logar, que é o efeito (Teleport)
  2. Nao esta funfando. A storage nao esta saindo =[
  3. Fiz oque vc disse, porem ainda esta dando trade !
  4. Então galera, queria um script que ao equipar um item ganhasse um storage e se retirar o item perde o storage.
  5. Então galera, queria um script que ao equipar um item ganhasse um storage e se retirar o item perde o storage.
  6. O evento esta bugando em meu servidor, ja botei o script 4 vezes para ver se era algo de errado. Mesmo assim ele buga. o evento abre so o guardian nao aparece, e de vez enquando o angel tbm n aparece, e as vezes ele aparece e logologo some. sabe dizer oq possa ser ?. Tem q colocar alguma actionid no chao ? aq tbm esta com esse problema.
  7. Mano uma duvida bem serera, e a do shild ? como que é ?? Mano uma duvida bem serera, e a do shild ? como que é ??
  8. Magalhaes92 postou uma resposta no tópico em Suporte Tibia OTServer
    Da o seguinte erro...
  9. COMO FAÇO PARA DESATIVAR O TRADE DO OT ?
  10. Magalhaes92 postou uma resposta no tópico em Suporte Tibia OTServer
    Ola, tenho uma script que funciona como MODS, gostaria de saber se alguém pode separar ela pra colocar em Actions ou devidos lugares dela. Pq esse script em Mods fica parando de funcionar. <?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 = 500, -- 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="12505" event="script"><![CDATA[ domodlib('PotionExpConfigs') if getPlayerStorageValue(cid, 62164) >= 1 then return doPlayerSendCancel(cid, "Voce ja ta Sob o Efeito da Potion.") end if configs.needpa and not isPremium(cid) then return doPlayerSendCancel(cid, "Voce Precisar ser Premium Para Usar") end if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then return doPlayerSendCancel(cid, "Voce Precisa ser " .. configs.needlvl.level .. " Para usar a Potion.") end if configs.costmana[1] then if getCreatureMana(cid) < configs.costmana.mana then return doPlayerSendCancel(cid, "Voce Precisar ter " .. configs.costmana.mana .. " de Mana Para usar a Potion") 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, "Efeito Final da Pocao de EXP.") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "O Efeito da Pocao 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, "Agora Voce Esta Recebendo mais EXP por Matar Monstros.") 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 da Potion Termina em.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "O Efeito da Potion Termina em "..a..".") end end return TRUE ]]></creaturescript> </mod>
  11. Como faço para desabilitar o trade do ot ?
  12. Ei @Dwarfer, esta dando o seguinte erro, podeira ajuda ? @Vodkart sabe ajeitar esse problema ?
  13. Para adicionar outros itens eu uso ' , ' ou ' ; ' ?
  14. Magalhaes92 postou uma resposta no tópico em Suporte Tibia OTServer
    Eita, vou testar mano, Muiiiiiiiiiiiiiiiiito obrigado !!
  15. Magalhaes92 postou uma resposta no tópico em Suporte Tibia OTServer
    Alguém poderia fazer um script que funcionasse de tal forma.. Ex: Matar outro player com 100 lvl a + de de diferença ganha ''x'' de exp, e se matar um player com 100 lvl de diferença a MENOS perder EXP. (Configurável) Se alguém puder ajudar, agradeço d+ REP+
  16. Como faria para colocar por storage ? tipo uma vip!
  17. Onde q eu boto isso ?
  18. Como faço isso ?
  19. Ola galera, gostaria de saber se alguém pode modificar esse script para diminuir o tempo de atualização do rank de frags. function getJogadorFrags(jogador) -- essa função já existia, só modifiquei uma parte local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. jogador .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = {day = table.maxn(contents.day),week = table.maxn(contents.week),month = table.maxn(contents.month)} return size.day + size.week + size.month end function onThink(interval, lastExecution) local max = 7 -- quantidade max que vai aparecer no rank local str,k, p = "TOP "..max.." Rank Frags:\n\n", 0, {} -- n mexa em nd local players = db.getResult("SELECT `id`,`name` FROM `players`") if (players:getID() ~= -1) then repeat table.insert(p, {getJogadorFrags(players:getDataInt("id")), players:getDataString("name")}) until not players:next() end table.sort(p, function(a, b) return a[1] > b[1] end) for x = 1, table.maxn(p) do k = k + 1 str = str .. "\n " .. k .. ". ".. p[x][2] .." - " .. p[x][1] .. "" if k == max then break end end doBroadcastMessage(str, 22) return true end
  20. Alguém poderia fazer um script de reset que o player ganhasse VALORES FIXOS ? Exe: 1 reset + 500hp/hp quando desse outro reset ganhasse +500hp/mp e assim iria....Sempre que ele resetasse ganharia 500hp/mp Se possivel tbm com reset no look. UP
  21. Mano... Pra q server essa linha aque ? >> if getPlayerName(cid) == "Account Manager" and #getPlayersByIp(getPlayerIp(cid)) > 10 then
  22. KKKK estou atras tbm, e ja faz muit tempo. So que nao achei ainda ai to usando um muito doido aque so que diferente.

Informação Importante

Confirmação de Termo