Ir para conteúdo

Vodkart

Héroi
  • Registro em

Tudo que Vodkart postou

  1. espero que não seu paçoqueiro do caralho
  2. Tinha um pequeno bug de formatação no tópico nesta linha estava "newlevel" function onAdvance(player, skill, oldlevel, newlevel) onde o correto seria "newLevel" no parâmetro. function onAdvance(player, skill, oldlevel, newLevel) obrigado.
  3. troca o arquivo do creaturescript para o novo código, eu fixei um erro que tinha no código. qualquer coisa manda PM pra gente descobrir o erro.
  4. change doPlayerAddOutfit(cid, getPlayerSex(cid) == 0 and ka.out[1] or ka.out[2], 3) to doPlayerAddOutfit(target, getPlayerSex(target) == 0 and ka.out[1] or ka.out[2], 3) esse sistema de points e outfit eu tinha colocado dps do sistema já feito, ai eu adicionei quando postei no site, nem tinha testado essas partes... Fora isso não tem mais nenhum erro
  5. ops function MandarItensProDp(name, items, texto) local backpack = doPlayerAddItem(getPlayerByNameWildcard(name), 1999, 1) -- backpackID for _, i_i in ipairs(items) do local item, amount = i_i[1],i_i[2] if isItemStackable(item) or amount == 1 then doAddContainerItem(backpack, item, amount) else for i = 1, amount do doAddContainerItem(backpack, item, 1) end end end local carta = doAddContainerItem(backpack, 1952) doItemSetAttribute(carta, "writer", "[+] Invite Players System [+]") doItemSetAttribute(carta, "text", texto) return true end
  6. function MandarItensProDp(name, items, texto) local backpack = doPlayerAddItem(getPlayerByNameWildcard(name), 1999, 1) -- backpackID for _, i_i in ipairs(items) do local item, amount = i_i[1],i_i[2] if isItemStackable(item) or amount == 1 then doAddContainerItem(backpack, item, amount) else for i = 1, amount do doAddContainerItem(backpack, item, 1) end end end local carta = doAddContainerItem(backpack, 1952) doItemSetAttribute(carta, "writer", "[+] Invite Players System [+]") doItemSetAttribute(carta, "text", texto) return true end
  7. #BUG FIXED alterei uma linha no sistema em que dava points para o jogador no site, tinha que arrumar uma variável. Para quem já usa o sistema favor alterar só esse código: data\creaturescripts\scripts InviteFriends.lua
  8. VDD, faltava arrumar a variavel, n tinha testado com points no site, o certo era a linha estar assim: db.executeQuery('UPDATE accounts SET premium_points=premium_points+' .. ka.p_points ..' WHERE id=' .. acc) Desculpe qualquer incomodo! já está arrumado
  9. testei aqui e funcionou, dá algum erro no seu console?
  10. só clicar onde dizia [TFS 1.2+] Invite Player System \/
  11. fica no aguardo? eu ja postei e deixei o link no comentário ali '-'
  12. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    manda PM
  13. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    FORA PT que venham o russo
  14. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    copia aquelá de de cima e muda o número do aid e nome do script
  15. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end local level,money = 200, 1000000 -- level e money edite aqui if getPlayerLevel(cid) < level or not doPlayerRemoveMoney(cid, money) then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "alcance level "..level.." ou mais e tenha 10kk para navegar.") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "cuidado ao andar nesta ilha.") return true end
  16. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    quer um outro tile que manda uma mensagem dizendo "Cuidado" e só passe no tile se tiver 10kk? 10kk de money ou life? e tem que ter level tbm? no caso 200.
  17. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    function onStepIn(cid, item, position, fromPosition) local percent = 30 if not isPlayer(cid) then return true end local hp = (percent*getCreatureMaxHealth(cid))/100 doSendMagicEffect(getThingPos(cid),6) doSendAnimatedText(getCreaturePosition(cid), "- "..hp, TEXTCOLOR_LIGHTBLUE) doCreatureAddHealth(cid, -hp) return true end
  18. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    é movements <movevent type="StepIn" actionid="13950" event="script" value="nome do seu script.lua"/> ai no piso coloca aid 13950
  19. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    function onStepIn(cid, item, position, fromPosition) local percent = 30 if not isPlayer(cid) then return true end doSendMagicEffect(getThingPos(cid),6) doCreatureAddHealth(cid, -(percent*getCreatureMaxHealth(cid))/100) return true end
  20. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    só um tile que remove a vida em porcentagem? quando ele passar em cima do tile vai remover os 30%? só isso?
  21. Me pediram para postar uma especie de propaganda, onde aparecia os top frags do servidor, no caso está configurado para aparecer os 5 frags mais alto. como esse script está no meu servidor faz anos, resolvi jogar para a molecada: Data/globalevents/script topfrags.lua 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 = 5 -- 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 TAG: <globalevent name="TopFrags" interval="3600" event="script" value="topfrags.lua"/>
  22. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    function onUse(cid, item, frompos, item2, topos) local pausa = 120*60*120000 -- (1000 = 1 segundos) Tempo que o script durará local texto = "Você dobrou sua Experiencia por 2 Horas" -- Texto que irá receber ao usar a potion. textofinal = "Acabou o potion de Experiencia." -- Texto que irá receber quando o efeito da potion acabar. local exp = 3 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. remoitem = true --irá remover o item. local limitedeuso = 49015 local tempo = 120*60*1000 -- 1000 = 1s então 1000 vezes 60 vezes 30 = 30 minutos local textofinal1 = "Você já esta sob efeito da pot de experiência espere o efeito acabar." local seuitem = 7440 -- seu item que dará double exp local efeito1 = 13 -- efeito que ficara com o char por meia hora local efeito2 = 35 -- efeito que acontecera no momento que usar a pot local hours = 2 function effect() if isPlayer(cid) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, efeito1) end end if item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() <= 0) then doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid,exp) doSendMagicEffect(frompos,efeito2) setPlayerStorageValue(cid, limitedeuso, os.time() + hours*3600) doPlayerSendTextMessage(cid,22,texto) addEvent(potion, pausa, cid) a = 1 while a ~= timeEffect do addEvent(effect, a * 1000) a = a + 1 end elseif item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() > 0) then doPlayerSendTextMessage(cid,22,textofinal1) end return true end function potion(cid) doPlayerSetExperienceRate(cid,expfinal) doPlayerSendTextMessage(cid,22,textofinal) end
  23. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    que estranho, é pq na storage q vc me deu adc 1800 segundos que é igual a 30 minutos, não 2 hrs sacas? o seu original esta assim setPlayerStorageValue(cid, limitedeuso, os.time() + 1800) tem mais alguma outra parte desse codigo?
  24. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    deixa assim pra ver function onUse(cid, item, frompos, item2, topos) local texto = "Você dobrou sua Experiencia por 2 Horas" -- Texto que irá receber ao usar a potion. textofinal = "Acabou o potion de Experiencia." -- Texto que irá receber quando o efeito da potion acabar. local exp = 3 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. remoitem = true --irá remover o item. local limitedeuso = 49015 local hours = 2 local textofinal1 = "Você já esta sob efeito da pot de experiência espere o efeito acabar." local seuitem = 7440 -- seu item que dará double exp local efeito1 = 13 -- efeito que ficara com o char por meia hora local efeito2 = 35 -- efeito que acontecera no momento que usar a pot local timeEffect = 1801 -- tempo em segundos que o efeito vai apareceer no player, 31 = 30 segundos. sempre coloque 1 segundo a mais. function effect() if isPlayer(cid) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, efeito1) end end if item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() <= 0) then doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid,exp) doSendMagicEffect(frompos,efeito2) setPlayerStorageValue(cid, limitedeuso, os.time() + hours*3600) doPlayerSendTextMessage(cid,22,texto) addEvent(potion,pausa,cid) a = 1 while a ~= timeEffect do addEvent(effect, a * 1000) a = a + 1 end elseif item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() > 0) then doPlayerSendTextMessage(cid,22,textofinal1) end return true end function potion(cid) doPlayerSetExperienceRate(cid,expfinal) doPlayerSendTextMessage(cid,22,textofinal) end e o talk assim function timeString(timeDiff) local dateFormat = { {"day", timeDiff / 60 / 60 / 24}, {"hour", timeDiff / 60 / 60 % 24}, {"minute", timeDiff / 60 % 60}, {"second", timeDiff % 60} } local out = {} for k, t in ipairs(dateFormat) do local v = math.floor(t[2]) if(v > 0) then table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or '')) end end local ret = table.concat(out) if ret:len() < 16 and ret:find("second") then local a, b = ret:find(" and ") ret = ret:sub(b+1) end return ret end function onSay(cid, words, param) if getPlayerStorageValue(cid,49015) - os.time() <= 0 then doPlayerSendTextMessage(cid, 23,"você não tem Exp Potion ativa.") return true end local time = timeString(-(os.time() - getPlayerStorageValue(cid, 49015))) return doPlayerSendTextMessage(cid, 23,"você ainda tem "..time.." de Exp Potion.") end
  25. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    local cfgItems = {{16101, 1}} local level = 50 function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(20009) > 0 then player:sendTextMessage(MESSAGE_INFO_DESCR, "Ya tienes la recompensa.") return true elseif player:getLevel() < level then player:sendTextMessage(MESSAGE_INFO_DESCR, "No tienes level.") return true end player:sendTextMessage(MESSAGE_INFO_DESCR, "Ganaste alguns itens.") local bag = player:addItem(1993) -- Red Bag id for i = 1, #cfgItems do bag:addItem(cfgItems[i][1], cfgItems[i][2]) end player:setStorageValue(20009, 1) return true end

Informação Importante

Confirmação de Termo