(daily quest) "Daily_count()"

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: (daily quest) "Daily_count()"

#21 Post by rock5 » Fri Nov 19, 2010 8:33 am

Starrider wrote:Do I need to change this code

Code: Select all

while 10 > inventory:itemTotalCount(206756) and player:target_Object(114470,,,false) do
end
, because if I use this i got every time a waypoint#1 compilation error.
That would be the bette code because it will only collect wood while you have less than 10 and if the wood runs out it will move to the next pile.

I think the mistake I did is functions can't have no value when using multiple arguments. Try this instead.

Code: Select all

while 10 > inventory:itemTotalCount(206756) and player:target_Object(114470,null,null,false) do
end
  • 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

Starrider
Posts: 164
Joined: Sat May 01, 2010 7:04 am
Location: Germany

Re: (daily quest) "Daily_count()"

#22 Post by Starrider » Fri Nov 19, 2010 7:22 pm

rock5 wrote: I think the mistake I did is functions can't have no value when using multiple arguments. Try this instead.

Code: Select all

while 10 > inventory:itemTotalCount(206756) and player:target_Object(114470,null,null,false) do
end
with this code the bot runs from WP 2 where the wood is back to WP 1 when there is no more wood.
I tried several kinds of codes with queststat check, but get here compilation error again.

Code: Select all

repeat queststate = getQuestStatus("Sammelt verstreutes Holz"); yrest(500) until queststate
      if queststate == "complete" then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
      else
         player:target_Object(114470,null,null,false)
         repeat queststate = getQuestStatus(questname); yrest(500) until queststate
         if queststate == "complete" then
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
         else
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Holz"))
         end
Fri Nov 19 17:15:12 2010 : scripts\rom/bot.lua:679: Fehler beim Kompilieren und Lua Code auszufhren beim Wegpunkt #1. Bitte prfen Sie den Lua Code an diesem Wegepunkt.
Fri Nov 19 17:15:12 2010 : Execution error: Runtime error

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

Re: (daily quest) "Daily_count()"

#23 Post by rock5 » Sat Nov 20, 2010 1:24 am

It's easier for me to just create a waypoint file for you.

Here it is.
DailyWoods.xml
(2.91 KiB) Downloaded 242 times
There is a strange bug that causes it to get stuck collecting if it collects 11 woods so I had to add a pause before collecting the 10th to make sure it's the 10th and not the 11th.

Should work in any language.
  • 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

barbarossa
Posts: 46
Joined: Sat Jan 24, 2009 3:34 pm

Re: (daily quest) "Daily_count()"

#24 Post by barbarossa » Sat Nov 20, 2010 4:07 am

rock5 wrote:It's easier for me to just create a waypoint file for you.

Here it is.
DailyWoods.xml
There is a strange bug that causes it to get stuck collecting if it collects 11 woods so I had to add a pause before collecting the 10th to make sure it's the 10th and not the 11th.

Should work in any language.
iam sory to say that rock

also i test your script but her i got the same problem like in my try
her look

Code: Select all

Sie haben ausgewählt: 27
Die Option 'HARVEST_DISTANCE' wurde von '120' auf '50' geändert.
Wegpunktpfad DailyWoods.xml geladen.
Es wurde keine Rückkehrpfaddatei mit dem Defaultnamen DailyWoods_return.xml gefu
nden.
Wir benutzen nun die normale Wegepunktdatei DailyWoods.xml.
Lösche Ziel.
Wir gehen zum Wegpunkt #1, (-2011, 4875)
Wir gehen zum Wegpunkt #2, (-1836, 4865)
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Table not found for ID: 206756
Wrong value returned in update of item id: 206756
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Lösche Ziel.
Wir gehen zum Wegpunkt #3, (-1720, 4956)
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Lösche Ziel.
Wir gehen zum Wegpunkt #4, (-1833, 4981)
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Lösche Ziel.
Wir gehen zum Wegpunkt #5, (-1802, 5016)
Wir gehen zum Wegpunkt #6, (-1725, 5070)
Wir gehen zum Wegpunkt #7, (-1670, 5123)
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Lösche Ziel.
Wir gehen zum Wegpunkt #8, (-1701, 5196)
Lösche Ziel.
Versuche Spieler frei zu bekommen ... an Position -1722,5222. Versuch #1 von max
imal 10 Versuchen.
Wir gehen zum Wegpunkt #8, (-1701, 5196)
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Lösche Ziel.
Wir gehen zum Wegpunkt #9, (-1742, 5159)
Wir gehen zum Wegpunkt #10, (-1906, 5111)
Wir haben Verstreutes Holz gefunden und werden es abbauen.
Lösche Ziel.
Wir gehen zum Wegpunkt #11, (-1917, 5217)
Wir gehen zum Wegpunkt #12, (-2024, 5289)
Wir gehen zum Wegpunkt #16, (-2050, 5087)
Wir gehen zum Wegpunkt #1, (-2011, 4875)
Wir versuchen den NPC Kräuter-George zu finden:
Wir können den NPC Kr├ñuter-George nicht finden!
Wir versuchen den NPC Kräuter-George zu finden:
Wir können den NPC Kr├ñuter-George nicht finden!
Wir gehen zum Wegpunkt #2, (-1836, 4865)
Lösche Ziel.
Versuche Spieler frei zu bekommen ... an Position -2010,4851. Versuch #1 von max
imal 10 Versuchen.
Wir gehen zum Wegpunkt #2, (-1836, 4865)
Wir gehen zum Wegpunkt #1, (-2011, 4875)
he is collecting well but at last not find npc to complite quest

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

