Help need to make questbot

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
xwhizzah
Posts: 17
Joined: Sun Jul 11, 2010 8:50 am

Re: Help need to make questbot

#21 Post by xwhizzah » Thu Aug 05, 2010 5:36 am

typo :) i ment the bot :P

iam not sure the distance is gonna solve this issue. I changed it in the profile to 100 but still it attacks every single muschroom and sticks at 1 waypoint

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Help need to make questbot

#22 Post by rock5 » Thu Aug 05, 2010 6:34 am

bloodslain wrote:typo :) i ment the bot :P

iam not sure the distance is gonna solve this issue. I changed it in the profile to 100 but still it attacks every single muschroom and sticks at 1 waypoint
Maybe you should avoid that area then?
  • 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

xwhizzah
Posts: 17
Joined: Sun Jul 11, 2010 8:50 am

Re: Help need to make questbot

#23 Post by xwhizzah » Thu Aug 05, 2010 7:15 am

i just tryed to add this on top of the waypoint file

Code: Select all

<onLeaveCombat>
if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end
</onLeaveCombat>
but it just got ignored ( or can i only use this command in the profile? )

problem is that every spot there is full of those dahm mushrooms :)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Help need to make questbot

#24 Post by rock5 » Thu Aug 05, 2010 7:37 am

bloodslain wrote:i just tryed to add this on top of the waypoint file

Code: Select all

<onLeaveCombat>
if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end
</onLeaveCombat>
but it just got ignored ( or can i only use this command in the profile? )

problem is that every spot there is full of those dahm mushrooms :)
Or maybe you are taking too long to kill them. I have no trouble with mages. What class do you use? Also, do you do all the available quests in town first?

onLeaveCombat can only be used in the profile. At the moment the only other section you can add is the onLoad
section.
  • 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

xwhizzah
Posts: 17
Joined: Sun Jul 11, 2010 8:50 am

Re: Help need to make questbot

#25 Post by xwhizzah » Thu Aug 05, 2010 8:00 am

I use mage, but got it solved :) made new waypoints and decreased the range and now its okay. see below the result in code

Code: Select all

<waypoints>
   <onLoad>
   settings.profile.mobs = {"Fungus"};
   changeProfileOption("MAX_TARGET_DIST", 100);
   </onLoad>
      <!-- #  1 --><waypoint x="-3697" z="-8683">
        repeat queststate = getQuestStatus("Testing Your Skill"); yrest(500) until queststate
        if queststate  == "not accepted" then
            player:target_NPC("Leighton");
            sendMacro("OnClick_QuestListButton(1,1)");   yrest(2000);
            sendMacro("AcceptQuest()");               yrest(2000);
            sendMacro("CloseWindows()"); 
			yrest(2000);
        end
   </waypoint>
	<!-- #  5 --><waypoint x="-3780" z="-8486">	</waypoint>
	<!-- #  6 --><waypoint x="-3855" z="-7980">	</waypoint>
	<!-- #  7 --><waypoint x="-3772" z="-7940" tag="funguspath"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- #  8 --><waypoint x="-3819" z="-7819"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- #  9 --><waypoint x="-3947" z="-7815"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- #  10 --><waypoint x="-4032" z="-7835"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- #  11 --><waypoint x="-3874" z="-8026"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end 
		  if 5 > inventory:itemTotalCount(201171) then
        __WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath"));
      end
	</waypoint>
	<!-- #  12 --><waypoint x="-3709" z="-7963">	</waypoint>
	<!-- #  13 --><waypoint x="-3763" z="-8065">	</waypoint>
	<!-- #  14 --><waypoint x="-3819" z="-8400">	</waypoint>
	<!-- #  15 --><waypoint x="-3725" z="-8581">	</waypoint>
    <!-- #  16 --><waypoint x="-3697" z="-8683">
            player:target_NPC("Leighton");
			sendMacro("OnClick_QuestListButton(3,1)");   yrest(2000);
			sendMacro("CompleteQuest()");             yrest(2000);
			sendMacro("CloseWindows()");             yrest(2000);
			loadPaths("Pioneers/7 - Lively reward");
    </waypoint>
</waypoints>
Now i have an new problem on a different waypoint. actually 2 problems. see code below

Code: Select all

