Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Tipsy101 on January 01, 2012, 06:04:10 pm

Title: [Help Request!] Restrict races and classes
Post by: Tipsy101 on January 01, 2012, 06:04:10 pm
Hello, a lot of people like to create NEW classes/races. On my server I was looking to block the following races: Orc, Tauren, Troll, Forsaken, Draenei and Night Elf. These races have a corresponding id as do their classes. If I simply deleted the appropriate class ids and race ids entries on my arcemu db so that everytime a player attempts to login they get disconnected.

This doesn't seem like the 'real' way of removing the classes and races but would it work?
Title: Re: [Help Request!] Restrict races and classes
Post by: Steff on January 02, 2012, 12:27:57 pm
For safty you can do what you have written serverside. For good handling you should edit the charcreation-lua and delete the options for this races. So if your players use your patch they cant select the races. If they dont use it your server avoind the creation. But keep in mind that you need an patched WoW.exe four interface modifications.
Title: Re: [Help Request!] Restrict races and classes
Post by: Tipsy101 on January 02, 2012, 01:38:00 pm
My method seems almost 'bad practice' and not 'official'. Thanks steff, I think I will probably have to do it serverside as 1) People can't be trusted and they will attempt to bypass such restrictions 2) Seems easier.

Steff, you're a godsend.
Title: Re: [Help Request!] Restrict races and classes
Post by: Steff on January 02, 2012, 03:26:44 pm
You should do both. Serverside for savty and clientsite for good usage.
Title: Re: [Help Request!] Restrict races and classes
Post by: Keta on January 05, 2012, 04:06:37 am
Yea I agree with Steff.
I suggest editing the different Lua files and XML files so players cannot even select it. Makes it all the much easier.

Besides, isn't Modcraft mostly based on clientside modding? :P
Of course serverside modding questions are welcome here, don't get me wrong! :)

Thanks
Keta
Title: Re: [Help Request!] Restrict races and classes
Post by: Tipsy101 on January 05, 2012, 12:19:57 pm
Quote
I suggest editing the different Lua files and XML files so players cannot even select it. Makes it all the much easier.

Yay for learning LUA.

Thanks Keta.
Title: Re: [Help Request!] Restrict races and classes
Post by: schlumpf on January 07, 2012, 09:57:36 pm
Instead of having an option leading to a "you can't do that", you can just remove the option entirely..
Title: Re: [Help Request!] Restrict races and classes
Post by: schlumpf on January 07, 2012, 10:51:42 pm
Quote from: "iindigo"
Quote from: "schlumpf"
Instead of having an option leading to a "you can't do that", you can just remove the option entirely..

That's true, but my suggestion might be a good alternative if you're wanting a smoother server-side solution.

Well, except for it being a usability pain then. A good modification without modifying the client as well is not really possible. It will always feel bad. That's what all these server people don't seem to understand.
Title: Re: [Help Request!] Restrict races and classes
Post by: Steff on January 08, 2012, 01:04:26 am
Real modding need both server side and client side modifications.
So modcraft of for both :)
Title: Re: [Help Request!] Restrict races and classes
Post by: schlumpf on January 08, 2012, 01:06:58 am
Quote from: "iindigo"
thanks to the absence of a Mac modeleditfix.

I posted one months ago and even linked it today to someone.
Title: Re: [Help Request!] Restrict races and classes
Post by: Laniax on January 24, 2012, 09:59:55 pm
There's an easy way to disable races/classes without clientside patches. Atleast for Trinitycore.

It's simply a config option lol. You can bitmask the race/class combos you want to disable in there and they would be just grayed out icons for everyone connecting.