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
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