I have a setting where I can chose the bot to only run for example north west cave and west cave, but the settings doesn't work correctly. Even tho I put true on the sections I want to hunt, it still runs to the other sections where it says false
Printable View
I have a setting where I can chose the bot to only run for example north west cave and west cave, but the settings doesn't work correctly. Even tho I put true on the sections I want to hunt, it still runs to the other sections where it says false
When i converted it got me 2 major errors but one is with HUD so it doesn matter i can change HUD any time or run without it
1.
error in Persistent script Alerts:
["if ((ManaPotionAlert > 0) and (wincount(SupB..."]:Alerts:2 attempt to call global 'wincount' (a nil value)
2.
error in HUD script Loot Counter:
["['usage'] = serveruse..."]:windConverterWrapper_main.lua:318 attempt to index local 'i' (a number value)
stack traceback:
[" local ITEM_LOOTED = getitems_ib(itemid(ITEM.NAME))"]:Loot Counter:125 in user script
Then this happened
error in Persistent script Force Refill:
["if ($trapped == false) and ($standtime..."]:Force Refill:2 attempt to call global 'wincount' (a nil value)
This is the "force Refill" persistent script:
auto(800, 1000)
if ($trapped == false) and ($standtime <= 3000) and (wincount(MainBP) >= 1) and (wincount(SupBP) >= 1) and ((itemcount(ManaName, "all") <= ManaLeave) or (itemcount(HealthName, "all") <= HealthLeave) or ($stamina <= 850)) then
if ($posz == 9) then
setsetting("Persistent/Scripts/Reopen Backpacks/Enabled", "no")
if (HasteOnRefill) then
setsetting("Persistent/Scripts/Auto Haste/Enabled", "yes")
else
setsetting("Persistent/Scripts/Auto Haste/Enabled", "no")
end
settargeting("no")
setlooting("no")
stopattack()
if ($posx >= 31943) then
gotolabel("leave_east")
elseif ($posx < 31943) then
if ($posy < 31388) then
gotolabel("w262")
elseif ($posy >= 31388) then
gotolabel("leave_south_west")
end
end
elseif ($posz == 8) then
setsetting("Persistent/Scripts/Reopen Backpacks/Enabled", "no")
if (HasteOnRefill) then
setsetting("Persistent/Scripts/Auto Haste/Enabled", "yes")
else
setsetting("Persistent/Scripts/Auto Haste/Enabled", "no")
end
settargeting("no")
setlooting("no")
stopattack()
gotolabel("go_refill")
end
end
And when i run the script it doesnt open the backpacks
error in Persistent script Reopen Backpacks:
["if (maround(7) == 0) and ($pzone =..."]:Reopen Backpacks:2 attempt to call global 'wincount' (a nil value)
error in Action script deposit_items:
[" while (wincount(MainBP) ~= 1) do"]:Action: 7:22 attempt to call global 'wincount' (a nil value)
error in Action script taking_items:
[" while (wincount(MainBP) ~= 1) do"]:Action: 8:15 attempt to call global 'wincount' (a nil value)
This is the "reopen backpacks" persistent script
auto(800, 1000)
if (maround(7) == 0) and ($pzone == false) and (getsetting("Cavebot/Enabled") == "yes") and ((wincount(MainBP) ~= 1) or (wincount(SupBP) ~= 1) or (wincount(LootBP) ~= 1) or (wincount(GoldBP) ~= 1) or (wincount("all") < 4)) then
setsetting("Looting/OpenNextBP", "no")
setcavebot("no")
setlooting("no")
pausewalking(12000)
while (getcontainer_ib(MainBP).open == false) or (getcontainer_ib(MainBP).index ~= 0) or (getcontainer_ib(SupBP).open == false) or (getcontainer_ib(SupBP).index ~= 1) or (getcontainer_ib(LootBP).open == false) or (getcontainer_ib(LootBP).index ~= 2) or (getcontainer_ib(GoldBP).open == false) or (getcontainer_ib(GoldBP).index ~= 3) do
closewindows()
wait(700, 900)
while (wincount(MainBP) ~= 1) do
openitem(MainBP, "back")
wait(700, 900)
resizewindows()
wait(700, 900)
end
if (getcontainer_ib(MainBP).open == false) or (getcontainer_ib(MainBP).index ~= 0) then
closewindows()
wait(700, 900)
end
while (wincount(SupBP) ~= 1) do
if (getcontainer_ib(MainBP).open) and (getcontainer_ib(MainBP).index == 0) then
openitem(SupBP, MainBP, true)
wait(700, 900)
else
closewindows()
wait(700, 900)
break
end
resizewindows()
wait(700, 900)
end
if (getcontainer_ib(MainBP).open == false) or (getcontainer_ib(MainBP).index ~= 0) then
closewindows()
wait(700, 900)
end
while (wincount(LootBP) ~= 1) do
if (getcontainer_ib(MainBP).open) and (getcontainer_ib(MainBP).index == 0) then
openitem(LootBP, MainBP, true)
wait(700, 900)
while (getcontainer_ib(LootBP).maxslots - getcontainer_ib(LootBP).usedslots == 0) and (itemcount(LootBP,LootBP) > 0) do
openitem(LootBP, LootBP, false)
wait(700, 900)
end
else
closewindows()
wait(700, 900)
break
end
resizewindows()
wait(700, 900)
end
if (getcontainer_ib(MainBP).open == false) or (getcontainer_ib(MainBP).index ~= 0) then
closewindows()
wait(700, 900)
end
while (wincount(GoldBP) ~= 1) do
if (getcontainer_ib(MainBP).open) and (getcontainer_ib(MainBP).index == 0) then
openitem(GoldBP, MainBP, true)
wait(700, 900)
while (getcontainer_ib(GoldBP).maxslots - getcontainer_ib(GoldBP).usedslots == 0) and (itemcount(GoldBP,GoldBP) > 0) do
openitem(GoldBP, GoldBP, false)
wait(700, 900)
end
else
closewindows()
wait(700, 900)
break
end
resizewindows()
wait(700, 900)
end
resizewindows()
end
setcavebot("yes")
setlooting("yes")
setsetting("Looting/OpenNextBP", "yes")
pausewalking(0)
end
And this is the action script "deposit_item"
local ITEMS = {"Frosty Heart", "Black Pearl", "Small Diamond", "Small Sapphire", "Strong Mana Potion", "Spider Silk", "Strong Health Potion", "Green Mushroom", "Health Potion", "Life Crystal", "Crystal Sword", "Glacier Mask", "Ice Rapier", "Shard", "Strange Helmet", "Crystal Necklace", "Crystal Ring", "Knight Legs", "Time Ring", "Knight Armor", "Platinum Amulet", "Sapphire Hammer", "Jewelled Backpack", "Ice Cube", "Diamond Sceptre", "Glacier Shoes", "Mystic Turban", "Pair of Earmuffs", "Spellbook of Enlightenment", "Tower Shield", "Royal Helmet", "Dragon Slayer", "Dragon Scale Mail", "Golden Mug", "Glacier Kilt", "Hailstorm Rod", 7446}
local CITY_BP = "fur backpack"
local LABEL = "w005"
setsetting("Alerts/CharacterStuck/UserValue", 200000)
setsetting("Persistent/Scripts/Reopen Backpacks/Enabled", "no")
setsetting("Looting/OpenNextBP", "no")
while (isitemontile(3499, $posx, $posy-1, $posz) == false) and (isitemontile(3497, $posx, $posy+1, $posz) == false) and (isitemontile(3498, $posx-1, $posy, $posz) == false) and (isitemontile(3500, $posx+1, $posy, $posz) == false) do
reachgrounditem("depot")
wait(1000, 2000)
end
closewindows()
wait(700, 900)
while (getcontainer_ib(MainBP).open == false) or (getcontainer_ib(MainBP).index ~= 0) or (getcontainer_ib(LootBP).open == false) or (getcontainer_ib(LootBP).index ~= 1) do
closewindows()
wait(700, 900)
while (wincount(MainBP) ~= 1) do
openitem(MainBP, "back")
wait(700, 900)
resizewindows()
wait(700, 900)
end
if (getcontainer_ib(MainBP).open == false) or (getcontainer_ib(MainBP).index ~= 0) then
closewindows()
wait(700, 900)
end
while (wincount(LootBP) ~= 1) do
if (getcontainer_ib(MainBP).open) and (getcontainer_ib(MainBP).index == 0) then
openitem(LootBP, MainBP, true)
wait(700, 900)
while (itemcount(LootBP, LootBP) == 1) and (getcontainer_ib(LootBP).usedslots == 1) do
openitem(LootBP, LootBP, false)
wait(700, 900)
end
else
closewindows()
wait(700, 900)
break
end
resizewindows()
wait(700, 900)
end
resizewindows()
end
if (getcontainer_ib(LootBP).usedslots > 0) then
if (isitemontile(3499, $posx, $posy-1, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx,$posy-1,$posz)
wait(1000, 2000)
end
elseif (isitemontile(3497, $posx, $posy+1, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx,$posy+1,$posz)
wait(1000, 2000)
end
elseif (isitemontile(3498, $posx-1, $posy, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx-1,$posy,$posz)
wait(1000, 2000)
end
elseif (isitemontile(3500, $posx+1, $posy, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx+1,$posy,$posz)
wait(1000, 2000)
end
end
while (wincount("locker") == 0) do
openitem("depot", "browse field", false)
wait(900, 1200)
end
if (wincount("locker") > 0) and (wincount("browse field") > 0) then
closewindows("browse field", true)
wait(900, 1200)
end
while (wincount("Depot Chest") == 0) do
openitem(3502, "locker", false)
wait(900, 1200)
end
while (wincount(MainBPDP) == 0) do
openitem(MainBPDP, "Depot Chest", false)
wait(900, 1200)
end
local LAST_NONSTACK_BP = 0
local STACKBPDP_COUNT = itemcount(StackBPDP, MainBPDP)
local LOOTBPDP_COUNT = itemcount(LootBPDP, MainBPDP)
local MAINBPDP_COUNT = itemcount(MainBPDP, MainBPDP)
while (true) do
local LOOTBP_COUNT = itemcount(LootBP, LootBP)
while (LOOTBP_COUNT == 1) and (getcontainer_ib(LootBP).usedslots == 1) do
openitem(LootBP, LootBP, false)
wait(900, 1200)
end
for _, ITEM in ipairs(ITEMS) do
local ITEM_COUNT = itemcount(ITEM, LootBP) + itemcount(ITEM, MainBP)
local STACKABLE = iteminfo(ITEM).isCumulative
if (ITEM_COUNT > 0) then
if (STACKABLE) then
local LAST_STACK_BP = 0
while (ITEM_COUNT > 0) and (STACKBPDP_COUNT > LAST_STACK_BP) do
local ITEM_COUNT1 = itemcount(ITEM, LootBP) + itemcount(ITEM, MainBP)
moveitemsonto(ITEM, StackBPDP, LAST_STACK_BP, nil, "all", 100)
local ITEM_COUNT2 = itemcount(ITEM, LootBP) + itemcount(ITEM, MainBP)
if (ITEM_COUNT1 == ITEM_COUNT2) and (ITEM_COUNT2 > 0) then
LAST_STACK_BP = LAST_STACK_BP + 1
end
ITEM_COUNT = ITEM_COUNT2
wait(700, 900)
end
elseif (STACKABLE == false) then
while (ITEM_COUNT > 0) and (LOOTBPDP_COUNT > LAST_NONSTACK_BP) do
local ITEM_COUNT1 = itemcount(ITEM, LootBP) + itemcount(ITEM, MainBP)
moveitemsonto(ITEM, LootBPDP, LAST_NONSTACK_BP, nil, "all", 100)
if (itemcount(ITEM, LootBP) + itemcount(ITEM, MainBP) > 0) then
moveitemsonto(ITEM, LootBPDP, LAST_NONSTACK_BP, nil, "all", 100)
end
local ITEM_COUNT2 = itemcount(ITEM, LootBP) + itemcount(ITEM, MainBP)
if (ITEM_COUNT1 == ITEM_COUNT2) and (ITEM_COUNT2 > 0) then
if (LAST_NONSTACK_BP+1 >= LOOTBPDP_COUNT) then
if (MAINBPDP_COUNT > 0) then
openitem(MainBPDP, MainBPDP, false)
wait(700, 900)
STACKBPDP_COUNT = itemcount(StackBPDP, MainBPDP)
LOOTBPDP_COUNT = itemcount(LootBPDP, MainBPDP)
MAINBPDP_COUNT = itemcount(MainBPDP, MainBPDP)
LAST_NONSTACK_BP = 0
elseif (string.lower(LootBPDP) == CITY_BP) and (MainBPDP2 ~= false) and (LootBPDP2 ~= false) and (MainBPDP2 ~= "false") and (LootBPDP2 ~= "false") then
if (isitemontile(3499, $posx, $posy-1, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx,$posy-1,$posz)
wait(1000, 2000)
end
elseif (isitemontile(3497, $posx, $posy+1, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx,$posy+1,$posz)
wait(1000, 2000)
end
elseif (isitemontile(3498, $posx-1, $posy, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx-1,$posy,$posz)
wait(1000, 2000)
end
elseif (isitemontile(3500, $posx+1, $posy, $posz)) then
while (windowcount("browse field") == 0) do
browsefield($posx+1,$posy,$posz)
wait(1000, 2000)
end
end
while (wincount("locker") == 0) do
openitem("depot", "browse field", false)
wait(900, 1200)
end
if (wincount("locker") > 0) and (wincount("browse field") > 0) then
closewindows("browse field", true)
wait(900, 1200)
end
while (wincount("Depot Chest") == 0) do
openitem(3502, "locker", false)
wait(900, 1200)
end
if (itemcount(MainBPDP2, 3502) > 0) then
while (wincount(MainBPDP2) == 0) do
openitem(MainBPDP2, "Depot Chest", false)
wait(900, 1200)
resizewindows()
wait(900, 1200)
end
while (itemcount(LootBPDP, MainBPDP) > 0) do
depotdeposit_ib(LootBPDP2, LootBPDP)
wait(900, 1200)
end
BPS_TO_BUY = getcontainer_ib(MainBPDP).maxslots - getcontainer_ib(MainBPDP).usedslots
gotolabel("go_buy_bps")
return
end
end
else
LAST_NONSTACK_BP = LAST_NONSTACK_BP + 1
end
end
ITEM_COUNT = ITEM_COUNT2
wait(700, 900)
end
end
end
end
if (LOOTBP_COUNT > 0) then
openitem(LootBP, LootBP, false)
wait(900, 1200)
else
break
end
end
end
if (RuneBPDP == false) and (ManaBPDP == false) and (FoodBPDP == false) then
gotolabel(LABEL)
end
Hello :) I have problem with convert healing. could somebody check it? Thanks. I added two screens and healing log. what's wrong? :( Attachment 1116Attachment 1117
Quote:
auto(40, 60)
if maround(4, "Lizard Zaogun", "Lizard High Guard", "Lizard Legionnaire", "Lizard Dragon Priest") <= 3 then
if $hppc < 60 and $mp >= 160 then
cast("exura vita") wait(80, 120)
elseif $hppc >= 60 and $hppc < 78 and $mp >= 70 then
cast("exura gran") wait(80, 120)
elseif $hppc >= 78 and $hppc < 89 and $mp >= 20 then
cast("exura") wait(80, 120)
elseif $hppc >= 90 and $mp >= 20 and $paralyzed then
cast("exura") wait(80, 120)
end
else
if HighHealing then
if $hppc < 70 and $mp >= 160 then
cast("exura vita") wait(80, 120)
elseif $hppc >= 70 and $hppc < 85 and $mp >= 70 then
cast("exura gran") wait(80, 120)
elseif $hppc >= 88 and $mp >= 70 and $paralyzed then
cast("exura gran") wait(80, 120)
end
else
if $hppc < 65 and $mp >= 160 then
cast("exura vita") wait(80, 120)
elseif $hppc >= 65 and $hppc < 83 and $mp >= 70 then
cast("exura gran") wait(80, 120)
elseif $hppc >= 83 and $mp >= 70 and $paralyzed then
cast("exura gran") wait(80, 120)
end
end
end
Converted Goroma serpents from BlakW and i got this on conversion log.
Warning: Setting "Settings\\Alerts\\Message\\HealCreature\\PlaySoun d" has no WindBot equivalent!
Warning: Setting "Settings\\Alerts\\Message\\HealCreature\\FlashCli ent" has no WindBot equivalent!
Warning: Setting "Settings\\Alerts\\Message\\HealCreature\\Screensh ot" has no WindBot equivalent!
Warning: Setting "Settings\\Alerts\\Message\\YourAttack\\PlaySo und" has no WindBot equivalent!
Warning: Setting "Settings\\Alerts\\Message\\YourAttack\\FlashClien t" has no WindBot equivalent!
Warning: Setting "Settings\\Alerts\\Message\\YourAttack\\Screenshot " has no WindBot equivalent!
Warning: Setting "Settings\\Alerts\\Message\\YourAttack\\Disconnect " has no WindBot equivalent!
Warning: Setting "Settings\\Cavebot\\Settings\\Priority" has no WindBot equivalent!
Warning: Setting "Settings\\Alerts\\Player\\OnScreen\\FlashClie nt" has no WindBot equivalent!
And when u have to use pick on goroma had this error and my character stop healing and die
error in Action script w206b:
["$pickid(31928, 32670, 32670)"]:Action: 158:1 attempt to call global '$pickid' (a number value)