How to: using waypoint files (Examples: DQ running, multi )

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
CoIogne01
Posts: 25
Joined: Sun Oct 09, 2011 9:22 am
Location: Germany

Re: How to: using waypoint files (Examples: DQ running, mul

#81 Post by CoIogne01 » Wed Jul 11, 2012 10:32 am

Hi to all

I learn something new but there are always new problems

I want to send something by post

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<onLoad>
		settings.profile.mobs = {"103983","103984","103997"}
		mailchar = "CharnameXYZ"
	</onLoad>
	<!-- #  1 --><waypoint x="2766" z="30745" y="7" tag="farm">
		if inventory:itemTotalCount("Pukarifell") > 49 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("mail")) end	
   	</waypoint>
	<!-- #  2 --><waypoint x="2664" z="30540" y="6">
		if inventory:itemTotalCount(0) == 0 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("merchant")) end
	</waypoint>
	<!-- #  3 --><waypoint x="2715" z="30311" y="9">	</waypoint>
	<!-- #  4 --><waypoint x="2851" z="30367" y="8">	</waypoint>
	<!-- #  5 --><waypoint x="2941" z="30410" y="8">	</waypoint>
	<!-- #  6 --><waypoint x="2953" z="30274" y="8">	</waypoint>
	<!-- #  7 --><waypoint x="3067" z="30044" y="6">	</waypoint>
	<!-- #  8 --><waypoint x="3203" z="29833" y="5">	 </waypoint>
	<!-- #  9 --><waypoint x="3484" z="29711" y="1">	</waypoint>
	<!-- # 10 --><waypoint x="3463" z="29771" y="-3">	</waypoint>
	<!-- # 11 --><waypoint x="3364" z="29910" y="-3">	</waypoint>
	<!-- # 12 --><waypoint x="3410" z="30063" y="-3">	</waypoint>
	<!-- # 13 --><waypoint x="3557" z="30194" y="0">	</waypoint>
	<!-- # 14 --><waypoint x="3552" z="30371" y="0">	</waypoint>
	<!-- # 15 --><waypoint x="3541" z="30579" y="2">	</waypoint>
	<!-- # 16 --><waypoint x="3361" z="30682" y="7">	</waypoint>
	<!-- # 17 --><waypoint x="3176" z="30592" y="8">	</waypoint>
	<!-- # 18 --><waypoint x="3053" z="30602" y="7">	</waypoint>
	<!-- # 19 --><waypoint x="2984" z="30821" y="10">	</waypoint>
	<!-- # 20 --><waypoint x="2912" z="30847" y="7">
		__WPL:setWaypointIndex(__WPL:findWaypointTag("farm"))	</waypoint>
	<!-- #  1 --><waypoint x="3155" z="30472" y="31" tag="mail">	</waypoint>
	<!-- #  2 --><waypoint x="2901" z="30900" y="30">	</waypoint>
	<!-- #  3 --><waypoint x="2863" z="31048" y="21">	</waypoint>
	<!-- #  4 --><waypoint x="2529" z="31147" y="22">	</waypoint>
	<!-- #  5 --><waypoint x="2628" z="31466" y="22">	</waypoint>
	<!-- #  6 --><waypoint x="2243" z="31780" y="60">	</waypoint>
	<!-- #  7 --><waypoint x="2246" z="31876" y="68">
		player:target_Object("Mailbox",1000) yrest(300);
		sendMacro("ChoiceOption(1);"); yrest(400);
      		UMM_SendByNameOrId("Mailchar",{"Pukarifell"})
		yrest(10000); sendMacro("UseSkill(1,2)"); yrest(10000);
	</waypoint>
	<!-- #  9 --><waypoint x="2260" z="31695" y="37">	</waypoint>
	<!-- # 10 --><waypoint x="2635" z="31488" y="22">	</waypoint>
	<!-- # 11 --><waypoint x="2543" z="31151" y="22">	</waypoint>
	<!-- # 12 --><waypoint x="2881" z="30988" y="19">	</waypoint>
	<!-- # 13 --><waypoint x="3355" z="30757" y="32">
		__WPL:setWaypointIndex(__WPL:findWaypointTag("farm"))	</waypoint>
	<!-- #  1 --><waypoint x="2901" z="30865" y="7" tag="merchant">	</waypoint>
	<!-- #  2 --><waypoint x="2888" z="30990" y="-1">	</waypoint>
	<!-- #  4 --><waypoint x="2796" z="31059" y="-1">	</waypoint>
	<!-- #  5 --><waypoint x="2552" z="31134" y="-1">	</waypoint>
	<!-- #  6 --><waypoint x="2564" z="31213" y="-1">	</waypoint>
	<!-- #  7 --><waypoint x="2592" z="31411" y="-1">	</waypoint>
	<!-- #  9 --><waypoint x="2467" z="31797" y="17">	
		player:merchant("Lualine Fluer");</waypoint>
	<!-- # 16 --><waypoint x="2509" z="31585" y="0">	</waypoint>
	<!-- # 17 --><waypoint x="2573" z="31428" y="2">	</waypoint>
	<!-- # 18 --><waypoint x="2550" z="31167" y="-1">	</waypoint>
	<!-- # 19 --><waypoint x="2586" z="31121" y="-1">
		__WPL:setWaypointIndex(__WPL:findWaypointTag("farm"))	</waypoint>
