Thread: PI Auto server message?

Results 1 to 7 of 7
  1. #1 PI Auto server message? 
    Registered Member
    Join Date
    Apr 2012
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Okay i've looked EVERYWHERE for a TuT on this but i obviously can'y find one that's why i'm here, But here's my problems whenever i add the server message in i add it in correctly but i keep getting this error

    Code:
    source\server\model\players\Client.java:1878: error: cannot find symbol
                    EventManager.getSingleton().addEvent(new Event() {
                                                             ^
      symbol:   class Event
      location: class Client
    source\server\model\players\Client.java:1878: error: cannot find symbol
                    EventManager.getSingleton().addEvent(new Event() {
                    ^
      symbol:   variable EventManager
      location: class Client
    Note: source\server\model\players\Client.java uses or overrides a deprecated API
    .
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    Here's my server message code

    Code:
    public void mymessage() {
    		EventManager.getSingleton().addEvent(new Event() {
    			public void execute(EventContainer c) {
    				int r3 = 0;
    				r3 = Misc.random(6);
    				if (r3 == 0) {
    					sendMessage("<shad=15695415>[Fantillo Bot</col>]: Please type ::vote each 24 hours for a reward!");
    				} else if (r3 == 1) {           
    					sendMessage("<shad=15695415>[Fantillo Bot</col>]: BONUS XP WEEK: Don't forget to train hard stats!");		
    				} else if (r3 == 2) { 
    					sendMessage("<shad=15695415>[Fantillo Bot</col>]: Please Register on our awesome site at http://fantilloscape.hostzi.com/index.php?action=forum");
    				} else if (r3 == 3) {
    					sendMessage("<shad=15695415>[Fantillo Bot</col>]: Please, set a BANK PIN in varrock bank!!!");
    				} else if (r3 == 4) {
    					sendMessage("<shad=15695415>[Fantillo Bot</col>]: Please report ALL bugs, glitches ect on the forums, to get them fixed.");
    				} else if (r3 == 5) {
    					sendMessage("<shad=15695415>[Fantillo Bot</col>]: Don't forget to register on forums ::register");
    				}
    			}
    		}, 160000); //milisecondsservermessage
    	};
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Apr 2012
    Posts
    762
    Thanks given
    0
    Thanks received
    276
    Rep Power
    213
    import your event classes?
    Reply With Quote  
     

  3. #3  
    Extreme Donator PI Auto server message? Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Lmfao. Read the error, import EventManager
    Reply With Quote  
     

  4. #4  
    Registered Member
    LeBron James's Avatar
    Join Date
    Jan 2009
    Posts
    1,510
    Thanks given
    166
    Thanks received
    129
    Rep Power
    165
    Sometimes it isn't always the import but a different event manager system. I've had the same problem until I replaced it with CycleEvents.



    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Running an event the whole time the server is on isn't something smart...
    Reply With Quote  
     

  6. #6  
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    33
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Rep Power
    117
    Quote Originally Posted by iRageQuit2012 View Post
    Running an event the whole time the server is on isn't something smart...
    the whole PI server is a series of bad events.. it's not the best no matter what way you look at it O_o but that would be better than running it in the players processes.
    potatoes.
    Reply With Quote  
     

  7. #7  
    #Winning

    Join Date
    Apr 2011
    Age
    28
    Posts
    2,245
    Thanks given
    367
    Thanks received
    388
    Rep Power
    1187
    Add the event manager or if you have the CycleEventManager change your naming to that.


    Vouches
    Spoiler for Vouches:

    Quote Originally Posted by Exile rsps View Post
    Vouch thanks for that pic
    Quote Originally Posted by bwuk _im_pb View Post
    i vouch for charlie hes legit
    Quote Originally Posted by Pastaway
    Vouch for 'Charlie. Added a tut to my server I couldn't add and payed him after =]
    Quote Originally Posted by mongolias
    Vouch for 'Charlie. Sold me a banner, the trade went quick and efficiently.
    Quote Originally Posted by Lane
    Vouch for charlie, he is #1
    Quote Originally Posted by Raw Envy View Post
    Vouch for Charlie.
    Quote Originally Posted by -Null Code-
    Vouch Legit bought rs membership
    Quote Originally Posted by tucybro
    Traded with Charlie, went smoothly I went first and he paid promptly without and issues, great trader!



    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Auto server message
    By Bells in forum Snippets
    Replies: 44
    Last Post: 08-03-2014, 04:28 AM
  2. Replies: 18
    Last Post: 11-07-2012, 01:11 PM
  3. auto message every hr
    By jessie thompson in forum Help
    Replies: 5
    Last Post: 03-12-2011, 12:35 PM
  4. auto, random server message/yell? rep
    By b00mz in forum Help
    Replies: 4
    Last Post: 12-09-2010, 11:46 PM
  5. Auto Message!
    By Infexis in forum Snippets
    Replies: 7
    Last Post: 02-07-2010, 10:04 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •