-
Ibot Actions to Windbot
Hello,
I am looking for few actions so that I will be able to make some scripts and move here :)
1.
PHP Code:
local TIME = {FROM = '9:58', TO = '10:23', CURRENT = time()}if (tosec(TIME.CURRENT) > tosec(TIME.FROM)) and (tosec(TIME.CURRENT) < tosec(TIME.TO)) then
setsettings("Settings\\Actions\\List\\Auto Safe Reconnect\\Enabled","no")
else
setsettings("Settings\\Actions\\List\\Auto Safe Reconnect\\Enabled","yes") end
2.
PHP Code:
if (openmenuname == "Message of the Day") thenkeyevent(0xD) wait(1000) end
-
-
For the second i think that is not necessary, until you choose this option in settings
http://puu.sh/5Z32y.png
-
For the first, i don't know if its implemented yet but you can do conditions in SafeReconnect script
Code:
if SafeReconnect then
CODETODO
else
CODETODOWITHNOSAFERECONNECT
end
Then the persistent will be
local TIME = {FROM = '9:58', TO = '10:23', CURRENT = time()}
if (tosec(TIME.CURRENT) > tosec(TIME.FROM)) and (tosec(TIME.CURRENT) < tosec(TIME.TO)) then
SafeReconnect = false
else
SafeReconnect = true
end
-
thanks, So I will need to do 2 persistents?
-
Not necessary you can put whole 2 in one.. but the LOCAL TIME... first instead if SafeReconnect