Thread: Dung Help

Results 1 to 5 of 5
  1. #1 Dung Help 
    Registered Member
    Join Date
    Nov 2012
    Posts
    39
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    Im trying to make a dungeneering minigame and i have this in my npc class
    Code:
    if(npcId = 10542){
    				killer.getSkills().addXp(Skills.DUNGEONEERING, 1800);
    			}else if(npcId = 10543){
    			    killer.getSkills().addXp(Skills.DUNGEONEERING, 1800);
    			}else if(npcId = 10544){
    				killer.getSkills().addXp(Skills.DUNGEONEERING, 1800);
    			}else if(npcId = 10545){
    				killer.getSkills().addXp(Skills.DUNGEONEERING, 1800);
    			}else if(npcId = 10546){
    				killer.getSkills().addXp(Skills.DUNGEONEERING, 1800);
    			}
    How ever, npcId is not assigned a variable. Does anyone know a boolean that will make this work?
    edit:
    I made this but idk how i should use it
    private boolean isDung(int npcId) {
    switch (npcId) {
    case 10542:
    case 10543:
    case 10544:
    case 10545:
    case 10546:
    }
    return true;
    }
    Reply With Quote  
     

  2. #2  
    Set the World on Fire
    Unsafe's Avatar
    Join Date
    Jan 2009
    Posts
    608
    Thanks given
    59
    Thanks received
    123
    Rep Power
    8
    Code:
    if (getId() == 10542) {
    Use that


    Stand up for what you believe in, Even if it means Standing Alone


    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Nov 2012
    Posts
    39
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    + rep and thanks, it works
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Nov 2012
    Posts
    39
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    any chance any one has the attack animations for
    10542 - 10546
    ?
    Reply With Quote  
     

  6. #5  
    Set the World on Fire
    Unsafe's Avatar
    Join Date
    Jan 2009
    Posts
    608
    Thanks given
    59
    Thanks received
    123
    Rep Power
    8
    Try these :

    - 430 [Def]
    - 428 [Attack]
    - 836 [Death]


    Stand up for what you believe in, Even if it means Standing Alone


    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. 718 dung help
    By deadman536 in forum Help
    Replies: 0
    Last Post: 03-08-2013, 04:22 AM
  2. Dung help
    By ProjectEquinox in forum Help
    Replies: 0
    Last Post: 12-21-2012, 01:40 AM
  3. Dung Interface Help [Pi]
    By 2extreme4u in forum Graphics
    Replies: 2
    Last Post: 05-06-2012, 04:39 AM
  4. Dung Interface Help [Pi]
    By 2extreme4u in forum Requests
    Replies: 0
    Last Post: 05-05-2012, 09:04 PM
  5. need 639 help! ~dung shops~
    By Derrezed in forum Help
    Replies: 6
    Last Post: 01-08-2012, 10:28 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
  •