</waypoints>
I have a picture attached, I hope it works


Thanks for help
Attachments
MM.jpg

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

Re: How to: using waypoint files (Examples: DQ running, mul

#82 Post by rock5 » Wed Jul 11, 2012 11:47 am

Did you install the mail userfunction file? Did you put it in the right place?
http://www.solarstrike.net/phpBB3/viewt ... 952#p12952
  • 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

CoIogne01
Posts: 25
Joined: Sun Oct 09, 2011 9:22 am
Location: Germany

Re: How to: using waypoint files (Examples: DQ running, mul

#83 Post by CoIogne01 » Wed Jul 11, 2012 12:38 pm

THX Rock5

This is the error
I miss almost all user functions
Is there a specific place where I can find them all?
With the search function I have no luck :cry:

Must I have a userfunction to for this code?
because it brings an error.

Code: Select all

	if CountMobs(nil,50) > 3 then
		player:cast("Fegefeuer")                     -- Purgatory Fire --
	end
Many thanks for your quick help

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

Re: How to: using waypoint files (Examples: DQ running, mul

#84 Post by rock5 » Wed Jul 11, 2012 3:41 pm

We have a repository but it's very out of date, you are better off doing a search.

My mail link is.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=1561

And CountMobs isn't needed. When setting up your profile skills you can specify the mob count there, eg.

Code: Select all

		<skill name="MAGE_PURGATORY_FIRE" 		hotkey="MACRO" priority="100" mobcount="3"/>
  • 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

kujo123
Posts: 12
Joined: Mon Aug 27, 2012 3:05 am

Re: How to: using waypoint files (Examples: DQ running, mul

#85 Post by kujo123 » Mon Aug 27, 2012 6:02 am

example coorditanes 29.0 , 80.0 how can i write this in waypoint thx

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

Re: How to: using waypoint files (Examples: DQ running, mul

#86 Post by rock5 » Mon Aug 27, 2012 6:22 am

kujo123 wrote:example coorditanes 29.0 , 80.0 how can i write this in waypoint thx
Not really related to the topic. Please don't be scared to start your own topic.

What do you mean by the question? Normally you use

Code: Select all

rom/createpath
in micromacro to create waypoints. If that doesn't answer your question, please be more specific.
  • 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

_hirondelle
Posts: 72
Joined: Thu Mar 08, 2012 7:22 am

Re: How to: using waypoint files (Examples: DQ running, mul

#87 Post by _hirondelle » Mon Aug 27, 2012 7:08 am

kujo123 wrote:example coorditanes 29.0 , 80.0 how can i write this in waypoint thx
You can't directly but you can use rom\getPos to have x,y,z to put in a <waypoint />

volkovy
Posts: 29
Joined: Thu Dec 29, 2011 1:40 pm

Re: How to: using waypoint files (Examples: DQ running, mul

#88 Post by volkovy » Fri Sep 21, 2012 4:09 am

I request some help, again :)

I'm trying to run Pasper farming, it runs well with a mage, using Purgatory Fire on trash.
However, i want to use only the Flame skill for bossfights (since Purga takes too long time).
What should i add to these lines, if i want to do that?

<!-- # 10 --><waypoint x="3611" z="3237" y="78"> </waypoint>
<!-- # 11 --><waypoint x="3603" z="3523" y="78"> </waypoint>
<!-- # 12 --><waypoint x="3604" z="3679" y="78"> </waypoint>
<!-- # 13 --><waypoint x="3605" z="4038" y="79"> player:rest(2); </waypoint>

(#12 is the boss's position, #11 is the last one before engaging the boss)

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

Re: How to: using waypoint files (Examples: DQ running, mul

#89 Post by rock5 » Fri Sep 21, 2012 5:16 am

Try

Code: Select all

changeProfileSkill("MAGE_PURGATORY_FIRE","AutoUse",false)
changeProfileSkill("MAGE_FLAME","AutoUse",true)
Then the reverse after fighting the boss.
  • 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

japanac
Posts: 16
Joined: Thu Aug 30, 2012 6:54 am

Re: How to: using waypoint files (Examples: DQ running, mul

#90 Post by japanac » Sat Sep 22, 2012 4:52 am

How to make something like this:

If player.name = "mychar1" or "mychar2" or "mychar3"
load_paths("mypath");
end;

player.name ( Name of current char)
mychar1 ,2 ,3 (Name of my chars)

Ty

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How to: using waypoint files (Examples: DQ running, mul

#91 Post by lisa » Sat Sep 22, 2012 5:19 am

If just 1 or 2 char names then yes you can do it that way and it isn't much work

Code: Select all

if player.Name == "char1" or player.Name == "char2" then
loadPaths("mypath")
end
if you are going to be adding more names then using a table is probably a better way to go.

Code: Select all

charnames = {"char1","char2","char3","char4"}

for k,name in pairs(charnames) do
if name == player.Name then
loadPaths("mypath")
end
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

volkovy
Posts: 29
Joined: Thu Dec 29, 2011 1:40 pm

Re: How to: using waypoint files (Examples: DQ running, mul

#92 Post by volkovy » Sat Sep 22, 2012 10:24 pm

rock5 wrote:Try

Code: Select all

changeProfileSkill("MAGE_PURGATORY_FIRE","AutoUse",false)
changeProfileSkill("MAGE_FLAME","AutoUse",true)
Then the reverse after fighting the boss.
you're genius, thank you! 8-)

ehm, i have one more problem..

is there a method to restart the whole cycle when the bot gets stuck?
i mean, instead of logging out after 10 tries, just reload the sellgoods.xml waypoint file (to restart the cycle) or something like that?

many times, i leave my pc on, and when i return, instead on counting the millions, i only see the "character stuck" error message, and a closed ROM. :(

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How to: using waypoint files (Examples: DQ running, mul

#93 Post by lisa » Sun Sep 23, 2012 1:50 am

who loves forum searches?
I love forum searches ..

http://www.solarstrike.net/phpBB3/viewt ... ick#p38786
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

volkovy
Posts: 29
Joined: Thu Dec 29, 2011 1:40 pm

Re: How to: using waypoint files (Examples: DQ running, mul

#94 Post by volkovy » Sun Sep 23, 2012 4:50 am

I searched for "stuck" only :oops:

tyvm lisa, again :mrgreen:

btw, should i just copy this

function unStick3()
if getZoneId() == 6 then
__WPL:setForcedWaypointType("RUN")
else
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
end


onto every waypoint, or is there anything else to do?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How to: using waypoint files (Examples: DQ running, mul

#95 Post by lisa » Sun Sep 23, 2012 5:55 am

that is specific for the WP I was using, it won't do for other WP files.

it is specific for an instance run where you are partied for resets. It also calls a tag once out of the instance
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));

So if you don't have a waypoint with that tag again it won't work.

These things really need to be added specifically for each WP to deal with unsticks as each WP you would want it to do different things.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

volkovy
Posts: 29
Joined: Thu Dec 29, 2011 1:40 pm

Re: How to: using waypoint files (Examples: DQ running, mul

#96 Post by volkovy » Sun Sep 23, 2012 11:52 am

so there isnt an easy method to do this?

since the bot already knows that the player is stuck (counts to 10, then logs off), it could be set to load a new path instead of logging out..
im thinking of something like:

" if player:stuck == 1 then player:rest(3); sendMacro("LeaveParty();"); waitForLoadingScreen(); loadPaths("sellgoods"); end </waypoint>"

japanac
Posts: 16
Joined: Thu Aug 30, 2012 6:54 am

Re: How to: using waypoint files (Examples: DQ running, mul

#97 Post by japanac » Sun Sep 23, 2012 6:07 pm

Ty lisa for answer that help me 2 much.
I have one more question.
This is messige in mm window: Waypoint #6 is closer then #1. Hence we start with waypoint #6.
Is there some command i can put after or before waypoint to make sure bot will come to waypoint 1 and not start waypoint #6 ? Or maybe i need somehow turn off automatic check?
TY

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

Re: How to: using waypoint files (Examples: DQ running, mul

#98 Post by rock5 » Mon Sep 24, 2012 12:28 am

Basically what you want it to do is, when it loads the file you want it to start at waypoint 1. So you can put

Code: Select all

__WPL:setWaypointIndex(1)
in the onload section of the waypoint file. If you don't have an onload section yet, it looks like this

Code: Select all

<onload>
    __WPL:setWaypointIndex(1)
</onload>
It goes just after the first line and before the first waypoint.
  • 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

cokebot
Posts: 54
Joined: Wed Oct 19, 2011 7:47 am

Re: How to: using waypoint files (Examples: DQ running, mul

#99 Post by cokebot » Mon Jan 27, 2014 4:17 am

is it possible to reload the actual waypoint file not knowing which it is, or to check which waypoint file is loaded.
like a reset when get stuck.
I'm wondering if there is an universally command that i can use in my profile for every waypoint.
Last edited by cokebot on Mon Jan 27, 2014 4:25 am, edited 1 time in total.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How to: using waypoint files (Examples: DQ running, mul

#100 Post by lisa » Mon Jan 27, 2014 4:21 am

funily enough Rock just added something that does this.

http://www.solarstrike.net/phpBB3/viewt ... =30&t=5547
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests