Welcome to the Forum Archive!

Years of conversation fill a ton of digital pages, and we've kept all of it accessible to browse or copy over. Whether you're looking for reveal articles for older champions, or the first time that Rammus rolled into an "OK" thread, or anything in between, you can find it here. When you're finished, check out the boards to join in the latest League of Legends discussions.

GO TO BOARDS


@Riot Reinboom/Shop Devs: API for RecItems now? :O

Comment below rating threshold, click here to show it.

Wriggle

Adjudicator

11-19-2012

Quote:
Riot Reinboom:
(Note: It likely requires to be minified).

The important keys here:
3. "priority"
This defines if it should be loaded at top priority or not. This is mostly to reorder the data structure internally. We've left it false for most of the Riot made ones.
Make sure this is true. This gives it priority over the Riot ones.

Just make sure "type" is NOT "riot"
I assume these are the mistakes I made, I left most things the same except had it all expanded with multiple lines, type was riot, priority was false.

Does "priority: true" mean that it will not load Riot ones at all, or that it will just appear above Riot ones in the list? If the latter, is it possible to disable the Riot ones?

Quote:
Riot Reinboom:
1. "map"
This key may either be "any" or a single map id number (in string form). Some common ones you may wish to use:
"1" is Summoners Rift
"8" is Crystal Scar
"10" is Twisted Treeline
Also, 3 is Proving Grounds. I have to question this though: any holiday-themed Summoner's Rift maps are a different ID#, in other words, not '1'. 2,6,7 have all been Summoner's Rift in the past. If "map":"1" is used, it will prevent the recommended items from showing up in holiday maps, right? But.. without "map":"1", "mode":"CLASSIC" will also represent Twisted Treeline.

Quote:
ploki122:
EDIT : Also, any ways to find the new item codes? since they aren't in the main site's item list...
edit: see below post


Comment below rating threshold, click here to show it.

Riot Reinboom

Software Engineer

11-19-2012

Quote:
Wriggle:
I assume these are the mistakes I made, I left most things the same except had it all expanded with multiple lines, type was riot, priority was false.

Does "priority: true" mean that it will not load Riot ones at all, or that it will just appear above Riot ones in the list? If the latter, is it possible to disable the Riot ones?

Also, 3 is Proving Grounds. I have to question this though: any holiday-themed Summoner's Rift maps are a different ID#, in other words, not '1'. 2,6,7 have all been Summoner's Rift in the past. If "map":"1" is used, it will prevent the recommended items from showing up in holiday maps, right? But.. without "map":"1", "mode":"CLASSIC" will also represent Twisted Treeline.

\RADS\projects\lol_game_client_en_us\managedfiles\LATESTVERSION\Data\Menu\fontconfig_en_us.txt, CTRL-F for "ITEMNAME" then look to the left where game_item_displayname or game_item_tooltip is. This will almost definitely not work for Enchanted Boots, because in the tooltip files those are "3009_A" or "EnchantmentHomeguard" for Swiftness: Homeguard, but internally they're some other item ID (32-something, I think).


The item shop loads all recommended json files it can find for a single character. It keeps all pages ready to display, but then only has the interface to display the first one in that stack. priority:true pushes it to the top of that stack. (We will likely add a drop down or something similar in the future).

The map ID thing is actually one of the things that may change in the future. What will likely happen though is I'll just make maps map to other maps.


