10 activator=Crossfire.WhoIsActivator()
11 activatorname=activator.Name
12 whoami=Crossfire.WhoAmI()
14 slotname=
'%s#%s' %(whoami.Name,whoami.Map.Path)
24 slotlist = [
"Dread",
"Dragon",
"Knight",
"Wizard",
"Titan",
"Septre",
"Emperor",
"JackPot"]
28 slotminor = [1, 2, 3, 4, 5, 6, 10, 20]
29 slotmajor = [.1, .15, .20, .25, .30, .40, .50, 1]
35 object = activator.CheckInventory(cointype)
36 if (object)
and not object.Unpaid:
40 results = Slots.spin(spinners)
42 pot = Slots.checkslot()
43 activator.Write(
'%s' %results, 7)
46 if results.count(item) == spinners-1:
48 pay = slotminor[slotlist.index(item)]
51 activator.Write(
"%d %ss, a minor win!" %(spinners-1,item))
54 id = Crossfire.CreateObjectByName(cointype)
56 id.InsertInto(activator)
58 message =
"you win %d %s!" %(payoff,cointype)
60 message =
"You win %d %ss!!" %(payoff,cointype)
62 elif results.count(item) == spinners:
64 activator.Write(
'%d %ss, a Major win!' %(spinners,item))
66 pay = slotmajor[slotlist.index(item)]
71 id = Crossfire.CreateObjectByName(cointype)
73 id.InsertInto(activator)
75 message =
"you win %d %s!" %(payoff,cointype)
77 message =
"You win %d %ss!!" %(payoff,cointype)
80 message =
"Better luck next time!"
81 activator.Write(message)
82 activator.Write(
"%d in the Jackpot, Play again?" %Slots.checkslot())
84 activator.Write(
"Sorry, you do not have enough %ss" %(cointype))
86 activator.Write(
"Sorry, you do not have any %ss" %(cointype))