Crossfire Server, Trunk
imperialslots Namespace Reference

Variables

 activator = Crossfire.WhoIsActivator()
 
 activatorname = activator.Name
 
string cointype = "imperial"
 
int cost = 1
 
 id = Crossfire.CreateObjectByName(cointype)
 
int maxpot = 10000
 
string message = "you win %d %s!" %(payoff,cointype)
 
int minpot = 200
 
 object = activator.CheckInventory(cointype)
 
 pay = CFItemBroker.Item(object).subtract(cost)
 
int payoff = cost*pay
 
 pot = Slots.checkslot()
 
 Quantity
 
 results = Slots.spin(spinners)
 
list slotlist = ["Dread", "Dragon", "Knight", "Wizard", "Titan", "Septre", "Emperor", "JackPot"]
 
list slotmajor = [.1, .15, .20, .25, .30, .40, .50, 1]
 
list slotminor = [1, 2, 3, 4, 5, 6, 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

imperialslots.activator = Crossfire.WhoIsActivator()

Definition at line 10 of file imperialslots.py.

◆ activatorname

imperialslots.activatorname = activator.Name

Definition at line 11 of file imperialslots.py.

◆ cointype

string imperialslots.cointype = "imperial"

Definition at line 18 of file imperialslots.py.

◆ cost

int imperialslots.cost = 1

Definition at line 21 of file imperialslots.py.

◆ id

imperialslots.id = Crossfire.CreateObjectByName(cointype)

Definition at line 54 of file imperialslots.py.

◆ maxpot

int imperialslots.maxpot = 10000

Definition at line 20 of file imperialslots.py.

◆ message

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

Definition at line 58 of file imperialslots.py.

◆ minpot

int imperialslots.minpot = 200

Definition at line 19 of file imperialslots.py.

◆ object

imperialslots.object = activator.CheckInventory(cointype)

Definition at line 35 of file imperialslots.py.

◆ pay

list imperialslots.pay = CFItemBroker.Item(object).subtract(cost)

Definition at line 37 of file imperialslots.py.

◆ payoff

imperialslots.payoff = cost*pay

Definition at line 52 of file imperialslots.py.

◆ pot

imperialslots.pot = Slots.checkslot()

Definition at line 42 of file imperialslots.py.

◆ Quantity

imperialslots.Quantity

Definition at line 55 of file imperialslots.py.

◆ results

imperialslots.results = Slots.spin(spinners)

Definition at line 40 of file imperialslots.py.

◆ slotlist

list imperialslots.slotlist = ["Dread", "Dragon", "Knight", "Wizard", "Titan", "Septre", "Emperor", "JackPot"]

Definition at line 24 of file imperialslots.py.

◆ slotmajor

list imperialslots.slotmajor = [.1, .15, .20, .25, .30, .40, .50, 1]

Definition at line 29 of file imperialslots.py.

◆ slotminor

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

Definition at line 28 of file imperialslots.py.

◆ slotname

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

Definition at line 14 of file imperialslots.py.

◆ Slots

Definition at line 33 of file imperialslots.py.

◆ spinners

int imperialslots.spinners = 4

Definition at line 31 of file imperialslots.py.

◆ whoami

imperialslots.whoami = Crossfire.WhoAmI()

Definition at line 12 of file imperialslots.py.

◆ x

imperialslots.x = activator.X

Definition at line 15 of file imperialslots.py.

◆ y

imperialslots.y = activator.Y

Definition at line 16 of file imperialslots.py.