maps/python
anmaster 84813f777d The casino code for major wins (in all the different slot types) was missing a cast to integer, this resulted in a traceback on Python 3.x.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11481 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-02-14 18:00:40 +00:00
..
IPO The exchange code in /python/IPO/banksay.py was missing a cast to integer, this resulted in a traceback on Python 3.x. 2009-02-14 17:09:40 +00:00
casino The casino code for major wins (in all the different slot types) was missing a cast to integer, this resulted in a traceback on Python 3.x. 2009-02-14 18:00:40 +00:00
commands Run whitespace cleanup script in maps/python. 2009-01-30 01:22:22 +00:00
events Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4 2009-01-30 01:32:19 +00:00
gods Fix part of bug 2457751 "Unpaid items work for some things...": Valkyrie altars no longer accepts unpaid items. 2009-02-06 13:33:39 +00:00
guilds Replace deprecated string.split() amd string.lower() in /python/*/*.py 2009-02-11 21:52:51 +00:00
items Fix division error in /python/items/banquet.py 2009-02-11 21:02:23 +00:00
maps Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4 2009-01-30 01:32:19 +00:00
misc Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4 2009-01-30 01:32:19 +00:00
monsters Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4 2009-01-30 01:32:19 +00:00
start Fix a bug causing tracebacks in /python/start/dragon_attune.py. If there was no player on the changer it ended up as None which resulted in a traceback. 2009-02-12 09:28:12 +00:00
tod Replace deprecated string.split() amd string.lower() in /python/*/*.py 2009-02-11 21:52:51 +00:00
.cvsignore Needed to avoid polluting 2006-07-31 22:14:43 +00:00
CFBank.py Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4 2009-01-30 01:32:19 +00:00
CFBoard.py Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4 2009-01-30 01:32:19 +00:00
CFCampfire.py Run whitespace cleanup script in maps/python. 2009-01-30 01:22:22 +00:00
CFDataFile.py Make /python/CFDataFile.py work on both Python 2.x and Python 3.x with no need to run 2to3 for the python 3.x users. 2009-02-12 08:11:48 +00:00
CFDialog.py Replace deprecated string.find() amd string.lower() in /python/*.py 2009-02-11 21:47:17 +00:00
CFGamble.py Fix tab error in CFGamble.py 2009-02-11 21:20:20 +00:00
CFGuilds.py Modified all print of script to calls to Crossfire.Log(Crossfire.Log(Debug|Error|Info|Monster),message) 2007-11-08 23:36:22 +00:00
CFItemBroker.py Update of the maps for CFPython version 2.0. 2005-10-18 18:13:28 +00:00
CFLog.py Patch #1550744 (Python scripts should not hardcode timezones) courtesy Mark Kidder 2006-09-02 14:26:26 +00:00
CFMail.py Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4 2009-01-30 01:32:19 +00:00
CFMapTransformer.py Run whitespace cleanup script in maps/python. 2009-01-30 01:22:22 +00:00
CFMove.py Run whitespace cleanup script in maps/python. 2009-01-30 01:22:22 +00:00
CFTimeOfDay.py Run whitespace cleanup script in maps/python. 2009-01-30 01:22:22 +00:00
CFWorld.py Replace deprecated string.find() amd string.lower() in /python/*.py 2009-02-11 21:47:17 +00:00
README Remove trailing whitespace. 2007-03-24 13:15:00 +00:00

README

This directory is the proper directory for all python scripts for crossfire and the default location for importing CF modules.

The subdirectories are:

/: all shared files
/events: all script files called by a global server event
/items: all scripts embedded in archetypes
/IPO: all scripts relating to the Imperial Post and Bank system
/guilds: all scripts relating to guild management
/casino: all scripts related to the casino
/misc: other scripts

Script additions should be placed in a subdirectory, either existing, or when it makes sense, a new one.
Shared classes used for import should be placed in the root directory

All Python scripts added to this map repository should be tested with and valid for Python 2.3