XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: New Client class?

  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.

  2. #2
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    Great request and great way to suggest it. @DarkstaR any way this would be feasible in the future?

  3. #3
    Super Moderator Infernal Bolt's Avatar
    Join Date
    Dec 2011
    Location
    Skellefteċ, Sweden
    Posts
    2,880
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    there should also be an option to close the client (by xlogging) with scriptsystem.

  4. #4
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Infernal Bolt View Post
    there should also be an option to close the client (by xlogging) with scriptsystem.
    Added.

  5. #5
    Lifetime Subscriber
    Join Date
    Dec 2011
    Location
    Michigan
    Posts
    2,644
    Mentioned
    81 Post(s)
    Tagged
    0 Thread(s)
    That's would be really nice. thanks spec

    signed

  6. #6
    Daggyn's Avatar
    Join Date
    Feb 2012
    Location
    Warszawa
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Spectrus or @Syntax

    how does Client:Reconnect works?

    Could u gimme any example?
    Last edited by Daggyn; 10-18-2012 at 05:09 PM.

  7. #7
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Daggyn View Post
    @Spectrus or @Syntax

    how does Client:Reconnect works?

    Could u gimme any example?
    You're in the suggestions forum.

  8. #8
    Lifetime Subscriber Ungoliant's Avatar
    Join Date
    May 2012
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Singed.

    Recconnect (even if you personally think its dangerous) is a great idea. Could do recconect with some kind of checks and etc within the scripts to insure your not doing anything "un-nattural".

    Logging the client off at x stamina and etc would be an amazing feature as well.

  9. #9
    Senior Member
    Join Date
    Jun 2012
    Location
    Glasgow
    Posts
    903
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    any news to this?

  10. #10
    kreoo's Avatar
    Join Date
    Oct 2012
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Interesting suggestion! it wouldnt work for afk scripts tho, would it? I mean, the thing pops up who is going to answer? hehe

    Signed for sure! It will bring xeno to the next level, specially if you only had to answer to the pop up once and it would record in the lua file you options... this would clear the "issue" of the lua files "DO NOT MODIFY BELOW THIS LINE bla bla".
    the user setup could be on screen.

    Also maybe add buttons? Client: AddButton(x, y, width, height, function/action), this way the user could click, Go Deposit or Change Setup or maybe trigger a lua script and then kill it after execution something like, Skin monsters.
    Last edited by kreoo; 12-08-2012 at 02:04 PM.
    Bought:
    1 Knight 53 From ziemniaq
    1kk from Pidek098
    1 Knight 129 from ziemniaq

Posting Permissions

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