...esktop/micromacro_475/scripts/rom/classes/player.lua:1088: Error in your profile: onLeaveCombat error: ...esktop/micromacro_475/scripts/rom/classes/player.lua:2779: bad argument #2 to 'find' (string expected, got table)
...esktop/micromacro_475/scripts/rom/classes/player.lua:1088: Error in your profile: onLeaveCombat error: ...esktop/micromacro_475/scripts/rom/classes/player.lua:2779: bad argument #2 to 'find' (string expected, got table)
My svnversion is 475
Rock, help me!
Your version doesn't supports tables in the findNearestNameOrId function. Delete these lines near the top of the catchcavy userfunction,
catchCavy() -- Will catch only Golden Magic Cavy in any client language.
catchCavy("Cavy") -- In English will catch both Golden Magic Cavy and Magic Cavy.
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.
function CavyDetect(_cavy)
_cavy = _cavy or 103566 or 103567
local cavy = player:findNearestNameOrId(_cavy)
if cavy then cprintf(cli.yellow,"\a\aMagic Cavy detected...\n") end
end
but nothing happen when a Cavy spawn
So, Do you think r475 has some problem with 'findNearestNameOrId' function?
Yes, looks like there was a target "type" limitation that was removed in 477. 477 comments actually say "Can now target Cavys" so I'd say try 477. There are only 2 minor changes between 475 and 477 so it should work.
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.
rock5 wrote:Yes, looks like there was a target "type" limitation that was removed in 477. 477 comments actually say "Can now target Cavys" so I'd say try 477. There are only 2 minor changes between 475 and 477 so it should work.
Oh god, it works like a charm !
You're really rock, rock
harbifm wrote:can you explain vitales how you made it work with 477 step by step? (begin with creating userfucntion.lua)
The issues and problems you are having and will continue to have are very specific to the server/revision you are using. Please post your requests and such in this topic created especially for your server. http://www.solarstrike.net/phpBB3/viewt ... =30&t=2538
I would rather not see the forum filled up with questions and problems that only a small % of the users will actually encounter, if we keep the issues in one place then it will help you all out that use the same server/revision.
Remember no matter you do in life to always have a little fun while you are at it
I quickly skimmed the 5 pages of posts but I didn't see anything about a check for bag space BEFORE using the function. I guess that my bags were full when the golden cavies spawned, bot used a trap, but no egg in bag since bags full. There were 3 traps/eggs unaccounted for in my bags last night.
9:38am - C:/micromacro/scripts/rom/classes/player.lua:1423: Error in your profile: onLeaveCombat error: [string "..."]:3: attempt to call global 'catchCavy' (anil value)