<waypoints>
	<!-- #  1 --><waypoint x="-3797" z="-8522">     
     -- Obtain Quest: Claiming armor
        player:clearTarget();
        player:rest(2);
        player:target_NPC("Mallor");
        player:rest(2);
        sendMacro("OnClick_QuestListButton(1,1)");   yrest(2000);
        sendMacro("AcceptQuest()");               yrest(2000);
        sendMacro("CloseWindows()");            yrest(2000);
  </waypoint>
	<!-- #  5 --><waypoint x="-3776" z="-8575">	
 	-- Finish Quest: claiming Armor
        player:target_NPC("Shamp");
        player:rest(2);
        sendMacro("OnClick_QuestListButton(3,1)");   yrest(2000);
        sendMacro("CompleteQuest()");             yrest(2000);
        sendMacro("CloseWindows()");             yrest(2000);
	sendMacro("UseItemByName('Armor Package');");
        player:rest(2);
	sendMacro("UseItemByName('Superior Traveling Robe');");
        player:rest(2);
	loadPaths("Pioneers/4 - Claim your potions");
	</waypoint>
</waypoints>
My problem is in the reward.

1. It opens the package but afterthis it doesnt equip it like it supposed to.
2. The reward is for every class different how can i build in a check?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Help need to make questbot

#26 Post by rock5 » Thu Aug 05, 2010 9:16 am

bloodslain wrote:

Code: Select all

...
	sendMacro("UseItemByName('Armor Package');");
        player:rest(2);
	sendMacro("UseItemByName('Superior Traveling Robe');");
        player:rest(2);
	loadPaths("Pioneers/4 - Claim your potions");
	</waypoint>
</waypoints>
My problem is in the reward.

1. It opens the package but afterthis it doesnt equip it like it supposed to.
2. The reward is for every class different how can i build in a check?
1. Are you sure the name is right? I thought the mage robe was called "Superior Robe".
2. You may need to try to equip every type of gear. Here is the code I use when leaving Pioneers Village for the first time. You can use it as a reference.

Code: Select all

inventory:update();
inventory:useItem(201704); yrest(1000); -- Open Weapon Gift Bag
inventory:useItem(201705); yrest(1000); -- Open Armor Gift Bag
inventory:useItem(201706); yrest(1000); -- Open Potion Gift Bag
inventory:useItem(203343); yrest(1000); -- Open Supply Kit (Roping quest reward)
inventory:useItem(221536); -- Open Metal Ring (Roping quest reward)
inventory:useItem(221537); yrest(2000); -- Open Metal Ring (Roping quest reward)
inventory:update();
inventory:useItem(210512); -- Arm- Excellent Small Dagger
inventory:useItem(210513); -- Arm- Fine Dagger
inventory:useItem(210514); -- Arm- Fine Stort Staff
inventory:useItem(210515); -- Arm- Fine Wand
inventory:useItem(210516); -- Arm- Fine Long Sword
yrest(2000);
inventory:useItem(221582); -- Wear- Superior Traveling Dress (cloth scout)
inventory:useItem(221583); -- Wear- Superior Coat (cloth rogue)
inventory:useItem(221584); -- Wear- Superior Robe (cloth mage)
inventory:useItem(221585); -- Wear- Superior Traveling Robe (cloth priest)
inventory:useItem(221586); -- Wear- Superior Chaincoat (chain knight)
yrest(2000);
  • 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

randomuser01
Posts: 29
Joined: Mon Jul 19, 2010 7:32 pm

Re: Help need to make questbot

#27 Post by randomuser01 » Thu Aug 05, 2010 11:21 pm

What about doing something like this?

Code: Select all

		repeat queststate = getQuestStatus(questname); yrest(500) until queststate
		if queststate == "complete" then
			--load waypoint file to run back to town
		end
(Stolen from your egg script btw)

I use that script chunk for all my chars for doing dailies, I'd imagine it would work just as well for running normal quests?

xwhizzah
Posts: 17
Joined: Sun Jul 11, 2010 8:50 am

Re: Help need to make questbot

#28 Post by xwhizzah » Fri Aug 06, 2010 3:39 am

Well yeah that would be an option, alltough i dont want to call another waypoint script ;)
I want to use 1 waypointscript for 1 quest :) but thnx for your input :) :geek:

