Ir para conteúdo

Vodkart

Héroi
  • Registro em

Tudo que Vodkart postou

  1. nenhum e nem outro, estou no time desse velhinha aí, vou ver se começo a pegar ônibus para ver se nós encontramos, meu viagra já está no bolso
  2. vc é mto vida loka cara dps me da um autografo
  3. A voz do povo é a voz de deus! Eddy para moderador baitola! parabéns amigo vamos eleger nosso líder, foda-se se é playground, eddy na cabeça
  4. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    Agora me conte uma novidade
  5. rsrs é verdade, esqueci o "then", estava apressado em ir pra aula free = {"aqui meu ip"} if isInArray(free, getPlayerIp(cid)) then return true end
  6. local max = 10 function onLogin(cid) free = {"aqui meu ip"} if isInArray(free, getPlayerIp(cid)) return true end local i = 0 for _, it in ipairs(getPlayersOnline()) do if getCreatureName(it):lower() == "Account Manager" then i = i + 1 end end if i > max then return false end return true end
  7. 61
  8. if getPlayerSex(cid) == 0 then doPlayerAddItem(cid, 2465, 1) -- esse é o id da armadura q o player ira nascer else doPlayerAddItem(cid, 2465, 1) -- aki tb é id da armadura end são os mesmos items, logo essa parte é desnecessária '-'
  9. as coroa sofre mesmo kkkk falta de pika é fd
  10. Vodkart postou uma resposta no tópico em Ferramentas OpenTibia
    show de bola cara curti bastante parabéns pelo seu job rep+
  11. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    taelzito tesudo
  12. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    quem é vivo sempre aparece rs bem vindo ae gato
  13. nd, ele tirou de um pedido que atendeu xd
  14. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    mimiimimi
  15. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    obrigado por compartilhar esse momento tão importante comigo
  16. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    ciências contabéis ok
  17. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    cricri
  18. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    mas vc não tem nem 18 anos seu safadinho burlando as regras
  19. eu já tinha visto em uma reportagem, uma idéia bastante parecida com essa, achei interessante demais, iria facilitar muito
  20. Vodkart postou uma resposta no tópico em Playground (Off-topic)
    agr já podem sair
  21. conseguiu fazer é? ficou bacana mano! parabéns ai abraços
  22. Explicação: Você compra no npc a exp que você perdeu na sua última morte. Lib > functions.lua adc death_tabble = {before_exp = 135215,after_exp = 135216, check = 251201} creaturescript/script exp_buy.lua function onLogin(cid) registerCreatureEvent(cid, "Exp_P") if getPlayerStorageValue(cid, death_tabble.check) >= 1 then setPlayerStorageValue(cid, death_tabble.after_exp, getPlayerExperience(cid)) setPlayerStorageValue(cid, death_tabble.check, -1) end return true end function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) setPlayerStorageValue(cid, death_tabble.before_exp, getPlayerExperience(cid)) setPlayerStorageValue(cid, death_tabble.check, 1) return TRUE end creaturescript.xml <event type="preparedeath" name="Exp_P" event="script" value="exp_buy.lua"/> <event type="login" name="Exp_L" event="script" value="exp_buy.lua"/> NPC: 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 msg = string.lower(msg) local itemid,count = 9020,10 -- edite o id e count do item aqui if isInArray({"recover","recuperar","exp","experience"}, msg) then npcHandler:say("você deseja recuperar a exp perdida após á sua morte por "..count.." "..getItemNameById(itemid).."? {yes}", cid) talkState[talkUser] = 1 elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerStorageValue(cid, death_tabble.before_exp) ~= -1 and getPlayerExperience(cid) < getPlayerStorageValue(cid, death_tabble.before_exp) then if doPlayerRemoveItem(cid, itemid, count) == TRUE then local count = (getPlayerStorageValue(cid, death_tabble.before_exp) - getPlayerStorageValue(cid, death_tabble.after_exp)) doPlayerAddExp(cid, count) npcHandler:say("Obrigado! aqui está sua experiência.", cid) else npcHandler:say("Desculpe, você não tem "..getItemNameById(itemid).." suficientes!", cid) talkState[talkUser] = 0 end else npcHandler:say("Desculpe, você não morreu ou já recuperou sua exp perdida!", cid) talkState[talkUser] = 0 end elseif msg == "no" then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  23. 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 msg = string.lower(msg) local config = { hours = 24, storage = 58485, rewards = {{itemid = 2173,chance = 15},{itemid = 2123,chance = 25},{itemid = 2160,chance = 30}} -- itens que ele poderá ganhar } function doAddReward() a = true while a == true do local m = math.random(1,#config.rewards) if config.rewards[m].chance > math.random(1, 100) then doPlayerAddItem(cid, config.rewards[m].itemid, isItemStackable(config.rewards[m].itemid) and 100 or 1) npcHandler:say("seu prêmio foi: "..getItemNameById(config.rewards[m].itemid), cid) a = false end end end if isInArray({"presente","present"}, msg) then npcHandler:say("você deseja receber seu presente agora?! {yes}", cid) talkState[talkUser] = 1 elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerStorageValue(cid,config.storage) <= os.time() then doAddReward() setPlayerStorageValue(cid, config.storage, os.time()+config.hours*3600) else npcHandler:say("Desculpe, mas você deve aguardar até "..os.date("%d %B %Y %X ", getPlayerStorageValue(cid,config.storage)).." para pegar seu presente novamente!", cid) talkState[talkUser] = 0 end elseif msg == "no" then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  24. bacana a idéia, mas tbm daria para usar os.time() aliás, esse npc retorna quanto tempo falta para voltar a pegar o presente?
  25. atualizado, usei a função "getItemWeaponType" ai não precisa ficar colocando na tabela os ids das sword, clubs, etc... somente das wands e rods

Informação Importante

Confirmação de Termo