Thread: PI EventManager.getSingleton().addEvent(new Event() { help?

Results 1 to 9 of 9
  1. #1 PI EventManager.getSingleton().addEvent(new Event() { help? 
    Registered Member
    Join Date
    Nov 2013
    Posts
    63
    Thanks given
    25
    Thanks received
    4
    Rep Power
    33
    In my client.java i'm trying to add Anti fire potion.
    I get an error,i hope someone can help me.
    I will thank a few posts. If you want to help me i will send my Skype or just reply. Thanks

    Code:
    public void antiFirePotion(){
    		EventManager.getSingleton().addEvent(new Event() {
    			public void execute(EventContainer c) {
    				antiFirePot = false;	
    				sendMessage("Your resistance to dragon fire has worn off.");
    				c.stop();
    			}
    		}, 120000);
    		
    	}



    I followed this guide http://www.rune-server.org/runescape...ifire-pot.html

    If anyone knows a better one for pi please tell me also If i drink the potion and im not wearing anti dragon or dragon fire shield Dragon fire always hits 0 and when i wear anti dragon or dragon fire shield the dragonfire hits me.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Imports..
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jan 2013
    Posts
    583
    Thanks given
    343
    Thanks received
    146
    Rep Power
    163

    I don't know what you heard about me
    But a pleb can't get a rep out of me
    No rep, no thanks, you can't see
    That I'm a mother****ing P - I - M - P

    Cool Cats
    Thakiller 🎺 Scu11 🎸 Tyler 🎷 Lare 🎤 ur nan
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Nov 2013
    Posts
    63
    Thanks given
    25
    Thanks received
    4
    Rep Power
    33
    Thank you for this guide. But again im having problems with the CycleEvent :/

    Can you take a look @ my error and tell me how i can fix it please? Thanks in advance.

    Attached image
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    You're missing a bracket.. The bracket that closes the class..
    Reply With Quote  
     

  7. #6  
    Registered Member

    Join Date
    Jan 2013
    Posts
    583
    Thanks given
    343
    Thanks received
    146
    Rep Power
    163
    Quote Originally Posted by Boris View Post
    Thank you for this guide. But again im having problems with the CycleEvent :/

    Can you take a look @ my error and tell me how i can fix it please? Thanks in advance.

    Attached image
    Move those 2 things it tells you to add right below void stop()

    I don't know what you heard about me
    But a pleb can't get a rep out of me
    No rep, no thanks, you can't see
    That I'm a mother****ing P - I - M - P

    Cool Cats
    Thakiller 🎺 Scu11 🎸 Tyler 🎷 Lare 🎤 ur nan
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    #Winning

    Join Date
    Apr 2011
    Age
    28
    Posts
    2,245
    Thanks given
    367
    Thanks received
    388
    Rep Power
    1187
    Quote Originally Posted by True Faith View Post
    You're missing a bracket.. The bracket that closes the class..

    5 errors yes missing a bracket


    No just import the CycleEvent classes.


    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  
     

  10. #8  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Charlie View Post
    5 errors yes missing a bracket


    No just import the CycleEvent classes.
    Read before you post

    Quote Originally Posted by Boris View Post
    Thank you for this guide. But again im having problems with the CycleEvent :/

    Can you take a look @ my error and tell me how i can fix it please? Thanks in advance.

    Attached image


    I already suggested that for his first problem but he decided to use a new tut. His problem was, he added crap under te closing bracket and not before it
    Reply With Quote  
     

  11. #9  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    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. Replies: 18
    Last Post: 01-02-2013, 11:17 PM
  2. [PI] New hitmark help
    By justhin in forum Help
    Replies: 2
    Last Post: 06-13-2011, 09:59 PM
  3. Replies: 4
    Last Post: 04-23-2011, 07:02 PM
  4. [pi] new drags help!!!
    By Monster in forum Help
    Replies: 5
    Last Post: 04-23-2011, 05:56 AM
  5. [PI] Am new, easy help
    By Humbler in forum Help
    Replies: 11
    Last Post: 09-01-2010, 10:05 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
  •