Replies: 1 comment 6 replies
-
Ok maybe i have to break it down. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
i have the following code in my .ini.
So when i connect it logs on nice.
It selects worldtype on server nice.
I connect to my afk-spot and start auto selling.
The server restarts 03:00 and everyone is kicked to lobby for 1-2 minutes.
During this time i dont want to autosell items.
[code]
[ChatBot.ScriptScheduler]
Enabled = true
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Login"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = false, Times = [ 23:59:59, ] }
Trigger_On_Interval = { Enable = false, MinTime = 120.0, MaxTime = 120.0 }
Action = "send /login PASS"
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Select World"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = true, Times = [ 03:03:00, ] }
Trigger_On_Interval = { Enable = false, MinTime = 1.0, MaxTime = 2.0 }
Action = "script select.txt"
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Sell All"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = false, Times = [ 23:59:59, ] }
Trigger_On_Interval = { Enable = true, MinTime = 1.2, MaxTime = 1.2 }
Action = "send /sell all"
[/code]
Now i wanted to use /execif and %sales% so i can manually do /set sales=on (or true/1/false/off/0 (whatever works))
And i want taskscheduler to turn off sales 30 sec before server restarts and turn it on again 30 sec after world is selected.
So i changed it to:
[code]
[ChatBot.ScriptScheduler]
Enabled = true
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Login"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = false, Times = [ 23:59:59, ] }
Trigger_On_Interval = { Enable = false, MinTime = 120.0, MaxTime = 120.0 }
Action = "send /login PASS"
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Select World"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = true, Times = [ 03:03:00, ] }
Trigger_On_Interval = { Enable = false, MinTime = 1.0, MaxTime = 2.0 }
Action = "script select.txt"
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Sales On"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = true, Times = [ 03:03:30, ] }
Trigger_On_Interval = { Enable = false, MinTime = 3600.0, MaxTime = 3600.0 }
Action = "/set sales = on"
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Sales Off"
Trigger_On_First_Login = false
Trigger_On_Login = false
Trigger_On_Times = { Enable = true, Times = [ 02:59:30, ] }
Trigger_On_Interval = { Enable = false, MinTime = 3600.0, MaxTime = 3600.0 }
Action = "/set sales = off"
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Sell All"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = false, Times = [ 23:59:59, ] }
Trigger_On_Interval = { Enable = true, MinTime = 1.2, MaxTime = 1.2 }
Action = "execif %sales% == "on" --> send /sell all"
[/code]
Tried several ways with and without quotes/slashes but i cant get it to work.
Beta Was this translation helpful? Give feedback.
All reactions