XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: anti red skull script

  1. #1

    Join Date
    Feb 2014
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    anti red skull script

    Hello guys im looking for a script, if i take unjust one frag, my tibia client will be shutdown (exit) or something like that if unjust load other waypoints Target etc. who can help me, ???

  2. #2

    Join Date
    Nov 2012
    Posts
    332
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    i also need this XD big problem haha

  3. #3
    grave18's Avatar
    Join Date
    Mar 2014
    Posts
    74
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    lua code:
    -- script by Rif
    local players = {}
    local hited = {}

    function _getPlayers(range)
    for _, c in Creature.iPlayers(range) do
    name = c:Name()
    return true
    end
    return false
    end

    function _insertPlayers()
    for _, c in Creature.iPlayers(range) do
    if not _tableContains(players, c:Name()) then
    players[#players + 1] = c:Name()
    print('Added to list '..c:Name())
    end
    end
    end

    function _tableContains(table, nick)
    for i = 1, #table do
    if table[i] == nick then
    setName = table[i]
    return true
    end
    end
    return false
    end

    function _checkLifeStatus(hpperc)
    if _tableContains(hited, setName) then
    local player = Creature.New(setName)
    local self = Creature.GetByID(Self.ID())
    if player:isOnScreen() and player:HealthPercent() <= hpperc then
    if self:Skull() == 3 then
    print('I killed him omg, exiting..')
    wait(2000)
    os.exit()
    end
    end
    end
    end

    BattleMessageProxy.OnReceive('server', function(proxy, text)
    if _getPlayers(7) then
    if _tableContains(players, name) then
    dmg = text:match('%d')
    if text:find(setName) and text:find('your attack.') then
    if not _tableContains(hited, setName) then
    hited[#hited + 1] = setName
    print('You hit '.. setName ..' for '.. dmg ..'.')
    else
    if setName ~= nil then
    print('You hit '.. setName ..' for '.. dmg ..'.')
    end
    end
    end
    end
    end
    end)

    Module.New('Anti-Rs', function()
    _insertPlayers()
    _checkLifeStatus(0)
    end)
    Last edited by grave18; 12-22-2015 at 11:05 PM.

  4. #4

    Join Date
    Nov 2012
    Posts
    332
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by grave18 View Post
    lua code:
    -- script by Rif
    local players = {}
    local hited = {}

    function _getPlayers(range)
    for _, c in Creature.iPlayers(range) do
    name = c:Name()
    return true
    end
    return false
    end

    function _insertPlayers()
    for _, c in Creature.iPlayers(range) do
    if not _tableContains(players, c:Name()) then
    players[#players + 1] = c:Name()
    print('Added to list '..c:Name())
    end
    end
    end

    function _tableContains(table, nick)
    for i = 1, #table do
    if table[i] == nick then
    setName = table[i]
    return true
    end
    end
    return false
    end

    function _checkLifeStatus(hpperc)
    if _tableContains(hited, setName) then
    local player = Creature.New(setName)
    local self = Creature.GetByID(Self.ID())
    if player:isOnScreen() and player:HealthPercent() <= hpperc then
    if self:Skull() == 3 then
    print('I killed him omg, exiting..')
    wait(2000)
    os.exit()
    end
    end
    end
    end

    BattleMessageProxy.OnReceive('server', function(proxy, text)
    if _getPlayers(7) then
    if _tableContains(players, name) then
    dmg = text:match('%d')
    if text:find(setName) and text:find('your attack.') then
    if not _tableContains(hited, setName) then
    hited[#hited + 1] = setName
    print('You hit '.. setName ..' for '.. dmg ..'.')
    else
    if setName ~= nil then
    print('You hit '.. setName ..' for '.. dmg ..'.')
    end
    end
    end
    end
    end
    end)

    Module.New('Anti-Rs', function()
    _insertPlayers()
    _checkLifeStatus(0)
    end)
    thank you my hero !!!!!!!!!!!!!!!!!!!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •