Ir para conteúdo

Vodkart

Héroi
  • Registro em

Tudo que Vodkart postou

  1. obrigado as mina pira com o meu visual da um charme
  2. obrigado pelos comentários abraços
  3. ambos são a mesma pessoa sky ~zmovir
  4. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    em creaturescript/script tag é essa <event type="login" name="AntiMc" event="script" value="antimc.lua"/> @sobre a foto sim sou eu.
  5. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    só trocar a função de remover item por o de lvl '-' local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local pos = {x=152,y=58,z=7} -------------- Pos para onde o player sera levado if msgcontains(msg, "offer") or msgcontains(msg, "help") then selfSay("Eu posso te levar a TAL lugar fale {travel} se quizer viajar.", cid) elseif msgcontains(msg, 'travel') then if getPlayerLevel(cid) >= 30 then selfSay("Boa viagem.", cid) doTeleportThing(cid, pos) else selfSay("Voce nao tem level.", cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  6. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    local config = { msg = "Notorious Anti-MC System has detected that you are multi clienting.", maxMultiClients = 2, allowGroupId = 2, ignoreIps = {} -- coloque o seu ip aki }
  7. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    quando ele chegar no piso especial o evento acaba e todos são teleportados para o templo?
  8. opa muito bom, string.find e string.explode são muitos usados pelos scripters! parabéns
  9. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    tenta usar if not getTilePzInfo(getCreaturePosition(cid)) and getDistanceBetween(getThingPos(cid), getThingPos(getCreatureSummons(cid)[1])) > max then
  10. troca lá no script de talk doPlayerPopupFYI(cid, str) to doShowTextDialog(cid,6500, str)
  11. ATUALIZADO PARA V.1 - Mostra agora se o player morreu [blessed] ou com [Aol] - Mostra últimas mortes do servidor
  12. troca aquela talk por essa: function onSay(cid, words, param, channel) if (param == "") then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Você possui "..getPlayerStorageValue(cid, 102086).." pontos de Reputação.") elseif param == "rank" then local max = 10 local str ="" str = "--[Reputation Rank]--\n\n" local query = db.getResult("SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 102086 ORDER BY cast(value as INTEGER) DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > max then break end str = str .. "\n " .. k .. ". "..getPlayerNameByGUID(query:getDataString("player_id")).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end doPlayerPopupFYI(cid, str) end return true end max é o limite de player que vai aparecer no rank se você colocar para aparecer 50 vai retornar aquela mensagem de novo ¬¬ e para aparecer no rank é que nem os outros, o cara precisa relogar para salvar o character ou dar salve server, onde todos os player do ot são salvos.
  13. nome do seu script.lua function getReps(cid) return getPlayerStorageValue(cid,102086) < 0 and 0 or getPlayerStorageValue(cid,102086) end function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n[Reps: " .. getReps(thing.uid) .."]") end return true end creaturescript.xml <event type="look" name="showRep" event="script" value="nome do seu script.lua"/> creaturescript/script/login.lua adc: registerCreatureEvent(cid, "showRep") -- sobre esse erro: too huge message. é porque a mensagem é grande demais.
  14. ah maaal kkkkkk nem vi a seção mal ai
  15. if item.itemid ==1945 then bloco end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
  16. poe para remover o item quando falhar
  17. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    que bom que voltou, estávamos a sua espera, saudades enorme de você garotinho! Voltou para ficar né? Bem vindo novamente!
  18. math.abs(y) o math.abs reenvia o valor absoluto (valor positivo) de y. Isto é, este método elemina o símbolo negativo de um número. print(math.abs(-5)) --> retorna 5
  19. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local price = 2000 local msg= string.lower(msg) if msgcontains(msg, 'black anbu') then outID,storage,name,check = 47,78410,msg,true elseif msgcontains(msg, 'white anbu') then outID,storage,name,check = 50,78411,msg,true end if check == true then npcHandler:say('você quer comprar a outfit '..name..' por '..price..' gps? {yes}', cid) talkState[talkUser] = 1 check = false end if msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if getPlayerStorageValue(cid, storage) == -1 then if doPlayerRemoveMoney(cid, price) then doPlayerAddOutfit(cid, outID, 1) setPlayerStorageValue(cid, storage, 1) npcHandler:say('aqui está sua outfit!', cid) talkState[talkUser] = 0 else npcHandler:say('você precisa de '..price..' gps para comprar.', cid) talkState[talkUser] = 0 end else npcHandler:say('você já tem está outfit.', cid) talkState[talkUser] = 0 end elseif msg == "no" then selfSay("Tudo bem então", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) -edited tinha colocado a função errado, tava dando addon de vez de outfit kk arrumada ja
  20. o erro está na função , está para dar addon e não outfit. troque doPlayerAddAddons(cid, addon) por doPlayerAddOutfit(cid,addon, 1)
  21. mas esse último que diz que já tinha o addon, ele já tinha a storage?
  22. Atualizado V1.0: Mostra últimas mortes do servidor: você pode usar o comando !deathlist NOME ex: !deathlist Carlin: in your db execute this query: CREATE TABLE death_list ( id INTEGER NOT NULL, player_id INTEGER NOT NULL, date INTEGER NOT NULL, level INTEGER NOT NULL, killer_name INTEGER NOT NULL, PRIMARY KEY ( id ) ); creaturescript death_list.lua function onDeath(cid, corpse, deathList) local str = "" for _, pid in ipairs(deathList) do if isCreature(pid) == true then str = str.."".. (str == "" and "" or ",") ..""..getCreatureName(pid) else str = str.."".. (str == "" and "" or ",") .." a field item" end end str = str.."." death = str .. " ".. (getPlayerBlessing(cid, 5) and "[Blessed]" or getPlayerSlotItem(cid, 2).itemid == 2173 and "[AOL]" or "") db.executeQuery("INSERT INTO `death_list` (`player_id`, `date`, `level`, `killer_name`) VALUES ('".. getPlayerGUID(cid).."', '".. os.time() .."', '".. getPlayerLevel(cid) .."', '".. death .."');") return true end creaturescript.xml <event type="death" name="DeathList" event="script" value="death_list.lua"/> creaturescript/script/login.lua registerCreatureEvent(cid, "DeathList") talkactions deathlist.lua limit = 5 function onSay(cid, words, param, channel) str = "" if param == "" then local qry = db.getResult("SELECT `player_id`, `date`, `level`, `killer_name` FROM `death_list` ORDER BY `date` DESC LIMIT 0, " .. limit) if(qry:getID() ~= -1) then repeat str = str .."\n "..os.date("%d %B %Y %X ", qry:getDataInt("date")).." "..getPlayerNameByGUID(qry:getDataString("player_id")).." died at level "..qry:getDataInt("level").." by:\n"..qry:getDataString("killer_name") until not(qry:next()) qry:free() else str = "Não há mortes no servidor." end doPlayerPopupFYI(cid, "Last Deaths:\n\n" .. str) return true end local getPlayer = db.getResult("SELECT `name`, `id` FROM `players` WHERE `name` = " .. db.escapeString(param) .. ";") if(getPlayer:getID() == -1) then doPlayerSendCancel(cid, "Este Player não existe.") return true end local getGuid = getPlayer:getDataInt("id") getPlayer:free() local qry = db.getResult("SELECT `id`, `date`, `level`, `killer_name` FROM `death_list` WHERE `player_id` = " .. getGuid .." ORDER BY `date` DESC LIMIT 0, " .. limit) if(qry:getID() ~= -1) then repeat str = str .."\n "..os.date("%d %B %Y %X ", qry:getDataInt("date")).." died at level "..qry:getDataInt("level").." by:\n"..qry:getDataString("killer_name") until not(qry:next()) qry:free() else str = "Não há mortes." end doPlayerPopupFYI(cid, "Last Deaths of: " .. param .. ".\n\n" .. str) return true end talkactions.xml <talkaction words="!deathlist" script="deathlist.lua"/>
  23. troque if string.find(tostring(getCreatureName(cid)),"[Vip]") then para if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then
  24. são chamados de "premium_points" ?
  25. o que são esses pontos vips?

Informação Importante

Confirmação de Termo