And I made a quick script to generate out the IDs for you all. Here you go!:
[code]
Explorer's Ward (costs: 0) = 2050
The Hex Core (costs: 0) = 3200
Total Biscuit of Rejuvination (costs: 1) = 2009
Health Potion (costs: 35) = 2003
Mana Potion (costs: 35) = 2004
Sight Ward (costs: 75) = 2044
Vision Ward (costs: 125) = 2043
Faerie Charm (costs: 180) = 1004
Rejuvenation Bead (costs: 180) = 1006
Crystalline Flask (costs: 225) = 2041
Elixir of Fortitude (costs: 250) = 2037
Elixir of Brilliance (costs: 250) = 2039
Cloth Armor (costs: 300) = 1029
Hunter's Machete (costs: 300) = 1039
Boots of Speed (costs: 350) = 1001
Sapphire Crystal (costs: 400) = 1027
Null-Magic Mantle (costs: 400) = 1033
Long Sword (costs: 400) = 1036
Dagger (costs: 400) = 1042
Brawler's Gloves (costs: 400) = 1051
Oracle's Elixir (costs: 400) = 2042
Oracle's Extract (costs: 400) = 2047
Mana Manipulator (costs: 400) = 3037
Amplifying Tome (costs: 435) = 1052
Ruby Crystal (costs: 475) = 1028
Doran's Shield (costs: 475) = 1054
Doran's Blade (costs: 475) = 1055
Doran's Ring (costs: 475) = 1056
Ichor of Rage (costs: 500) = 2040
Ichor of Illumination (costs: 500) = 2048
Emblem of Valor (costs: 650) = 3097
Sightstone (costs: 700) = 2049
Tear of the Goddess (costs: 700) = 3070
Philosopher's Stone (costs: 700) = 3096
Madred's Razors (costs: 700) = 3106
Chain Vest (costs: 720) = 1031
Cloak of Agility (costs: 730) = 1018
Kage's Lucky Pick (costs: 765) = 3098
Vampiric Scepter (costs: 800) = 1053
Spirit Stone (costs: 800) = 1080
Avarice Blade (costs: 800) = 3093
Bonetooth Necklace (costs: 800) = 3166
Bonetooth Necklace (costs: 800) = 3167
Bonetooth Necklace (costs: 800) = 3168
Bonetooth Necklace (costs: 800) = 3169
Bonetooth Necklace (costs: 800) = 3171
Head of Kha'Zix (costs: 800) = 3175
Negatron Cloak (costs: 810) = 1057
Heart of Gold (costs: 825) = 3132
Kindlegem (costs: 850) = 3067
Blasting Wand (costs: 860) = 1026
Pickaxe (costs: 875) = 1037
Chalice of Harmony (costs: 880) = 3028
Berserker's Greaves (costs: 900) = 3006
Recurve Bow (costs: 950) = 1043
Prospector's Blade (costs: 950) = 1062
Prospector's Ring (costs: 950) = 1063
Giant's Belt (costs: 1000) = 1011
Boots of Swiftness (costs: 1000) = 3009
Ninja Tabi (costs: 1000) = 3047
Fiendish Codex (costs: 1000) = 3108
Boots of Mobility (costs: 1000) = 3117
Augment: Power (costs: 1000) = 3196
Augment: Gravity (costs: 1000) = 3197
Augment: Death (costs: 1000) = 3198
Ionian Boots of Lucidity (costs: 1050) = 3158
Sorcerer's Shoes (costs: 1100) = 3020
Warden's Mail (costs: 1100) = 3082
Eleisa's Miracle (costs: 1100) = 3173
Zeal (costs: 1175) = 3086
Catalyst the Protector (costs: 1200) = 3010
Mercury's Treads (costs: 1200) = 3111
Sword of the Occult (costs: 1200) = 3141
Hextech Revolver (costs: 1200) = 3145
Moonflair Spellblade (costs: 1200) = 3170
Mejai's Soulstealer (costs: 1235) = 3041
Stinger (costs: 1250) = 3101
Grez's Spectral Lantern (costs: 1250) = 3159
Sheen (costs: 1260) = 3057
Ruby Sightstone (costs: 1300) = 2045
The Brutalizer (costs: 1337) = 3134
Hexdrinker (costs: 1350) = 3155
Berserker's Greaves - Enchantment: Homeguard (costs: 1375) = 3250
Berserker's Greaves - Enchantment: Distortion (costs: 1375) = 3253
Berserker's Greaves - Enchantment: Alacrity (costs: 1375) = 3254
Phage (costs: 1465) = 3044
Ninja Tabi - Enchantment: Homeguard (costs: 1475) = 3260
Ninja Tabi - Enchantment: Distortion (costs: 1475) = 3263
Ninja Tabi - Enchantment: Alacrity (costs: 1475) = 3264
Boots of Mobility - Enchantment: Homeguard (costs: 1475) = 3270
Boots of Mobility - Enchantment: Distortion (costs: 1475) = 3273
Boots of Mobility - Enchantment: Alacrity (costs: 1475) = 3274
Boots of Swiftness - Enchantment: Homeguard (costs: 1475) = 3280
Boots of Swiftness - Enchantment: Distortion (costs: 1475) = 3283
Boots of Swiftness - Enchantment: Alacrity (costs: 1475) = 3284
Haunting Guise (costs: 1485) = 3136
Glacial Shroud (costs: 1500) = 3024
Ionian Boots of Lucidity - Enchantment: Homeguard (costs: 1525) = 3275
Ionian Boots of Lucidity - Enchantment: Distortion (costs: 1525) = 3278
Ionian Boots of Lucidity - Enchantment: Alacrity (costs: 1525) = 3279
B. F. Sword (costs: 1550) = 1038
Berserker's Greaves - Enchantment: Furor (costs: 1550) = 3252
Sorcerer's Shoes - Enchantment: Homeguard (costs: 1575) = 3255
Sorcerer's Shoes - Enchantment: Distortion (costs: 1575) = 3258
Sorcerer's Shoes - Enchantment: Alacrity (costs: 1575) = 3259
The Lightbringer (costs: 1595) = 3185
Needlessly Large Rod (costs: 1600) = 1058
Wriggle's Lantern (costs: 1600) = 3154
Berserker's Greaves - Enchantment: Captain (costs: 1650) = 3251
Ninja Tabi - Enchantment: Furor (costs: 1650) = 3262
Boots of Mobility - Enchantment: Furor (costs: 1650) = 3272
Boots of Swiftness - Enchantment: Furor (costs: 1650) = 3282
Quicksilver Sash (costs: 1660) = 3140
Mercury's Treads - Enchantment: Homeguard (costs: 1675) = 3265
Mercury's Treads - Enchantment: Distortion (costs: 1675) = 3268
Mercury's Treads - Enchantment: Alacrity (costs: 1675) = 3269
Kage's Last Breath (costs: 1700) = 3092
Ionian Boots of Lucidity - Enchantment: Furor (costs: 1700) = 3277
Sorcerer's Shoes - Enchantment: Furor (costs: 1750) = 3257
Ninja Tabi - Enchantment: Captain (costs: 1750) = 3261
Boots of Mobility - Enchantment: Captain (costs: 1750) = 3271
Boots of Swiftness - Enchantment: Captain (costs: 1750) = 3281
Ionian Boots of Lucidity - Enchantment: Captain (costs: 1800) = 3276
Wicked Hatchet (costs: 1840) = 3122
Sorcerer's Shoes - Enchantment: Captain (costs: 1850) = 3256
Mercury's Treads - Enchantment: Furor (costs: 1850) = 3267
Wraith Collar (costs: 1900) = 3023
Executioner's Calling (costs: 1900) = 3123
Hextech Sweeper (costs: 1920) = 3187
Bilgewater Cutlass (costs: 1925) = 3144
Mercury's Treads - Enchantment: Captain (costs: 1950) = 3266
Sword of the Divine (costs: 2000) = 3131
Locket of the Iron Solari (costs: 2000) = 3190
Malady (costs: 2035) = 3114
Manamune (costs: 2100) = 3004
Muramana (costs: 2100) = 3042
Shurelya's Reverie (costs: 2100) = 3069
Last Whisper (costs: 2135) = 3035
Aegis of the Legion (costs: 2150) = 3105
Spirit Visage (costs: 2200) = 3065
Thornmail (costs: 2200) = 3075
Wit's End (costs: 2200) = 3091
Morellonomicon (costs: 2200) = 3165
Mikael's Crucible (costs: 2200) = 3222
Void Staff (costs: 2295) = 3135
Atma's Impaler (costs: 2300) = 3005
Tiamat (Melee Only) (costs: 2300) = 3077
Banner of Command (costs: 2400) = 3060
Spirit of the Spectral Wraith (costs: 2400) = 3206
Spirit of the Ancient Golem (costs: 2400) = 3207
Spirit of the Elder Lizard (costs: 2400) = 3209
Zeke's Herald (costs: 2450) = 3050
Overlord's Bloodmail (costs: 2455) = 3084
Sunfire Cape (costs: 2500) = 3068
Statikk Shiv (costs: 2500) = 3087
Banshee's Veil (costs: 2500) = 3102
Nashor's Tooth (costs: 2500) = 3115
Will of the Ancients (costs: 2500) = 3152
Kitae's Bloodrazor (costs: 2525) = 3186
Guardian Angel (costs: 2600) = 3026
Guinsoo's Rageblade (costs: 2600) = 3124
Odyn's Veil (costs: 2610) = 3180
Abyssal Scepter (costs: 2650) = 3001
Warmog's Armor (costs: 2650) = 3083
Archangel's Staff (costs: 2700) = 3003
Youmuu's Ghostblade (costs: 2700) = 3142
Seraph's Embrace (costs: 2710) = 3040
Runaan's Hurricane (Ranged Only) (costs: 2750) = 3085
Rod of Ages (costs: 2800) = 3027
Phantom Dancer (costs: 2800) = 3046
Athene's Unholy Grail (costs: 2800) = 3174
Ohmwrecker (costs: 2850) = 3056
Zephyr (costs: 2850) = 3172
Rylai's Crystal Scepter (costs: 2900) = 3116
Liandry's Torment (costs: 2900) = 3151
Blade of the Ruined King (costs: 2900) = 3153
Blackfire Torch (costs: 2950) = 3188
Lord Van Damm's Pillager (costs: 2962) = 3104
The Black Cleaver (costs: 3000) = 3071
Lich Bane (costs: 3000) = 3100
Deathfire Grasp (costs: 3000) = 3128
Frozen Heart (costs: 3100) = 3110
Randuin's Omen (costs: 3100) = 3143
Zhonya's Hourglass (costs: 3100) = 3157
Sanguine Blade (costs: 3150) = 3181
Rabadon's Deathcap (costs: 3200) = 3089
Runic Bulwark (costs: 3200) = 3107
Maw of Malmortius (costs: 3200) = 3156
Frozen Mallet (costs: 3300) = 3022
The Bloodthirster (costs: 3350) = 3072
Frozen Fist (costs: 3400) = 3025
Hextech Gunblade (costs: 3400) = 3146
Ravenous Hydra (Melee Only) (costs: 3500) = 3074
Wooglet's Witchcap (costs: 3520) = 3090
Entropy (costs: 3615) = 3184
Infinity Edge (costs: 3800) = 3031
Mercurial Scimitar (costs: 3810) = 3139
Trinity Force (costs: 4200) = 3078
[/code]


