Jump to content

Mojzesz

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Mojzesz

  1. 10 minutes ago, Zelek said:
    
    
    local idsToFind = {3031, 3035}
    
    local tiles = g_map.getTiles()
    for _, tile in pairs(tiles) do
        local topItem = tile:getTopItem()
        if topItem then
            for _, id in pairs(idsToFind) do
                if topItem:getId() == id then
                    playSound("alarm.wav")
                    break
                end
            end
        end
    end
    auto(100)

    Remember to enable the "read map tiles" box in info & options tab.

    Also reading tiles is limited to the current floor you are at the moment. I'm looking into expanding this tho.

    So I now understand why the one I wrote myself didn't work for me, it's just that the search on other floors is not yet implemented.
    Will this be hard to implement?
    When can we expect to add searching of other floors?
    To tell the truth, for me this is the most important function.

  2. I would like to use some simple functions for scanning map.

    smth like this


      for _, tile in ipairs(g_map.getTiles()) do
        if getDistanceBetween(pos(), tile:getPosition()) <= 7 then
          if tile:getTopLookThing():getId() = "dragon ball id" then
             playSound("alarm.wav")
          end
        end
      end
    end

    auto(100)

     

    If I can find the dragon balls, the cost of the license would be covered for me. 😊 

×
×
  • Create New...