harvest & co
Re: harvest & co
I can't read that message, cause that's not english
but my guess is, that some code in your LOAD does not work.
wait
but my guess is, that some code in your LOAD does not work.
wait
Re: harvest & co
change
into
Code: Select all
function findMyItem()
local itemhere = false
repeat
item = player:findNearestNameOrId(120431) -- Whatever the Name or Id is for the item you want to use
if item and 50 > distance(item,player) then
player:target_Object(120431)
itemhere = true
Code: Select all
function findMyItem()
local itemhere = false
repeat
item = player:findNearestNameOrId(120431) -- Whatever the Name or Id is for the item you want to use
if item and 50 > distance(item,player) then
player:target_Object(120431)
itemhere = true
end
Re: harvest & co
it dont work dont know that error error message in english, but something is wrong with the waypointlist.lua, he cant run the lua codes or something like that
Re: harvest & co
maybe someone else has an idea?
- Bill D Cat
- Posts: 555
- Joined: Sat Aug 10, 2013 8:13 pm
- Location: Deep in the Heart of Texas
Re: harvest & co
You didn't include my entire function. "repeat" without the "until" line or the final "end" to close the function will each cause an error.
Code: Select all
function findMyItem()
local itemhere = false
repeat
item = player:findNearestNameOrId(xxxxxx) -- Whatever the Name or Id is for the item you want to use
if item and 50 > distance(item,player) then
player:target_Object(item.Id)
itemhere = true
else
yrest(5000)
end
until itemhere == true
end
Re: harvest & co
and then in the waypoint part i must write "findMyItem()" , right ?
- Bill D Cat
- Posts: 555
- Joined: Sat Aug 10, 2013 8:13 pm
- Location: Deep in the Heart of Texas
Re: harvest & co
That would be correct.
Re: harvest & co
9:19pm - ...rs/Angrod/Desktop/Rom/scripts/rom/classes/player.lua:3610: bad argum
ent #1 to 'pairs' (table expected, got nil)
that comes if he is at the first "findMyItem()</waypoint>"
ent #1 to 'pairs' (table expected, got nil)
that comes if he is at the first "findMyItem()</waypoint>"
- Bill D Cat
- Posts: 555
- Joined: Sat Aug 10, 2013 8:13 pm
- Location: Deep in the Heart of Texas
Re: harvest & co
Code: Select all
/scripts/rom/classes/player.lua:3610
Code: Select all
-- auto interact with a merchant
function CPlayer:merchant(_npcname, _option, _evalfunc)
Re: harvest & co
I'll go out on a limb here and assume Mirowax is using a modified version of player.lua. That's why the error number doesn't line up with a "pairs" command. Most likely then the error is happening in the findNearestNameOrId function as that is what is used in Bill D Cats code. Which leads me to the conclusion that Mirowax used the code exactly as written, ie. he left xxxxxx unchanged. That would cause a "pairs" error.
- 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
Re: harvest & co
my english istn so good that i can understand this
Re: harvest & co
Did you remember to change xxxxxx to 120431?
- 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
Re: harvest & co
let me check and try some minutes
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests