View Full Version : anti red skull script
dzako69
12-21-2015, 08:14 AM
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, ???
jollebollen
12-22-2015, 10:28 PM
i also need this XD big problem haha
grave18
12-22-2015, 11:03 PM
-- 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)
jollebollen
01-22-2016, 03:58 AM
-- 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 :D !!!!!!!!!!!!!!!!!!!!!!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.