This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Help Request!] Restrict races and classes  (Read 2809 times)

Tipsy101

  • Registred Member
  • Race Changer
  • *****
  • Posts: 35
    • View Profile
[Help Request!] Restrict races and classes
« 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Project Leader of the New Age Roleplaying Realm

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Tipsy101

  • Registred Member
  • Race Changer
  • *****
  • Posts: 35
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Project Leader of the New Age Roleplaying Realm

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #3 on: January 02, 2012, 03:26:44 pm »
You should do both. Serverside for savty and clientsite for good usage.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Keta

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 210
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #4 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tipsy101

  • Registred Member
  • Race Changer
  • *****
  • Posts: 35
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #5 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Project Leader of the New Age Roleplaying Realm

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #6 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..
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #7 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #8 on: January 08, 2012, 01:04:26 am »
Real modding need both server side and client side modifications.
So modcraft of for both :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #9 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Laniax

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 62
    • View Profile
Re: [Help Request!] Restrict races and classes
« Reply #10 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Current project: AIO Emulation solution.