View Full Version : Access to states of bot settings and charactes
No idea if it was here / is available (I'm new in this bot, but couldn't find anywhere):
Would be nice to have a look into current bot settings & character states like:
Self.Pzone() -- returns true if in pz
Self.Hasted() -- returns true if used haste recently (those small boots)
Targeting.Status() -- returns true if enabled
Also easier way to change settings of targeting, alarms etc via scripting (loadSettins() too complicated)
pixie_frigo
08-30-2013, 11:53 AM
nop sadly not available :)
Chuitox
08-30-2013, 12:18 PM
I would suggest you to take a look at the documentation (http://forums.xenobot.net/showthread.php?16034-Xenobot-Lua-Documentation)written by Ropiderz.
Pzone and Hasted is handled by the Condition Manager in the Support feature of the bot (In case you want to use haste outside PZ).
Targeting.Status() has a work around inside a script, e.g.
-- TargetingStatus options:
-- Disabled: 0
-- Enabled: 1
local TargetingStatus = 0
-- TargetingEnabled options:
-- Returns true or false
local TargetingEnabled = false
Then somewhere in a label
Targeting.Start()
TargetingStatus = 1
TargetingEnabled = true
...
Targeting.Stop()
TargetingStatus = 0
TargetingEnabled = false
Then you can perform a check in the current status of the Targeting system as follows:
if (TargetingStatus == 0) then
-- Do something
end
or
if (TargetingEnabled) then
-- Do something
end
No idea if it was here / is available (I'm new in this bot, but couldn't find anywhere):
Also easier way to change settings of targeting, alarms etc via scripting (loadSettins() too complicated)
This could be a good suggestion since it is a bit more complicated to handle 100% through scripting at the moment :P
I would suggest you to take a look at the documentation (http://forums.xenobot.net/showthread.php?16034-Xenobot-Lua-Documentation)written by Ropiderz.
Pzone and Hasted is handled by the Condition Manager in the Support feature of the bot (In case you want to use haste outside PZ).
end
I want to have access to those veriables in my scripter...
About targetingStatus:
ofc I can bypass it this way, but is it so hard to give a poiner to have a look into current bot setup? I think it isn't so hard for DarkstaR
Also would be nice to have option to check if tile is ShootAble. Something like
Map.isShootAble(X,Y)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.