Page 1 of 1

Trainer, Add/Remove lines

PostPosted: Mon Oct 29, 2012 3:36 pm
by mattress
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.

Re: Trainer, Add/Remove lines

PostPosted: Mon Oct 29, 2012 4:04 pm
by Tolakram
Ooh, thanks for sharing!

Re: Trainer, Add/Remove lines

PostPosted: Tue Oct 30, 2012 7:10 pm
by Graveen
Thank you Mattress. Glad to see you, too !

Re: Trainer, Add/Remove lines

PostPosted: Wed Oct 31, 2012 6:13 pm
by mattress
One month down on an 8-ish month deployment, I'll pop in when I can, thanks!