Dismantle waypoint ? ?
Dismantle waypoint ? ?
Hi ..
is there any waypoint for dismantle a weapon which worth 10 gold to get blend runes , activation runes ....... etc ?
is there any waypoint for dismantle a weapon which worth 10 gold to get blend runes , activation runes ....... etc ?
Re: Dismantle waypoint ? ?
Do a search for "disenchant". You should be able to find some code or functions.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Dismantle waypoint ? ?
Thank you Rock5 but when i used this
it says :
haltOnError: false
Did not find any crashed game clients.
6:22pm - ...m_bot_30-3-2012/scripts/rom/classes/waypointlist.lua:22: XML Parse
rror.
File: ..._bot_30-3-2012/scripts/rom/waypoints/test - Copy.xml
Line: 1
Column: 17
Pos: 17
Message: not well-formed (invalid token)
btw i searched before posting this and i found that code but it didn't work for me so i thought it is old or something likethat ..
Code: Select all
player:openStore(_npcname, _option);
-- inventory:update() -- not needed. getItemCount updates the inventory.
-- while inventory:getItemCount("Apprentice Boots") > inventory:itemTotalCount("<EMPTY>","bags")-- not sure what you mean here
while 1 > inventory:itemTotalCount("<EMPTY>","bags") do -- fills bag with items
inventory:storeBuyItem("Apprentice Boots");
end
while ( inventory:getItemCount("Apprentice Boots") > 0 ) do
-- run disenchant macro... not sure what to use for this
-- Find some boots
local boots = inventory:findItem("Apprentice Boots")
-- 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
haltOnError: false
Did not find any crashed game clients.
6:22pm - ...m_bot_30-3-2012/scripts/rom/classes/waypointlist.lua:22: XML Parse
rror.
File: ..._bot_30-3-2012/scripts/rom/waypoints/test - Copy.xml
Line: 1
Column: 17
Pos: 17
Message: not well-formed (invalid token)
btw i searched before posting this and i found that code but it didn't work for me so i thought it is old or something likethat ..
-
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Dismantle waypoint ? ?
I doubt it will be liking the <EMPTY> text that is in there, to get total number of empty bag slots do:
Code: Select all
inventory:itemTotalCount(0)
Re: Dismantle waypoint ? ?
I tried many times but I still getting the same error
btw I am not programmer so please don't tell me what is the error just fix it
Thanks ,
btw I am not programmer so please don't tell me what is the error just fix it

Thanks ,
Re: Dismantle waypoint ? ?
We need to see the whole file to find the error. If that is your whole file then there is a lot missing.Wo0olf07 wrote:Thank you Rock5 but when i used this
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Dismantle waypoint ? ?
It's the whole file because i took it from Here 

Re: Dismantle waypoint ? ?
Well it needs to be put into something. You can put it in a waypoint files onload section or you could make it into a userfunction. I think the way the code is written it was meant to go in a userfunction
So, try this.Put it into a userfunction file, lets call it "userfunction_disenchant.lua" and put it into the userfunctions folder. Then start the commandline.xml and type
So, try this.
Code: Select all
function Disenchant(_npcname, _itemname)
player:openStore(_npcname);
while 1 > inventory:itemTotalCount(0) do -- fills bag with items
inventory:storeBuyItem(_itemname);
end
while ( inventory:getItemCount(_itemname) > 0 ) do
-- Find some items
local item = inventory:findItem(_itemname)
-- Use Disenchant skill
RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
-- Clicks the item
RoMScript("PickupBagItem("..item.BagId..")")
rest( 3550 );
end
end
Code: Select all
Disenchant("npc name","Apprentice Boots")
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Dismantle waypoint ? ?
It works but not very well
I think there is a problem in this line. It doen't work
you want to dismantle then it will dismantle it then stop ..
so I deleted that line then everything is going fine .
the bot starts then buy one item ( or more if i want ) then dismantle it then stop
And what I want is to make it repeat it self .. Can you do it please
?
here is the whole file
bad english .. yea i know 
I think there is a problem in this line. It doen't work
the bot starts then open the store then stop but if you have the item whichwhile 1 > inventory:itemTotalCount(0) do -- fills bag with items
you want to dismantle then it will dismantle it then stop ..
so I deleted that line then everything is going fine .
the bot starts then buy one item ( or more if i want ) then dismantle it then stop
And what I want is to make it repeat it self .. Can you do it please

here is the whole file
Code: Select all
function Disenchant(_npcname, _itemname)
player:openStore(_npcname);
do inventory:storeBuyItem(_itemname);
end
do inventory:storeBuyItem(_itemname);
end
while ( inventory:getItemCount(_itemname) > 0 ) do
-- Find some items
local item = inventory:findItem(_itemname)
-- Use Disenchant skill
RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
-- Clicks the item
RoMScript("PickupBagItem("..item.BagId..")")
rest( 3550 );
end
end

Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest