I am new, and got my bot to work, but when I swap classes I get this error when I try to run it.
scripts\rom/bot.lua:147: bad argument #1 to 'lower' <string expected, got no value>
Can you tell me what I set up wrong?
What ingame client language do you use? Did you define the ingame dummy macro and move it to your hotkey?
I suppose you start the bot. And switch the class after starting the bot. Then you select your WP file from the list and get that error? (because you don't move the dummy MACRO to the hotkey).
That is exactly the same error that I have.
scripts\rom/bot.lua:147: bad argument #1 to 'lower' <string expected, got no value>
The bot doesn't work at all, and I've followed everything from the rom bot wikia..
can someone help?
jätkä wrote:That is exactly the same error that I have.
scripts\rom/bot.lua:147: bad argument #1 to 'lower' <string expected, got no value>
The bot doesn't work at all, and I've followed everything from the rom bot wikia..
can someone help?
Same questions to you:
What ingame client language do you use? Did you define the ingame dummy macro and move it to your hotkey? How did you start the bot? What ingame chat messaged do you see from the bot?
What ingame client language do you use? - english
Did you define the ingame dummy macro and move it to your hotkey? - If you're asking if I did the configure, then yes.
How did you start the bot? - rom\bot.lua also tried rom\bot.lua profile:l1-10 and get the error message.
What ingame chat messaged do you see from the bot? - what do you mean?
jätkä wrote:What ingame client language do you use? - english
Did you define the ingame dummy macro and move it to your hotkey? - If you're asking if I did the configure, then yes.
How did you start the bot? - rom\bot.lua also tried rom\bot.lua profile:l1-10 and get the error message.
What ingame chat messaged do you see from the bot? - what do you mean?
As the bot starting time. We check, if the macro function is working (by default hotkey 0) and if you set your empty ingame macro ingame to hotkey 0. If you do that, you normaly see ingame a chat message 'MACRO test: send value 1234 to macro place 2' and 'MACRO Test: ok'. If the test failes the bot should not work. The working macro is important for a working bot. If it not works, the bot as example could not read the client language. But you should not came to that place if the MACRO test failes. So I'm a little confused.
I did a SVN update 378. There we use the fallback language 'english' if we can't read the clients language. But you could expect a lot of more problems, if the MACRO don't work. And that problems could not be ignored.
bot.ClientLanguage = string.lower( RoMScript("GetLanguage();") ); -- read clients language
RoMScript() is returning nil most likely due to a failure in reading the information from macro 2. We should probably fall back on a default value in this case.
DrG: Which language is your game client set to? It has been reported that certain language (such as Spanish) cause problems with using the MACRO system our bot uses.
Moving to return path waypoint #4, (14977, 24703)
We try to find NPC Beck Fost: Beck Fost,
We successfully target NPC Beck Fost and try to open the dialog window.
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
...f Magic/micromacro/scripts/rom/classes/inventory.lua:274: attempt to compare
number with nil
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
UnRegistered wrote:Hello!
I got one small problem with return path, i tryed to put repair after death everything is ok to moment of repair than i got a error...
I don't understand what's your error ... and I don't understand what you want to do ... how you want to do it. Could you describe it more detailed?
You used a very old 'profile' with outdated values. That shouldn't be a problem. But I would recomment to copy again 'default.xml'. Also to have the newest options for shopping available.
Did you edit the 'consumables.xml' manualy. Or perhaps that file is even missing? I would recommend to delete all files/folders in your RoM bot folder (except your own profiles/waypoint files) and do a SVN update to get them again.
Hello
I got the bot to work a couple of days ago after my 3rd try.
Im very grateful for this bot, but I would like to know how to loot specific stuff for example weapons or armor.
When I have autoloot on it picks up trash which are worth nothing, thus im pretty poor =(
If it is possible to pick specific loot would you please let me know?
Thanks in advance! =)
Last edited by jätkä on Wed Oct 28, 2009 10:29 am, edited 1 time in total.