Crossfire Server, Trunk
guild_dues Namespace Reference

Data Structures

class  GuildDues
 

Functions

def find_mailbox (object)
 
def FindCoin (object)
 
def formatted_amount (amount)
 

Variables

 activator = Crossfire.WhoIsActivator()
 
dictionary ArchType = {"SILVER":"silvercoin","GOLD":"goldcoin","PLATINUM":"platinacoin","JADE":"jadecoin","AMBERIUM":"ambercoin", "IMPERIAL NOTE":"imperial","TEN IMPERIAL NOTE":"imperial10","ONE HUNDRED IMPERIAL NOTE":"imperial100"}
 
string bankdatabase = "ImperialBank_DB"
 
list buddylist = ['buddy','buddy','buddy','buddy','pal','friend','friend','friend','friend','dude','chum', 'sweetie']
 
dictionary CoinTypes
 
 dues = GuildDues()
 
list exclaimlist = ['Hey','Hey','Hey','Hey', 'Now just a minute', 'AHEM', 'OK...Wait a minute', 'Look chowderhead']
 
list remarklist = ['Excellent','Thank You','Thank You','Thank You', 'Thank You', 'Great', 'OK', 'Wonderful', 'Swell', 'Dude', 'Big Spender']
 
 whoami = Crossfire.WhoAmI()
 

Detailed Description

Script for paying Guild Dues, and to handle Jack in the mainfloor.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# author:Avion temitchell@sourceforge.net
#
# Heavily modified by Nicolas Weeger, 2010-11-14

Function Documentation

◆ find_mailbox()

def guild_dues.find_mailbox (   object)

Definition at line 61 of file guild_dues.py.

◆ FindCoin()

def guild_dues.FindCoin (   object)

Definition at line 68 of file guild_dues.py.

Referenced by guild_dues.GuildDues.do_buy().

+ Here is the caller graph for this function:

◆ formatted_amount()

def guild_dues.formatted_amount (   amount)
Format a price as a string, giving full coin descriptions. Returns 'no money' if amount is 0. 

Definition at line 54 of file guild_dues.py.

Referenced by guild_dues.GuildDues.do_balance(), guild_dues.GuildDues.do_buy(), and guild_dues.GuildDues.do_withdraw().

+ Here is the caller graph for this function:

Variable Documentation

◆ activator

guild_dues.activator = Crossfire.WhoIsActivator()

Definition at line 52 of file guild_dues.py.

◆ ArchType

dictionary guild_dues.ArchType = {"SILVER":"silvercoin","GOLD":"goldcoin","PLATINUM":"platinacoin","JADE":"jadecoin","AMBERIUM":"ambercoin", "IMPERIAL NOTE":"imperial","TEN IMPERIAL NOTE":"imperial10","ONE HUNDRED IMPERIAL NOTE":"imperial100"}

Definition at line 43 of file guild_dues.py.

◆ bankdatabase

string guild_dues.bankdatabase = "ImperialBank_DB"

Definition at line 46 of file guild_dues.py.

◆ buddylist

list guild_dues.buddylist = ['buddy','buddy','buddy','buddy','pal','friend','friend','friend','friend','dude','chum', 'sweetie']

Definition at line 50 of file guild_dues.py.

◆ CoinTypes

dictionary guild_dues.CoinTypes
Initial value:
1 = {
2  "SILVER":1,
3  "GOLD":10,
4  "PLATINUM":50,
5  "JADE":5000,
6  "AMBERIUM":500000,
7  "IMPERIAL NOTE":10000,
8  "TEN IMPERIAL NOTE":100000,
9  "ONE HUNDRED IMPERIAL NOTE":1000000 }

Definition at line 32 of file guild_dues.py.

◆ dues

guild_dues.dues = GuildDues()

Definition at line 347 of file guild_dues.py.

◆ exclaimlist

list guild_dues.exclaimlist = ['Hey','Hey','Hey','Hey', 'Now just a minute', 'AHEM', 'OK...Wait a minute', 'Look chowderhead']

Definition at line 49 of file guild_dues.py.

◆ remarklist

list guild_dues.remarklist = ['Excellent','Thank You','Thank You','Thank You', 'Thank You', 'Great', 'OK', 'Wonderful', 'Swell', 'Dude', 'Big Spender']

Definition at line 48 of file guild_dues.py.

◆ whoami

guild_dues.whoami = Crossfire.WhoAmI()

Definition at line 51 of file guild_dues.py.