maps/python
Kevin Zheng 0b0bc8440c Fix guild bank accounts
Use with statement to CFBank.open() so that close() is always correctly
called.

Change the guild account name to used the fixed string /guilds/ in front
of the guild name to avoid hash codes changing between Python versions.

DMs will need to manually move guild balances to the new account names.
2024-03-21 15:40:56 -07:00
..
CFReputation Adjust the schema update code to allow for schema updates, and apply the first one. 2022-12-10 17:53:44 -05:00
IPO Improve package sending help text in the IPO 2021-03-30 05:50:25 +00:00
casino
commands Add timeout and use text mode 2022-06-04 13:12:07 -07:00
dialog Fix Scorn's smith dialog 2023-04-13 19:48:14 +02:00
events Convert CFBank to sqlite3 2024-03-21 13:22:44 -07:00
gods
guilds Fix guild bank accounts 2024-03-21 15:40:56 -07:00
items Actually fix the Dex-only debuff this time. 2023-04-17 14:42:51 -04:00
maps Improve error messages 2022-05-31 14:42:04 -07:00
misc
monsters Add coordinate overrides 2024-03-19 10:37:49 -07:00
pshop Use CFBank.open() to avoid repeating database name 2024-03-18 13:17:15 -07:00
pyi
quests
start Adapt to renamed face names. 2011-06-26 18:33:01 +00:00
tod Adjusted the error message to reflect the name of the script. 2015-05-17 19:11:40 +00:00
CFBank.py Convert CFBank to sqlite3 2024-03-21 13:22:44 -07:00
CFBoard.py
CFCampfire.py Run whitespace cleanup script in maps/python. 2009-01-30 01:22:22 +00:00
CFDataBase.py Make it possible for players to rent private shops. 2014-05-25 21:55:18 +00:00
CFDataFile.py Minor code cleanup in some python modules (removing unused variables, cleaning up some if tests, removing import statements for some modules that were then never used. 2009-10-14 16:13:29 +00:00
CFDialog.py Add 'resetdialog' for DMs to reset dialog state 2021-07-24 21:03:56 -07:00
CFGamble.py
CFGuildClearance.py Remove trailing whitespace. 2013-05-09 11:08:11 +00:00
CFGuilds.py Fix typo. 2013-06-09 16:54:22 +00:00
CFItemBroker.py Correctly handle items with nrof 0. 2011-05-29 18:27:46 +00:00
CFLog.py Remove accidental dependency 2022-06-13 22:55:09 -07: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 Minor code cleanup in some python modules (removing unused variables, cleaning up some if tests, removing import statements for some modules that were then never used. 2009-10-14 16:13:29 +00:00
CFMove.py
CFSqlDb.py Convert CFBank to sqlite3 2024-03-21 13:22:44 -07:00
CFTimeOfDay.py Run whitespace cleanup script in maps/python. 2009-01-30 01:22:22 +00:00
CFTowerDefense.py Improve error messages 2022-05-31 14:42:04 -07:00
CFWorld.py
Move_Fog.py fine tuned fog duration and speed 2010-08-17 23:37:34 +00:00
Moving_Fog.py
README

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