Thread: [PI] Nex help please

Results 1 to 6 of 6
  1. #1 [PI] Nex help please 
    Banned
    Join Date
    Jan 2012
    Age
    27
    Posts
    551
    Thanks given
    53
    Thanks received
    37
    Rep Power
    0
    i'll added this to my "npchandler"

    Code:
    			case 5248://Nex
    				if (npcs[i].attackType == 0) 
    					return 6354;
    				else if (npcs[i].attackType == 1)
    					return 6986;
    				else if (npcs[i].attackType == 2)
    					return 6355;
    				else if (npcs[i].attackType == 3)
    					return 6326;
    				else if (npcs[i].attackType == 4)
    					return 6984;
    				else if (npcs[i].attackType == 5)
    					return 6985;
    				else if (npcs[i].attackType == 6)
    					return 6986;
    				else if (npcs[i].attackType == 7)
    					return 6987;


    now i get this error

    Code:
    src\server\model\npcs\NPCHandler.java:1187: error: duplicate case label
                            case 5248://nex
                            ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Tryk på en vilkårlig tast for at fortsætte . . .
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2011
    Posts
    192
    Thanks given
    11
    Thanks received
    4
    Rep Power
    12
    the error indicates that there already is a case 5248 in npchandler.java

    if that other one isn't nex, you can comment it out
    Reply With Quote  
     

  3. #3  
    Para Para Paradse Paradise's Avatar
    Join Date
    Aug 2010
    Posts
    340
    Thanks given
    61
    Thanks received
    23
    Rep Power
    44
    Looks like there is more then one Case 5248?
    Skype: cunny-funt
    Reply With Quote  
     

  4. #4  
    Registered Member
    Return's Avatar
    Join Date
    Dec 2011
    Posts
    348
    Thanks given
    2
    Thanks received
    19
    Rep Power
    145
    src\server\model\npcs\NPCHandler.java:1187: error: duplicate case label
    case 5248://nex
    ^
    speaks for his self lmfao, there are already the same case.
    http://www.rune-server.org/static/signaturepic/sigpic181420_6.gif

    last activity 11/10/2015 Wow! Everyone has to start somewhere., right? : )
    Reply With Quote  
     

  5. #5  
    Registered Member HvSxTornado's Avatar
    Join Date
    Jun 2008
    Posts
    292
    Thanks given
    1
    Thanks received
    6
    Rep Power
    66
    ^ Beat me to the comment. But both of these guys are right. Look for "case 5248" inside your NPC Handler and comment one of them out by placing "//" in front of the line.
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jan 2012
    Age
    27
    Posts
    551
    Thanks given
    53
    Thanks received
    37
    Rep Power
    0
    of cause there is more than one case 5248 when there is Deademotes attack emotes holy shit,

    EDIT: fixed totaly forgot that i've added one of the attackemotes the other days sorry 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. Nex
    By Kickyamom in forum Show-off
    Replies: 16
    Last Post: 02-26-2012, 12:02 PM
  2. Nex [PI]
    By Satan in forum Help
    Replies: 2
    Last Post: 02-02-2012, 03:54 PM
  3. Replies: 2
    Last Post: 10-17-2011, 02:14 AM
  4. pi nex
    By g0d 0f war in forum Help
    Replies: 9
    Last Post: 08-19-2011, 02:43 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
  •