Comment below rating threshold, click here to show it.

Wriggle

Adjudicator

11-19-2012

Quote:
Riot Reinboom:
The item shop loads all recommended json files it can find for a single character. It keeps all pages ready to display, but then only has the interface to display the first one in that stack. priority:true pushes it to the top of that stack. (We will likely add a drop down or something similar in the future).
So to be clear, at this very moment, despite "you place any number of *.json files in this folder", it only displays one for any given champion + map instead of doing any sort of combining.

You might wanna remove a couple of those Bonetooth Necklaces and the Head of Kha'zix from the list, though.
Quote:
Riot Reinboom:
The types "starting", "essential", "offensive", and "defensive" will also be localized for you (if you need more, I can add more based on recommendation).
This is a little more than a localization string, but is it possible to get a "consumables" category at the bottom of recommended items, containing potions/elixirs/flasks (by champion) and green/purple wards? It's a little annoying to have to keep switching over to All Items anyways every recall just to grab a green ward. I'm pretty sure a lot of people will put Health Potions/Green Wards in their Custom Recommended Items anyways.

Thanks a lot for responding, by the way <3


Comment below rating threshold, click here to show it.

Zerglinator

Senior Member

11-19-2012

So question: If an item is removed, will things break, or what?


Comment below rating threshold, click here to show it.

Wriggle

Adjudicator

11-19-2012

Quote:
Zerglinator:
So question: If an item is removed, will things break, or what?
If it's like the old shop, an item being removed will simply remove it from your recommended items, or to be more precise, not display it in the list. It's the same as if you tried to put itemID "3982439" in your list, which doesn't exist.


Comment below rating threshold, click here to show it.

Zerglinator

Senior Member

11-19-2012

Quote:
Wriggle:
If it's like the old shop, an item being removed will simply remove it from your recommended items, or to be more precise, not display it in the list. It's the same as if you tried to put itemID "3982439" in your list, which doesn't exist.

I presume this also happens if you make The Hex Core a recommended item on Dr. Mundo?


Comment below rating threshold, click here to show it.

Wriggle

Adjudicator

11-19-2012

Quote:
Zerglinator:
I presume this also happens if you make The Hex Core a recommended item on Dr. Mundo?
I'm in queue right now, so I can't check, but on live, if you put an item in your recommended items list that you can't normally buy, it'll still show up since it's a valid item, but the server is smart enough to prevent you from buying it (the item file has a "requiredChampion":"viktor" field).


Comment below rating threshold, click here to show it.

Wriggle

Adjudicator

11-19-2012

I got a custom recommended item loadout to work Shrinking the json down to one line is not required. You can see the output of this in the attached picture. I included The Hex Core as a test, but it's unpurchasable.
Reinboom: The right window pane should probably also say "Special" for its price under the icon, like the left pane.
[code]{"champion":"Singed",
"title":"My Singed Builds",
"type":"Custom",
"map":"1",
"mode":"CLASSIC",
"priority":true,
"blocks":[
{
"type":"starting",
"items":[{"id":"1054","count":1}]
},
{
"type":"essential",
"items":[{"id":"3111","count":1},{"id":"3027","count":1},{"id":"3116","count":1}]
},
{
"type":"offensive",
"items":[{"id":"3152","count":1},{"id":"3001","count":1},{"id":"3151","count":1}]
},
{
"type":"defensive",
"items":[{"id":"3102","count":1},{"id":"3143","count":1},{"id":"3075","count":1}]
},
{
"type":"Pushing Itemset",
"items":[{"id":"3107","count":1},{"id":"3060","count":1},{"id":"3069","count":1},{"id":"3056","count":1},{"id":"3200","count":1},{"id":"3281","count":1}]
}
]
}
[/code]


Comment below rating threshold, click here to show it.

Karma Sandiego

Senior Member

11-19-2012

:O So whats the ETA on a new Custom Item program? I hope its by next patch.


Comment below rating threshold, click here to show it.

Riot Reinboom

Software Engineer

11-19-2012

Quote:
Wriggle:
-snip-


Oh wonderful! My JSON interpreter supports whitespace. Happy accident ahoy!
I mean... ehrm..

The left pane should actually show "*", not the other way around. * is small text special (done for localization purposes) and "Special" is full width explanation.


Also, purchasing out an item will simply gold border it (this might change in the future, possibly. We're still investigating.)
We wanted to make sure that players could do whatever they want with the tool, not have the tool limit the player.