Jump to content


Photo

item info api?


    3 replies to this topic

    #1 mujihina

    mujihina

      Newbie

    • Members
    • Pip
    • 6 posts

      Posted 20 April 2014 - 08:29 PM

      Hi folks,

         Is there a windower API (I didn't see one) that gives you info about an item from its item_id? type: equipment, consumable, etc. ; level, jobs that can equip it, stat modifiers, etc. ?   Even if it's a string, I can deal with it.

        I wanted to create something similar to findall (that searches the storage of all the chars), that allows me to search by slot, job, level, etc. 

       

      Thanks!

       

       

       

       

       



      #2 mujihina

      mujihina

        Newbie

      • Members
      • Pip
      • 6 posts

        Posted 20 April 2014 - 11:53 PM

        ah!.  I found that

        libs/resources/items.lua

         

        has a big list of items with the info I was hoping to get.

         

        Q1) Why isn't items.lua included as part of the default windower install?

        Q2) Who/what updates this file?



        #3 Arcon

        Arcon

          Advanced Member

        • Windower Staff
        • 1189 posts
        • LocationMunich, Germany

        Posted 21 April 2014 - 05:36 AM

        That is included in the default Windower install, but you need to require the resources library from within Lua to use it:

        res = require('resources')
         
        print(res.items[19747].name)
        print(res.spells:type('BlackMagic'):length())
        print(res.abilities:with('german', 'Unbesiegbar').id)


        #4 Byrth

        Byrth

          Advanced Member

        • Members
        • PipPipPip
        • 85 posts

          Posted 30 April 2014 - 01:53 AM

          Q1: It was kept in the Github repository until Monday, when it was moved to being part of Launcher. Unfortunately, Windower's DNS went down Monday night, so we pushed it back to Github temporarily. Tomorrow it'll probably be back as part of Launcher.

          Q2: ResourceExtractor updates the file: https://github.com/W...sourceExtractor






          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users