WP question by Pmaia

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

WP question by Pmaia

#1 Post by lisa » Sun Jul 17, 2011 8:46 pm

well i know its supost to dont post here but this threat is the more closer i find to discuss my problem
so the problem is this
i have a waypoint file form fireboot lvl 66

and i want it to kill kill kill and wen get full goes to npc and sell

i already make a code waypoint and works algost good
the problem is example i have 16 waypoins and more 5 distinct waypoints to go npc and to come to npc
my problem is wen he finish the 16 waypoints it allways goes to npc for sell and repair
so its waste of time couse it only have 10 ekips to sell in each round

i will post my code here to some one who find any error or any missing code help me to understand

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-11525" z="42801" y="687"> </waypoint>
<!-- # 2 --><waypoint x="-11351" z="42900" y="693"> </waypoint>
<!-- # 3 --><waypoint x="-11228" z="43156" y="640"> </waypoint>
<!-- # 4 --><waypoint x="-11445" z="43094" y="678"> </waypoint>
<!-- # 5 --><waypoint x="-11653" z="43080" y="691"> </waypoint>
<!-- # 6 --><waypoint x="-11838" z="43039" y="704"> </waypoint>
<!-- # 7 --><waypoint x="-12095" z="42953" y="700"> </waypoint>
<!-- # 8 --><waypoint x="-12274" z="42815" y="703"> </waypoint>
<!-- # 9 --><waypoint x="-12150" z="42661" y="702"> </waypoint>
<!-- # 10 --><waypoint x="-11859" z="42598" y="691"> </waypoint>
<!-- # 11 --><waypoint x="-11675" z="42650" y="690"> </waypoint>
<!-- # 12 --><waypoint x="-11406" z="42471" y="698"> </waypoint>
<!-- # 13 --><waypoint x="-11291" z="42388" y="710"> </waypoint>
<!-- # 14 --><waypoint x="-11375" z="42582" y="703"> </waypoint>
<!-- # 15 --><waypoint x="-11363" z="42802" y="694"> </waypoint>
<!-- # 16 --><waypoint x="-11493" z="42903" y="686"> 
if inventory:itemTotalCount(0) == 0 then
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));

end


end
</waypoint>
<!-- # 1 --><waypoint x="-11529" z="42818" type="RUN" tag="rerun"> </waypoint>
<!-- # 2 --><waypoint x="-11517" z="42442" type="RUN">> </waypoint>
<!-- # 3 --><waypoint x="-11894" z="42228" type="RUN">> </waypoint>
<!-- # 4 --><waypoint x="-11742" z="41982" type="RUN">> </waypoint>
<!-- # 5 --><waypoint x="-11630" z="42004" y="819">
player:merchant("Nidus Linnu");
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("back"));
</waypoint>
<!-- # 1--><waypoint x="-11779" z="42000" type="RUN" tag="back"> </waypoint>
<!-- # 2--><waypoint x="-11884" z="42242" type="RUN">> </waypoint>
<!-- # 3--><waypoint x="-11790" z="42339" type="RUN">> </waypoint>
<!-- # 4--><waypoint x="-11797" z="42521" type="RUN">> </waypoint>
<!-- # 5--><waypoint x="-11704" z="42769" type="RUN">> </waypoint>
<!-- # 6--><waypoint x="-11533" z="42832" type="RUN">> </waypoint>
player:update()
</waypoints>
This is waypoints to farm pangos in fireboot
thanks for anyone who can help
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

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

Re: WP question by Pmaia

#2 Post by lisa » Sun Jul 17, 2011 9:00 pm

Ok first thing to know, the bot will just read coords from top to bottom of file unless told otherwise, regardless of the numbers
<!-- # 1 -->

So by having

Code: Select all

<!-- # 5 --><waypoint x="-11630" z="42004" y="819">
player:merchant("Nidus Linnu");
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("back"));
</waypoint>
<!-- # 1--><waypoint x="-11779" z="42000" type="RUN" tag="back"> </waypoint>
You are telling it to use the next waypoint, which it would do normally anyway without the findwaypointtag.

Also you have some double >> in your code, more then likely from copy pasting in the type="RUN"

Ok so to your problem, if I understand you correctly you want to do these coords until your bag is full.

