qcalex wrote:sorry stil en progresse but it is simple as abc all the info to change it to cow insted of chiken is in the topics.
and btw in nub in codding so if i could make it so you you just need motivation
Ok, I'll try my best.
I don't have the coordinates of herbs, cows etc. Could you give these at least? Furthermore, I don't need to check for missed eggs, so can I skip this part of the script?
instead of running the bot, if you just want to get the x/y position, in bot window do CTR+L then put your char at the place you want then do rom/getpos.lua
here is my start script (still need to complete it but could help you by replacing the **** by the pos youve collected)
**deleted ive got a new ver***
P.S: my script is base on ROCK5 eggs script credit to him
Last edited by qcalex on Sat Jul 10, 2010 12:36 am, edited 2 times in total.
Big thanx qcalex, I've completed your script with coordinates, but it seems to be a problem accepting the quest in cause of the questname. I'm playing the german version and the name of this quest is "Süße Milch" - micromacro seems not to accepting special characters such like "ß" and "ü".
Any germans here, those who know how to solve this problem?
qcalex wrote:sorry stil en progresse but it is simple as abc all the info to change it to cow insted of chiken is in the topics.
and btw in nub in codding so if i could make it so you you just need motivation
Ok, I'll try my best.
I don't have the coordinates of herbs, cows etc. Could you give these at least? Furthermore, I don't need to check for missed eggs, so can I skip this part of the script?
Maybe you could use 'rom/getpos.lua' to get the new positions?
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.
à : \195\160 è : \195\168 ì : \195\172 ò : \195\178 ù : \195\185
á : \195\161 é : \195\169 í : \195\173 ó : \195\179 ú : \195\186
â : \195\162 ê : \195\170 î : \195\174 ô : \195\180 û : \195\187
ã : \195\163 ë : \195\171 ï : \195\175 õ : \195\181 ü : \195\188
ä : \195\164 ñ : \195\177 ö : \195\182
æ : \195\166 ø : \195\184
ç : \195\167 ? : \197\147
Ä : \195\132
Ö : \195\150
Ü : \195\156
ß : \195\159
and a new script (credit to Reiko, Rock5 and me) Change **** for your pos, ***Grass name*** for the in bag grass name and ***Quest name*** for your quest name.
*Script still in testing*
i have problems wih the file from rock5 in some cases the bot doesnt collegt golden eggs.
How to fix this? maybe add a loop for checking if all eggs collegted?
Starrider wrote:i have problems wih the file from rock5 in some cases the bot doesnt collegt golden eggs.
How to fix this? maybe add a loop for checking if all eggs collegted?
The way my script works is, it should collect the fresh eggs after every hen. When the hens are gone it collects any fresh eggs it missed then collects the gold eggs last.
If it still misses one, it doesn't matter as it will pick it up the next time it comes around.
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.
Starrider wrote:i have problems wih the file from rock5 in some cases the bot doesnt collegt golden eggs.
How to fix this? maybe add a loop for checking if all eggs collegted?
Rock's script is perfect - even collect some eggs twice, although it was one laid!!
My problem is, from time to time (may after 5 min - 1h running) the script cancel himself with this errror message: "[string "..."]:13: attempt to compare nil with number"
Starrider wrote:i have problems wih the file from rock5 in some cases the bot doesnt collegt golden eggs.
How to fix this? maybe add a loop for checking if all eggs collegted?
Rock's script is perfect - even collect some eggs twice, although it was one laid!!
My problem is, from time to time (may after 5 min - 1h running) the script cancel himself with this errror message: "[string "..."]:13: attempt to compare nil with number"
What's that supposed to mean?
That's not a problem with my script. It is a known issue of rombot that RoMScript sometimes returns nil when it shouldn't. It's hard to fix because sometimes RoMScript is supposed to return nil.
Edit: Actually you can check for nil value by replacing line 3 with;
while player:target_Object(112958,1700) do
sendMacro("UseSkill(1,1)") yrest(40)
sendMacro("UseSkill(1,1)") yrest(40)
sendMacro("UseSkill(1,1)") yrest(4000)
end
end
while player:target_Object(112958,1700) do -- Check for any missed eggs
sendMacro("UseSkill(1,1)") yrest(40)
sendMacro("UseSkill(1,1)") yrest(40)
sendMacro("UseSkill(1,1)") yrest(3000)
end
while player:target_Object(114931,1700) do
sendMacro("UseSkill(1,1)") yrest(40)
sendMacro("UseSkill(1,1)") yrest(40)
sendMacro("UseSkill(1,1)") yrest(3000)
end
changeProfileOption("HARVEST_DISTANCE", 75)
</waypoint>
qcalex wrote:for the "don't pickup twice" replace the value:1800 by 1700 work better as Rock5 said
Yes definitely, but I've done some more tweaking. Actually why don't I just attach my updated version.
Changes:
- Should work in any language.
- Removed 2nd while loop when collecting eggs as it was obsolete.
- Improved the timing of egg collection.
- Added 'nil' value checks so you shouldn't get any "compared with nil" errors.
and have you take a look on our milk script? to get it improuved? because reiko found a way to improuve it but we cant touch any "CTR", "ALT" key or the bot crash.
qcalex wrote:and have you take a look on our milk script? to get it improuved? because reiko found a way to improuve it but we cant touch any "CTR", "ALT" key or the bot crash.
Sure I'll have a look at your milk script. Where is it?
I don't know about "ALT" but there is a known issue with "CTRL". If you are using your pc for something else and you press ctrl while the bot is pressing 's' then it will open chat edit which will end communication for the bot so it crashes.
Administrator says "Disable CTRL+S hotkey in-game. It's used to open up the Say chat.".
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.
just a few post above us its in the code line ill make a download one
EDIT: change the **** for the quest name (exept if u use the new method)
and check if i put the right name for the grass (sorry my script is in french )
Last edited by qcalex on Sun Jul 18, 2010 9:13 am, edited 1 time in total.
qcalex wrote:just a few post above us its in the code line ill make a download one
EDIT: change the **** for the quest name (exept if u use the new method)
and check if i put the right name for the grass (sorry my script is in french )
Here's my version. I changed it quite a lot.
One think I noticed is, because of the double click target_Objects does, it couldn't target the goats. So I removed the double click from the function. So you will probably have to update to revision 472 for this to work.