-
Improve Xenobot @Darkstar
@DarkstaR, @shadowart, @Syntax
Hello, would be great if you can add some functions ( it's really not hard to implement it into xenobot ).
example.
Make "Position" class.
then:
Position.New(x, y, z)
creates pos object.
Position:GetTargets(radius)
returns table: x, y, name, cid, distance ( its just an idea ).
Position:IsThrowable()
returns bool
Position:GetPosition()
returns itself ( x, y, z )
Position:GetDistanceFrom(posTable(pos object))
returns: difference between Self.Position().x and x, same here
y) :
usage like :
x = Position.New(502, 204, 7)
x:GetDistanceFrom(504, 200, 7) - it would return table {x = 2, y = -4, z = 0}.
I think it's really good idea.
Also @DarkstaR if you could just make such cpp functions i can try to make lua for it. ( if i fail it doesnt matter at all, or you will just correct ).
Theres alot more functions you can implement to make Xenobot more usefull.
Like tibiaauto has: SendDirectPacket( u dont have to post it in Documentation, just for people who check lib files).
On the occasion i'll ask one more question:
Could you implement things like Database acces to lua, or wxLua? Some people would find it very useful.
Sorry for my english.
Also please don't ignore it, just answer 
Thanks for your time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules