Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    111

Tudo que Vodkart postou

  1. ageofwar.servegame.com
  2. ageofwar.servegame.com
  3. ageofwar.servegame.com
  4. ageofwar.servegame.com
  5. ageofwar.servegame.com
  6. ageofwar.servegame.com
  7. ageofwar.servegame.com
  8. mas teria que destruir o nexus inimigo?? algumas torres?? ou só mata mata
  9. esse código é bom para quem gosta de fazer quest, exemplo a firewalk boots
  10. function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS and isMonster(cid) and isPlayer(attacker) then if value > 0 then local damageBonus = math.ceil(value + ((value / 100) * 5)) doTargetCombatHealth(attacker, cid, combat, - damageBonus, - damageBonus, CONST_ME_HITBYPOISON) end end return true end function onCombat(cid, target) if isPlayer(cid) then if getPlayerStorageValue(cid, 9903) >= 1 then registerCreatureEvent(target, "damageBonus") end end return true end
  11. sim claro, participa quem quer. Só acho que se o premio fosse melhor, mais gente iria participar.
  12. Respeito sua opinião, mas me responde uma coisa... quem você está ajudando quando participa de um evento?? Ninguém. Você ajuda é criando conteúdo, respondendo nos tópicos de dúvidas e pedidos. Certo?? E para tal finalidade já existe dois sistemas como "recompensa" pelo seu feito, Melhor resposta e Reputação. Então acho que o OTS deveria ganhar alguma premiação boa obs: eu não jogo tibia, nem OT e nem GLOBAL, só usei como exemplo. Poderia ter falado um VPS ou alguma coisa...
  13. Vou dar minha opinião, acho que a premiação deveria ser algo melhor que uma simples medalha, pode colocar por exemplo, a cada 3 OMS ganhos, ganhar um P.A no tibia, ou alguma coisa...
  14. e como funcionaria este concurso?? qual o método de avaliação?? Porque eu hoje em dia eu iria avaliar a criatividade como principal objetivo, e logo depois a estruturação do código. outra coisa é saber se o concurso vai ter um tema definido, por exemplo: global events, action, talkactions, etc... ou se fica a critério de quem participa escolher que tipo de código quer fazer. e a premiação? acho que a premiação é muito importante tbm
  15. Refiz o código de outro jeito, as TAGS são as MESMAS. Créditos ao Bruno: http://pastebin.com/raw.php?i=pr8G8DQH
  16. e qual o erro?? vc usa sqlite ou mysql?? ele tinha um bug, se n tivesse nenhum online da erro... local config = { lottery_hour = "3 Hours", -- Time to next lottery (real time you set on globalevents.xml, its only for broadcast message.) rewards_id = {2494, 2472, 2514, 2493, 2470, 2195, 2173, 2160, 2520}, -- Rewards ID crystal_counts = 100, -- used only if on rewards_id you have crystal coins (ID: 2160). website = "yes" -- Do you have `lottery` table in your database? } function onThink(interval, lastExecution) if #getPlayersOnline() > 0 then local players = getPlayersOnline() local winner, r_item = players[math.random(1, #players)], config.rewards_id[math.random(1, #config.rewards_id)] local item_name = getItemNameById(r_item) doPlayerAddItem(winner, r_item, isItemStackable(r_item) and 100 or 1) doBroadcastMessage('[Baiak Rock Lottery] Winner: '.. getCreatureName(winner) ..', Reward: '..(isItemStackable(r_item) and 100 or 1)..' '.. item_name ..'(s)! Congratulations! (Next Lottery in '.. config.lottery_hour ..')') if(config.website == "yes") then db.query("INSERT INTO `lottery` (`name`, `item`, `world_id`) VALUES ('".. getCreatureName(winner) .."', '".. item_name .."', '".. world .."');") end end return true end
  17. funciona com quais versões do tibia?? excelente site.
  18. já fiz um sistema parecido, o bacana é colocar chance dependendo do level do item, fica melhor. rep+
  19. The Forgotten Server, version 0.3.6 (Crying Damson) Compiled with GNU C++ version 3.4.5 (mingw special) at Nov 30 2010, 08:39:22.
  20. consegui pelo onAttack. só que ele ainda segue o jogador. vc registrou o evento no monstro?
  21. KKKKKKKKKKKKKKKKKKKKKKK toma meu rep pelo owned q levei agr viado n li msm enfim, testou?? tenta pelo onTarget ou onAttack que tenho ctz q dá...
  22. mas ele pediu só para a tal VOC NÃO atacar o bixo. ele não falou nada sobre o bixo NÃO atacar a tal voc...
  23. olá amigo, acho q vc está falando besteira. esse código é simples e pode ser feito com onAttack ou onCombat
  24. Vodkart

    bug no meu npc

    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local var_city = { ["saffron"] = 5, ["cerulean"] = 4, ["fuchsia"] = 9, ["viridian"] = 2, ["lavender"] = 7, ["pewter"] = 3, ["vermilion"] = 8, ["cinnabar"] = 10, ["celadon"] = 6 } local ret_pokes = {"bulbasaur", "charmander", "squirtle"} 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, msg = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid, msg:lower() if isInArray({'yes', 'sim', 'si'}, msg) then if getPlayerStorageValue(cid, 157171) == 2 then selfSay("Desculpe, mas só pode fazer uma escolha.", cid) elseif getPlayerStorageValue(cid, 157171) == 1 then selfSay('Agora escolha seu Pokemon Inicial? {Bulbasaur}, {Charmander} ou {Squirtle} ?', cid) talkState[talkUser] = 2 else selfSay("Muito Bom! Agora me Fale qual sua cidade natal? {saffron}, {cerulean} ou {fuchsia} ?", cid) talkState[talkUser] = 1 end elseif talkState[talkUser] == 1 then if var_city[msg] then doPlayerSetTown(cid, var_city[msg]) setPlayerStorageValue(cid, 157171, 1) selfSay('Agora escolha seu Pokemon Inicial? {Bulbasaur}, {Charmander} ou {Squirtle} ?', cid) talkState[talkUser] = 2 else selfSay("está cidade não está disponivel.", cid) end elseif talkState[talkUser] == 2 then if isInArray(ret_pokes, msg) then doPokemonToPlayer(cid, msg) setPlayerStorageValue(cid, 157171, 2) selfSay('Agora voce tem um pokemon e pode seguir sua Jornada, Ate Ate logo!', cid) talkState[talkUser] = 0 doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) else selfSay('você só pode escolher {Bulbasaur}, {Charmander} ou {Squirtle}!', cid) end elseif msg == "no" and talkState[talkUser] >= 1 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())
  • Quem Está Navegando   0 membros estão online

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