I make script to move automatically random position.
It works but, too fast random click on map so i want to put delay.
However, idk how to put delay in script.
if u guys have time them.. plz help me!
message or skype
I make script to move automatically random position.
It works but, too fast random click on map so i want to put delay.
However, idk how to put delay in script.
if u guys have time them.. plz help me!
message or skype
Moved to developer talk
Also DelayAction would work im pretty sure you could even use ticks but this is some sample code
DelayAction(function() MoveToXYZ(x,y,z) end, 1000) --1000 is the delay before we movetoxyz try messing with the delays you could also randomize it so that it would delay moving randomly
Moved to developer talk
Also DelayAction would work im pretty sure you could even use ticks but this is some sample code
DelayAction(function() MoveToXYZ(x,y,z) end, 1000) --1000 is the delay before we movetoxyz try messing with the delays you could also randomize it so that it would delay moving randomly
it only delayed befor start the script
my script is
---------------------------------------------------------------------------------------
it only delayed befor start the script
my script is
---------------------------------------------------------------------------------------
require("Inspired")local AutodeathMenu = MenuConfig("AutoDeath", "AutoDeath")AutodeathMenu:Boolean("OnOff", "ON / OFF", false)OnTick(function(myHero)if AutodeathMenu.OnOff:Value() thenlocal x = math.random( 0, 15000 )local y = math.random( 0, 15000 )local z = math.random( 0, 15000 )DelayAction(function() MoveToXYZ(x,y,z) end, 5000)endend)
local currtickz = GetTickCount() local tickz = 0 if (tickz + 1000) < currtickz and AutodeathMenu.OnOff:Value() then -- 1000 == 1 second MoveToXYZ(x,y,z) end
Well if you canlocal currtickz = GetTickCount() local tickz = 0 if (tickz + 1000) < currtickz and AutodeathMenu.OnOff:Value() then -- 1000 == 1 second MoveToXYZ(x,y,z) end
require("Inspired")local AutodeathMenu = MenuConfig("AutoDeath", "AutoDeath")AutodeathMenu:Boolean("OnOff", "ON / OFF", false)OnTick(function(myHero)if AutodeathMenu.OnOff:Value() thenlocal x = math.random( 0, 15000 )local y = math.random( 0, 15000 )local z = math.random( 0, 15000 )local currtickz = GetTickCount()local tickz = 0if (tickz + 3000) < currtickz and AutodeathMenu.OnOff:Value() then -- 1000 == 1 secondMoveToXYZ(x,y,z)endendend)nothing changed with my script
Do you understand what cloud did ._. I recommend to look into timer. Because i don't understand timer
Do you understand what cloud did ._. I recommend to look into timer. Because i don't understand timer
what is the problem of this script?
0 members, 1 guests, 0 anonymous users