Jump to content
  • 0

[Help]Se Auto Announce


Question

Posted

Help ligo gt einai ligo periploko(Gia emena)Pos na valo auto announce,,

 

8elw na valo auto announce Ston server mou DlD na grafi tin selida tou server kai kati dikamou rules.Ginete na me help 1 leptaki :)

4 answers to this question

Recommended Posts

  • 0
Posted

Pare ena Auto Anncoucement

http://www.4shared.com/file/90486861/ef7109fd/Auto_Announcements.html

 

mesa exei ena __init_py 8a to anoi3eis me notepad kai 8a sou emfanisei ayta :

 

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 <--- edw dialegeis ton xrwno pou 8a sou to emfasis se mininute

ANNOUNCEMENT_1="Welcome to www.maxcheaters.com" <--- grafeis oti 8eleis

ANNOUNCEMENT_2="Have fun" <---- grafeis oti 8eleis

 

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*60000,INTERVAL*60000)

 

ayto kai save ama 8eleis poio polla

 

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="Welcome to www.maxcheaters.com"

ANNOUNCEMENT_2="Have Fun"

ANNOUNCEMENT_3="Have Fun" <---grefeis allo ena apo kato tou kai to vazeis tria

 

class myTask( Runnable ):

    def __init__( self ):

        self.name = "autoAnnouncer"

    def run( self ):

        Announcements.getInstance().announceToAll(ANNOUNCEMENT_1)

        Announcements.getInstance().announceToAll(ANNOUNCEMENT_2)

        Announcements.getInstance().announceToAll(ANNOUNCEMENT_3) <-kai edw vazeis 3

 

startInstance = myTask()

ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(startInstance,INTERVAL*60000,INTERVAL*60000)

 

8a mporousa kai poio analitika alla den prolaveno..!

Guest
This topic is now closed to further replies.


×
×
  • Create New...