randomuser01
Posts: 29
Joined: Mon Jul 19, 2010 7:32 pm

Re: Help need to make questbot

#29 Post by randomuser01 » Fri Aug 06, 2010 1:51 pm

bloodslain wrote:Well yeah that would be an option, alltough i dont want to call another waypoint script ;)
I want to use 1 waypointscript for 1 quest :) but thnx for your input :) :geek:
Well then instead of the load waypoint code, use a jump to waypoint code like

Code: Select all

repeat queststate = getQuestStatus(questname); yrest(500) until queststate
if queststate == "complete" then
    __WPL:setWaypointIndex( number);
    __WPL:setForcedWaypointType( "RUN");
end

Valleyguy
Posts: 100
Joined: Wed Aug 04, 2010 11:34 pm
Location: Canada

Re: Help need to make questbot

#30 Post by Valleyguy » Sat Aug 07, 2010 12:59 pm

I tested your script modifing it for the fungus daily's but there was something in your fungus path it was not complete I had to add a else statement in your item count check as it didnt seem to care after the check it was auto forcing the waypoints to run... see my code:

Code: Select all

!-- #  5 --><waypoint x="-3855" z="-7980">   </waypoint>
<!-- #  6 --><waypoint x="-3772" z="-7940" tag="funguspath"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- #  7 --><waypoint x="-3819" z="-7819"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- #  8 --><waypoint x="-3947" z="-7815"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- #  9 --><waypoint x="-4032" z="-7835"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- # 10 --><waypoint x="-3874" z="-8026"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end  
	if 10 > inventory:itemTotalCount(201168) then
	__WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath")); end
</waypoint>
Image

Valleyguy
Posts: 100
Joined: Wed Aug 04, 2010 11:34 pm
Location: Canada

Re: Help need to make questbot

#31 Post by Valleyguy » Sat Aug 07, 2010 9:21 pm

Heres a freebie for anyone who takes the time to read this thread i am attaching my fungus daily altered from using your code here just a a play around thing i worked on testing your code. i tried several ways to change the sequence of item check but every time soon as it got to the item check line it immediately turned the waypoints into travel....

e.g. i tried

<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 __WPL:setForcedWaypointType("RUN") end </waypoint> (still turned on travel sooon as it hit this check

and tried

<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); end</waypoint>

again soon as it hit the item check it just went into run mode

so the only way i got it to work correctly was


<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>

problem with this is it gets to the wp kills 1 fungus does the item check turns Travel on then turns it back to Normal and goes to the next wp... with your very small fungus path it took me 4 circuits to get 10 stems :)

I know theres a workaround here that will let the way-points work as always "Normal" until you meet the check i just don't have the scripting power and know the bot well enough yet to get it.

anyway heres the code i wrote for doing the 10 daily stems if anyone wants it i ran it all 10 times on a new character worked well.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints type="NORMAL">
<onLoad> 	settings.profile.mobs = {"Fungus"};
		changeProfileOption("TARGET_LEVELDIF_BELOW", 15);
		changeProfileOption("MAX_TARGET_DIST", 120);
</onLoad>
<!-- #  1 --><waypoint x="-3705" z="-8629">	</waypoint>
<!-- #  2 --><waypoint x="-3717" z="-8540">	</waypoint>
<!-- #  3 --><waypoint x="-3702" z="-8520">	
	repeat queststate = getQuestStatus("Need More Fungus Stems"); yrest(500) until queststate
	if queststate  == "not accepted" then
	player:harvest(110583) yrest(2000)
	sendMacro("OnClick_QuestListButton(1,2);"); yrest(1500);
	sendMacro("AcceptQuest()"); yrest(1500);
	sendMacro("CloseWindows()"); yrest(1500);
	end	
</waypoint>
<!-- #  4 --><waypoint x="-3780" z="-8486">   </waypoint>
<!-- #  5 --><waypoint x="-3855" z="-7980"> __WPL:setForcedWaypointType("NORMAL")  </waypoint>
	<!-- #  6 --><waypoint x="-3717" z="-7984" tag="funguspath"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- #  7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- #  8 --><waypoint x="-3804" z="-7843"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- #  9 --><waypoint x="-3849" z="-7771"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
	<!-- # 10 --><waypoint x="-3886" z="-7711"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 11 --><waypoint x="-3709" z="-7963" tag="questdone">
	if 10 > inventory:itemTotalCount(201168) then
	__WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath")); end
