Sign in to follow this  
Simple_spectr

solved
Randomize race+class remove

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.)

Share this post


Link to post
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 ?

Share this post


Link to post
Share on other sites

Iirc that randomization is in the client. You can probably hack around it by registering some onshow event and emulating that the user clicked something to change the randomized choice. 

Share this post


Link to post
Share on other sites
9 minutes ago, wungasaurus said:

Iirc that randomization is in the client. You can probably hack around it by registering some onshow event and emulating that the user clicked something to change the randomized choice. 

Sounds like pain :(

Share this post


Link to post
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.

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Mb you can create something like... Static position. For example, when you click on "Create new character", this button everytime show you only one class and race (human warrior for example)

Share this post


Link to post
Share on other sites

it depends on what you want to achieve in that case why not hide the button ?

Share this post


Link to post
Share on other sites

I thought you were using the random button creating characters . Sorry.

Do you change the CharBaseInfo.dbc ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this