Thread: Xmas event help(close)

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Xmas event help(close) 
    CorruptionPVP CODER
    Kronos's Avatar
    Join Date
    Aug 2011
    Posts
    850
    Thanks given
    148
    Thanks received
    32
    Rep Power
    128
    [Only registered and activated users can see links. ]

    so basically i added the xmas event and its all kewl working fine but at the end wen i finish im all done got reward i can still go back into the portal which takes me to santa's workshop i want it that you cant go back in the work shop wen ur done anyone knows how? my portal id
    Code:
    11356
    really need this

    *EDIT*

    need help on this error
    Code:
    src\server\model\players\ActionHandler.java:64: incompatible types
    found   : int
    required: boolean
                                         if (c.doneEvent = 1) {
                                                         ^
    src\server\model\players\ActionHandler.java:66: incompatible types
    found   : int
    required: boolean
                                         } else if (c.doneEvent = 0) {
                                                                ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .

    i added this
    Code:
    actionhandler.java  firstlclickobject,
    
    case 11356:
    
    Code:
    if (c.doneEvent = 1) {
       c.sendMessage("You have already done this event!");
    } else if (c.doneEvent = 0) {
       //enter portal method here
      c.doneEvent == 1;
    }
    break;
    player.java
    Code:
    public int doneEvent = 0;
    playersave.java
    Code:
    					} else if (token.equals("doneEvent")) {
    						p.doneEvent = Integer.parseInt(token2);
    Code:
    			characterfile.write("doneEvent = ", 0, 12);
    			characterfile.write(Integer.toString(p.doneEvent), 0, Integer.toString(p.doneEvent).length());
    			characterfile.newLine();
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,764
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    actionhandler.java firstlclickobject,

    case 11356:
    Code:
    if (c.doneEvent = 1) {
       c.sendMessage("You have already done this event!");
    } else if (c.doneEvent = 0) {
       //enter portal method here
      c.doneEvent == 1;
    }
    break;
    player.java

    Code:
    public int doneEvent = 0;
    playersave.java

    Code:
    					} else if (token.equals("doneEvent")) {
    						p.doneEvent = Integer.parseInt(token2);
    Code:
    			characterfile.write("doneEvent = ", 0, 12);
    			characterfile.write(Integer.toString(p.doneEvent), 0, Integer.toString(p.doneEvent).length());
    			characterfile.newLine();
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Jun 2011
    Posts
    2,562
    Thanks given
    539
    Thanks received
    402
    Rep Power
    658
    ActionHandler or FirstClickObject find your case that handles going into the portal

    Something like:

    Code:
    } else if (c.minigameProgress == 2) {
    c.sendMessage("You've already completed the event!");
    return;
    }
    All the best,
    Nirvana

    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,764
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    Quote Originally Posted by Valedictorian View Post
    ActionHandler or FirstClickObject find your case that handles going into the portal

    Something like:

    Code:
    } else if (c.minigameProgress == 2) {
    c.sendMessage("You've already completed the event!");
    return;
    }
    read post above
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  5. #5  
    Member
    Join Date
    Aug 2011
    Posts
    275
    Thanks given
    29
    Thanks received
    23
    Rep Power
    0
    No points xmas is going to be over
    Reply With Quote  
     

  6. #6  
    CorruptionPVP CODER
    Kronos's Avatar
    Join Date
    Aug 2011
    Posts
    850
    Thanks given
    148
    Thanks received
    32
    Rep Power
    128
    Quote Originally Posted by JAM3S View Post
    No points xmas is going to be over
    doing it for december/january
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,371
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    = sets a value, == checks a value.
    [Only registered and activated users can see links. ]


    Reply With Quote  
     

  8. #8  
    CorruptionPVP CODER
    Kronos's Avatar
    Join Date
    Aug 2011
    Posts
    850
    Thanks given
    148
    Thanks received
    32
    Rep Power
    128
    Quote Originally Posted by phl0w View Post
    = sets a value, == checks a value.
    have u even read the error.... and wat shud i do.
    Reply With Quote  
     

  9. #9  
    :)


    Join Date
    May 2011
    Posts
    2,451
    Thanks given
    2,200
    Thanks received
    814
    Rep Power
    5000
    found : int
    required: boolean

    hmm what should you do?
    Reply With Quote  
     

  10. #10  
    محمد

    Jamili's Avatar
    Join Date
    Jun 2010
    Posts
    408
    Thanks given
    93
    Thanks received
    246
    Rep Power
    307
    Find
    Code:
    doneEvent
    in Client.java and change it to boolean instead of an int.
    [Only registered and activated users can see links. ]
    Spoiler for Honorable mentions:

    Quote Originally Posted by JRFisher View Post
    Dude, learn yourself, it took me 17 months of continuous research to learn how to import a project.
    Quote Originally Posted by Pollution View Post
    When? And Idiot, I'm using a oldschool, it's not easy to get the command for an oldschool, retard c u.
    Quote Originally Posted by Waj_Assif View Post
    I sayin u dont contribute never aall u do is finna tryin attack ppl and always finna start fights .......
    Quote Originally Posted by Kris View Post
    You must be one of those slower breeds.
    Quote Originally Posted by Gandalf View Post
    Just piss off ploter hacker fella dumb fuck. Your a donor to a rsps community, I'm a Mainowner to a Private Server thats 7+ Years old. Lmfao kid, get a life. Don't let my name come out of your mouth again. Or it wont end nicely for you. Understand me big boy?
    Quote Originally Posted by Tojad View Post
    What do you know about Public Void and int without this [] is only 1 integer, why?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. [PI] Xmas event.[PI]
    By LauryS in forum Show-off
    Replies: 29
    Last Post: 12-13-2010, 11:00 AM
  2. RuneScape XMAS Event 2005
    By Nya in forum Projects
    Replies: 20
    Last Post: 11-06-2010, 12:14 PM
  3. Christmas Event (XMAS)
    By silabgarza in forum Show-off
    Replies: 18
    Last Post: 12-30-2009, 10:51 PM
  4. [Non-Showoff]Xmas event
    By Nikki in forum Show-off
    Replies: 23
    Last Post: 12-19-2009, 05:25 PM
  5. Xmas event!
    By dead pker in forum Tutorials
    Replies: 23
    Last Post: 12-13-2007, 09:45 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
  •