Crossfire Server, Trunk
|
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 | |
imperialslots.activator = Crossfire.WhoIsActivator() |
Definition at line 10 of file imperialslots.py.
imperialslots.activatorname = activator.Name |
Definition at line 11 of file imperialslots.py.
string imperialslots.cointype = "imperial" |
Definition at line 18 of file imperialslots.py.
int imperialslots.cost = 1 |
Definition at line 21 of file imperialslots.py.
imperialslots.id = Crossfire.CreateObjectByName(cointype) |
Definition at line 54 of file imperialslots.py.
int imperialslots.maxpot = 10000 |
Definition at line 20 of file imperialslots.py.
string imperialslots.message = "you win %d %s!" %(payoff,cointype) |
Definition at line 58 of file imperialslots.py.
int imperialslots.minpot = 200 |
Definition at line 19 of file imperialslots.py.
imperialslots.object = activator.CheckInventory(cointype) |
Definition at line 35 of file imperialslots.py.
list imperialslots.pay = CFItemBroker.Item(object).subtract(cost) |
Definition at line 37 of file imperialslots.py.
Definition at line 52 of file imperialslots.py.
imperialslots.pot = Slots.checkslot() |
Definition at line 42 of file imperialslots.py.
imperialslots.Quantity |
Definition at line 55 of file imperialslots.py.
imperialslots.results = Slots.spin(spinners) |
Definition at line 40 of file imperialslots.py.
list imperialslots.slotlist = ["Dread", "Dragon", "Knight", "Wizard", "Titan", "Septre", "Emperor", "JackPot"] |
Definition at line 24 of file imperialslots.py.
list imperialslots.slotmajor = [.1, .15, .20, .25, .30, .40, .50, 1] |
Definition at line 29 of file imperialslots.py.
list imperialslots.slotminor = [1, 2, 3, 4, 5, 6, 10, 20] |
Definition at line 28 of file imperialslots.py.
string imperialslots.slotname = '%s#%s' %(whoami.Name,whoami.Map.Path) |
Definition at line 14 of file imperialslots.py.
imperialslots.Slots = CFGamble.SlotMachine(slotname,slotlist,minpot,maxpot) |
Definition at line 33 of file imperialslots.py.
int imperialslots.spinners = 4 |
Definition at line 31 of file imperialslots.py.
imperialslots.whoami = Crossfire.WhoAmI() |
Definition at line 12 of file imperialslots.py.
imperialslots.x = activator.X |
Definition at line 15 of file imperialslots.py.
imperialslots.y = activator.Y |
Definition at line 16 of file imperialslots.py.