need help
-
- Posts: 1
- Joined: Wed Aug 29, 2012 1:27 am
need help
just started using this bot 2 days ago, and i love it. i use it to kill mobs for few points to earn eoj's while i sleep. however, ive never used anything like it before, and i need some help with it. I would like my character to accept a quest, go kill x amount of mobs, and then turn in quest. rinse and repeat. when i create a new wp file (rom/createpath.lua), my character will go up to npc and open dialogue....but will not accept quest. any help would be greatly appreciated. also...2nd question....can the bot run 2 characters at once (same pc)....basically multiclienting. if so, how do i turn it on to control 2nd character?
Re: need help
createpath can't do everything. There are a few options there that auto insert code for you but usually you have to edit the file and add or edit commands manually. In regards to accepting and completing quests at the npc, you can press numpad5 that targets the npc and opens a dialog and then edit the script later to accept and complete the quest, or you can enter the code there and then, 1 line at a time, using numpad0.noob botter wrote:my character will go up to npc and open dialogue....but will not accept quest
- 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
-
- Posts: 72
- Joined: Thu Mar 08, 2012 7:22 am
Re: need help
for the second question, I wan't to say : try it by yourself (it will be better than read my poor english :p )
In fact, when you have 2 RoM client launched, MM will ask you if you wan't to run it on the first or on the second character (or third, fourth...).
In fact, when you have 2 RoM client launched, MM will ask you if you wan't to run it on the first or on the second character (or third, fourth...).
Re: need help
I've added an example that you can use as a kind of template. It is a script to farm items for two dailies in Logar.
- walk to farming area
- walk around and kill stuff
- check if enough items have been collected
- walk back to Logar
- check if inventory is full (you can't complete quests if it is full)
- sell stuff if necessary
- complete quests
- walk to farming area
- walk around and kill stuff
- check if enough items have been collected
- walk back to Logar
- check if inventory is full (you can't complete quests if it is full)
- sell stuff if necessary
- complete quests
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
questboardId = 110584;
-- custom function to set lootomatic options
-- RoMScript("Lootomatic.Func.Enable(true,3,5,false,3,1);")
changeProfileOption("TARGET_LEVELDIF_BELOW","20");
__WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));
</onLoad>
<!-- # --><waypoint x="-618" z="-5821" y="24" tag="Start" > </waypoint>
<!-- # -->
<!-- # insert the waypoints to go to killing area -->
<!-- # -->
<!-- # --><waypoint x="-230" z="-4605" y="-63" tag="Collect"> </waypoint>
<!-- # -->
<!-- # insert the waypoints where you can farm your quest items -->
<!-- # should be a kind of loop -->
<!-- # -->
<!-- # check if enough quest items have been farmed -->
local items = inventory:itemTotalCount("Boar Tusk");
local items2 = inventory:itemTotalCount("Sharp Bear Claw");
local avail = math.floor(items / 5) + math.floor(items2 / 5);
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
printf ("Found "..items.. " Bear Claws and "..items2.." Boar Tusks (enough for "..avail.."quests) "..dailyQuestCount );
if (dailyQuestsPerDay - dailyQuestCount) > avail then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Collect"));
end
</waypoint>
<!-- # waypoints to go back to logar -->
<!-- # -->
<!-- ################################################################### -->
<!-- # 17 --><waypoint x="-622" z="-5815" y="25" tag="Quest" >
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
local items = inventory:itemTotalCount("Sharp Bear Claw");
local items2 = inventory:itemTotalCount("Boar Tusk");
printf ("Completed "..dailyQuestCount.." quests.");
printf ("Found "..items.. " Bear Claws and "..items2.." Boar Tusks.");
if 10 == dailyQuestCount then
error("Bot gestoppt.", 0); -- ends the script.
end
<!-- if bags are full, go to merchant and sell stuff, otherwise you can't complete quest -->
local occupiedSlots, totalSlots = sendMacro("GetBagCount();");
printf ("BagSlots"..occupiedSlots.. " "..totalSlots);
if occupiedSlots == totalSlots then
printf ("going to merchant");
__WPL:setWaypointIndex(__WPL:findWaypointTag("Sell"));
else
if items >= 5 then
player:target_NPC("Logar Bulletin Board");
player:rest(1);
AcceptQuestByName("Sharp Bear Claw",questboardId);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Cid"));
else
if items2 >= 5 then
player:target_NPC("Logar Bulletin Board");
player:rest(1);
AcceptQuestByName("Collect Boar Tusks",questboardId);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Dell"));
end
end
if 5 > items and 5 > items2 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Start"));
end
end
</waypoint>
<!-- ################################################################### -->
<!-- # 2 --><waypoint x="-615" z="-5824" y="24" tag="Cid"> </waypoint>
<!-- # 3 --><waypoint x="-535" z="-6070" y="21">
player:target_NPC("Cid");
CompleteQuestByName("Sharp Bear Claw");
</waypoint>
<!-- # 5 --><waypoint x="-529" z="-6065" y="21"> </waypoint>
<!-- # 6 --><waypoint x="-605" z="-5832" y="24">
__WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));
</waypoint>
<!-- ################################################################### -->
<!-- # 1 --><waypoint x="-614" z="-5829" y="23" tag="Dell" >
player:target_NPC("Dell"); yrest(750);
CompleteQuestByName("Collect Boar Tusks"); yrest(750);
</waypoint>
<!-- # 3 --><waypoint x="-608" z="-5832" y="24">
__WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));
</waypoint>
<!-- ################################################################### -->
<!-- # 1 --><waypoint x="-609" z="-5829" y="24" tag="Sell"> </waypoint>
<!-- # 2 --><waypoint x="-481" z="-6137" y="12"> </waypoint>
<!-- # 3 --><waypoint x="-533" z="-6198" y="12"> </waypoint>
<!-- # 4 --><waypoint x="-547" z="-6193" y="16">
player:merchant("Dimar");
</waypoint>
<!-- # 6 --><waypoint x="-477" z="-6119" y="14"> </waypoint>
<!-- # 7 --><waypoint x="-608" z="-5824" y="24">
__WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));
</waypoint>
</waypoints>
Re: need help
For someone who is just starting to create waypoint files, that's probably too complex an example. It might put them off. For beginners, the simpler the better.
- 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
Who is online
Users browsing this forum: Ahrefs [Bot] and 112 guests