Thread: 718 NPC Problem

Results 1 to 5 of 5
  1. #1 718 NPC Problem 
    Banned
    Join Date
    Feb 2016
    Posts
    43
    Thanks given
    2
    Thanks received
    4
    Rep Power
    0
    Hey, I don't know how this happened. I've been trying to fix it but I can't.
    I also tried looking for similar problems and I couldn't find anything.
    Anywho my problem is that ONE line of code to spawn a NPC spawn's 2.
    It's with all NPC's. What I mean by that is this;

    2 dung bankers:
    Screenshot by Lightshot

    The Code:
    Screenshot by Lightshot
    Reply With Quote  
     

  2. #2  
    Founder off ExilePsGroup
    ExilePsCoding's Avatar
    Join Date
    Apr 2013
    Age
    29
    Posts
    121
    Thanks given
    3
    Thanks received
    8
    Rep Power
    8
    There is one in npcspawning.java and 1 in UnpackedSpawnsList.txt
    Attached image
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Feb 2016
    Posts
    43
    Thanks given
    2
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by Exile718 View Post
    There is one in npcspawning.java and 1 in UnpackedSpawnsList.txt
    Don't comment on my shit. You that autistic you forgot my Rune-Server name?
    Get off the help section unless you're posting, or searching for a thread trying to learn.
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by InvictusStudio View Post
    Don't comment on my shit. You that autistic you forgot my Rune-Server name?
    Get off the help section unless you're posting, or searching for a thread trying to learn.
    This might be a long list of directives but do this:

    1-Search for the .java file that reads throught the unpacked file. So if the .txt file is named "UnpackedSpawnsList" search for the .java file that reads it.

    2-Once you found it, find the code the spawns the NPC (something like spawnNPC(...)). If there's isn't anything wrong (ex: it's there twice) move to 3.

    3-Go in the spawnNPC method that's called (THERE MIGHT BE MORE THAN ONE, MAKE SURE IT'S THE RIGHT ONE), look for anything wrong there.

    4-If 3 fails, look at the methods inside spawnNPC (ex:)

    Code:
    public static void spawnNPC(NPC npc) {
        ...
        npc.init();//track this one down, see if it's broken
        ...
    }
    
    private void init() {
        World.spawnNPC(this)://LOL!!! SPAWNS Twice
    }
    Project thread
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Banned
    Join Date
    Feb 2016
    Posts
    43
    Thanks given
    2
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by clem585 View Post
    This might be a long list of directives but do this:

    1-Search for the .java file that reads throught the unpacked file. So if the .txt file is named "UnpackedSpawnsList" search for the .java file that reads it.

    2-Once you found it, find the code the spawns the NPC (something like spawnNPC(...)). If there's isn't anything wrong (ex: it's there twice) move to 3.

    3-Go in the spawnNPC method that's called (THERE MIGHT BE MORE THAN ONE, MAKE SURE IT'S THE RIGHT ONE), look for anything wrong there.

    4-If 3 fails, look at the methods inside spawnNPC (ex

    Code:
    public static void spawnNPC(NPC npc) {
        ...
        npc.init();//track this one down, see if it's broken
        ...
    }
    
    private void init() {
        World.spawnNPC(this)://LOL!!! SPAWNS Twice
    }
    Thanks!
    Repped!
    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. npc problem [718]
    By b0ss in forum Help
    Replies: 3
    Last Post: 11-10-2014, 01:43 PM
  2. 718 npc/object problem!
    By ebert in forum Help
    Replies: 2
    Last Post: 09-28-2014, 03:28 PM
  3. 718 NPC problem
    By legend 349 in forum Help
    Replies: 0
    Last Post: 02-16-2014, 12:49 PM
  4. NPC Problem! 718 URGENT
    By Freestuffplox in forum Help
    Replies: 2
    Last Post: 01-04-2014, 02:35 AM
  5. 718 Help w/ a little npc problem plox
    By jo0 3a7 lo7z in forum Help
    Replies: 2
    Last Post: 12-30-2012, 09:51 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
  •