I can send you the script for you to see what is wrong.
I can send you the script for you to see what is wrong.
I converted a script from iBot and when I create a waypoint "Shovel", my character walks around the sqm but no use the shovel. I checked the name and others and tried use openhole().
Last edited by Steve; 04-16-2014 at 06:20 PM.
Latest Scripts: Ultimate Dawnport FACC Spots Souleater Tunnels Useful Lua:
CapsLock key released in order to be able to type properly.
(Action: 232) Couldn't find item named 'NonStackDPBP'. Future warnings for this script will be shown in the Debug Script Log.
-- Dp Depositer.
setsetting("Looting/OpenNextBP", "no")
closewindows()
wait(500, 1000)
openitem(MainBP, 'back')
wait(500, 1000)
resizewindows()
wait(500, 1000)
openitem(LootBP, MainBP, true)
wait(500, 1000)
resizewindows()
wait(500, 1000)
openitem(LootBP, LootBP, true)
wait(500, 1000)
resizewindows()
wait(500, 1000)
reachgrounditem("depot")
wait(1000,2000)
openitem("depot")
wait(700,900)
openitem("depot chest", "locker")
wait(700,900)
openitem(MainDPBP, "depot chest")
wait(700,900)
for i=1,3 do
depotdeposit_ib(StackableDPBP,"bola","cheesy figurine","cheese cutter","earflap","rat god doll")
depotdeposit_ib(NonStackDPBP,"spike shield","spiky club","ratana","leather harness","life preserver")
wait(700,900)
openitem("NonStackDPBP", "NonStackDPBP", false) wait(700,900)
end
wait(500, 1000)
setsetting("Looting/OpenNextBP", "yes")
"23:31:23 error in Persistent script attacking:
[" cast(SPELLS[#SPELLS].SPELL.NA..."]:attacking:123 attempt to index field 'SPELL' (a nil value)"
auto(200, 300)
local function isTargetInLine()
if $attacked.posx == $posx or $attacked.posy == $posy then
return true
end
return false
end
local function canStepOn(POS_X, POS_Y, POS_Z)
local TILE = Tile.GetByPosition(POS_X, POS_Y, POS_Z)
local AVOID = {566}
return TILE:isWalkable() and not TILE:isCreatureOn(2) and not Item.GetProperties(TILE:TopItem().id).isBlockingWa lk and not table.find(AVOID, TILE:TopItem().id)
end
local function dirToMove()
if isTargetInLine() then return "none" end
if $attacked.posx == $posx - 1 and $attacked.posy == $posy - 1 then
if canStepOn($posx, $posy - 1, $posz) then
return "n"
elseif canStepOn($posx - 1, $posy, $posz) then
return "w"
end
elseif $attacked.posx == $posx + 1 and $attacked.posy == $posy - 1 then
if canStepOn($posx, $posy - 1, $posz) then
return "n"
elseif canStepOn($posx + 1, $posy, $posz) then
return "e"
end
elseif $attacked.posx == $posx + 1 and $attacked.posy == $posy + 1 then
if canStepOn($posx, $posy + 1, $posz) then
return "s"
elseif canStepOn($posx + 1, $posy, $posz) then
return "e"
end
elseif $attacked.posx == $posx - 1 and $attacked.posy == $posy + 1 then
if canStepOn($posx, $posy + 1, $posz) then
return "s"
elseif canStepOn($posx - 1, $posy, $posz) then
return "w"
end
end
return ""
end
local function turnToFace()
if $attacked.posx == $posx then
if $attacked.posy == $posy + 1 then
turn("s") return true
elseif $attacked.posy == $posy - 1 then
turn("n") return true
end
elseif $attacked.posy == $posy then
if $attacked.posx == $posx + 1 then
turn("e") return true
elseif $attacked.posx == $posx - 1 then
turn("w") return true
end
end
return false
end
function correctHPPC(TARGET_NAME, SPELL_INDEX)
local INDEX = 0
for i, MONSTER in ipairs(MONSTERS) do
if MONSTER == TARGET_NAME then
INDEX = i
break
end
end
if INDEX == 0 then return true end
return $attacked.hppc >= SPELLS[SPELL_INDEX].MIN_HPPC[INDEX] and $attacked.hppc <= SPELLS[SPELL_INDEX].MAX_HPPC[INDEX]
end
local spellType = "5x5"
if SpellName == "exevo gran mas vis" then
spellType = "6x6"
end
if Self.CoolDown(1) == 0 and $attacked.id > 0 then
if maroundreachable(7, unpack(MONSTERS)) >= MonstersToAreaRune+1 then
if UseAreaSpell and Self.MonstersAroundSpell(spellType, false, unpack(MONSTERS)) >= MonsterCount and maround_ib(7, unpack(MONSTERS))-3 <= Self.MonstersAroundSpell(spellType, false, unpack(MONSTERS)) and cancastspell(SpellName) then
cast(SpellName)
elseif itemcount(AreaRuneName, 'all') > 0 and shootarearune(AreaRuneName, MonstersToAreaRune-1, unpack(MONSTERS)) then
end
else
if UseAreaSpell and Self.MonstersAroundSpell(spellType, false, unpack(MONSTERS)) >= MonsterCount and maround_ib(7, unpack(MONSTERS))-3 <= Self.MonstersAroundSpell(spellType, false, unpack(MONSTERS)) and cancastspell(SpellName) then
cast(SpellName)
elseif itemcount(AreaRuneName, 'all') > 0 and maround_ib(7, unpack(MONSTERS)) >= MonstersToAreaRune and shootarearune(AreaRuneName, MonstersToAreaRune-1, unpack(MONSTERS)) then
elseif table.find(MONSTERS, $attacked.name) then
for INDEX, SPELL in ipairs(SPELLS) do
if maround_ib(7, unpack(MONSTERS)) <= SPELL.MAX_MONSTERS and $attacked.dist <= SPELL.DIST and (SPELL.TARGETS == 1 or table.find(SPELL.TARGETS, $attacked.name)) then
if SPELL.NAME == "sudden death rune" and itemcount("sudden death rune", 'all') > 0 and correctHPPC($attacked.name, INDEX) then
useoncreature(SPELL.NAME, $attacked.id)
break
elseif SPELL.NAME ~= "sudden death rune" and cancastspell(SPELL.NAME) and correctHPPC($attacked.name, INDEX) and ((SPELL.NEED_ALIGN and dirToMove() ~= "") or not SPELL.NEED_ALIGN) then
if not SPELL.NEED_ALIGN then
cast(SPELL.NAME)
break
else
while not isTargetInLine() and dirToMove() ~= "" do
move(dirToMove())
wait(80, 90)
end
for i = 1, 3 do
if isTargetInLine() and $attacked.dist <= SPELL.DIST then
turnToFace()
wait(25, 30)
end
end
if isTargetInLine() then
cast(SPELL.NAME)
break
end
end
end
end
end
else
cast(SPELLS[#SPELLS].SPELL.NAME)
end
end
end
I also got a problem with the bot running upto doors, closing them, and then opening them, and then bugging and forexample not selling loot to the npc in that area.
Last edited by The big bad Wolf; 04-19-2014 at 10:22 PM.
lucas os scritp q eu converti Buga no Wainpont
faz umas atualiaçao
ai axo q arruma os bug
ve direitinho
eu tenho um scritp do ibot d-lair famrine ele buga em ums Wainpoint se vc kize eu te passo o scritp vc da uma olhada
Last edited by Keplinho; 04-26-2014 at 02:04 PM.
Hey Lucas Terra. First, thanks for fixing my trial days.
I tried to convert Hive Surface BugWT script, but my character doesn't open the backpack properly. He's trying to open the backpacks in the beginning, but he opens and closes all the time, getting stuck. It isn't mana potions, marks on map, or backpack names. I was using it on iBot without problems.
Can you help me to fix it? Any tip? I saw the new interface on "cavebot settings" in one picture that you post, but i can't see this image on my Windbot. The only Setup that i can see is in the Persistent tab, that Windbot says that it is already converted.
I asked him and he said: post on Lucas Terra thread. x.x
Thanks!
bugs with open bps,
while windowcount_ib(MainBP) ~= 1 or windowcount_ib(AmmoBP) ~= 1 or windowcount_ib() ~= 2 do
closewindows()
wait(400, 600)
openitem(MainBP, 'back')
wait(400, 600)
resizewindows(0, MainBP, true)
wait(400, 600)
openitem(AmmoBP, MainBP, true)
wait(400, 600)
resizewindows(0, AmmoBP, true)
wait(400, 600)
end
later open bps, bot close all
or this
setlooting('no')
setsetting("Looting/OpenNextBP", "no")
targetNothing()
setsetting("Persistent/Scripts/keep haste/Enabled", "yes")
-------opening backpacks-------
while windowcount_ib(MainBP) ~= 1 or windowcount_ib(AmmoBP) ~= 1 or windowcount_ib(LootBP) ~= 1 or windowcount_ib(GoldBP) ~= 1 or windowcount_ib() < 4 do
closewindows()
wait(400, 600)
openitem(MainBP, 'back')
wait(400, 600)
resizewindows(0, MainBP, true)
wait(400, 600)
openitem(AmmoBP, MainBP, true)
wait(400, 600)
resizewindows(0, AmmoBP, true)
wait(400, 600)
openitem(LootBP, MainBP, true)
wait(400, 600)
resizewindows(0, LootBP, true)
wait(400, 600)
openitem(GoldBP, MainBP, true)
wait(400, 600)
resizewindows(0, GoldBP, true)
wait(400, 600)
end
setsetting("Looting/OpenNextBP", "yes")
close bps wnehn open all