Jump to content

Randomize race+class remove

By Simple_spectr
in Interface

Recommended Posts

Hey! :)

I deleted some race (and class) icons from charactercreate.xml (From Char create screen) so its worked fine until I'm not pressed create new character button. After I press this button, game showed to me random race+class. So, who know how to remove this randomize with xml\lua or dbc? (I've already tried all xml, lua and dbc and I couldn't find decision.)

Link to comment
Share on other sites

The charactercreate.xml is only there for interfacing, the charactercreate.lua for management and other options .

You must change your charactercreate.lua to manage classes and races that you want to use.

Could you share your charactercreate.lua ?

Link to comment
Share on other sites

Easier to see in :

function CharacterCreate_Randomize()

    PlaySound("gsCharacterCreationLook");
    RandomizeCharCustomization();
end

Maybe with a local className = GetSelectedClass (); you could have the name of the class and do another CharacterCreate_Randomize (); if this corresponds to a prohibited class, the same with a local raceName = GetSelectedRace ();

Quote

function CharacterCreate_Randomize()

    PlaySound("gsCharacterCreationLook");

    local GoodRaceClass = 0;

    while ( GoodRaceClass == 0 ) do
         RandomizeCharCustomization();

         local raceName = GetSelectedRace ();

         local className = GetSelectedClass ();

        if ((className == "Good Class") and (raceName == "Good Race")) then

              GoodRaceClass = 1;

       end


    end

end

 

Something like that.

 

 

 

 

 

 

Link to comment
Share on other sites

×
×
  • Create New...