Thread: Help with Cycle Events

Results 1 to 8 of 8
  1. #1 Help with Cycle Events 
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    FIXED.

    I need the player to teleport and an interface to show, but the interface to stop after 3 seconds.


    This is What I need implented:


    cycle event 2 seconds :
    c.getPA().startMovement(newX, newY, 0);
    c.getPA().showInterface(18452);
    //after 2 seconds this happens:
    c.getPA().closeAllWindows();


    Fixed this.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2008
    Posts
    411
    Thanks given
    9
    Thanks received
    64
    Rep Power
    38
    Whoaa this is exactly what I need :\ Any chance of you showing how you done it :\?
    Reply With Quote  
     

  3. #3  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by Theukpk View Post
    Whoaa this is exactly what I need :\ Any chance of you showing how you done it :\?
    I can give you a hint, show the interface and move the player(movePlayer, not startTeleport), then use cycle event to closeAllWindows after a certain cycle.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2008
    Posts
    411
    Thanks given
    9
    Thanks received
    64
    Rep Power
    38
    Never helped but I guess I'll learn it at some point Not used event containers or anything like that yet guess it's time to start learning.
    Reply With Quote  
     

  5. #5  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by Theukpk View Post
    Never helped but I guess I'll learn it at some point Not used event containers or anything like that yet guess it's time to start learning.

    http://www.rune-server.org/runescape...events-pi.html


    There's a guide at the bottom, that's how I learned

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2008
    Posts
    411
    Thanks given
    9
    Thanks received
    64
    Rep Power
    38
    Quote Originally Posted by Ninth Legion View Post
    http://www.rune-server.org/runescape...events-pi.html


    There's a guide at the bottom, that's how I learned
    Ahh, thank you very much
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    Here you go:
    Code:
    		CycleEventHandler.getSingleton().addEvent(c, new CycleEvent() {
    			int time = 2;
    			@Override
    			public void execute(CycleEventContainer container) {
    				if (time > 0) {
    					time--;
    				}
    				if (time == 2) {
    					c.getPA().startMovement(newX, newY, 0);
    					c.getPA().showInterface(18452);
    				} else if (time == 0) {
    					c.getPA().closeAllWindows();
    					container.stop();
    				}
    			}
    
    			@Override
    			public void stop() {
    			
    			}
    		}, 1);


    Reply With Quote  
     

  9. #8  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by I'm A Jerk View Post
    Here you go:
    Code:
    		CycleEventHandler.getSingleton().addEvent(c, new CycleEvent() {
    			int time = 2;
    			@Override
    			public void execute(CycleEventContainer container) {
    				if (time > 0) {
    					time--;
    				}
    				if (time == 2) {
    					c.getPA().startMovement(newX, newY, 0);
    					c.getPA().showInterface(18452);
    				} else if (time == 0) {
    					c.getPA().closeAllWindows();
    					container.stop();
    				}
    			}
    
    			@Override
    			public void stop() {
    			
    			}
    		}, 1);
    Like I said, I already fixed, but thanks

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    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] Better Woodcutting w/ Cycle Events [PI]
    By Paradox_ in forum Snippets
    Replies: 15
    Last Post: 02-20-2014, 05:58 PM
  2. [PI] Better Mining w/ Cycle Events [PI]
    By Paradox_ in forum Snippets
    Replies: 18
    Last Post: 09-11-2012, 02:02 AM
  3. Error with cycle events...
    By Red Bull in forum Help
    Replies: 1
    Last Post: 08-16-2012, 05:42 AM
  4. Help w/ Cycle Events
    By L__A in forum Help
    Replies: 3
    Last Post: 06-08-2012, 12:49 AM
  5. Missing a method (Cycle Events).
    By Organic in forum Help
    Replies: 4
    Last Post: 02-11-2011, 10:30 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
  •