Thread: Help with a command

Results 1 to 3 of 3
  1. #1 Help with a command 
    Registered Member
    Join Date
    Nov 2010
    Posts
    25
    Thanks given
    4
    Thanks received
    1
    Rep Power
    1
    Well i'm am trying to rip the "emoteloop" command from Xyle, And when i add it i get these errors. I can't seem to fix them
    Code:
    src\server\model\players\packets\Commands.java:2390: cannot find symbol
    symbol  : class Event
    location: class server.model.players.packets.Commands
                                    EventManager.getSingleton().addEvent(new Event()
     {
                                                                             ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . ..
    This is the command
    Code:
    			if (playerCommand.startsWith("emoteloop")) {
    				c.animLoop = !c.animLoop;
    				String[] args = playerCommand.split(" ");
    				c.animToDo = Integer.parseInt(args[1]);
    				final Client player = c;
    				EventManager.getSingleton().addEvent(new Event() {
    					public void execute(EventContainer o) {
    						if (player.animLoop) {
    							player.sendMessage("Anim: " + player.animToDo);
    							player.startAnimation(65535);
    							player.getPA().requestUpdates();
    							player.startAnimation(player.animToDo++);
    						} else 
    							o.stop();
    					}
    				}, 1000);
    			}
    Help appreciated .
    Fixed most errors got one that i can't fix. :\
    Reply With Quote  
     

  2. #2  
    Registered Member
    Kobra's Avatar
    Join Date
    Dec 2009
    Posts
    652
    Thanks given
    215
    Thanks received
    84
    Rep Power
    88
    import server.event.EventManager;
    import server.event.Event;
    import server.event.EventContainer;
    Reply With Quote  
     

  3. #3  
    LMFAOOOOOOOOOOOOOOOO

    Join Date
    May 2011
    Posts
    2,451
    Thanks given
    2,194
    Thanks received
    737
    Rep Power
    5000
    add the imports for events lol
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Replies: 50
    Last Post: 04-17-2014, 02:19 PM
  2. Replies: 3
    Last Post: 07-02-2011, 01:57 AM
  3. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  4. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  5. Replies: 4
    Last Post: 02-13-2009, 12:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •