PDA

View Full Version : [Update] XenoBot v2.1.0 [XenoScript Debut]



DarkstaR
01-08-2012, 05:12 PM
This update brings the long awaited LUA scripter. Though it is far from done, it does have the core functionality and is capable of some powerful stuff. Any functions require attacking, working with items or reading the map are currently impossible. You can, however, make gold depositors, mana trainers, friend healers, and more. Below the changelog you will find some examples.

Changelog:

v2.1.0
Added the LUA Scripter. The scripter, currently, has many limitations but consecutive updates will continue to add more functionality
Fixed a bug which caused the looter to not open new backpacks if the items being looted to them aren't stackable
Fixed a few bugs with Anti-Idle. It will now dance in random directions a random amount of multiple times at random intervals. The dancing will be visible to anyone who can see you
Fixed a bug which caused the client to debug when right-clicking within the VIP list


How to use scripts:
Place the script in the "My Documents/XenoBot/Scripter" folder. Open the "Scripter" window and execute the desired script. Errors will show in red in the Server Log channel and automatically kill the script which triggered them


Creature Class Example: Traversing the list of visible, living creatures.

--This will list every creature that is visible, alive, and on the same floor.

local names = "Creatures found: "
for index = CREATURES_LOW, CREATURES_HIGH do
local creature = Creature.GetFromIndex(index)

if (creature:isValid()) then
if (creature:isOnScreen() and creature:isVisible() and creature:isAlive()) then
names = names .. creature:Name() .. ", "
end
end
end


displayInformationMessage(names)

Creature Class Example: Displaying detailed information about a followed creature.

--this is a demonstration on how to use the Creature class. It will display information about the creature you are following

local creature = Creature.GetByID(Self.FollowID())

if (creature:isValid()) then
local message = "\n"
message = message .. "Name: " .. creature:Name() .. "\n"
message = message .. "LookDir: " .. creature:LookDirection() .. "\n"
message = message .. "Speed: " .. creature:Speed() .. "\n"
message = message .. "Outfit: " .. table.serialize(creature:Outfit()) .. "\n"
message = message .. "Health Percent: " .. creature:HealthPercent() .. "\n"
displayInformationMessage(message)

message = "\n"
message = message .. "Is Self: " .. tostring(creature:isSelf()) .. "\n"
message = message .. "Is Target: " .. tostring(creature:isTarget()) .. "\n"
message = message .. "Is Followed: " .. tostring(creature:isFollowed()) .. "\n"
displayInformationMessage(message)

message = "\n"
message = message .. "Skull Type: " .. creature:Skull() .. "\n"
message = message .. "Party Status: " .. creature:PartyStatus() .. "\n"
displayInformationMessage(message)

message = "\n"
message = message .. "White Skull: " .. tostring(creature:isWhiteSkull()) .. "\n"
message = message .. "Red Skull: " .. tostring(creature:isRedSkull()) .. "\n"
message = message .. "Orange Skull: " .. tostring(creature:isOrangeSkull()) .. "\n"
message = message .. "Black Skull: " .. tostring(creature:isBlackSkull()) .. "\n"
displayInformationMessage(message)

message = "\n"
message = message .. "Is Party Leader: " .. tostring(creature:isPartyLeader()) .. "\n"
message = message .. "Is Party Member: " .. tostring(creature:isPartyMember()) .. "\n"
message = message .. "Is Party Invited: " .. tostring(creature:isInvitedToParty()) .. "\n"
message = message .. "Is Party Inviting: " .. tostring(creature:isInvitingToParty()) .. "\n"
message = message .. "Is Sharing Exp: " .. tostring(creature:isSharingExp()) .. "\n"
displayInformationMessage(message)

message = "\n"
message = message .. "War Icon: " .. creature:WarIcon() .. "\n"
message = message .. "Is War Enemy: " .. tostring(creature:isWarEnemy()) .. "\n"
message = message .. "Is War Ally: " .. tostring(creature:isWarAlly()) .. "\n"
message = message .. "Is In War: " .. tostring(creature:isInWar()) .. "\n"
displayInformationMessage(message)

message = "\n"
message = message .. "Location: " .. table.serialize(creature:Position()) .. "\n"
message = message .. "Is Reachable: " .. tostring(creature:isReachable()) .. "\n"
message = message .. "Is Adjacent: " .. tostring(creature:isAdjacent()) .. "\n"
message = message .. "Is On Screen: " .. tostring(creature:isOnScreen()) .. "\n"
message = message .. "Is Alive: " .. tostring(creature:isAlive()) .. "\n"
message = message .. "Is Visible: " .. tostring(creature:isVisible()) .. "\n"
message = message .. "Distance From Self: " .. creatureistanceFromSelf() .. "\n"
displayInformationMessage(message)
else
displayInformationMessage("Please kill this script, follow a creature, and re-execute.")
end

Self Class Example: Speaking and obtaining information.

Self.Say("Hello world!")
sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.Yell("Hello world!")
sleep(math.random(700, 1400))
Self.Whisper("Hello world!")
sleep(math.random(700, 1400))
Self.SayToNpc("Deposit all")


sleep(math.random(700, 1400))


displayInformationMessage("Hey bro, my mana is " .. Self.Mana() .. "/" .. Self.MaxMana() .. "!")
displayInformationMessage("My health? It's " .. Self.Health() .. "/" .. Self.MaxHealth() .. "!")
displayInformationMessage("Impressive, since I'm only level " .. Self.Level() .. " with " .. Self.Experience() .. " exp!")




-- Other member data functions
-- Self.ID()
-- Self.TargetID()
-- Self.FollowID()


-- Self.Position()
-- Self.LookDirection()
-- Self.Speed()
-- Self.Outfit()


-- Self.Skull()
-- Self.PartyStatus()
-- Self.WarIcon()
-- Self.Cap()

Self Class Example: Waiting until a certain amount of mana then randomly spamming spells until a lower threshold is met.

--Change the locals in the loop.

function TrainMana(range, spell, drainTo)
if (Self.Mana() >= range) then
if (math.random(1, 8) == 5) then
while (Self.Mana() > drainTo) do
Self.Say(spell)
sleep(math.random(200,600))
end
return 1000
else
return math.random(800, 1700)
end
end

return 300
end


while (true) do
local spell = "exura ico"
local castAt = Self.MaxMana() - 40
local castTo = Self.MaxMana() - 200


sleep(TrainMana(castAt, spell, castTo))
end
Event Handler Example: Handling the WALKER_SELECTLABEL event in order to deposit gold with your waypoints.

--To plug this into any script, set the cap limit and structure your waypoints like so:
--KeepHunting:
--walk
--through
--cave
--CheckCap:
--DepositGold:
--walk
--to
--bank
--AtBank:
--ReturnToHunt:
--walk
--back
--to
--hunt


registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")


function onWalkerSelectLabel(labelName)
if (labelName == "CheckCap") then
if (Self.Cap() < 720) then
gotoLabel("DepositGold")
else
gotoLabel("KeepHunting")
end
elseif (labelName == "AtBank") then
delayWalker(3000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wp's before this bites

Self.Say("Hi")
sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.SayToNpc("Deposit all")
sleep(math.random(700, 1400))
Self.SayToNpc("Yes")

gotoLabel("ReturnToHunt")
end
end


For download and operation instructions, refer back to this thread:
http://forums.xenobot.net/showthread.php?19

Flappy Joe
01-08-2012, 05:13 PM
I just jizzed.

DPK
01-08-2012, 05:13 PM
Great work.

Demon
01-08-2012, 05:14 PM
creammmmmmmmmmmmmmmmmmmyyyyyyyyyyyyyyyyy :D WEEEEEEEEEEEEEEEEE

HolmaN
01-08-2012, 05:17 PM
Thank you! Can't wait for the item depositer. When it's released i'll bomb with scripts :)

Sspanky
01-08-2012, 05:22 PM
Good work, still cant figure out all this coding stuff myself but it will be nice to try learn and give other users scripts a go :)

Hawkeye
01-08-2012, 05:26 PM
The New Era has begun.

Aydin
01-08-2012, 05:30 PM
Aww yeahh Nick is pure awesomeness