Re: (daily quest) "Daily_count()"

#25 Post by rock5 » Sat Nov 20, 2010 4:48 am

Sounds like a language issue. I can't really help with that.
  • 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

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: (daily quest) "Daily_count()"

#26 Post by jduartedj » Sat Nov 20, 2010 8:27 am

rock5 wrote:Sounds like a language issue. I can't really help with that.
LOL you must recruit an EN/GE expert!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

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

Re: (daily quest) "Daily_count()"

#27 Post by rock5 » Sat Nov 20, 2010 10:11 am

jduartedj wrote: LOL you must recruit an EN/GE expert!
Administrator is good with the language stuff.
  • 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

barbarossa
Posts: 46
Joined: Sat Jan 24, 2009 3:34 pm

Re: (daily quest) "Daily_count()"

#28 Post by barbarossa » Sat Nov 20, 2010 12:57 pm

is there an option switch or somethik where i can set lang in bot ?
or is the bot allways take the installed system lang?

the problem is whit üäö the en lang not have

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: (daily quest) "Daily_count()"

#29 Post by jduartedj » Sat Nov 20, 2010 2:30 pm

markusbab wrote:is there an option switch or somethik where i can set lang in bot ?
or is the bot allways take the installed system lang?

the problem is whit üäö the en lang not have
use umlat codes see the wiki link (under in signature)
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Starrider
Posts: 164
Joined: Sat May 01, 2010 7:04 am
Location: Germany

Re: (daily quest) "Daily_count()"

#30 Post by Starrider » Sun Nov 21, 2010 6:57 am

Thanks rock, i can't test the npc issiue fowards, because by but, after collecting 10 woods loops now between Waypoints no. 5 - 7.

you can use npc ID instead of the npc's name

Code: Select all

player:target_NPC(114418)
, works fine in my old script also there I had Waypoint No. 1 at x="-2012" z="4861" mybe its a distance problem?

Edit: at George i had the same language problem at my german client, with the ID it works fine.

But still the loop problem between waypoint 5-7.

Edit2: i deleted the first wp's #13 and #12, seems to be double. Or does they have another sense there?

Code: Select all

<!-- #  3 --><waypoint x="-1720" z="4956">
		CollectWood()
		IfEnoughGoto("npc")
	</waypoint>
	<!-- # 13 --><waypoint x="-1833" z="4981">
		CollectWood()
		IfEnoughGoto("npc")
	</waypoint>
	<!-- # 12 --><waypoint x="-1802" z="5016" tag="point1">	</waypoint>
	<!-- #  4 --><waypoint x="-1725" z="5070">	</waypoint>
	<!-- #  5 --><waypoint x="-1670" z="5123">
		CollectWood()
		IfEnoughGoto("point1")
	</waypoint>

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

Re: (daily quest) "Daily_count()"

#31 Post by rock5 » Sun Nov 21, 2010 9:38 am

Starrider wrote:But still the loop problem between waypoint 5-7.

Edit2: i deleted the first wp's #13 and #12, seems to be double. Or does they have another sense there?
Sorry I duplicated a few points so it would be more thorough but I forgot about the tags. :oops:

You just need to delete the first point1 tag.

Hopefully this will work.
Attachments
DailyWoods.xml
(2.92 KiB) Downloaded 274 times
  • 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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests