- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
gabriel20
Kalispera gyes thelw na me voithsi kapios na alakso ora sto aouto announce gt opote mpeno ta grafi kathe 1 lepto ego thelo na ta grafi kathe 15 lepta ti tha valo sto interval gia ta 15 lepta?
print "Loading auto announcements..."
import sys
from net.sf.l2j.gameserver import Announcements
from net.sf.l2j.gameserver import ThreadPoolManager
from java.lang import Runnable
INTERVAL = 1
ANNOUNCEMENT_1="lineage "
ANNOUNCEMENT_2="lineage"
class myTask( Runnable ):
def __init__( self ):
self.name = "autoAnnouncer"
def run( self ):
Announcements.getInstance().announceToAll(ANNOUNCEMENT_1)
Announcements.getInstance().announceToAll(ANNOUNCEMENT_2)
startInstance = myTask()
ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(startInstance,INTERVAL*90000,INTERVAL*90000) <--- edo ti vazo gia na ta grafi kathe 15 lepta? efxaristo
5 answers to this question
Recommended Posts