View Full Version : Script that changes between settings
tjucken
01-28-2016, 12:17 AM
Is there a way to make a script that changes settings?
Im playing an OT and would like to make a fully afk script, what i mean:
From level 8-30 i would hunt for example rotworms, once i reach 30 xenobot would change settings to go hunt harder monsters and it would continue like that?
Is this kind of script even possible?
kamilqq
01-28-2016, 12:35 AM
I think its loadSetting() but ask shadowart he will know for sure
Jontor
01-28-2016, 09:07 AM
loadSettings(fileName, panel)
For example:
while (true) do
if (Self.Level() >= 30) then
loadSettings("level30script", "All")
break
end
end
You'd want to launch the while loop in another .lua file, or make it check on a label
shadowart
01-28-2016, 09:41 AM
loadSettings(fileName, panel)
For example:
while (true) do
if (Self.Level() >= 30) then
loadSettings("level30script", "All")
break
end
end
You'd want to launch the while loop in another .lua file, or make it check on a label
It's probably easier if you take the script back to town and then load the second script in the depot. That way each script only has to know how to move to/from its own spawn.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.