Postby mattress » Mon Oct 29, 2012 3:36 pm
Working on my custom server a lot lately, the attached files give an example of trainers that can add and remove lines depending on the trainer type.
The character can visit the different trainers to add and remove the line the trainer specializes in. On my custom server, the trainers can only add/remove the line they specialize in, but can train the base line for any line. The max lines a character can have at any given time is 6 (checked for in the respective trainer), haven't tried more. The specializations on my server will be handled using the champ lines.
Thought I'd throw out this example in case anyone might want to do something similar. I added a method to GameTrainer (RemoveLine) that respecs the line first and then removes the spec and spell line if applicable. I haven't worked removing abilities into it yet, but that'll be an easy addition if wanted or needed.
- Attachments
-
- Destruction.cs
- (3.79 KiB) Downloaded 232 times
-
- GameTrainer.cs
- (16.12 KiB) Downloaded 284 times
Matt450/Variations of "Matt"