</waypoint>
<!-- # 12 --><waypoint x="-3763" z="-8065">   </waypoint>
<!-- # 13 --><waypoint x="-3819" z="-8400">   </waypoint>
<!-- # 14 --><waypoint x="-3725" z="-8581">   </waypoint>
<!-- # 15 --><waypoint x="-3697" z="-8683">
	player:target_NPC("Leighton");         
	sendMacro("OnClick_QuestListButton(3,1)");   yrest(1500);         
	sendMacro("CompleteQuest()");             yrest(1500);         
	sendMacro("CloseWindows()");             yrest(1500); 
	__WPL:setForcedWaypointType("NORMAL")
</waypoint>
</waypoints>

Modified and made the daily freebie much faster now due to my mistake earlier.
Last edited by Valleyguy on Sun Aug 08, 2010 10:27 am, edited 1 time in total.
Image

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Help need to make questbot

#32 Post by rock5 » Sat Aug 07, 2010 10:34 pm

Valleyguy wrote:Heres a freebie for anyone who takes the time to read this thread i am attaching my fungus daily altered from using your code here just a a play around thing i worked on testing your code. i tried several ways to change the sequence of item check but every time soon as it got to the item check line it immediately turned the waypoints into travel....

e.g. i tried

<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 __WPL:setForcedWaypointType("RUN") end </waypoint> (still turned on travel sooon as it hit this check

and tried

<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); end</waypoint>

again soon as it hit the item check it just went into run mode

so the only way i got it to work correctly was


<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>

problem with this is it gets to the wp kills 1 fungus does the item check turns Travel on then turns it back to Normal and goes to the next wp... with your very small fungus path it took me 4 circuits to get 10 stems :)

I know theres a workaround here that will let the way-points work as always "Normal" until you meet the check i just don't have the scripting power and know the bot well enough yet to get it.

anyway heres the code i wrote for doing the 10 daily stems if anyone wants it i ran it all 10 times on a new character worked well.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints type="NORMAL">
<onLoad> 	settings.profile.mobs = {"Fungus"};
		changeProfileOption("TARGET_LEVELDIF_BELOW", 15);
		changeProfileOption("MAX_TARGET_DIST", 150);
</onLoad>
<!-- #  1 --><waypoint x="-3705" z="-8629">	</waypoint>
<!-- #  2 --><waypoint x="-3717" z="-8540">	</waypoint>
<!-- #  3 --><waypoint x="-3702" z="-8520">	
	repeat queststate = getQuestStatus("Need More Fungus Stems"); yrest(500) until queststate
	if queststate  == "not accepted" then
	player:harvest(110583) yrest(2000)
	sendMacro("OnClick_QuestListButton(1,2);"); yrest(1500);
	sendMacro("AcceptQuest()"); yrest(1500);
	sendMacro("CloseWindows()"); yrest(1500);
	end	
</waypoint>
<!-- #  4 --><waypoint x="-3780" z="-8486">   </waypoint>
<!-- #  5 --><waypoint x="-3855" z="-7980">   </waypoint>
	<!-- #  6 --><waypoint x="-3717" z="-7984" tag="funguspath"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- #  7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- #  8 --><waypoint x="-3804" z="-7843"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- #  9 --><waypoint x="-3849" z="-7771"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 10 --><waypoint x="-3886" z="-7711"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 11 --><waypoint x="-3950" z="-7674"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 12 --><waypoint x="-4015" z="-7690"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 13 --><waypoint x="-4061" z="-7747"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 14 --><waypoint x="-4046" z="-7824"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 15 --><waypoint x="-4032" z="-7897"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 16 --><waypoint x="-3989" z="-7945"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
	<!-- # 17 --><waypoint x="-3930" z="-8004"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- # 18 --><waypoint x="-3874" z="-8026"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end  
	if 10 > inventory:itemTotalCount(201168) then
	__WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath")); end
