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
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
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
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
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.