Crossfire Server, Trunk
silverslots Namespace Reference

Variables

 activator = Crossfire.WhoIsActivator()
 
 activatorname = activator.Name
 
string cointype = "silvercoin"
 
int cost = 1
 
 id = Crossfire.CreateObjectByName(cointype)
 
int maxpot = 50000
 
string message = "you win %d %s!" %(payoff,cointype)
 
int minpot = 100
 
int pay = 0
 
int payoff = cost*pay
 
 pot = Slots.checkslot()
 
 Quantity
 
 results = Slots.spin(spinners)
 
list slotlist = ["Merchant", "Coin", "Diamond", "Imp", "Devil", "JackPot"]
 
list slotmajor = [.10, .15, .20, .30, .5, 1]
 
list slotminor = [1, 2, 4, 5, 10, 20]
 
string slotname = '%s#%s' %(whoami.Name,whoami.Map.Path)
 
 Slots = CFGamble.SlotMachine(slotname,slotlist,minpot,maxpot)
 
int spinners = 4
 
 whoami = Crossfire.WhoAmI()
 
 x = activator.X
 
 y = activator.Y
 

Variable Documentation

◆ activator

silverslots.activator = Crossfire.WhoIsActivator()

Definition at line 8 of file silverslots.py.

◆ activatorname

silverslots.activatorname = activator.Name

Definition at line 9 of file silverslots.py.

◆ cointype

string silverslots.cointype = "silvercoin"

Definition at line 16 of file silverslots.py.

◆ cost

int silverslots.cost = 1

Definition at line 19 of file silverslots.py.

◆ id

silverslots.id = Crossfire.CreateObjectByName(cointype)

Definition at line 50 of file silverslots.py.

◆ maxpot

int silverslots.maxpot = 50000

Definition at line 18 of file silverslots.py.

◆ message

string silverslots.message = "you win %d %s!" %(payoff,cointype)

Definition at line 54 of file silverslots.py.

◆ minpot

int silverslots.minpot = 100

Definition at line 17 of file silverslots.py.

◆ pay

list silverslots.pay = 0

Definition at line 37 of file silverslots.py.

◆ payoff

silverslots.payoff = cost*pay

Definition at line 48 of file silverslots.py.

◆ pot

silverslots.pot = Slots.checkslot()

Definition at line 38 of file silverslots.py.

◆ Quantity

silverslots.Quantity

Definition at line 51 of file silverslots.py.

◆ results

silverslots.results = Slots.spin(spinners)

Definition at line 36 of file silverslots.py.

◆ slotlist

list silverslots.slotlist = ["Merchant", "Coin", "Diamond", "Imp", "Devil", "JackPot"]

Definition at line 22 of file silverslots.py.

◆ slotmajor

list silverslots.slotmajor = [.10, .15, .20, .30, .5, 1]

Definition at line 27 of file silverslots.py.

◆ slotminor

list silverslots.slotminor = [1, 2, 4, 5, 10, 20]

Definition at line 26 of file silverslots.py.

◆ slotname

string silverslots.slotname = '%s#%s' %(whoami.Name,whoami.Map.Path)

Definition at line 12 of file silverslots.py.

◆ Slots

Definition at line 32 of file silverslots.py.

◆ spinners

int silverslots.spinners = 4

Definition at line 29 of file silverslots.py.

◆ whoami

silverslots.whoami = Crossfire.WhoAmI()

Definition at line 10 of file silverslots.py.

◆ x

silverslots.x = activator.X

Definition at line 13 of file silverslots.py.

◆ y

silverslots.y = activator.Y

Definition at line 14 of file silverslots.py.