Code: Select all

<!-- # 1 --><waypoint x="-11525" z="42801" y="687"> </waypoint>
<!-- # 2 --><waypoint x="-11351" z="42900" y="693"> </waypoint>
<!-- # 3 --><waypoint x="-11228" z="43156" y="640"> </waypoint>
<!-- # 4 --><waypoint x="-11445" z="43094" y="678"> </waypoint>
<!-- # 5 --><waypoint x="-11653" z="43080" y="691"> </waypoint>
<!-- # 6 --><waypoint x="-11838" z="43039" y="704"> </waypoint>
<!-- # 7 --><waypoint x="-12095" z="42953" y="700"> </waypoint>
<!-- # 8 --><waypoint x="-12274" z="42815" y="703"> </waypoint>
<!-- # 9 --><waypoint x="-12150" z="42661" y="702"> </waypoint>
<!-- # 10 --><waypoint x="-11859" z="42598" y="691"> </waypoint>
<!-- # 11 --><waypoint x="-11675" z="42650" y="690"> </waypoint>
<!-- # 12 --><waypoint x="-11406" z="42471" y="698"> </waypoint>
<!-- # 13 --><waypoint x="-11291" z="42388" y="710"> </waypoint>
<!-- # 14 --><waypoint x="-11375" z="42582" y="703"> </waypoint>
<!-- # 15 --><waypoint x="-11363" z="42802" y="694"> </waypoint>
So you want to tell the bot to go back to the start of those coords if your not full. In order to tell it to go to the first coord it will need a tag

Code: Select all

<!-- # 1 --><waypoint x="-11525" z="42801" y="687" tag="farm"> </waypoint>
and then in the last waypoint of the section do a check if not full.

Code: Select all

if inventory:itemTotalCount(0) ~= 0 then
and if not full then send it back to the start to farm some more.

Code: Select all

__WPL:setWaypointIndex(__WPL:findWaypointTag("farm"));
So all together it will look like this

Code: Select all

<!-- # 1 --><waypoint x="-11525" z="42801" y="687" tag="farm"> </waypoint>
<!-- # 2 --><waypoint x="-11351" z="42900" y="693"> </waypoint>
<!-- # 3 --><waypoint x="-11228" z="43156" y="640"> </waypoint>
<!-- # 4 --><waypoint x="-11445" z="43094" y="678"> </waypoint>
<!-- # 5 --><waypoint x="-11653" z="43080" y="691"> </waypoint>
<!-- # 6 --><waypoint x="-11838" z="43039" y="704"> </waypoint>
<!-- # 7 --><waypoint x="-12095" z="42953" y="700"> </waypoint>
<!-- # 8 --><waypoint x="-12274" z="42815" y="703"> </waypoint>
<!-- # 9 --><waypoint x="-12150" z="42661" y="702"> </waypoint>
<!-- # 10 --><waypoint x="-11859" z="42598" y="691"> </waypoint>
<!-- # 11 --><waypoint x="-11675" z="42650" y="690"> </waypoint>
<!-- # 12 --><waypoint x="-11406" z="42471" y="698"> </waypoint>
<!-- # 13 --><waypoint x="-11291" z="42388" y="710"> </waypoint>
<!-- # 14 --><waypoint x="-11375" z="42582" y="703"> </waypoint>
<!-- # 15 --><waypoint x="-11363" z="42802" y="694"> </waypoint>
<!-- # 16 --><waypoint x="-11493" z="42903" y="686"> 
if inventory:itemTotalCount(0) ~= 0 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("farm"));
end
</waypoint>
So when it gets to this point and the bags are full it will just go to the next waypoint and continue on.
so you can just do

Code: Select all

