[crossfire] Player file corruption

Nicolas Weeger (Laposte) nicolas.weeger at laposte.net
Tue Dec 26 16:48:22 CST 2006


I just changed Archetype.Clone from a method to a property (for coherence), so 
attached is an updated script that'll work if you updated your server before 
running it :)

Nicolas

Le Mardi 26 Décembre 2006 18:35, Nicolas Weeger (Laposte) a écrit :
> Hello.
>
> Attached is a Python script that will reset spell's last_eat / last_gr /
> last_sp for players when they connect. Value is archetype's one.
> Logfile is created, named fix_spells_1569017.log, in datafiles directory.
> Also avoids resetting 2 times.
>
> Just put the .py file in the "python/events/login" subdirectory of the maps
> directory.
>
> Note that I did *not* check whether there were maps with customized spells
> modifying those values. IMO there shouldn't be, but you can never be sure
> :)
>
>
> Disclaimer: this script shouldn't mess with players, but since we never
> know make sure you got backups :)
>
> Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_spells_1569017.py
Type: application/x-python
Size: 673 bytes
Desc: not available
Url : http://mailman.metalforge.org/pipermail/crossfire/attachments/20061226/75e87239/attachment.bin 


More information about the crossfire mailing list