Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: Krang Stonehoof on August 22, 2014, 01:50:02 am
-
Greetings,
I'm trying to figure out how I'm supposed to edit the CharacterCreate.Lua file so that everytime I press on the "Create Character" button in-game, it will always only show a combination. I mean, I want to remove the left menu where you can choose your race / class and so it will always choose the night elf race and warrior class. Can anyone help me?
Here's the pastebin of the charactercreate.lua.
http://pastebin.com/g830t5if (http://pastebin.com/g830t5if" onclick="window.open(this.href);return false;)
Would be great if anyone would be able to help.
Thanks.
-
.xml file -> Remove the race tab.
charplayerinfosomething.dbc -> remove all the combinations you don't want.
Choosing a class will always then result in the combination you want.
Change server settings to avoid complications and abusal.
-
You would need to edit CharacterCreate.LUA, CharacterCreate.XML, ChrRaces.dbc and ChrClasses.dbc.
If you want to customize it.
Then you will be able to pick night elf only and warrior class only.
-
I know I have to edit the CharacterCreate.Lua / XML. But I can't figure out what.
That's why I asked / posted here.
And about the .DBC, no, it's not working, it's possible to do it only from .Lua, if I'm not wrong.
-
I know I have to edit the CharacterCreate.Lua / XML. But I can't figure out what.
That's why I asked / posted here.
And about the .DBC, no, it's not working, it's possible to do it only from .Lua, if I'm not wrong.
You can deactivate the classes and races in the dbc if you don't want to mess with the scripts.
-
I really think via code is much easier but I can't figure out how. I remember Stoneharry helped me once but I can't find out the pastebin he sent me.
-
Forcing the combinations is easier via dbc. Mkdifyibg the interface is only removal of pretty much everything containing "race".
-
Character creation is hardcode in so many places and quite unstable. It would be best to do this via the dbc's and then to hide the elements you don't want lua side. For example, if you just don't call the random character fix up I believe the client crashes.
I have done it with just lua/xml modifications but it was quite hacky to get it working without crashing.
-
And how I'm supposed to do it via DBC? Remove the races from the CharRaces.DBC or...?
-
And how I'm supposed to do it via DBC? Remove the races from the CharRaces.DBC or...?
Yes, remove all references to them OR take away the playable flag (races like ogre and naga don't have it, check wiki). Then delete the unneeded xml buttons.
-
Oh yes, thanks a lot for the help.
I have another question, why if I modify some XML / Lua files, everything's fine when I open the WoW.Exe, but when I log onto a character I get the error that interface files are corrupted?
-
Oh yes, thanks a lot for the help.
I have another question, why if I modify some XML / Lua files, everything's fine when I open the WoW.Exe, but when I log onto a character I get the error that interface files are corrupted?
FrameXML issue? Might need to be packaged in mpq to be loaded. Make sure you didn't delete the interface folder nor the add ons folder and blizzard stuff in there. Hard to tell without knowing your client.