XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Script that changes between settings

  1. #1

    Join Date
    Jun 2014
    Posts
    33
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Script that changes between settings

    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?

  2. #2

    Join Date
    Jan 2014
    Posts
    183
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    I think its loadSetting() but ask @shadowart he will know for sure

  3. #3
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Code:
    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

  4. #4
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Jontor View Post
    Code:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •