[committed] Reload spells & spell lines.

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

[committed] Reload spells & spell lines.

Postby geshi » Mon Jul 04, 2011 2:07 pm

Afternoon :D I added this functionality to Faith about a month ago, and we have had no problems with it at all.

With this patch, you can make any change you like to linexspell or spell (add,edit or remove a spell) and then do /reload spells and the spells will be reloaded straight away, you need to change zone/relog to update your spell list though, but the spell will be changed straight away!
Attachments
reloadspells.patch
(2.57 KiB) Downloaded 37 times
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm

Re: Reload spells & spell lines.

Postby Graveen » Mon Jul 04, 2011 6:26 pm

TY Gesh, seems nice :)
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: Reload spells & spell lines.

Postby Tolakram » Tue Jul 05, 2011 7:05 pm

Excellent Geshi.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: Reload spells & spell lines.

Postby geshi » Tue Jul 05, 2011 8:46 pm

Should I commit ? :)
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm

Re: Reload spells & spell lines.

Postby Tolakram » Tue Jul 05, 2011 9:53 pm

Why not. You have to use reload to do it, and the worst thing that can happen is a server crash. :) Only issue I can see, maybe is IF it wipes out any spells added via scripts. Solution is not to use it.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: Reload spells & spell lines.

Postby Graveen » Wed Jul 06, 2011 11:49 pm

yes, commit, this can't harm seriously because the perimeter of use is strictly defined.
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: Reload spells & spell lines.

Postby geshi » Sat Jul 16, 2011 1:46 am

Sorry, totally forgot, committed now :D
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest