Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. estranho, testei aqui e funcionou, porque você coloca interval="50000" ? se for isso vc tem q mudar o tempo também aqui no addEvent addEvent(removeCreature, tb.Time*60*1000) tem que passar pra ms tenta addEvent(removeCreature, tb.Time*60000) 60000 ms = 1 minuto tb.Time*60000 se time for 15 vai fazer a contagem rlx de 15*60000 = 900000 900000ms = 15 minutos
  2. outro tpc. cala a boca e mete
  3. larga mão de ser criança seu lixo sai logo do fórum e n volta mais pra que da trabalho pra alguem?
  4. q engraçado me senti ofendido reportado banido morto huntado estraçalhado comido
  5. kd o link seu fdp
  6. me manda para eu ver como vc configurou o seu, e no time coloca só 1 minuto pra testa
  7. depende do server, procura em creaturescript e na pasta mods
  8. rapaz, algum dos seus pedidos já tem aqui... só procurar ¬¬ aproveita que é impossivel e manda o Tom Cruise fazer
  9. meu pinto ficou preso na sua bunda
  10. É o rep system que está bugando seu ot, vai nele e onde estiver 'db.executeQuery' troca pra 'db.Query'
  11. inv.lua local days = { ["Sunday"] = { ["00:00"] = {nome = "Demon Invasões", pos = {x=185, y=54, z=7}, monster = {"40 Demon", "50 Fire Devil", "4 Orshabaal"}, Time = 15}, ["21:00"] = {nome = "Dragon Invasões", pos = {x=185, y=54, z=7}, monster = {"100 Dragon"}, Time = 15} }, ["Saturday"] = { ["00:00"] = {nome = "Demon Invasões", pos = {x=185, y=54, z=7}, monster = {"40 Demon", "50 Fire Devil", "4 Orshabaal"}, Time = 15}, ["21:13"] = {nome = "Dragon Invasões", pos = {x=185, y=57, z=7},monster = {"100 Dragon"}, Time = 15} } } function onThink(interval, lastExecution) function getDayName() local days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} return days[os.date("*t")["wday"]] end hours = tostring(os.date("%X")):sub(1, 5) tb = days[getDayName()][hours] if tb then function removeCreature() for x = ((tb.pos.x)-10), ((tb.pos.x)+10) do for y = ((tb.pos.y)-10), ((tb.pos.y)+10) do local m = getTopCreature({x=x, y=y, z= tb.pos.z}).uid if m ~= 0 and isMonster(m) then doRemoveCreature(m) end end end return true end addEvent(removeCreature, tb.Time*60*1000) doBroadcastMessage(hours .. " - " .. tb.nome .. " Iníciou.") for _,x in pairs(tb.monster) do for s = 1, tonumber(x:match("%d+")) do doSummonCreature(x:match("%s(.+)"), tb.pos) end end end return true end globalevents.xml <globalevent name="Invasao" interval="60" event="script" value="inv.lua"/>
  12. Vodkart

    (Pedido) Deathlist

    ta dificil mesmo, quando morre pra player da debug no distro e fecha o ot ¬¬
  13. Vodkart

    Eu Rl

    Fala sério man aquilo lá é puro paint ¬¬
  14. Mas ele está configurado para falar na aba do npc npcHandler:say("msg", cid) o "cid" faz com que a mensagem seja aberta nessa aba!
  15. Vodkart

    Porta Storage

    function onUse(cid, item, frompos, item2, topos) local storage = 58745 if getPlayerStorageValue(cid, storage) <= 0 then return doPlayerSendTextMessage(cid,22,"Você não tem acesso á está área.") end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, topos, TRUE) return true end
  16. 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 = {itemid = 9020,cost = 15} if msgcontains(msg, 'sex') then npcHandler:say("Você quer mudar de sexo por "..config.cost.." "..getItemNameById(config.itemid).." ? {yes}", cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if doPlayerRemoveItem(cid,config.itemid,config.cost) == TRUE then doPlayerSetSex(cid, getPlayerSex(cid) == PLAYERSEX_FEMALE and PLAYERSEX_MALE or PLAYERSEX_FEMALE) npcHandler:say("Parabéns, você mudou de sexo com sucesso", cid) else npcHandler:say("Desculpe, Você não tem "..config.cost.." "..getItemNameById(config.itemid).." !", cid) 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())
  17. afinal, é por item ou por dinheiro? ou pelos 2?
  18. Vodkart

    Porta Storage

    Se eu não me engano tem algumas door que se você colocar o número da storage em UNIQUEID ela abre normal... por exemplo storage 9595 ai vc vai na propriedade da porta e coloca UNIQUEID 9595
  19. ta me fala uma coisa, depois que o npc é sumonado o que acontece com ele? ele fica lá por um tempo e depois some? detalhes
  20. Tava pensando aqui, dava para usar storage + onlook quando ele iria falar com o npc setava a storage ele ficando +ou - assim: doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == PLAYERSEX_FEMALE and ".\nShe" or ".\nHe") .. " is a " .. (getCreatureStorage(thing.uid, STORAGE) <= 0 and "Genin" or "Chunnin"))
  21. The guild will Frag only if: Killing each other with different IP (not to be abused) Killing a player with different guild Level diff 50 - (configurable) -------------------------------------------------------------------- @edite first update: Honor point adicionado! para saber mais leia o tópico
  22. local npc,pos = "Rashid",{x=x,y=y,z=z} doCreateNpc(npc, pos) -- faz criar o npc doRemoveCreature(getCreatureByName(npc)) -- faz deletar o npc
  23. testa essa local t = { lvl = 100, entrada = { {x = 710, y = 1420, z = 5}, {x = 709, y = 1420, z = 5}, {x = 708, y = 1420, z = 5}, {x = 707, y = 1420, z = 5} }, saida = { {x = 710, y = 1420, z = 6}, {x = 709, y = 1420, z = 6}, {x = 708, y = 1420, z = 6}, {x = 707, y = 1420, z = 6} }, monstros = { {{x = 707, y = 1418, z = 6}, "Demon"}, {{x = 709, y = 1418, z = 6}, "Demon"}, {{x = 708, y = 1422, z = 6}, "Demon"}, {{x = 710, y = 1422, z = 6}, "Demon"}, {{x = 712, y = 1420, z = 6}, "Hellfire Fighter"}, {{x = 713, y = 1420, z = 6}, "Hellfire Fighter"}, {{x = 711, y = 1420, z = 6}, "Ghazbaran"} } } function onUse(cid, item, fromPosition, itemEx, toPosition) local check = {} for _, k in ipairs(t.entrada) do local x = getTopCreature(k).uid if(x == 0 or not isPlayer(x) or getPlayerLevel(x) < t.lvl) then doPlayerSendCancel(cid, 'Está faltando player ou alguém não possui level '..t.lvl..' ou mais.') return true end table.insert(check, x) end for _, summon in pairs(t.monstros) do local creature = getTopCreature(summon[1]).uid if(creature > 0 and not isPlayer(creature)) then doRemoveCreature(creature) end doCleanTile(summon[1]) doCreateMonster(summon[2], summon[1]) end for i, tid in ipairs(check) do doSendMagicEffect(t.entrada[i], CONST_ME_POFF) doTeleportThing(tid, t.saida[i], false) doSendMagicEffect(t.saida[i], CONST_ME_ENERGYAREA) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end só editar ela
  • Quem Está Navegando   0 membros estão online

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