<!-- # 17 --><waypoint x="-11529" z="42818" type="RUN"> </waypoint>
<!-- # 18 --><waypoint x="-11517" z="42442" type="RUN"> </waypoint>
<!-- # 19 --><waypoint x="-11894" z="42228" type="RUN"> </waypoint>
<!-- # 20 --><waypoint x="-11742" z="41982" type="RUN"> </waypoint>
<!-- # 21 --><waypoint x="-11630" z="42004" y="819">
player:merchant("Nidus Linnu");
</waypoint>
<!-- # 22--><waypoint x="-11779" z="42000" type="RUN"> </waypoint>
<!-- # 23--><waypoint x="-11884" z="42242" type="RUN"> </waypoint>
<!-- # 24--><waypoint x="-11790" z="42339" type="RUN"> </waypoint>
<!-- # 25--><waypoint x="-11797" z="42521" type="RUN"> </waypoint>
<!-- # 26--><waypoint x="-11704" z="42769" type="RUN"> </waypoint>
<!-- # 27--><waypoint x="-11533" z="42832" type="RUN"> </waypoint>
I hope that this explains how to use findWaypointTag
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

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: WP question by Pmaia

#3 Post by MiesterMan » Sun Jul 17, 2011 10:44 pm

I've got a question. What is:

Code: Select all

inventory:itemTotalCount(0)
I mean, what's that supposed to return?

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

Re: WP question by Pmaia

#4 Post by lisa » Sun Jul 17, 2011 11:41 pm

Code: Select all

inventory:itemTotalCount()
is a function to return a count of item from entire inventory bag space, so not just 1 stack but all stacks of an item.
The usage of 0 was added in to check for empty slots, so

Code: Select all

inventory:itemTotalCount(0)
checks how many empty slots are in your bags.
where as

Code: Select all

inventory:itemTotalCount("Fusion Stone")
will tell uou how many Fusion Stones you have.
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

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: WP question by Pmaia

#5 Post by MiesterMan » Mon Jul 18, 2011 7:23 am

Lol, good to know. I wrote my own UF for that! I'll start using this instead.

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: WP question by Pmaia

#6 Post by Pmaia » Mon Jul 18, 2011 1:39 pm

tnks lisa
i will try to correct the code
i already tryed tag the 1st waypoint
but i get an error at micromacro from line2
so the 2line of waypoint have some error related with the tag.
but i will try to fiz it
after i try to use
if ....then
else if.... then but i gess that code doesnot work
i have ks farmig too working good but dont know wy i think he dont count the items on my bag
i changed the itemcount to 10 and even wen i only have 2 slots left it continues to farm ks unitl gets the waypoint i want it to leave so dont know if the item countdown are working on tath code form

another question
i c on youtube a video from a boter in obsidian and i c it moving right just a player
my ask is this
wen we make waypoins and wen we loaded on the micromacro the player start at waypoint 1 and wen it moves to waypoint 2 it just have few seconds delay
couse its facing and turn to the next waypoint many times it makes a full circle searshing for the waypoint
theres no way to we minimyze that mini delay from the bot?
i hope u understatnd wat im saying

and sry about posting this problem at ks farming threat im rly sory
tnks anyway will try the new code again

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: WP question by Pmaia

#7 Post by Pmaia » Mon Jul 18, 2011 2:01 pm

ok lisa your code its working at least the part of stay kiling until bag gets full
but dont know wy i got a litle problem wen i fin a cannot see target mob
at my profile i have 5 second to atack and after that it normaly change to the closer waypoint and continues but now with this code i get connot see target infinite times

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

Re: WP question by Pmaia

#8 Post by lisa » Mon Jul 18, 2011 7:39 pm

Pmaia wrote:connot see target infinite times
Canot see target is an issue with the actual game and you can't really fix it with the bot.

Maybe try
farming different mobs or
alter you waypoint coords or
reduce your combat distance so you get closer to it
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

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

Re: WP question by Pmaia

#9 Post by rock5 » Mon Jul 18, 2011 8:31 pm

Pmaia wrote:it makes a full circle searshing for the waypoint
This sounds like you have a delay talking with your server. Try adding the following to the "options" section of your profile. That's anywhere between "<options>" and "</options>".

Code: Select all

		<option name="WP_NO_STOP" value="false" />
This will cause it to pause for a moment at each waypoint instead of running through it and running back to find it again.
  • 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

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: WP question by Pmaia

#10 Post by Pmaia » Tue Jul 19, 2011 2:45 am

i will try later that code now server is on maintenance:X
another quest about i already read it but dont understand
wats the diference for wayponts to wander?

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: WP question by Pmaia

#11 Post by Pmaia » Wed Jul 20, 2011 4:50 pm

its all working good atm thanks to all

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 0 guests