View Full Version : where can i find xenobot variables, mods or constants ?
Wesker
06-26-2014, 08:01 PM
cant find them, i did found some on ifernals lua but where is the whole lib ?
function SelectLabel(Label)
--- MAIN PART OF SCRIPT ---
if (Label == "TUTORIAL_CHECK") then
Raziol2
06-26-2014, 09:37 PM
it was always in /xenobot(instalation folder)/data/xenobotlualib.lua
ppgab
06-26-2014, 09:38 PM
/\ that and http://xenobot.wikia.com/wiki/Documentation
you can pm me if you have doubts
Wesker
06-26-2014, 10:52 PM
can you guys send me your xenobotlualib.lua i dont have that installed
10343
also does xenobot has a hotkey config per character
xiaospike
06-26-2014, 10:59 PM
can you guys send me your xenobotlualib.lua i dont have that installed
10343
also does xenobot has a hotkey config per character
What is that?
Wesker
06-26-2014, 11:08 PM
What is that?
idk it came when i installed, thats the folder where the xenobotlualib.lua should be, dont know where it is tho
xiaospike
06-26-2014, 11:08 PM
idk it came when i installed, thats the folder where the xenobotlualib.lua should be, dont know where it is tho
I mean, what is "hotkey config?
Wesker
06-26-2014, 11:18 PM
a setup to load, hotkeys per vocation
i wodne rif it has it, and i cant find that file xenobotlualib.lua can you send it to me ?
Nakuu
06-26-2014, 11:23 PM
How about trying to open the .lua file that is there? I am wondering what might be there.
Wesker
06-26-2014, 11:31 PM
How about trying to open the .lua file that is there? I am wondering what might be there.
there are functions
--[[
XenoLuaLib
Global
Module
Client
HUD
Channel
Creature
Container
Item
Map
Self
table
string
compats
]]
NORTH = 0
EAST = 1
SOUTH = 2
WEST = 3
SOUTHWEST = 4
SOUTHEAST = 5
NORTHWEST = 6
NORTHEAST = 7
DIRECTIONS = {"north", "east", "south", "west", "southwest", "southeast", "northwest", "northeast"}
SPEAK_SAY = 0
SPEAK_YELL = 2
SPEAK_WHISPER = 3
SPEAK_NPC = 4
VK_MULTIPLY = 0x6A
VK_ADD = 0x6B
VK_SUBTRACT = 0x6D
VK_DIVIDE = 0x6F
VK_F1 = 0x70
VK_F2 = 0x71
VK_F3 = 0x72
VK_F4 = 0x73
VK_F5 = 0x74
VK_F6 = 0x75
VK_F7 = 0x76
VK_F8 = 0x77
VK_F9 = 0x78
VK_F10 = 0x79
VK_F11 = 0x7A
VK_F12 = 0x7B
VK_F13 = 0x7C
VK_F14 = 0x7D
VK_F15 = 0x7E
VK_F16 = 0x7F
VK_F17 = 0x80
VK_F18 = 0x81
VK_F19 = 0x82
VK_F20 = 0x83
VK_F21 = 0x84
VK_F22 = 0x85
VK_F23 = 0x86
VK_F24 = 0x87
VK_PRIOR = 0x21
VK_NEXT = 0x22
VK_INSERT = 0x2D
VK_DELETE = 0x2E
VK_END = 0x23
VK_HOME = 0x24
SKULL_NONE = 0
SKULL_WHITE = 1
SKULL_RED = 4
SKULL_ORANGE = 2
SKULL_YELLOW = 3
SKULL_BLACK = 5
PARTY_YELLOW = 1
PARTY_YELLOW_SHAREDEXP = 2
PARTY_YELLOW_NOSHAREDEXP_BLINK = 3
PARTY_YELLOW_NOSHAREDEXP = 4
PARTY_BLUE = 1
PARTY_BLUE_SHAREDEXP = 2
PARTY_BLUE_NOSHAREDEXP_BLINK = 3
PARTY_BLUE_NOSHAREDEXP = 4
PARTY_WHITEBLUE = 5
PARTY_WHITEYELLOW = 6
WAR_ALLY = 1
WAR_ENEMY = 2
WAR_INWAR = 3
PVP_ALLY = WAR_ALLY
PVP_ENEMY = WAR_ENEMY
PVP_INWAR = WAR_INWAR
PVP_GUILDMATE = 4
PVP_HASGUILD = 5
SLOT_HEAD = 0
SLOT_AMULET = 1
SLOT_BACKPACK = 2
SLOT_ARMOR = 3
SLOT_SHIELD = 4
SLOT_WEAPON = 5
SLOT_LEGS = 6
SLOT_FEET = 7
SLOT_RING = 8
SLOT_AMMO = 9
EQUIPMENT_SLOTS = {"head", "amulet", "backpack", "armor", "shield", "weapon", "legs", "feet", "ring", "ammo"}
math.randomseed(os.time())
math.randomseed(os.time())
function registerEventListener(eventType, functionName)
if (eventType == TIMER_TICK) then
return Module.New(functionName, functionName)
end
return registerNativeEventListener(eventType, functionName)
end
function eq(a, b)
return a == b
end
function neq(a, b)
return a ~= b
end
function gt(a, b)
return a > b
end
function lt(a, b)
return a < b
end
--- Displays a green text message.
-- Used to print debug or informational messages to the client
-- Class Global
-- param s the message to display
-- param ... optional; any further variables tokenized in the string
-- @return void returns nothing
function print(s, ...)
displayInformationMessage(#{...} > 0 and s:format(...) or s)
end
--- Sleeps for designated time.
-- Used to delay the script environment for a specified time
-- Class Global
-- param a the time to sleep for
-- param b optional; will cause function to randomly choose a number between a and b
-- @return void returns nothing
function wait(a, b)
if not b then sleep(a) else sleep(math.random(a, b)) end
end
function isPositionAdjacent(pos1, pos2)
return (math.abs(pos1.x - pos2.x) <= 1 and math.abs(pos1.y - pos2.y) <= 1 and pos1.z == pos2.z)
end
function getDistanceBetween(pos1, pos2)
return math.max(math.abs(pos1.x - pos2.x), math.abs(pos1.y - pos2.y))
end
function getPositionFromDirection(pos, dir, len)
local n = len or 1
if(dir == NORTH)then
pos.y = pos.y - n
elseif(dir == SOUTH)then
pos.y = pos.y + n
elseif(dir == WEST)then
pos.x = pos.x - n
elseif(dir == EAST)then
pos.x = pos.x + n
elseif(dir == NORTHWEST)then
pos.y = pos.y - n
pos.x = pos.x - n
elseif(dir == NORTHEAST)then
pos.y = pos.y - n
pos.x = pos.x + n
elseif(dir == SOUTHWEST)then
pos.y = pos.y + n
pos.x = pos.x - n
elseif(dir == SOUTHEAST)then
pos.y = pos.y + n
pos.x = pos.x + n
end
return pos
end
--- Toggle all features.
-- Enables or disables walker looter and targeter
-- Class Global
-- param status true enables false disables
-- @return void returns nothing
function setBotEnabled(status)
setWalkerEnabled(status)
setLooterEnabled(status)
setTargetingEnabled(status)
end
i wonder if this is the libary im already scripting with what i got on others scripts lol, to test it, i didnt want to go to that file seens there are functions, if this is the lib its fine i thought it will be just a lua with functions and what it does, and which one should i use i got 2 over here
Wesker
06-27-2014, 01:53 AM
well if any1 can pastebin me that file selectlabel is not on this one, anyways on other matters
how do i XLOG and reconnect(acc,pass) ?
Fatality
06-27-2014, 12:04 PM
i dont think you can.
Wesker
06-27-2014, 07:28 PM
sad face
move items of tittle a in position x,y,z to x+1,y+1,z+1 (i didnt found it on forum, probably other name or a bad search)
didnt found the example on forums
also how do you pack and unpack scripts ?still down know
anyone knows what node and weak node do exactly ? found it.
Wesker
06-27-2014, 10:57 PM
DarkstaR
can you explain me how node works, on xeno is it 1 sqm and the rest decided by bot or are they circles, how can i look at them virtualy inside xeno ?
need to know what im doing in this waypoint, im assuming its just 1 sqm at it will try to reach it, sicne you have a circle math on distancefromposition around the player, so is the player doing the nodles to touch or is the nodle doing a circle, and does it about blocked tittles, i know everythign works i just want to understand what is it doing, so i can script better things of it
Wesker
06-28-2014, 08:27 PM
can anyone tell me whats the function to reach depot ?
i found some but theres a reason theres a library, i supose that should be included and not pasted over every script
included
Self.OpenDepot()
Self.DepositItems("brown bag",3577)
not included :
self.reachdepot <<<< suposed to be in sirmates library(dead link) i wonder why is not added already in xeno lib
so question is where is it or what it is called, this is a very important thing, sicne you cant copy-cat to sell scripts http://forums.xenobot.net/showthread.php?15449-Paid-Script-Rules
You cannot use others' work unless the work was released to the community by the author.
http://forums.xenobot.net/showthread.php?14664-100-AFK-Script-Making
Self.ReachDepot = function (tries)
local tries = tries or 3
Walker.Stop()
local DepotIDs = {3497, 3498, 3499, 3500}
local DepotPos = {}
for i = 1, #DepotIDs do
local dps = Map.GetUseItems(DepotIDs)
for j = 1, #dps do
table.insert(DepotPos, dps[j])
end
end
local function gotoDepot()
local pos = Self.Position()
print("Depots found: " .. tostring(#DepotPos))
for i = 1, #DepotPos do
location = DepotPos[i]
Self.UseItemFromGround(location.x, location.y, location.z)
wait(1000, 2000)
if Self.DistanceFromPosition(pos.x, pos.y, pos.z) >= 1 then
wait(5000, 6000)
if Self.DistanceFromPosition(location.x, location.y, location.z) == 1 then
Walker.Start()
return true
end
else
print("Something is blocking the path. Trying next depot.")
end
end
return false
end
repeat
reachedDP = gotoDepot()
if reachedDP then
return true
end
tries = tries - 1
sleep(100)
print("Attempt to reach depot was unsuccessfull. " .. tries .. " tries left.")
until tries <= 0
return false
end
[I]The XBST for Darashia Dragon Lords for RP is attached here and all are free to use it as they wish, excluding for profitable reasons. Credits should be given unless permission is granted by myself.
XtrmJosh
is that script yours ?
can i use it at will, dont want to re-invent the wheel
isnt it sirmates script ?
DarkstaR
Syntax
Should'nt this be already in the library ? this is like a standard that anyone should be able to use, or what is the reachdepot function, cant find it
Nakuu
06-28-2014, 08:31 PM
There is no native ReachDepot function sadly... I suggested it in Suggestion thread but no answer/info from DarkstaR on that yet :(
Wesker
06-28-2014, 08:38 PM
There is no native ReachDepot function sadly... I suggested it in Suggestion thread but no answer/info from DarkstaR on that yet :(
thats my question this needs to be included in the native lib, otherwise everyone will just sell scripts with a code, and they can be stopped in the same way, since theres no permissions giving anywhere, nothing says public, so its a problem with the rules or darkstar is going to make a better one ?
you sold scripts im sure you use it, hell im sure everyone uses it exept syntax probably, but its not a public release, until it says public
http://forums.xenobot.net/showthread.php?3601-Scripts-Requests-Request-your-script-action-here&highlight=sirmate+library
your free to request scripts, that doesnt make them public, theres a lot of things going wrong, if they wanted they could close your thread, just for using a non-specified script, the author didnt say that everything in it is public.
thats what im saying
XtrmJosh
06-28-2014, 11:26 PM
thats my question this needs to be included in the native lib, otherwise everyone will just sell scripts with a code, and they can be stopped in the same way, since theres no permissions giving anywhere, nothing says public, so its a problem with the rules or darkstar is going to make a better one ?
you sold scripts im sure you use it, hell im sure everyone uses it exept syntax probably, but its not a public release, until it says public
http://forums.xenobot.net/showthread.php?3601-Scripts-Requests-Request-your-script-action-here&highlight=sirmate+library
your free to request scripts, that doesnt make them public, theres a lot of things going wrong, if they wanted they could close your thread, just for using a non-specified script, the author didnt say that everything in it is public.
thats what im saying
Right, so you're still a complete moron.
Simple segments of code such as the reach depot script would never be covered by any laws or rules under any circumstances, because of the nature of the code. Provided the initial scripter isn't an idiot, he will write it using commonly practiced guidelines and methods (e.g using camel case, 2 lines between methods, and such). Given that, the code will be obviously generic, and because so many people use these practices, it would be virtually impossible to prove beyond reasonable doubt that the code was written by someone else.
Also, no, you do not have my permission to use that code. If you attempt to use it I will peruse you to the fullest extent permissible by local and international laws. Now, GTFO, newfag.
Elvang
06-28-2014, 11:37 PM
Right, so you're still a complete moron.
Simple segments of code such as the reach depot script would never be covered by any laws or rules under any circumstances, because of the nature of the code. Provided the initial scripter isn't an idiot, he will write it using commonly practiced guidelines and methods (e.g using camel case, 2 lines between methods, and such). Given that, the code will be obviously generic, and because so many people use these practices, it would be virtually impossible to prove beyond reasonable doubt that the code was written by someone else.
Also, no, you do not have my permission to use that code. If you attempt to use it I will peruse you to the fullest extent permissible by local and international laws. Now, GTFO, newfag.
This made me LoL irl.
Wesker
06-28-2014, 11:37 PM
Right, so you're still a complete moron.
Simple segments of code such as the reach depot script would never be covered by any laws or rules under any circumstances, because of the nature of the code. Provided the initial scripter isn't an idiot, he will write it using commonly practiced guidelines and methods (e.g using camel case, 2 lines between methods, and such). Given that, the code will be obviously generic, and because so many people use these practices, it would be virtually impossible to prove beyond reasonable doubt that the code was written by someone else.
Also, no, you do not have my permission to use that code. If you attempt to use it I will peruse you to the fullest extent permissible by local and international laws. Now, GTFO, newfag.
hahahah thank god you didnt losse your charm LOL, when you hit the gym avoid steroids =* , mad typing can give u a heart attack <3, i would fight with you but we know thats pointless so what i took from it is :
1.- yes its sirmates
2.- yes you can use it
3.- i love you wesker
i love you too mate =*
Leilar
06-29-2014, 12:49 AM
hahahah thank god you didnt losse your charm LOL, when you hit the gym avoid steroids =* , mad typing can give u a heart attack <3, i would fight with you but we know thats pointless so what i took from it is :
1.- yes its sirmates
2.- yes you can use it
3.- i love you wesker
i love you too mate =*
It's lovely to see you're still a noob Wesker :)
Wesker
06-29-2014, 01:02 AM
It's lovely to see you're still a noob Wesker :)
ty dont do a double mention/quote any of those will get me here LOL, ty.
Leilar
06-29-2014, 01:05 AM
ty dont do a double mention/quote any of those will get me here LOL, ty.
No problem, Wesker :)
eeuhehuehueheuhe
Wesker
06-29-2014, 01:06 AM
@_@ i remember you now @_@
Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar
Spectrus
06-29-2014, 07:06 AM
@_@ i remember you now @_@
Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar Leilar
Wesker please don't spam. The tag system shows a user one notification per post so one tag is sufficient. Also, the reason you don't have a XenoLuaLib file is because with the latest version of Xenobot (Apophis) all of the files are named differently to allow for automatic updating.
Wesker
06-29-2014, 07:33 AM
Wesker please don't spam. The tag system shows a user one notification per post so one tag is sufficient. Also, the reason you don't have a XenoLuaLib file is because with the latest version of Xenobot (Apophis) all of the files are named differently to allow for automatic updating.
i know its just to show how anoying it is, like you just did with quote + tag, both are filed in the inbox @_@ anoying indeed, and i did found out about the lib but ty anyways, u always help me somehow :) even if its a bit late <3 =*
and btw i think that your quote tag him again lol
Wesker
06-29-2014, 09:02 PM
Spectrus
can you close this thread and let it die :) ty.
I think i already know the basics
Spectrus
06-30-2014, 07:07 AM
Spectrus
can you close this thread and let it die :) ty.
I think i already know the basics
No problem Wesker.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.