Thread: [PI] Npc error - help me :(

Results 1 to 9 of 9
  1. #1 [PI] Npc error - help me :( 
    PHP DEVELOPER

    Join Date
    Mar 2009
    Posts
    357
    Thanks given
    50
    Thanks received
    41
    Rep Power
    16
    I added a new npc (sea troll queen) and once it tryes to attack me this error pops up and bam server crash:


    [QUOTE][10/7/10 3:49 PM]: java.lang.NullPointerException
    [10/7/10 3:49 PM]: at server.model.npcs.NPCHandler.loadSpell(NPCHandler. jav
    a:2442)
    [10/7/10 3:49 PM]: at server.model.npcs.NPCHandler.attackPlayer(NPCHandl er.
    java:2600)
    [10/7/10 3:49 PM]: at server.model.npcs.NPCHandler.process(NPCHandler.ja va:
    1405)
    [10/7/10 3:49 PM]: at server.Server.main(Server.java:172)
    [10/7/10 3:49 PM]: A fatal exception has been thrown![QUOTE]

    Any help plz thx
    Reply With Quote  
     

  2. #2  
    Registered Member .php's Avatar
    Join Date
    Mar 2010
    Posts
    546
    Thanks given
    24
    Thanks received
    36
    Rep Power
    17
    What did u do before you got this? Cause im guessing it has to do with a NPC using Mage on someone? or you using Mage on a NPC? help us out plz?
    Reply With Quote  
     

  3. #3  
    PHP DEVELOPER

    Join Date
    Mar 2009
    Posts
    357
    Thanks given
    50
    Thanks received
    41
    Rep Power
    16
    all i did was add the npc attacks as in mage attacks /range attack etc eres an example:

    case 3849://tormented demon
    if (npcs[i].attackType == 2)
    return 10917;
    else if (npcs[i].attackType == 1)
    return 10918;
    else if (npcs[i].attackType == 0)
    return 10919;
    and then later added the npc attack gfxs etc
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Apr 2010
    Posts
    301
    Thanks given
    1
    Thanks received
    6
    Rep Power
    0
    umm dude did u edit npc.cfg :/
    Reply With Quote  
     

  5. #5  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    ctrl g

    line 2442
    Reply With Quote  
     

  6. #6  
    PHP DEVELOPER

    Join Date
    Mar 2009
    Posts
    357
    Thanks given
    50
    Thanks received
    41
    Rep Power
    16
    ffs still need a fix help plz?
    Reply With Quote  
     

  7. #7  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    post all the code involved with that npc
    Reply With Quote  
     

  8. #8  
    PHP DEVELOPER

    Join Date
    Mar 2009
    Posts
    357
    Thanks given
    50
    Thanks received
    41
    Rep Power
    16
    add me on msn i cant add it here cus it'l be leeched as soon as it gets here [email protected]
    Reply With Quote  
     

  9. #9  
    Officially Retired


    Join Date
    Oct 2007
    Age
    30
    Posts
    5,454
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    [10/7/10 3:49 PM]: at server.model.npcs.NPCHandler.loadSpell(NPCHandler. jav
    a:2442)
    [10/7/10
    Read.
    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. Replies: 6
    Last Post: 09-15-2010, 04:20 PM
  2. Replies: 6
    Last Post: 05-01-2010, 05:18 AM
  3. [ERROR]Extending Emote List[ERROR]
    By Meerster in forum Help
    Replies: 2
    Last Post: 01-19-2010, 05:01 AM
  4. Kalphite Queen Error(Thread-5 Error)
    By owner jacob in forum Help
    Replies: 4
    Last Post: 12-22-2009, 06:36 PM
  5. [Error] Perfect range and melee [ERROR]
    By Wallace in forum Help
    Replies: 16
    Last Post: 06-21-2009, 09:56 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
  •