Commit Graph

69 Commits (a84fdb6ecda1a805145033c5e0e843acf0332e20)

Author SHA1 Message Date
Kevin Zheng 273c571df1 Update documentation 2024-03-29 12:17:56 -07:00
Kevin Zheng 5cd2e5fd1c Add error handling message when missing argument 2024-03-29 11:33:31 -07:00
Kevin Zheng ee73551e98 Get rid of guild indefinite detention
Print a normal "access denied" message instead of teleporting offenders
into the strange room.

For trespassers who step on the traps, teleport them to jail. The curse
no longer works and is probably cruel and unusual.
2024-03-21 21:54:03 -07:00
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
Kevin Zheng 3fddffdb70 Use CFBank.open() to avoid repeating database name 2024-03-18 13:17:15 -07:00
Nicolas Weeger 760c43f6d7 Rework the Big Chest script to correctly remove (all) forces 2022-06-11 14:41:45 +02:00
Kevin Zheng ebc9d65e41 Add error handling to 'status' command 2022-06-04 15:13:46 -07:00
Nicolas Weeger c75a143d75 Fix and clean script 2021-08-22 12:54:03 +02:00
Nicolas Weeger 5272e27aba Remove executable flag on maps. 2021-05-13 12:28:34 +02:00
partmedia 6e482f80ea Reduce guild arrest jail time
Submitted by:   Jason Zheng

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20498 282e977c-c81d-0410-88c4-b93c2d0d6712
2017-08-15 23:41:45 +00:00
partmedia 45f873736b Remove unused imports
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20448 282e977c-c81d-0410-88c4-b93c2d0d6712
2017-07-27 06:34:58 +00:00
akirschbaum 2fc8c10923 Do not use mutliple statements in one line.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20285 282e977c-c81d-0410-88c4-b93c2d0d6712
2016-06-19 15:13:49 +00:00
ryo_saeba d79e37fcb4 Display the guild status and a member's status, give more information on what is valid.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18734 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-06-09 16:51:55 +00:00
akirschbaum 5e430c833f Remove trailing whitespace.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18703 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-05-09 11:08:11 +00:00
kstenger 8aae10354b Minor fixes to do_pay(): 'type' was used as a variable name but it's a reserved word, length check was wrong, check for zero amount, plural message improved.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18700 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-30 19:47:41 +00:00
kstenger a32ef59ae4 Fixing python indentation. Using elif when apropriate.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18699 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-29 19:31:50 +00:00
kstenger 5313de3438 Fixing python indentation
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18698 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-29 02:58:46 +00:00
kstenger beb58156f7 Fixing python indentation
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18697 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-29 01:11:11 +00:00
kstenger 5a613c9162 Fixing python indentation
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18696 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-28 22:23:28 +00:00
ryo_saeba 3ed36dd261 Display valid status.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18695 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-28 18:27:52 +00:00
ryo_saeba aa9637d3aa Try to not generate errors.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18693 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-28 17:45:04 +00:00
ryo_saeba e3ac67f897 Initialize variable, if access is denied.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18692 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-28 17:43:59 +00:00
ryo_saeba 1f625a1c90 Prevent traps from showing.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18691 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-04-28 17:17:03 +00:00
ryo_saeba 3c158c16a7 Clean debug statement.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18320 282e977c-c81d-0410-88c4-b93c2d0d6712
2012-07-01 17:09:15 +00:00
ryo_saeba 41c74b2c13 Use name, not object.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18256 282e977c-c81d-0410-88c4-b93c2d0d6712
2012-06-17 10:35:07 +00:00
ryo_saeba a183694955 Fix probably broken crystal room price (12 jade instead of 2 platinum).
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@15997 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-12-01 22:21:11 +00:00
ryo_saeba fb2353fff7 Rewrite prices, fix inverted Thaumaturgy room and desk.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@15996 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-12-01 22:20:35 +00:00
ryo_saeba e3fcdc8f7c Reduce the price of cards by a factor of 10.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@15995 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-12-01 22:16:53 +00:00
ryo_saeba fbb4326c14 Reformat to put cards at top.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@15994 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-12-01 22:12:56 +00:00
ryo_saeba 5e7eb21faf Clean script.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@15543 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-11-06 21:28:56 +00:00
ryo_saeba fb0f1d5bab Prevent actual reading of the panel.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14920 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-07-24 14:15:13 +00:00
ryo_saeba 9ad3927f51 Fix Jeweler's room coordinates preventing it from being bought.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14837 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-07-10 09:50:37 +00:00
ryo_saeba 4ec2680733 Improve the 'buy' command, don't show already bought extensions.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14495 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-05-29 16:45:27 +00:00
ryo_saeba 4902fcb1c8 Fix accidental french :)
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14120 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-11-22 22:19:18 +00:00
ryo_saeba 94fa00ed6a Format 'info' result in a friendler way.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14119 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-11-22 22:00:51 +00:00
ryo_saeba 96352f761d Slightly improve the list command. Fix misplaced newline.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14115 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-11-20 16:04:58 +00:00
ryo_saeba a39439ab35 Do not attempt arresting things like traps, please.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14113 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-11-20 15:47:29 +00:00
ryo_saeba 34dfc48087 Use actual deposit value instead of hardcoded value.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14107 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-11-20 11:17:06 +00:00
ryo_saeba 6763e0722f Rewrite.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14089 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-11-14 14:21:37 +00:00
ryo_saeba 2ce05da4a2 Display balance in a nicer way. Better 'buy' list.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13985 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-10-10 11:25:30 +00:00
anmaster 1845253530 Fix /python/guilds/arrest.py, it just kept throwing errors into server stderr...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13966 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-10-06 18:38:22 +00:00
Alestan 89eff881a4 fixed problems caused by svn up.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13758 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-07 02:59:33 +00:00
Alestan bd21022abc fixed syntax error.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13757 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-07 02:42:28 +00:00
Alestan 14881dee18 fixed synatax error
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13755 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-07 01:34:44 +00:00
Alestan 523b74b56a changed syntax to support python 2.5.x
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13754 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-07 01:32:00 +00:00
Alestan e247b243c4 changed syntax to support python 2.5.x
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13753 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-07 01:29:07 +00:00
Alestan ae753bff28 added a common clearance checker for the guilds and rewrote parts of the guild scripts. Also updated the guild maps to use the new scripts
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13751 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-07 00:38:39 +00:00
Alestan 841596b4c3 removed unused text files and made Jack say how much money is needed to purchase something for the guild
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13703 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-02 19:36:49 +00:00
meflin2 ec21a66dc6 one of the guild scripts got missed from being added by alestan
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13693 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-09-02 14:32:12 +00:00
alestan 7bd104454a fixed bugs with guild scripts
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13629 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-08-16 22:55:32 +00:00