XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 19

Thread: New Client class?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)

    New Client class?

    New Client class with functions like...

    Code:
    Client:Prompt("title","text") --Creates a dialogue box with selected text.
    Client:Input({type, value},"title","text") --Text above a input field where users can input text, returns whatever is in the box. Options like textbox, radiobuttons, checkboxes, dropdown list, etc. value would be default text for the field. Maybe make it possible to include multiple types.
    Client:ShowText(type,"text") --Red text like when you start Xeno, green text like look, or white text at bottom like "Sorry, not possible."
    Client:Disconnect() --Logout.
    Client:Close() --X-Log client.
    Client:Reconnect("accname","password","character") --Reconnect to given account.
    Client:LoadScript(filename) --Load an xbst from designated path (not sure this fits within client so much as maybe a Bot class)
    Definitely more could be added.

    Examples?

    Code:
    local dragonsEnabled = Client:Input({"checkbox","Do you want to go to dragons?"},"Input Request", "Below is an option for the script you are running, select it if you'd like.")
    
    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
           if (labelName == "Dragons") then
                  if not dragonsEnabled then
                        gotoLabel("SkipDragons")
                  end
           end
    end
    Last edited by Spectrus; 03-29-2012 at 06:07 AM.

Posting Permissions

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