Thread: ::npc command (Will rep)

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 ::npc command (Will rep) 
    Runecessor Development Team
    Runecessor's Avatar
    Join Date
    Feb 2014
    Posts
    50
    Thanks given
    7
    Thanks received
    3
    Discord
    Og_Panda#6792
    Rep Power
    11
    Hey everyone! so I am trying to add a command to spawn NPC's where needed. If possible could someone assist with this.

    This is currently what my NPC code looks like but does not work:

    } else if (command.startsWith("npc")) {
    npc(player, command);
    return true;

    My server is literally the same as Dawntained
    I honestly have no clue what base this is, I just got this source a month or so ago.

    Any help would be appreciated.
     

  2. #2  
    Crandor - Owner
    C.T.'s Avatar
    Join Date
    Jan 2019
    Posts
    161
    Thanks given
    38
    Thanks received
    47
    Rep Power
    42
    try putting your server is debug mode.
     

  3. #3  
    Runecessor Development Team
    Runecessor's Avatar
    Join Date
    Feb 2014
    Posts
    50
    Thanks given
    7
    Thanks received
    3
    Discord
    Og_Panda#6792
    Rep Power
    11
    Doing it in debug any time I do ::npc or :: object command it crashes my client

    Edit: Actually, if I run it in Debug mode, It kicks all players after use of those 2 commands and you have to reboot for anyone to be able to login.
     

  4. #4  
    Crandor - Owner
    C.T.'s Avatar
    Join Date
    Jan 2019
    Posts
    161
    Thanks given
    38
    Thanks received
    47
    Rep Power
    42
    try that

    } else if (command.equals("npc") && ServerConfiguration.DEBUG_MODE) {
    npc(player, command);
    return true;
    }
     

  5. Thankful user:


  6. #5  
    Runecessor Development Team
    Runecessor's Avatar
    Join Date
    Feb 2014
    Posts
    50
    Thanks given
    7
    Thanks received
    3
    Discord
    Og_Panda#6792
    Rep Power
    11
    That did not work either. It doesn't give me any errors which is the confusing part.
    It just shows in the console that I used command ::npc (npc id) and then it kicks all players.
     

  7. #6  
    Crandor - Owner
    C.T.'s Avatar
    Join Date
    Jan 2019
    Posts
    161
    Thanks given
    38
    Thanks received
    47
    Rep Power
    42
    hmm that's a strange one, can you show the error when you freeze, maybe your trying to spawn corrupt data.
     

  8. #7  
    Runecessor Development Team
    Runecessor's Avatar
    Join Date
    Feb 2014
    Posts
    50
    Thanks given
    7
    Thanks received
    3
    Discord
    Og_Panda#6792
    Rep Power
    11
    Quote Originally Posted by C.T. View Post
    hmm that's a strange one, can you show the error when you freeze, maybe your trying to spawn corrupt data.
    That's where I am stuck neither the source or client give me a crash report or error. Everything seems normal. The server continues to run but everyone is kicked and if you try to log in without restarting it says Connection Attempted.

    Side note, what base is Dawntained?
     

  9. #8  
    Registered Member Brainpower's Avatar
    Join Date
    Jan 2019
    Posts
    101
    Thanks given
    6
    Thanks received
    5
    Rep Power
    35
    I'd look at what kinda code is there to spawn the world npcs and work from there. Shouldn't be too hard.
     

  10. Thankful user:


  11. #9  
    Registered Member

    Join Date
    Oct 2017
    Age
    19
    Posts
    217
    Thanks given
    212
    Thanks received
    112
    Rep Power
    300
    send me your discord.
    Spoiler for signature too large:
    end me
    [Only registered and activated users can see links. ]

     

  12. Thankful user:


  13. #10  
    Runecessor Development Team
    Runecessor's Avatar
    Join Date
    Feb 2014
    Posts
    50
    Thanks given
    7
    Thanks received
    3
    Discord
    Og_Panda#6792
    Rep Power
    11
    I will be sure to rep you all for your effort. I / We sincerely appreciate each and every one of you for taking the time to respond to our post. Thank you all.
     

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)


User Tag List

Similar Threads

  1. Adding NPCs From Command? Will REP+
    By .RSPSSam in forum Requests
    Replies: 7
    Last Post: 03-12-2014, 08:33 AM
  2. Attack Anim's against NPC's (Will Rep++)
    By John Smithh in forum Help
    Replies: 7
    Last Post: 10-25-2009, 07:42 PM
  3. xgive command will rep
    By defmenow in forum Help
    Replies: 0
    Last Post: 08-31-2009, 10:12 PM
  4. neeed help with commands will rep+++
    By Trock in forum Help
    Replies: 2
    Last Post: 08-01-2009, 10:52 PM
  5. Need master command! Will rep
    By walid in forum Help
    Replies: 9
    Last Post: 01-25-2009, 06:38 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
  •