lolss
Joined: 7th Mar 2011
Posts: 1777
Making start class
Im using Madao's rev and how do I make people start with classes? For example when they create a character it makes them a peasant? Help? :D
14 years, 17 weeks ago
|
kenobi13

Joined: 3rd Jun 2009
Posts: 881
Re: Making start class
Set a default value for column class in your characters database.
14 years, 17 weeks ago
|
Re: Making start class
Peasant is the default starter class. Just change the name of Peasant in the pub file ecf if you don't like the name and add the stats you want for it for that class.
14 years, 17 weeks ago
|
Hollow

Joined: 30th Sep 2010
Posts: 3451
Re: Making start class
I don't do it via the database i added this code in my welcome.cpp and it worked for me:
if(this->player->character->usage < 1)
this->player->character->clas = 1;
14 years, 17 weeks ago
|
lolss
Joined: 7th Mar 2011
Posts: 1777
Re: Making start class
Whitewolf posted: (25th Apr 2011 05:26 pm)
Peasant is the default starter class. Just change the name of Peasant in the pub file ecf if you don't like the name and add the stats you want for it for that class.
Not everyone uses Insom's rev bro.
14 years, 17 weeks ago
|
Re: Making start class
lolss posted: (25th Apr 2011 05:33 pm)
Whitewolf posted: (25th Apr 2011 05:26 pm)
Peasant is the default starter class. Just change the name of Peasant in the pub file ecf if you don't like the name and add the stats you want for it for that class.
Not everyone uses Insom's rev bro.
Im not trying to argue but i dont see where he even mentioned insoms rev and as far as I know peasant is the default class.
Are you using his old spells and shit rev or the newer 226?
14 years, 17 weeks ago
|
kenobi13

Joined: 3rd Jun 2009
Posts: 881
Re: Making start class
Hollow posted: (25th Apr 2011 05:29 pm)
I don't do it via the database i added this code in my welcome.cpp and it worked for me:
if(this->player->character->usage < 1)
this->player->character->clas = 1;
This is pointless.
14 years, 17 weeks ago
|
Hollow

Joined: 30th Sep 2010
Posts: 3451
Re: Making start class
Some revs don't have class 1 as default if you make a character. so that's why i putted the code here. But i didnt know you could do it via the database myself.
14 years, 17 weeks ago
|
Re: Making start class
insomniac posted: (25th Apr 2011 05:39 pm)
lolss posted: (25th Apr 2011 05:33 pm)
Whitewolf posted: (25th Apr 2011 05:26 pm)
Peasant is the default starter class. Just change the name of Peasant in the pub file ecf if you don't like the name and add the stats you want for it for that class.
Not everyone uses Insom's rev bro.
Im not trying to argue but i dont see where he even mentioned insoms rev and as far as I know peasant is the default class.
Are you using his old spells and shit rev or the newer 226?
This is why I don't like helping Lols, he's a dumb ass. Sorry but this guy is stupid. Class files have nothing to do with what rev or release you're using. Your question was about making a starter class, well when you start any server you start out as a peasant unless they've changed it in their
release, which none usually do. Insomn's release has nothing to do what so ever with anything. This question isn't even worthy of a topic in the first place, anyone with decent knowledge of eoserv would know that the starter class for EO is peasant, just change peasant using the pub editor. Simple.
Unless you're wording your question wrong or don't really know what you actually want.
14 years, 17 weeks ago
|
Re: Making start class
I use heidsql
to set class double click your database double click characters andd you should see a list right click class select properties and set Default to 1 or whatever number you want and update field.
14 years, 17 weeks ago
|
Hollow

Joined: 30th Sep 2010
Posts: 3451
Re: Making start class
I dont want to be rude. But you're the one that doesnt understand. He doesnt want that you start with another class than paesant but he wants a code that if you make a char you automaticly have class number 1 atm you start without a class. :)
14 years, 17 weeks ago
|
lolss
Joined: 7th Mar 2011
Posts: 1777
Re: Making start class
Whitewolf : Cool story bro ;), Im stupid? Read a bit more smart one then you will understand what the actual topic is about.
Insomniac : Exactly what Kenobi said
Kenobi : Thanks for being helpful.
14 years, 17 weeks ago
|
Re: Making start class
Yea, I just wasnt sure if you new how to adjust it. So I thought Id tell ya. ( ;
14 years, 17 weeks ago
|
lolss
Joined: 7th Mar 2011
Posts: 1777
Re: Making start class
14 years, 17 weeks ago
|
Re: Making start class
Hollow posted: (25th Apr 2011 05:49 pm)
I dont want to be rude. But you're the one that doesnt understand. He doesnt want that you start with another class than paesant but he wants a code that if you make a char you automaticly have class number 1 atm you start without a class. :)
Notice the "Unless you're wording your question wrong" part. Which he was, it was never stated that he wanted exactly what you just said. Because his question asks for code that makes your character start out as peasant, that's exactly what it says. Which eoserv default starter class is indeed
peasant. Now if Madao's source is different and makes it a different class even without the need of code you could still use the pub editor and make the class that Madao's source makes you on default to the name you wish for example peasant. I'm just ranting about the unnecessary reply "not
everyone uses insomn's release"
14 years, 17 weeks ago
| | | | | | | | | | | | | | | |