Hey, I need a script that will put on a E-Ring when attacked by a player and close the client! can anyone help me with this?
Hey, I need a script that will put on a E-Ring when attacked by a player and close the client! can anyone help me with this?
Check Out My ScreenShot Thread
>>>>https://forums.tibiawindbot.com/showthread.php?111456-Farmatodo-s-RP-Life-Thread-(Full-Manual)<<<<
1- Wrong area, > Request, post
2-
--Check Attack Player
auto(100)
local Print = true --print
local Ring = 'energy ring' --ring
local RingBP = 'brocade backpack' --ring bp
local RemoveRing = true --if no attacked player, remove ring
local useXLOG = false --close connection with the world
local useCloseClient = true --close client
------------------------------------------
if $connected then
if $pattacker.id ~= 0 then
if Print then
print($pattacker.name .. ' is attacking you!')
wait(1000)
end
if itemcount(Ring) ~= 0 then
equipitem(Ring)
end
--if use auto reconnect, desable in line...for example: setsetting('Persistent/Scripts/Reconnect/Enabled', 'no')
if useXLOG then
xlog()
end
if useCloseClient then
closeclient()
end
elseif $pattacker.id ~= 0 and RemoveRing and itemcount(Ring) ~= 0 then
unequipitem('finger', RingBP)
end
end
Last edited by Cisco; 01-02-2017 at 12:53 PM.