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

Editing Hero Abilities and Items in a custom Warcraft III map

Discussion in 'Tech & Programming' started by Heicee, Dec 6, 2016.

  1. Heicee

    Heicee New Member

    1
    0
    1
    Dec 6, 2016
    Hi!
    Me and my friends have been playing Dota Imba Legends v6.0b for months now and its kinda sad that the developer of the map isnt active anymore. I wanna edit some skills on it or add new items to but idk how to. I tried using Google and it kinda lead me to JASS or WE but the map is protected and i cant really do anything about it.
     
  2. FightFightFight

    FightFightFight Member

    1,585
    42
    48
    Jan 30, 2014
    To edit Dota Imba you need MPQ editor -> directly edit SLK files and map script. You can't pull it off if you're new to JASS
     
  3. Son01102000

    Son01102000 New Member

    31
    1
    8
    Oct 10, 2016
    Explain me pls
     
  4. FightFightFight

    FightFightFight Member

    1,585
    42
    48
    Jan 30, 2014
    Suppose you want to change Sniper's Assasinate level 1 range from 2000 to 20000.

    >Open some MPQ-editing software (like Ladik's MPQ Editor).
    >Select map and extract all contents to directory

    In case of "optimized" map, like Dota, ability data is stored in a bunch of SLK & TXT files (both can be easily edited by Notepad) in Units subdirectory, in contrast to regular maps that use special binary format of World Editor.

    >First, we need to find Assasinate ability code. Search all ...AbilityStrings.txt files in Units subdirectory, and in CampaignAbilityStrings.txt we found



    >Now search A04P in AbilityData.slk, we found C;Y673;K"A04P" line. The following sequence of lines is Assasinate's data. The line C;X22;K2000 represents level 1 cast range.
    >Change it to C;X22;K20000
    >Replace AbilityData.slk file to the modified one in target map via MPQ editor. Now you can run the map and see the cast range was increased.

    The same logic more or less applies to code editing, except you need to work sith Scripts\war3map.j
     
  5. Son01102000

    Son01102000 New Member

    31
    1
    8
    Oct 10, 2016
    How about adding or deleting some abilities?
     
  6. FightFightFight

    FightFightFight Member

    1,585
    42
    48
    Jan 30, 2014
    Adding something is tricky. However, there's usually no need in case of Icefrog's dota, because it contains a lot of junk in object data (old abilities that got scarapped or new abilities he didn't finished). So you can just replace unneeded abilities with your new ones.
     
  7. Son01102000

    Son01102000 New Member

    31
    1
    8
    Oct 10, 2016
    I can recover the units data files