Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local spell = "exori"
- local timeLimit = 60 -- seconds
- local status = {pos=Self.Position(), time=os.time()}
- local function checkMovement()
- local curPos, curTime = Self.Position(), os.time()
- if(status.pos == newPos)then -- positions haven't changed
- if(os.difftime(status.time, os.time()) > timeLimit) then -- time limit is up and the positions are the same
- Self.Say(Spell) -- fuck shit up
- end
- else -- they have changed
- status.pos, status.time = curPos, curTime
- end
- -- rinse, wash, repeat
- sleep(random(500, 1000))
- checkMovement()
- end
Add Comment
Please, Sign In to add comment