9 activator=Crossfire.WhoIsActivator()
10 activatorname=activator.Name
11 whoami=Crossfire.WhoAmI()
13 slotname=
'%s#%s' %(whoami.Name,whoami.Map.Path)
23 slotlist = [
"Club",
"Staff",
"Shield",
"Sword",
"Wand",
"Scroll",
"JackPot"]
27 slotminor = [1, 2, 3, 4, 5, 10, 20]
28 slotmajor = [.10, .15, .20, .25, .35, .50, 1]
35 if (activator.PayAmount(cost*10)):
37 results = Slots.spin(spinners)
39 pot = Slots.checkslot()
40 activator.Write(
'%s' %results, 7)
43 if results.count(item) == spinners-1:
45 pay = slotminor[slotlist.index(item)]
48 activator.Write(
"%d %ss, a minor win!" %(spinners-1,item))
51 id = Crossfire.CreateObjectByName(cointype)
53 id.InsertInto(activator)
55 message =
"you win %d %s!" %(payoff,cointype)
57 message =
"You win %d %ss!!" %(payoff,cointype)
59 elif results.count(item) == spinners:
61 activator.Write(
'%d %ss, a Major win!' %(spinners,item))
63 pay = slotmajor[slotlist.index(item)]
68 id = Crossfire.CreateObjectByName(cointype)
70 id.InsertInto(activator)
72 message =
"you win %d %s!" %(payoff,cointype)
74 message =
"You win %d %ss!!" %(payoff,cointype)
77 message =
"Better luck next time!"
78 activator.Write(message)
79 activator.Write(
"%d in the Jackpot, Play again?" %Slots.checkslot())
81 activator.Write(
"Sorry, you do not have enough money")