Thread: npc names

Results 1 to 8 of 8
  1. #1 npc names 
    Registered Member
    Join Date
    Nov 2012
    Posts
    247
    Thanks given
    12
    Thanks received
    1
    Rep Power
    11
    how do I Change an NPC's Name? is it client sided or server sided? And how do I do it?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Client sided, in EntityDef.java

    Let me make this easy...

    Find

    Code:
            entitydef.readValues(stream);
    And under it add

    Code:
    switch(i) {
    case 9165: //NPC ID
    	entitydef.name = "Daemus"; //NPC Name
    	entitydef.combatLevel = 2198;//Combat Level
    	entitydef.description = "AW SHIT...".getBytes();// Examine
    break;
    }
    Theres more to it, but its as simple as that, then you can make the attack anims and accuracy server sided ect.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2012
    Posts
    247
    Thanks given
    12
    Thanks received
    1
    Rep Power
    11
    EntityDef.java:58: error: orphaned case
    case 349: //NPC ID
    ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by coldest View Post
    EntityDef.java:58: error: orphaned case
    case 349: //NPC ID
    ^
    1 error
    Press any key to continue . . .
    What'd you do to case 349, it's saying case 349: is an orphaned case so it's not doing anything/doesn't have anything
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2011
    Posts
    135
    Thanks given
    2
    Thanks received
    4
    Rep Power
    0
    Means there is more than 1 of case 349 then..
    Owner of algadon; www.algadon-rsps.com
    Spoiler for Vouches:
    resolute: Implemented some stuff for mr.czar and he instantly sent me the payment straight after the task was complete!
    -HAT-: Vouch for mr.czar great buyer
    Quote Originally Posted by Shawn Patel View Post
    Vouch for Mr.Czar. Did the service and he paid right away. Everything went smoothly.
    Reply With Quote  
     

  6. #6  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Quote Originally Posted by mr.czar View Post
    Means there is more than 1 of case 349 then..
    No that's a duplicate case label.
    An orphaned case is a case outside a switch statement, just like this:
    Code:
    switch (i){
        case 0: break
    
    }
    case 2: break;
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Quote Originally Posted by coldest View Post
    EntityDef.java:58: error: orphaned case
    case 349: //NPC ID
    ^
    1 error
    Press any key to continue . . .
    Post your entity def, because thats simply not enough information.

    Probably means you already have a switch statement, or added too many breaks/returns
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2011
    Posts
    135
    Thanks given
    2
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by TheChosenOne View Post
    No that's a duplicate case label.
    An orphaned case is a case outside a switch statement, just like this:
    Code:
    switch (i){
        case 0: break
    
    }
    case 2: break;
    Oh yeah wasn't thinkin right.
    Owner of algadon; www.algadon-rsps.com
    Spoiler for Vouches:
    resolute: Implemented some stuff for mr.czar and he instantly sent me the payment straight after the task was complete!
    -HAT-: Vouch for mr.czar great buyer
    Quote Originally Posted by Shawn Patel View Post
    Vouch for Mr.Czar. Did the service and he paid right away. Everything went smoothly.
    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. Changing NPC names item names & object names!
    By medabi3 in forum Tutorials
    Replies: 8
    Last Post: 05-24-2013, 07:36 PM
  2. Replies: 13
    Last Post: 02-16-2011, 03:29 AM
  3. Change NPC names
    By Server-Old in forum Help
    Replies: 2
    Last Post: 07-17-2010, 10:27 PM
  4. How do I edit npc names?
    By '5b' in forum Help
    Replies: 14
    Last Post: 10-08-2009, 09:35 AM
  5. Replies: 13
    Last Post: 04-11-2008, 10:33 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
  •