Ir para conteúdo
Banner com Efeitos

Muuleke

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Muuleke recebeu reputação de mestrecunha em [CreatureEvent] Anti Account Manager Mage Bomb Crash   
    Nem funfo
  2. Negativo
    Muuleke recebeu reputação de Markin em Baiak Extreme OTProjects 0.2.1 - O MELHOR BAIAK! (8.60)   
    coloca no 4shared
    que e melhor poha
  3. Gostei
    Muuleke deu reputação a Guilherme. em Lottery System   
    Lottery System 1.0


    Vá em data\globalevents\scripts e crie um arquivo chamado lottery.lua, coloque isso dentro, salve e feche:


    -- Lottery System local config = { lottery_hour = "2 Hours", -- Tempo ate a proxima loteria (Esse tempo vai aparecer somente como broadcast message) rewards_id = {2527, 7428, 6531, 2160}, -- ID dos Itens Sorteados na Loteria crystal_counts = 500, -- Usado somente se a rewards_id for crystal coin (ID: 2160). website = "no" -- Only if you have php scripts and table `lottery` in your database! } function onThink(interval, lastExecution) if(getWorldCreatures(0) == 0)then return true end local list = {} for i, tid in ipairs(getPlayersOnline()) do list[i] = tid end local winner = list[math.random(1, #list)] local random_item = config.rewards_id[math.random(1, #config.rewards_id)] if(random_item == 2160) then doPlayerAddItem(winner, random_item, config.crystal_counts) doBroadcastMessage("[LOTTERY SYSTEM] Winner: " .. getCreatureName(winner) .. ", Reward: " .. config.crystal_counts .. " " .. getItemNameById(random_item) .. "s! Congratulations! (Proxima Loteria em " .. config.lottery_hour .. ")") else doBroadcastMessage("[LOTTERY SYSTEM] Winner: " .. getCreatureName(winner) .. ", Reward: " .. getItemNameById(random_item) .. "! Congratulations! (Proxima Loteria em " .. config.lottery_hour .. ")") doPlayerAddItem(winner, random_item, 1) end if(config.website == "yes") then db.executeQuery("INSERT INTO `lottery` (`name`, `item`) VALUES ('".. getCreatureName(winner) .."', '".. getItemNameById(random_item) .."');") end return true end

    Agora vá em data\globalevents\globalevents.xml e adicione essa TAG:



    Vermelho: Tempo em que a Loteria vai ser executada.

    Pronto, seu Sistema de Loteria esta terminado!
  4. Negativo
    Muuleke recebeu reputação de Vodkart em (resolvido) [pedido] ao matar um player aparecer essa função   
    kkk
  5. Gostei
    Muuleke deu reputação a Kimoszin em (resolvido) [pedido] ao matar um player aparecer essa função   
    \data\creaturescripts\creaturescripts.xml

        &ltevent type="kill" name="KillMessage" event="script" value="kills.lua \data\creaturescripts\scripts\login.lua         registerCreatureEvent(cid, "KillMessage") \data\creaturescripts\scripts\kills.lua function onKill(cid, target, lastHit) doPlayerPopupFYI(cid, "MESSAGE") return TRUE end
  6. Gostei
    Muuleke deu reputação a Vodkart em [RESOLVIDO][Pedido] Anti Acc Manager Mage Bomb   
    function onLogin(cid) local limit,days = 2,360 function CheckMcManager(cid) local count,on = 0,getPlayersOnline() if #on > 0 then for i = 1, #on do if getCreatureName(on[i]) == "Account Manager" and getPlayerIp(on[i]) == getPlayerIp(cid) then count = count + 1 end end if count > limit then doAddIpBanishment(getPlayerIp(cid), days * 24 * 60 * 60) doRemoveCreature(cid) end end return true end addEvent(CheckMcManager, 1000, cid) return true end

Informação Importante

Confirmação de Termo