Re: Dissassemble Materials
Posted: Thu Dec 12, 2013 5:24 am
Ok I dit that before but it's not work . I have this message
xxx\xxx\xxx\xx\/bot.lua:688: No waypoints to go to waypoint file.
Ty for your replies

Ty for your replies
Code: Select all
<waypoints type="TRAVEL">
<onLoad>
itemname1 ="Maple Plank"
itemname2 ="Oak Plank"
itemname3 ="Pine Plank"
itemname4 ="Holly Plank"
RoMScript("CloseAllWindows()") -- Don't want to accidentaly sell stuff!
while inventory:getItemCount(itemname1) > 0 do
for i, item in pairs(inventory.BagSlot) do
if item.Name == itemname1 then
item:use() -- Breaks it up
yrest(2000)
end
end
end
while inventory:getItemCount(itemname2) > 0 do
for i, item in pairs(inventory.BagSlot) do
if item.Name == itemname2 then
item:use() -- Breaks it up
yrest(2000)
end
end
end
while inventory:getItemCount(itemname3) > 0 do
for i, item in pairs(inventory.BagSlot) do
if item.Name == itemname3 then
item:use() -- Breaks it up
yrest(2000)
end
end
end
while inventory:getItemCount(itemname4) > 0 do
for i, item in pairs(inventory.BagSlot) do
if item.Name == itemname4 then
item:use() -- Breaks it up
yrest(2000)
end
end
end
</onLoad>
</waypoints>