</waypoint>
<!-- # 19 --><waypoint x="-3709" z="-7963">   </waypoint>
<!-- # 20 --><waypoint x="-3763" z="-8065">   </waypoint>
<!-- # 21 --><waypoint x="-3819" z="-8400">   </waypoint>
<!-- # 22 --><waypoint x="-3725" z="-8581">   </waypoint>
<!-- # 21 --><waypoint x="-3697" z="-8683">
	player:target_NPC("Leighton");         
	sendMacro("OnClick_QuestListButton(3,1)");   yrest(1500);         
	sendMacro("CompleteQuest()");             yrest(1500);         
	sendMacro("CloseWindows()");             yrest(1500);         
</waypoint>
</waypoints>
There is nothing in this code that should make it go into travel mode. I suggest you check the onevents in your profile. Maybe you have some code there that changes the waypoint type.
  • 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

Valleyguy
Posts: 100
Joined: Wed Aug 04, 2010 11:34 pm
Location: Canada

Re: Help need to make questbot

#33 Post by Valleyguy » Sat Aug 07, 2010 11:16 pm

rock5 wrote:There is nothing in this code that should make it go into travel mode. I suggest you check the onevents in your profile. Maybe you have some code there that changes the waypoint type.

Oh Crap i make a newb to test his code and i used the L1-L10 script / profile yes forgive me the code is fine i am a idiot!
Image

xwhizzah
Posts: 17
Joined: Sun Jul 11, 2010 8:50 am

Re: Help need to make questbot

#34 Post by xwhizzah » Tue Aug 10, 2010 3:17 am

hehehe sound farmiliar ;) had the same problem while testing with an character.. but i knew my code should be correct so i was forced to look in my profile instantly :) glad you figured it out yourself ;)

Valleyguy
Posts: 100
Joined: Wed Aug 04, 2010 11:34 pm
Location: Canada

Re: Help need to make questbot

#35 Post by Valleyguy » Tue Aug 10, 2010 4:49 pm

bloodslain wrote:hehehe sound farmiliar ;) had the same problem while testing with an character.. but i knew my code should be correct so i was forced to look in my profile instantly :) glad you figured it out yourself ;)
yea actually i found a way to code past my mistake till i was told about the profile thing lol if i was lvl 9 or lvl 11 the code never would have failed in the first place it was just that one pieces in that profile if lvl == 10 run for town! meh!
Image

wizzyslo
Posts: 119
Joined: Sun Nov 01, 2009 6:09 pm

Re: Help need to make questbot

#36 Post by wizzyslo » Sat Aug 14, 2010 9:48 am

Hi members of forum again i have problem with waypoint. New zone is come out and need to do new waypoints. I'm doing waypoint for dailys quests and have problem with count items.
I tested lot's of things but still he never start waypoint to finish quest.
Anybudy have any idea where did i do mistake.

