09-16-2024, 09:32 PM
hello, i play in servers that is full PVP, and some times when i go hunt somewhere, i must put a maker in entrance of hunt to protect me of enemys, so the bot can play ALARM when a enemy get in the in screen, but many times it's impossible escape cuz the time to get my Main in the hunt is too fast, i wanna a script that the maker stay using exiva all times that it got mana, in 2 or 3 randon enemys, and when it is Far or closer, the bot play a alarm or send a private msg to my main, so i will hame more time to escape the attack.
I see a script that may work with some alterations like this:
local Player = 'blah blah' --Players name.
if mp() >= 20 and cancast() then
getnewmessages()
cast('exiva "' .. Player .. '"')
wait(500, 1000)
local messages = getnewmessages()
local player_lower = Player:lower()
for _, msg in ipairs(messages) do
if msg.type == 6 then
local msg_lower = msg.content:lower()
if string.find(msg_lower, player_lower) ~= nil and (string.find(msg_lower, 'is standing next to you') ~= nil or string.find(msg_lower, 'is to the') ~= nil) then
xlog()
break
end
end
end
end
this script makes the char logout, with some alterations may works fines, but idk how to do it, and this script dont work with "Far", i wanna that is just dont works with "Very Far".
I see a script that may work with some alterations like this:
local Player = 'blah blah' --Players name.
if mp() >= 20 and cancast() then
getnewmessages()
cast('exiva "' .. Player .. '"')
wait(500, 1000)
local messages = getnewmessages()
local player_lower = Player:lower()
for _, msg in ipairs(messages) do
if msg.type == 6 then
local msg_lower = msg.content:lower()
if string.find(msg_lower, player_lower) ~= nil and (string.find(msg_lower, 'is standing next to you') ~= nil or string.find(msg_lower, 'is to the') ~= nil) then
xlog()
break
end
end
end
end
this script makes the char logout, with some alterations may works fines, but idk how to do it, and this script dont work with "Far", i wanna that is just dont works with "Very Far".