donqzor
01-08-2012, 05:37 PM
Well done bro.

Phenox
01-08-2012, 05:43 PM
leggo. gj bro

Dizix
01-08-2012, 05:51 PM
Looking forward to buying prem on my level 100 paladin and start scripting :)

Blaze
01-08-2012, 05:51 PM
Very very nice :)

Raphael
01-08-2012, 05:52 PM
Does it have any kind of documentation?

blakw
01-08-2012, 06:11 PM
Does it have any kind of documentation?

Wondering the same.

Heardy
01-08-2012, 06:24 PM
Wondering the same.

Ditto.

soul4soul
01-08-2012, 06:39 PM
Hot stuff. Now we can start making some real hunting scripts.

alhaz
01-08-2012, 06:53 PM
I just came back from university from my exams, saw the new post about update and then saw PHP... I hate this language but BIG THANKS for you! Waiting for ban wave and if everyting will be ok Im going to bot my main chars.

Flappy Joe
01-08-2012, 07:01 PM
Depositer is working ok for me, I'll make it for a proper hunting place later on.

RoZpr0
01-08-2012, 07:57 PM
Great job DarkstaR!!

Raphael
01-08-2012, 09:22 PM
I just came back from university from my exams, saw the new post about update and then saw PHP... I hate this language but BIG THANKS for you! Waiting for ban wave and if everyting will be ok Im going to bot my main chars.

PHP? This is lua.

Syntax
01-08-2012, 10:33 PM
scripter is working nice, got a few finished now.

victorsg
01-08-2012, 10:56 PM
i cant inject into the client after this. anyone here also having this problem ? ( there is a thread already in bug reports )

DarkstaR
01-09-2012, 12:03 AM
Victor, are you using windows XP?

victorsg
01-09-2012, 12:04 AM
Victor, are you using windows XP?

yes, im using XP.

Pixels
01-09-2012, 02:10 AM
Fuck Yeah!, Now we can Start make good scripts

Y2Quake
01-09-2012, 02:46 AM
0100110100010010011000100 > 12FFC2A7 > "you're great"

Paper Boy
01-09-2012, 02:57 AM
;O Thanks.

Paper~

Guggen
01-09-2012, 03:50 AM
Shit just got serious!
Thank you DarkstaR, tibia history is now oficialy divided in BX and AX (before xenobot and after xenobot). :rolleyes:

J.Dre
01-09-2012, 04:24 AM
What's this about, Dark?

http://i43.tinypic.com/v62hsk.png

I was sort of confused when I saw it. Is this...you? :confused:

DPK
01-09-2012, 04:28 AM
that is not nick. And im almost sure it is a scam/shady website

That says xenobot .ORG while the official site is Xenobot.NET

J.Dre
01-09-2012, 04:29 AM
that is not nick. And im almost sure it is a scam/shady website

That says xenobot .ORG while the official site is Xenobot.NET

I think an announcement is due, to warn people of a possible 'hack', which may deem harmful to the actual reputation of the real, XenoBot.

jo3bingham
01-09-2012, 04:29 AM
What's this about, Dark?

http://i43.tinypic.com/v62hsk.png

I was sort of confused when I saw it. Is this...you? :confused:

That is not DarkstaR. Please do us a favor and let that forum know. Thanks.

J.Dre
01-09-2012, 04:33 AM
That is not DarkstaR. Please do us a favor and let that forum know. Thanks.

