Jump to content
  • 0

Ligo help me ora Announce


Question

Posted

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

  • 0
Posted

Katarxas Bale to [Help] Sto Title Sou Nomizo Prepei Na alla3ei Mono To 1o

Kai Mhn Kaneis Double Post An Einai Kapoios Na Apanthsei Tha Apanthsei...

  • 0
Posted

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

 

 

Kalispera File mou to mono pou exeis na alla3eis einai afto:

INTERVAL = 1 << 15 Gia 15 min....

 

Ekei pou sou exw me prasino ala3eis ta announce ;) Pistebw na se help

Guest
This topic is now closed to further replies.


×
×
  • Create New...