Page 5 of 6

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

Posted: Wed Jul 11, 2012 10:32 am
by CoIogne01
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

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

Posted: Wed Jul 11, 2012 11:47 am
by rock5
Did you install the mail userfunction file? Did you put it in the right place?
http://www.solarstrike.net/phpBB3/viewt ... 952#p12952

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

Posted: Wed Jul 11, 2012 12:38 pm
by CoIogne01
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

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

Posted: Wed Jul 11, 2012 3:41 pm
by rock5
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"/>

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

Posted: Mon Aug 27, 2012 6:02 am
by kujo123
example coorditanes 29.0 , 80.0 how can i write this in waypoint thx

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

Posted: Mon Aug 27, 2012 6:22 am
by rock5
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.

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

Posted: Mon Aug 27, 2012 7:08 am
by _hirondelle
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 />

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

Posted: Fri Sep 21, 2012 4:09 am
by volkovy
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)

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

Posted: Fri Sep 21, 2012 5:16 am
by rock5
Try

Code: Select all

changeProfileSkill("MAGE_PURGATORY_FIRE","AutoUse",false)
changeProfileSkill("MAGE_FLAME","AutoUse",true)
Then the reverse after fighting the boss.

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

Posted: Sat Sep 22, 2012 4:52 am
by japanac
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

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

Posted: Sat Sep 22, 2012 5:19 am
by lisa
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

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

Posted: Sat Sep 22, 2012 10:24 pm
by volkovy
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. :(

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

Posted: Sun Sep 23, 2012 1:50 am
by lisa
who loves forum searches?
I love forum searches ..

http://www.solarstrike.net/phpBB3/viewt ... ick#p38786

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

Posted: Sun Sep 23, 2012 4:50 am
by volkovy
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?

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

Posted: Sun Sep 23, 2012 5:55 am
by lisa
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.

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

Posted: Sun Sep 23, 2012 11:52 am
by volkovy
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>"

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

Posted: Sun Sep 23, 2012 6:07 pm
by japanac
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

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

Posted: Mon Sep 24, 2012 12:28 am
by rock5
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.

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

Posted: Mon Jan 27, 2014 4:17 am
by cokebot
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.

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

Posted: Mon Jan 27, 2014 4:21 am
by lisa
funily enough Rock just added something that does this.

http://www.solarstrike.net/phpBB3/viewt ... =30&t=5547