Disenchant Dealer
Posted: Sat Dec 08, 2012 7:23 am
Hello
want from the dealer purchased true Disenchant
my waypoint file error reports
want from the dealer purchased true Disenchant
my waypoint file error reports
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
player:openStore("Shamp", _option);
-- inventory:update() -- not needed. getItemCount updates the inventory.
-- while inventory:getItemCount("Lehrlingslangstiefel") > inventory:itemTotalCount(0,"bags")-- not sure what you mean here
while 1 > inventory:itemTotalCount(0,"bags") do -- fills bag with items
inventory:storeBuyItem("Lehrlingslangstiefel");
end
while ( inventory:getItemCount("Lehrlingslangstiefel") > 0 ) do
-- run disenchant macro... not sure what to use for this
-- Find some boots
local boots = inventory:findItem("Lehrlingslangstiefel")
-- Use Disenchant skill
RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
-- Clicks the item
RoMScript("PickupBagItem("..boots.BagId..")")
rest( 3550 );
end
</onLoad>
</waypoints>Code: Select all
while true do
...
endCode: Select all
repeat
...
until falseCode: Select all
repeat
...
until inventory:itemTotalCount(0) == 0 or 10 > inventory.Money
error("Finished disenchanting")Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
repeat
player:openStore("Mallor", _option);
-- inventory:update() -- not needed. getItemCount updates the inventory.
-- while inventory:getItemCount("Rusted Axe") > inventory:itemTotalCount(0,"bags")-- not sure what you mean here
while inventory:itemTotalCount(0,"bags") > 1 do -- fills bag with items
inventory:storeBuyItem("Rusted Axe");
end
while ( inventory:getItemCount("Rusted Axe") > 0 ) do
-- run disenchant macro... not sure what to use for this
-- Find some boots
local boots = inventory:findItem("Rusted Axe")
-- Use Disenchant skill
RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
-- Clicks the item
RoMScript("PickupBagItem("..boots.BagId..")")
rest( 3550 );
end
until inventory:itemTotalCount(0) == 0 or 10 > inventory.Money
error("Finished disenchanting")
</onLoad>
</waypoints>Code: Select all
while 1 > inventory:itemTotalCount(0,"bags") do -- fills bag with itemsCode: Select all
-- Find some boots
local boots = inventory:findItem("Rusted Axe")
-- Use Disenchant skill
RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
-- Clicks the item
RoMScript("PickupBagItem("..boots.BagId..")")
rest( 3550 );Code: Select all
-- Find some boots
local boots = inventory:findItem("Rusted Axe")
if boots then
-- Use Disenchant skill
RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
-- Clicks the item
RoMScript("PickupBagItem("..boots.BagId..")")
rest( 3550 );
endCode: Select all
while inventory:itemTotalCount(0,"bags") > 1 do -- fills bag with items
inventory:storeBuyItem("Rusted Axe");
end
Code: Select all
local buy = inventory:itemTotalCount(0,"bags") - 1
store:buyItem("Rusted Axe", buy)
That means you messed up somewhere, can't tell you what is wrong unless you post all of the onload code.7:37pm - C:/micromacro/scripts/rom/classes/waypointlist.lua:83: Failed to compile and run Lua code for waypointlist onLoad event.
that will always crash 100%repeat
player:openStore("Mallor", _option);
-- inventory:update() -- not needed. getItemCount updates the inventory.
-- while inventory:getItemCount("Rusted Axe") > inventory:itemTotalCount(0,"bags")-- not sure what you mean here
local buy = inventory:itemTotalCount(0,"bags") - 1
store:buyItem("Rusted Axe", buy)
end
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
repeat
player:openStore("Mallor", _option);
local buy = inventory:itemTotalCount(0,"bags") - 1
store:buyItem("Rusted Axe", buy)
while ( inventory:getItemCount("Rusted Axe") > 0 ) do
inventory:update()
local boots = inventory:findItem("Rusted Axe")
if boots then
-- Use Disenchant skill
RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
-- Clicks the item
RoMScript("PickupBagItem("..boots.BagId..")")
rest( 3550 );
end
end
until inventory:itemTotalCount(0) == 0 or 10 > inventory.Money
error("Finished disenchanting")
</onLoad>
</waypoints>