Crossfire Server, Trunk
platinumslots Namespace Reference

Variables

 activator = Crossfire.WhoIsActivator()
 
 activatorname = activator.Name
 
string cointype = "platinacoin"
 
int cost = 1
 
 id = Crossfire.CreateObjectByName(cointype)
 
int maxpot = 100000
 
string message = "you win %d %s!" %(payoff,cointype)
 
int minpot = 200
 
int pay = 0
 
int payoff = cost*pay
 
 pot = Slots.checkslot()
 
 Quantity
 
 results = Slots.spin(spinners)
 
list slotlist = ["Jester", "Lord", "Lady", "Prince", "Princess", "King", "Queen", "JackPot"]
 
list slotmajor = [.1, .15, .25, .3, .4, .5, .6, 1]
 
list slotminor = [1, 2, 3, 4, 5, 10, 20, 25]
 
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

platinumslots.activator = Crossfire.WhoIsActivator()

Definition at line 9 of file platinumslots.py.

◆ activatorname

platinumslots.activatorname = activator.Name

Definition at line 10 of file platinumslots.py.

◆ cointype

string platinumslots.cointype = "platinacoin"

Definition at line 17 of file platinumslots.py.

◆ cost

int platinumslots.cost = 1

Definition at line 20 of file platinumslots.py.

◆ id

platinumslots.id = Crossfire.CreateObjectByName(cointype)

Definition at line 51 of file platinumslots.py.

◆ maxpot

int platinumslots.maxpot = 100000

Definition at line 19 of file platinumslots.py.

◆ message

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

Definition at line 55 of file platinumslots.py.

◆ minpot

int platinumslots.minpot = 200

Definition at line 18 of file platinumslots.py.

◆ pay

list platinumslots.pay = 0

Definition at line 38 of file platinumslots.py.

◆ payoff

platinumslots.payoff = cost*pay

Definition at line 49 of file platinumslots.py.

◆ pot

platinumslots.pot = Slots.checkslot()

Definition at line 39 of file platinumslots.py.

◆ Quantity

platinumslots.Quantity

Definition at line 52 of file platinumslots.py.

◆ results

platinumslots.results = Slots.spin(spinners)

Definition at line 37 of file platinumslots.py.

◆ slotlist

list platinumslots.slotlist = ["Jester", "Lord", "Lady", "Prince", "Princess", "King", "Queen", "JackPot"]

Definition at line 23 of file platinumslots.py.

◆ slotmajor

list platinumslots.slotmajor = [.1, .15, .25, .3, .4, .5, .6, 1]

Definition at line 28 of file platinumslots.py.

◆ slotminor

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

Definition at line 27 of file platinumslots.py.

◆ slotname

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

Definition at line 13 of file platinumslots.py.

◆ Slots

Definition at line 33 of file platinumslots.py.

◆ spinners

int platinumslots.spinners = 4

Definition at line 30 of file platinumslots.py.

◆ whoami

platinumslots.whoami = Crossfire.WhoAmI()

Definition at line 11 of file platinumslots.py.

◆ x

platinumslots.x = activator.X

Definition at line 14 of file platinumslots.py.

◆ y

platinumslots.y = activator.Y

Definition at line 15 of file platinumslots.py.