Developer Store
Support
Member Forums

Screenshots
FAQ
Documentation
License
Known Issues
Downloads

MMOWorkshop.com Store Opened!
Torque MMO Kit - Open Sourced!
Torque MMO Kit - 1.5.2 Port Alpha Test
Torque MMO Kit - OSX Status

GarageGames.com irc.prairiegames.com
#mmoworkshop

PyTorque
TGB Web Browser


karvermimic

mpratt - MMO Game
xapken - nice
foodstamp - Another Day Another Step Accomplished
hallsofvalhalla - After a long epiphany
Leathel - FoHO pre-Alpha 2.42
OldRod - More Musings on the MMO Industry
J.C. Smith - 0.0.4.1 Build Notes
Wolf Dreamer - Pointless blog of pointless things
... MORE BLOGS!

No worlds showing up
Problem with reactor.connectTCP(...
Quest Remnants of Chaos
Foundations of Hope Online
need help with creating spells
avatar
ITEM VARIANTS ERADICATED... (for...
Recruiting a artist and 3D artis...
Looking for support and 3D model...
Trouble

Changeset 290

Show
Ignore:
Timestamp:
08/25/07 10:57:03 (1 year ago)
Author:
prairiegames
Message:

change to only announce to raffle ticket winner

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/games/minionsofmirth/v1/mud/characterserver/server.py

    r289 r290  
    291291        return (gplayers,muted) 
    292292         
    293     def broadcastRaffle(self,msg): 
     293    def broadcastRaffle(self,msg,pname): 
    294294        try: 
    295295            d = self.perspective.callRemote("broadcastRaffle",msg)  
     
    570570        cname = ACTIVE_PLAYER_TIMES[name][1] 
    571571        for wname,wconn in WORLD_CONNECTIONS.iteritems(): 
    572             wconn.broadcastRaffle("Congratulations %s!!!  You have won a ticket in the Halloween Raffle!  The next ticket will be awarded in one hour.  For information on the Halloween Raffle, visit http://minions.prairiegames.com!"%cname) 
     572            wconn.broadcastRaffle("Congratulations %s!!!  You have won a ticket in the Halloween Raffle!  For information on the Halloween Raffle, visit http://minions.prairiegames.com!"%cname,name) 
    573573             
    574574    elif not force: 
    575575        print "No one eligible for raffle" 
    576         for wname,wconn in WORLD_CONNECTIONS.iteritems(): 
    577             wconn.broadcastRaffle("There aren't enough eligible players online to hold a raffle ticket drawing.  There must be at least 5 eligible players online to award a ticket!  For information on the Halloween Raffle, visit http://minions.prairiegames.com!") 
     576        #for wname,wconn in WORLD_CONNECTIONS.iteritems(): 
     577        #    wconn.broadcastRaffle("There aren't enough eligible players online to hold a raffle ticket drawing.  There must be at least 5 eligible players online to award a ticket!  For information on the Halloween Raffle, visit http://minions.prairiegames.com!") 
    578578 
    579579    cursor.close() 
     
    583583         
    584584def RaffleTicket(): 
    585     reactor.callLater(60*60,RaffleTicket) #make sure we're called again no matter what! 
     585    reactor.callLater(10*60,RaffleTicket) #make sure we're called again no matter what! 
    586586     
    587587    AwardTicket() 
     
    601601    reactor.callLater(60*60,ReplicateDatabases) 
    602602     
    603 reactor.callLater(60*60,RaffleTicket) 
     603reactor.callLater(10*60,RaffleTicket) 
    604604     
    605605reactor.run() 
  • trunk/games/minionsofmirth/v1/mud/world/cserveravatar.py

    r288 r290  
    258258            print_exc() 
    259259             
    260     def remote_broadcastRaffle(self,msg): 
     260    def remote_broadcastRaffle(self,msg,pname): 
    261261        if not AVATAR or not AVATAR.world: 
    262262            return 
     
    265265 
    266266        for p in world.activePlayers: 
    267             try: 
    268                 p.sendSpeechText(RPG_MSG_SPEECH_SYSTEM,msg) 
    269             except: 
    270                 pass 
     267            if p.publicName.lower() == pname.lower() or not pname: 
     268                try: 
     269                    p.sendSpeechText(RPG_MSG_SPEECH_SYSTEM,msg) 
     270                except: 
     271                    pass 
    271272 
    272273         
  • trunk/games/minionsofmirth/v1/mud/worlddaemon/charservices.py

    r288 r290  
    4040        self.repfiles = {} 
    4141         
    42     def perspective_broadcastRaffle(self,msg): 
     42    def perspective_broadcastRaffle(self,msg,pname): 
    4343        for avatar in CServerAvatar.worldCSAvatars.itervalues(): 
    4444            try: 
    45                 avatar.callRemote("broadcastRaffle",msg
     45                avatar.callRemote("broadcastRaffle",msg,pname
    4646            except: 
    4747                pass