Crossfire Server, Trunk
goldslots Namespace Reference

Variables

 activator = Crossfire.WhoIsActivator()
 
 activatorname = activator.Name
 
string cointype = "goldcoin"
 
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 = ["Club", "Staff", "Shield", "Sword", "Wand", "Scroll", "JackPot"]
 
list slotmajor = [.10, .15, .20, .25, .35, .50, 1]
 
list slotminor = [1, 2, 3, 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

goldslots.activator = Crossfire.WhoIsActivator()

Definition at line 9 of file goldslots.py.

◆ activatorname

goldslots.activatorname = activator.Name

Definition at line 10 of file goldslots.py.

◆ cointype

string goldslots.cointype = "goldcoin"

Definition at line 17 of file goldslots.py.

◆ cost

int goldslots.cost = 1

Definition at line 20 of file goldslots.py.

◆ id

goldslots.id = Crossfire.CreateObjectByName(cointype)

Definition at line 51 of file goldslots.py.

◆ maxpot

int goldslots.maxpot = 50000

Definition at line 19 of file goldslots.py.

◆ message

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

Definition at line 55 of file goldslots.py.

◆ minpot

int goldslots.minpot = 100

Definition at line 18 of file goldslots.py.

◆ pay

list goldslots.pay = 0

Definition at line 38 of file goldslots.py.

◆ payoff

goldslots.payoff = cost*pay

Definition at line 49 of file goldslots.py.

◆ pot

goldslots.pot = Slots.checkslot()

Definition at line 39 of file goldslots.py.

◆ Quantity

goldslots.Quantity

Definition at line 52 of file goldslots.py.

◆ results

goldslots.results = Slots.spin(spinners)

Definition at line 37 of file goldslots.py.

◆ slotlist

list goldslots.slotlist = ["Club", "Staff", "Shield", "Sword", "Wand", "Scroll", "JackPot"]

Definition at line 23 of file goldslots.py.

◆ slotmajor

list goldslots.slotmajor = [.10, .15, .20, .25, .35, .50, 1]

Definition at line 28 of file goldslots.py.

◆ slotminor

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

Definition at line 27 of file goldslots.py.

◆ slotname

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

Definition at line 13 of file goldslots.py.

◆ Slots

Definition at line 33 of file goldslots.py.

◆ spinners

int goldslots.spinners = 4

Definition at line 30 of file goldslots.py.

◆ whoami

goldslots.whoami = Crossfire.WhoAmI()

Definition at line 11 of file goldslots.py.

◆ x

goldslots.x = activator.X

Definition at line 14 of file goldslots.py.

◆ y

goldslots.y = activator.Y

Definition at line 15 of file goldslots.py.