If you going to test it start it in Rh'anka Village and you can see where is problem.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<!-- #  1 --><waypoint x="2479" z="30762" tag="npc">	</waypoint>
	<!-- #  2 --><waypoint x="2619" z="30735">	</waypoint>
	<!-- #  3 --><waypoint x="2704" z="30791">	</waypoint>
	<!-- #  4 --><waypoint x="2680" z="30862">	</waypoint>
	<!-- #  5 --><waypoint x="2547" z="31017">	</waypoint>
	<!-- #  6 --><waypoint x="2573" z="31306">	</waypoint>
	<!-- #  7 --><waypoint x="2562" z="31517">	</waypoint>
	<!-- #  8 --><waypoint x="2451" z="31776">	</waypoint>
	<!-- #  9 --><waypoint x="2430" z="31970">	</waypoint>

	<!-- #  1 --><waypoint x="2416" z="32007">	</waypoint>
	<!-- #  2 --><waypoint x="2381" z="32005">	</waypoint>
	<!-- #  3 --><waypoint x="2373" z="31973">	
	player:target_NPC("Jaexis Spider skin");
	sendMacro("OnClick_QuestListButton(3,1)");   yrest(1000);
	sendMacro("CompleteQuest();")	 ; yrest(1000);
	player:target_NPC("Jaexis Spider skin");
	sendMacro("OnClick_QuestListButton(1,2)");   yrest(1000);
	sendMacro("AcceptQuest();")	 ; yrest(1000);	
	</waypoint>
	<!-- #  1 --><waypoint x="2412" z="31960">	</waypoint>
	<!-- #  2 --><waypoint x="2566" z="31406">	</waypoint>
	<!-- #  3 --><waypoint x="2547" z="31138">	</waypoint>
	<!-- #  4 --><waypoint x="2550" z="31003">	</waypoint>
	
	
	
	
	<!-- #  1 --><waypoint x="2539" z="30884" tag="items">  
	changeProfileOption("HARVEST_DISTANCE", 50);
	player:target_Object(115605, 5500);	
	if  inventory:itemTotalCount(115605) > 4  then 	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end 
	</waypoint>
	<!-- #  2 --><waypoint x="2598" z="30881">
		changeProfileOption("HARVEST_DISTANCE", 50);
		player:target_Object(115605, 5500);	
	if  inventory:itemTotalCount(115605) > 4  then 	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
	<!-- #  3 --><waypoint x="2641" z="30917"></waypoint>
	<!-- #  4 --><waypoint x="2685" z="30808">
	changeProfileOption("HARVEST_DISTANCE", 50);
	player:target_Object(115605, 5500);	
	if  inventory:itemTotalCount(115605) > 4  then 	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
	<!-- #  5 --><waypoint x="2668" z="30754">	</waypoint>
	<!-- #  6 --><waypoint x="2636" z="30764">
		changeProfileOption("HARVEST_DISTANCE", 50);
	player:target_Object(115605, 5500);	
	if inventory:itemTotalCount(115605)  > 4 then 	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
	<!-- #  7 --><waypoint x="2590" z="30735">	</waypoint>
	<!-- #  8 --><waypoint x="2526" z="30766">
		changeProfileOption("HARVEST_DISTANCE", 50);
	player:target_Object(115605, 5500);	
	if inventory:itemTotalCount(115605)  > 4 then 	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
	<!-- #  9 --><waypoint x="2500" z="30831">
		changeProfileOption("HARVEST_DISTANCE", 50);
	player:target_Object(115605, 5500);	
	if inventory:itemTotalCount(115605) > 4 then 	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); else
	__WPL:setWaypointIndex(__WPL:findWaypointTag("items"));end </waypoint>

	
	

	
</waypoints>

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Help need to make questbot

#37 Post by rock5 » Sun Aug 15, 2010 5:28 am

I don't know what you are collecting but usually the id of the object you click to collect is different to the id of the item in your inventory.

To get the id of the item you click, use "rom/getid.lua".

To get the id of the item in your inventory I would normally say search for it on getbuffed.com but it is a new item so wont be found yet. If you have the addon "Item Preview" you could look it up on that. There are probably other ways too.
  • 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

wizzyslo
Posts: 119
Joined: Sun Nov 01, 2009 6:09 pm

Re: Help need to make questbot

#38 Post by wizzyslo » Sun Aug 15, 2010 2:41 pm

Now works with correct id didn't know that is onother id in backpack to.
It's posible to do same function as changeProfileOption(); but for friends? I'm using lot's of character and easy to forgot add to averybudy that option. Happend to me lot's of times.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Help need to make questbot

#39 Post by rock5 » Sun Aug 15, 2010 9:05 pm

wizzyslo wrote:Now works with correct id didn't know that is onother id in backpack to.
It's posible to do same function as changeProfileOption(); but for friends? I'm using lot's of character and easy to forgot add to averybudy that option. Happend to me lot's of times.
I quite often add the mobs for a particular waypoint file to it's onLoad section like this

Code: Select all

settings.profile.mobs = {"Boar","Bear"};
It should also work with friends. So at the start of your waypoint file, just after the waypoints open tag, you can use

Code: Select all

<onLoad>
     settings.profile.friends = {"friend1","friend2"};
</onLoad>
  • 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

xwhizzah
Posts: 17
Joined: Sun Jul 11, 2010 8:50 am

Re: Help need to make questbot

#40 Post by xwhizzah » Tue Aug 17, 2010 7:43 am

Hey mate,

Back again with some questions. Not about the questing part ( still trying to understand all code :P ) iam now trying to understand the gatheringcode :) everything good so far.. alltough is there a way to read your gathering level. Like: when it turn lvl 20 go to varanas and get the quests for higher lvl etc.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest