1. Hello and welcome to the brand new home for PlayDota!
    Please read through our Welcome thread to see what's new!
    Dismiss Notice

api.get_items() gives wrong ids

Discussion in 'Tech & Programming' started by Jabutosama, Dec 11, 2016.

  1. Jabutosama

    Jabutosama Member

    303
    102
    43
    Apr 15, 2015
    Replacing player player["item_#"] with localized_names from api.get_items() makes for example empty slots blink daggers.

    Any valid item id lists?
     
  2. mapdesigner

    mapdesigner Member

    2,365
    109
    63
    Aug 11, 2011
  3. Jabutosama

    Jabutosama Member

    303
    102
    43
    Apr 15, 2015
    No, matches return numeric values in the slots.
     
  4. dewouter

    dewouter Moderator Staff Member

    2,868
    233
    63
    Oct 27, 2009
    Is this for warcraft 3? What language are you using?
     
  5. Jabutosama

    Jabutosama Member

    303
    102
    43
    Apr 15, 2015
    Dota2api is python plugin to fetch dota2 data and I didn't specify any language to it so it returns english names.
     
  6. dewouter

    dewouter Moderator Staff Member

    2,868
    233
    63
    Oct 27, 2009
  7. Jabutosama

    Jabutosama Member

    303
    102
    43
    Apr 15, 2015
    Yeah, it is!

    May the roads carry you on warm sands~