Race / Class Locking
This might be posted in the wrong section.. if is i'm sorry
My Question is kinda simple (although the answer might be long) I have been reading about the new Perl quest system and global flags. Can i set global flags to each account? If so... Can i have the character creation screen check these flags.... Basicly... can i lock races or classes temporarily from specific users? / in general? --------------------- what i wanna do --------------------- I want everyone on my server to start out as a human melee... i want them to "unlock" classes and races over time. **** if i cant do it on a account basis can i do it on a server base? Thanks |
Do you know anything about programming in C++? If so you could probably do it in there (I am so new at it that this might be totally incorrect).
Lets say for the sake of THIS case (since I dont know the name of the function(s) used during character creation), that there is a function called Character_Creation. I would imagine all you would have to do is Set each different race that you didnt want used to enabled false. For example it MIGHT look something like this with dark elves: Code:
darkelves = FALSE; <race in question> = TRUE; Again, not TOO sure about that but it seems logical to my dumb ass <smile>. Still VERY early in the game for C++ and me. It may be WAAAY more complicated than that. I dont know if you could just write a perl script to enable them or not, as Im not totally sure how THAT works either.. |
AFAIK, there is little control on the client Char Creation screens. The best you can do is tell the client that creation was refused (and maybe explain why, it would be nice, using the eqstr client file) to force to a valid new one.
the char is created in client.cpp (OP_CharacterCreate), in the world engine. You 'd have to tweak the code to reject classes / races, as mentionned. To check on what is allowed, you should include a custom DB query to check the flags. Those flags (set using quest system, as you mentionned) can only be global, or at best character specific. If you want to make it account wide, you have to check the flags for all chars the acount owner already has. |
wow thats actually a great idea. <---EDIT: Wow I posted stuff like that back then?? damn.
|
Easy way of doing it is to just set human as the default race and have the server ignore other selections and point to human instead.
|
All times are GMT -4. The time now is 04:24 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.