Hello There, Guest! Login Register


Random move in many rectangles
#1
i want my script to go farm in different rectangles every 30mins i want to ask if its possible and what is the code for that ????
 
Reply
#2
function onPathAction()

local h,m = getTime() --This is in game time
if h>=0 and h<6 then
--do anything
end
if h>=6 and h<12 then
--do anything
end
if h>=12 and h<18 then
--do anything
end
if h>=18 and h<24 then
--do anything
end
end
 
Reply
#3
(2016-09-13, 19:56:00)darkbump function onPathAction()

local h,m = getTime() --This is in game time
if h>=0 and h<6  then
--do anything  
end
if h>=6 and h<12 then
--do anything  
end
if h>=12 and h<18  then
--do anything  
end
      if h>=18 and h<24  then
--do anything  
end
end

tnx man
and its possible to do it in a random time ?
 
Reply
#4
Of course theres a way, take a look at this:
http://lua-users.org/wiki/MathLibraryTutorial
No support for scripts from other authors or edited scripts ( except config.lua ). If you change something on the "core" and it isnt working anymore then you can fix it by your own.
Feel free to contact me for informations and tips !

 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)