PDA

View Full Version : New Client class?



Spectrus
03-28-2012, 07:41 PM
New Client class with functions like...



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. :p

Examples?



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

Syntax
03-28-2012, 07:58 PM
Great request and great way to suggest it. DarkstaR any way this would be feasible in the future?

Infernal Bolt
03-29-2012, 02:33 AM
there should also be an option to close the client (by xlogging) with scriptsystem.

Spectrus
03-29-2012, 06:06 AM
there should also be an option to close the client (by xlogging) with scriptsystem.

Added.

Y2Quake
03-29-2012, 10:07 AM
That's would be really nice. thanks spec

signed

Daggyn
10-17-2012, 06:16 AM
Spectrus or Syntax

how does Client:Reconnect works?

Could u gimme any example?

Syntax
10-18-2012, 06:56 PM
Spectrus or Syntax

how does Client:Reconnect works?

Could u gimme any example?

You're in the suggestions forum.

Ungoliant
11-01-2012, 01:45 PM
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.

NeeP
12-07-2012, 07:03 PM
any news to this?

kreoo
12-08-2012, 02:00 PM
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.

krille09
12-24-2012, 12:00 PM
bump add this if not added yet =D

inco33
12-24-2012, 06:55 PM
well if you have an auto reconnect then you are going to have to throw in a bp opener for right there, when you log in all your bps are closed

mjbz68
01-15-2013, 01:30 AM
there should also be an option to close the client (by xlogging) with scriptsystem.

I hate to bump an old thread - but I've been searching around to no avail....

I'm trying to create a script that "X logs" me out if my character is moved.... Is this possible? and... has Xlog been implemented into scripting?

Infernal Bolt
01-15-2013, 07:17 AM
It was possible to xlog with a cmd for a while but it was a security risk since you could basically execute anything you wanted including shutting of the computer and stuff like that.
I'm sure it will be added in the future.

Nazubal27
02-16-2013, 02:23 AM
I would like to have more control over my Client, like Client.SetFollow() or Client.SetToFullAttack(). It looks like i can minimize and maximize my equipment but that's it, but maybe i just cant find the functions in the XenoLuaLib.lua file.

Avani
02-16-2013, 01:21 PM
Would be cool to have a little checkbox-list in the top right corner with something like:

[X] Soft Boots?
[X] North Spawn
[-] South Spawn
[X] Logout on low Stamina


This way you won't have to reload the LUA everytime you want to change something

Savant
02-19-2013, 12:53 PM
Bumping for reconnect and x-logging! Signed :D

flpsan
02-21-2013, 05:08 AM
Signed with blood.

icaro43
03-04-2013, 01:19 AM
all great i do like all the suggestion and it would be nice if we have a funcion called caption('wathever')

so this way we could do:


caption(self.charactername().." time to level: "..self.timetolevel())


so instead of tibia, on task bar would appear [icaro43 time to level: 2:40]