Log in

View Full Version : Alarm when stay longer than X second



lolu1133
03-12-2016, 01:59 PM
Hi Guys,

I need a script that play alarm when bot don't move longer that X second.
Options in Alarms - Walker Stuck is not helpful for me.

Thanks in advance for help! :)

lolu1133
03-12-2016, 09:53 PM
I found something like this and it's working.


while (true) do
local position = Self.Position()
wait(60000)
if(Self.Position() == position) then
alert()
end
end

lolu1133
03-14-2016, 05:45 AM
Refresh...
Script above doesnt't work.

lolu1133
03-15-2016, 02:22 PM
Refresh...

lolu1133
03-16-2016, 11:26 PM
Really nobody solve this problem?
Guys, progammer, it should be easy for you.

Refresh!

Elvang
03-16-2016, 11:31 PM
Really nobody solve this problem?
Guys, progammer, it should be easy for you.

Refresh!

It's not that we can't help you, it's more about the fact that you don't have a Xenobot license, which would indicate you're using a crack.

lolu1133
03-17-2016, 12:21 AM
Nobody wanted to help so I had to do it yourself.

Maybe someone want to use it.

local time = 60000 --- in miliseconds

while (true) do
local myx = Self.Position().x
local myy = Self.Position().y
local myz = Self.Position().z
wait(time)
if(Self.Position().x == myx and Self.Position().y == myy and Self.Position().z == myz) then
alert()
end
end