Page 2 of 2
Re: (daily quest) "Daily_count()"
Posted: Fri Nov 19, 2010 8:33 am
by rock5
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
Re: (daily quest) "Daily_count()"
Posted: Fri Nov 19, 2010 7:22 pm
by Starrider
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 auszufhren beim Wegpunkt #1. Bitte prfen Sie den Lua Code an diesem Wegepunkt.
Fri Nov 19 17:15:12 2010 : Execution error: Runtime error
Re: (daily quest) "Daily_count()"
Posted: Sat Nov 20, 2010 1:24 am
by rock5
It's easier for me to just create a waypoint file for you.
Here it is.
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.
Re: (daily quest) "Daily_count()"
Posted: Sat Nov 20, 2010 4:07 am
by barbarossa
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
Re: (daily quest) "Daily_count()"
Posted: Sat Nov 20, 2010 4:48 am
by rock5
Sounds like a language issue. I can't really help with that.
Re: (daily quest) "Daily_count()"
Posted: Sat Nov 20, 2010 8:27 am
by jduartedj
rock5 wrote:Sounds like a language issue. I can't really help with that.
LOL you must recruit an EN/GE expert!
Re: (daily quest) "Daily_count()"
Posted: Sat Nov 20, 2010 10:11 am
by rock5
jduartedj wrote:
LOL you must recruit an EN/GE expert!
Administrator is good with the language stuff.
Re: (daily quest) "Daily_count()"
Posted: Sat Nov 20, 2010 12:57 pm
by barbarossa
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
Re: (daily quest) "Daily_count()"
Posted: Sat Nov 20, 2010 2:30 pm
by jduartedj
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)
Re: (daily quest) "Daily_count()"
Posted: Sun Nov 21, 2010 6:57 am
by Starrider
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
, 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>
Re: (daily quest) "Daily_count()"
Posted: Sun Nov 21, 2010 9:38 am
by rock5
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.
You just need to delete the first point1 tag.
Hopefully this will work.