achimala / leaguelib

Java library for the League of Legends RTMPS API (built on top of LoLRTMPSClient by Gabriel Van Eyck)
GNU General Public License v3.0
126 stars 50 forks source link

Find Item Name Based on Id #24

Open DanBradbury opened 10 years ago

DanBradbury commented 10 years ago

Maybe I just didn't see this construct but if it doesn't exist it probably should.

When you get the game stat info you get the list of items with the ID associated with them. From there it would be nice to have some direct lookup similar to LeagueChampions.

DanBradbury commented 10 years ago

For my own selfish purposes I wrote a parser for Riots item list and here are my results (all items in a gist)

I know these will solve my needs but not sure if this type of built in functionality would be a huge benefit for others.

tyxieblub commented 10 years ago

I remember implementing an item management identical to the LeagueChampion management (and doing it by hand, because I'm this dumb :P). I'll look into creating a pull request for it when I'll get the time to do so.

stirante commented 10 years ago

You can copy code from \League of Legends\RADS\projects\lol_air_client\releases\version\deploy\assets\swfs\AirGeneratedContent.swf. After opening it in some flash decompiler you have something like this: gameItems[1001] = createGameItem(1001,"Boots of Speed","Limited to 1.

UNIQUE Passive - Enhanced Movement: +25 Movement Speed

(Unique Passives with the same name don\'t stack.)","1001_Boots_of_Speed.dds",325,null,[3006,3117,3020,3009,3158,3111,3047],["Movement"]);