PDA

View Full Version : Edits to .lua scripts not recognized by Xenobot?



Exister
09-02-2014, 06:37 PM
Greetings all...

I started using Xenobot recently and I have noticed that the changes I make to .lua scripts to configure how the bot runs don't seem to work. I must be doing something wrong or everybody would be complaining about it.

Using the following script for Thais undead hunting, I edited the true/false statements to set the bot to only run floors 1 and 2. I also edited the food option and the potion amounts. I save the .lua file, then load it in Xenobot. When this script is ran from the Thais depot, it tries to buy the amount of potions that were specified -by default- in the script, before I made an edit. Likewise, when the bot walks to Thais Undead, it immediately tries to skip floor 1 (skipping floor 1 and 2 were also default), and leaves the spawn to refill. I have to admit I am confused, what am I doing wrong?

-----SETTINGS--------------------------------------------------------------
--POTIONS--
--NORMAL-FLOORS-1-2-3--
local ManaID = 268 --- Which mana potions are you using?
local MinMana = 10 --- How many mana potions until you leave the hunt.
local MaxMana = 50 --- How many mana potions you begin the hunt with.
local ManaPrice = 50 --- What is the price of your selected mana potions?
local HealthID = 266 --- Which health potions are you using? normal 266 - strong 236 - great 239
local MinHealth = 2 --- How many health potions until you leave the hunt.
local MaxHealth = 10 --- How many health potions you begin the hunt with.
local HealthPrice = 50 --- What is the price of your selected mana potions?
--FLOOR-4-AND-DRAGONS/HARDCORES--
local MinMana1 = 50 --- How many mana potions to leave Floor4, Dragons and Hardcores.
local MaxMana1 = 150 --- How many mana potions to buy if going Floor4, Dragons or Hardcores.
local MinHealth1 = 15 --- How many mana potions to leave Floor4, Dragons and Hardcores.
local MaxHealth1 = 30 --- How many health potions to buy if going Floor4, Dragons or Hardcores.

--FOOD--
local CheckFood = false --- Set this true if you want to get food from dp and leave resp if no food.
local FoodID = 3725 --- ID of the food u want to withdraw (Brown mushroom 3725).
local MaxFood = 50 --- Amount of food you want to withdraw.
local MinFood = 15 --- Amount of food you want to go refill.
--CAP--
local MinCap = 50 --- Leaves spawn when character reaches this cap.

--RESPAWNS--
local floor1 = true --- Set this true if you want to hunt this floor level 20+
local floor2 = true --- Set this true if you want to hunt this floor level 30+
local floor3 = false --- Set this true if you want to hunt this floor level 40+
local floor4 = false --- Set this true if you want to hunt this floor level 60+
local geomancer = false --- Set this true if you want to kill dwarf geomancer and 2 dwarf guards.
local Dragons = false --- Set this true if you want to kill 3x dragons. Recomend level 70+
local Drag1 = false --- Set this true if you want to kill Dragon 1. ALERT: During Dragon Eggs Patch it is DANGEROUS.

--HARDCORE--
local Hardcore = false --- Set this true if you want to kill Drag2 or Giant Spider.
local Drag2 = false --- Set this true if you want to kill Dragon 2. ALERT: During Dragon Eggs Patch it is DANGEROUS.

--GIANT-SPIDER--
local WeaponID = 7384 --- ID of the weapon you use to break Spider Web. Default Mystic Blade (7384)
local KillGS = false --- Set this true if you want to kill Giant Spider. Recomend level 80+

--BP SETUP--
local MainBp = "camouflage backpack" ----- Main Backpack
local GoldBp = "brocade backpack" ---- Backpack to put gold in
local LootBp = "yellow backpack" ---- Backpack to put gold in