Trainer, Add/Remove lines

Share files with other Dawn of Light users

Moderator: Support Team

Trainer, Add/Remove lines

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 213 times
GameTrainer.cs
(16.12 KiB) Downloaded 267 times
Matt450/Variations of "Matt"
User avatar
mattress
Server Team
 
Posts: 277
Joined: Mon Jul 05, 2010 3:30 am
Location: Oceanside, California

Re: Trainer, Add/Remove lines

Postby Tolakram » Mon Oct 29, 2012 4:04 pm

Ooh, thanks for sharing!
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: Trainer, Add/Remove lines

Postby Graveen » Tue Oct 30, 2012 7:10 pm

Thank you Mattress. Glad to see you, too !
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Trainer, Add/Remove lines

Postby mattress » Wed Oct 31, 2012 6:13 pm

One month down on an 8-ish month deployment, I'll pop in when I can, thanks!
Matt450/Variations of "Matt"
User avatar
mattress
Server Team
 
Posts: 277
Joined: Mon Jul 05, 2010 3:30 am
Location: Oceanside, California


Return to “%s” User Files

Who is online

Users browsing this forum: No registered users and 1 guest