for i=0,nCnt - 1 do local sLine,nCol = UO.GetJournal(i) for k,val in pairs(tMeldungen) do if string.find(sLine, val) ~= nil then if k ~= "busy" then if (k == "success") or (k == "fail") or (k == "crystal") then return false elseif (k == "empty") or (k=="far") then return true end else wait(10000) end end end end endend

-- search items by item-type in mainbackpack and returns the id of the item which will found and nil if no item foundfunction findItemIDMB(itemType) local item = nil local itemCnt = UO.ScanItems(true) for i=0, itemCnt do local nID,nType,nKind,nContID,nX,nY,nZ,nStack,nRep,nCo = UO.GetItem(i) if ( nContID == UO.BackpackID or nContID == UO.CharID ) and nType == itemType then -- print(UO.Property(nID)) -- print("\n") item = nID break end end if item == nil then item = print("no item from type "..itemType.." was found in "..cont) pause() end return itemend

-- checks for existing an tile on x,y in fish tile tablefunction alreadyExistInTable(x, y) for i = 0, nTableSize - 1 do if tFishTiles[i].x == x and tFishTiles[i].y == y then return true end end return falseend

function waitJournal() while true do nRef,nCnt = UO.ScanJournal(nRef) wait(100) for i=0,nCnt - 1 do local sLine = UO.GetJournal(i) for k,meldung in pairs(tMeldungen) do if string.find(sLine, meldung) ~= nil then return true end end end endend