Consider it done. Here is the thread (http://otland.net/f257/elfbot-waypoints-148056/index2.html#post1426841), if you wish to see for yourself.

jo3bingham
01-09-2012, 04:36 AM
Consider it done. Here is the thread (http://otland.net/f257/elfbot-waypoints-148056/index2.html#post1426841), if you wish to see for yourself.
Thank you.

WedNesDay
01-09-2012, 06:02 AM
http://dl.dropbox.com/u/53474443/xenobotorg.jpg

You shud create an advertiser showin' this fake website.

Infernal Bolt
01-09-2012, 06:40 AM
Is there a table with all the functions and variables in it or something?
That would be quite useful.

Take that fake website down!


Edit: I noticed jo3 had posted a thread, is there a more in depth list?
I need the bot to count my manas, how would I do that?
Is there a command for itemcount yet?

Xeno Scripts
01-09-2012, 06:58 AM
Is there a table with all the functions and variables in it or something?
That would be quite useful.

Take that fake website down!


Edit: I noticed jo3 had posted a thread, is there a more in depth list?
I need the bot to count my manas, how would I do that?
Is there a command for itemcount yet?

Read the thread :p

Oif
01-09-2012, 07:57 AM
Is there any specific time frame you can give us of when to expect Windows XP compatibility with this update? p; I'm a pretty patient man but i'm jw

curry
01-09-2012, 08:53 AM
nice to see you working hard with this one, u will make a fortune for sure, we need this bot! :)

HolmaN
01-09-2012, 09:51 AM
That's for sure not DarkstaR.

PunktG
01-09-2012, 11:30 AM
great :0

Sor Jack
01-09-2012, 12:18 PM
DarkstaR is a real bad ass! Great work, bro :D
We need this and more and more and more!!!! Need powah!

D:

hikoj
01-09-2012, 11:50 PM
yo
does it work on windows 7 64 bit? the scripter does not found my scripts :(

Flappy Joe
01-09-2012, 11:57 PM
yo
does it work on windows 7 64 bit? the scripter does not found my scripts :(

Save your scripts in my documents | xenobot | scripts

make sure it's .lua

depositer.lua etc.

J.Dre
01-10-2012, 01:04 AM
After installing this update, when I restart my PC, I get a warning when logging in: "The system file was unable to load Advanced Installer."

Something similar to that, I do not know the exact words. Any ideas of why this happens?

It didn't happen before installing this, so that led me to the assumption it was caused by this. Though, I am not 100% certain.

@down,

Okay, well good luck doing so. I'll be awaiting further updates; keep up the good work.

DarkstaR
01-10-2012, 01:17 AM
I need to find a new solution for an installer package. Advanced Installer is nothing but fucking bugs giving me trouble.

hikoj
01-10-2012, 03:05 PM
Save your scripts in my documents | xenobot | scripts

make sure it's .lua

depositer.lua etc.

yea, i save the scripts there but xenobot does not shot the script in the scripter list.. :(

Gabriel
01-10-2012, 04:18 PM
After installing this update, when I restart my PC, I get a warning when logging in: "The system file was unable to load Advanced Installer."

Something similar to that, I do not know the exact words. Any ideas of why this happens?

It didn't happen before installing this, so that led me to the assumption it was caused by this. Though, I am not 100% certain.

@down,

Okay, well good luck doing so. I'll be awaiting further updates; keep up the good work.

Lol, i was looking for the cause of this error here...

Soo, its xeno... dang.

DarkstaR
01-10-2012, 05:44 PM
Can you possibly get the exact error for me?

I am going crazy trying to figure out what the fuck caused this.

J.Dre
01-10-2012, 06:44 PM
Can you possibly get the exact error for me?

I am going crazy trying to figure out what the fuck caused this.

It acts as if "Advanced Installer" is trying to load something, but I don't have this program.

http://i41.tinypic.com/1j5j4x.png

This is the first thing I see when logging in to my PC.

Zeta
01-11-2012, 05:15 AM
Hello saver like how safe is this bot I am very interested but I have many warm friends who say it detects who can help me

Fractal
01-11-2012, 08:05 AM
Zeta if im understanding what your saying correctly xenobot is detectable but dark takes as many precautions as possible to keep detection rates at a minimum (less then 1% i believe) it all depends on how you use the bot so if you bot smart you're gonna have no problems hope that helped gl and hope u buy xeno =D

Bushu
01-11-2012, 09:27 PM
Good job, I'm at home already, so I can start the work (:

Krim
01-13-2012, 05:56 PM
THX DARK :D


Good to see you working on it :)

This scripter promises to be very good !

Good work bro !

alhaz
01-15-2012, 10:59 AM
I know, lol. I but the scripts are qouted int PHP boxes :P

kratos04
02-27-2012, 04:21 AM
Is this scripter is for all versions or only this version and on? Since im using a client 9.31 in an ot and I want this =/