Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. pairs percorre as chaves de uma chave --> [""] ipairs percore os índices de uma array
  2. caso precise de ajuda só mandar um PM será um prazer colossal em lhe ajudar
  3. Vodkart

    Lol

    posso te abraçar por trás?
  4. Vodkart

    Lol

    colocar bunda a tapa vc n quer né?
  5. Vodkart

    Lol

    Sua história de tibiano me emocionou bastante acho que com esse currículo qualquer equipe te aceita as mina então piram hein
  6. é mesmo caotic, ai o player não vai pode adicionar um item igual, e também deveria ter um limite de dias para que se não vendesse fosse removido da lista '-' enfim a tabela primaria poderia ter sido: CREATE TABLE shop ( id INTEGER NOT NULL, player_id INTEGER NOT NULL, item INTEGER NOT NULL, price INT NOT NULL DEFAULT 0, PRIMARY KEY ( id ) ); @topic faltou tbm fazer uma lista para ver os items que estao na venda
  7. Vodkart

    Lol

    não foi o JV
  8. Vodkart

    Lol

    fui banido eternamente por comedinhas e vc volto aqui cara ai meu penis BrunoCarvalho Nota criada 28 January 2011 - 05:49 PM Aumentou nível de alerta Banido eternamente por brigas, criação de contas fake e etc... http://www.xtibia.co...lguem-me-ajuda/
  9. cadê a tag do script? você nem adicionou ela lol você fez o arquivo.lua e colocou em data/movemens/script ?
  10. percebi amigão manda o movements.xml
  11. n é ele que ta usando a foto do restart na assinatura
  12. function onSay(cid, words, param, channel) local days = 2 for _, pid in pairs(getPlayersOnline()) do addCharacterAcess(pid, days) end return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "você adicionou "..days.." dias de vip para todos online.") end
  13. oq vc fez aí cara? PQP n sabe adicionar uma tag é tenso uahuhauaaau qual versão do seu OT?
  14. TEMPO QUE O MILES ERA UM EMO DAS CAVERNA CABELUDO E TESUDO
  15. premiumitems.lua function onEquip(cid, item, slot) return isPremium(cid) and true or false end a tag pode ser assim: <movevent type="Equip" itemid="6531" slot="head" event="script" value="premiumitems.lua"/> ou pode adicionar mais tags para o mesmo script e diferente type como legs, head, armor, etc.. <movevent type="Equip" itemid="6531" slot="head" event="script" value="premiumitems.lua"/> <movevent type="Equip" itemid="2478" slot="legs" event="script" value="premiumitems.lua"/>
  16. local config = { MaxPlayer = 20, fight_skills = { ['fist'] = 0, ['club'] = 1, ['sword'] = 2, ['axe'] = 3, ['distance'] = 4, ['shielding'] = 5, ['fishing'] = 6, ['dist'] = 4, ['shield'] = 5, ['fish'] = 6, }, other_skills = { [''] = "level", ['level'] = "level", ['magic'] = "maglevel", ['health'] = "healthmax", ['mana'] = "manamax", ['reset'] = "reset" }, vocations = { ['sorcerer'] = {1,5}, ['druid'] = {2,6}, ['paladin'] = {3,7}, ['knight'] = {4,8} }, storages = { ['frags'] = 824544 } } function onSay(cid, words, param) local param,str = string.lower(param),"" if not config.fight_skills[param] and not config.other_skills[param] and not config.vocations[param] and not config.storages[param] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "este rank não existe.") return true end str = "--[ RANK "..(param == "" and "LEVEL" or string.upper(param)).." ]--\n\n" query = config.fight_skills[param] and db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = "..config.fight_skills[param].." ORDER BY `value` DESC;") or config.other_skills[param] and db.getResult("SELECT `name`, `"..config.other_skills[param].."` FROM `players` WHERE `id` > 6 AND `group_id` < 2 ORDER BY `"..config.other_skills[param].."` DESC, `name` ASC;") or config.storages[param] and db.getResult("SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = "..config.storages[param].." ORDER BY cast(value as INTEGER) DESC;") or db.getResult("SELECT `name`, `level` FROM `players` WHERE `group_id` <= 2 AND `vocation` = "..config.vocations[param][1].." or `vocation` = "..config.vocations[param][2].." ORDER BY `level` DESC;") if (query:getID() ~= -1) then k = 1 while true do str = str .. "\n " .. k .. ". "..(config.fight_skills[param] and getPlayerNameByGUID(query:getDataString("player_id")) or config.storages[param] and getPlayerNameByGUID(query:getDataString("player_id")) or query:getDataString("name")).." - [" .. query:getDataInt((config.fight_skills[param] and "value" or config.storages[param] and "value" or config.vocations[param] and "level" or config.other_skills[param])) .. "]" k = k + 1 if not(query:next()) or k > config.MaxPlayer then break end end query:free() end doShowTextDialog(cid,6500, str) return true end
  17. Não é atoa que sou Onipresente e Onipotente UAHAUHAUAHAUAUAUAUA
  18. function onSay(cid, words, param, channel) local showGamemasters,on,count = false,getPlayersOnline(),0 for _, cid in pairs(on) do if getPlayerAccess(cid) < 3 then count = count + 1 end end return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,(showGamemasters == true and #on or count).." player(s) online.") end
  19. Vai pesar oque meu filho? script não tem nem 1kb e o tempo da execução de um script como esse é quase nada ._. @topic usa essa tag <talkaction words="/quit;!quit" event="script" value="nome do seu script.lua"/>
  20. http://www.xtibia.com/forum/topic/193582-talkactionquit/
  21. Vodkart

    Ajuda Em Npc

    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 local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, storage = 782458, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) npcHandler:addModule(FocusModule:new())
  22. Vodkart

    Me Ajudem.

    qual erro que da no console?
  23. function onSay(cid, words, param, channel) local showGamemasters,on,count = false,getPlayersOnline(),0 for _, cid in pairs(on) do if getPlayerAccess(cid) < 3 then count = count + 1 end end return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,(showGamemasters == true and #on or count).." player(s) online.") end
  24. resolvido via MSN abraços
  25. REP + LUCK reportado para moverem
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...