Thread: NPC "null" damage?

Results 1 to 5 of 5
  1. #1 NPC "null" damage? 
    Registered Member
    Join Date
    Jul 2015
    Posts
    147
    Thanks given
    27
    Thanks received
    12
    Rep Power
    0
    Attached image

    My NPCHandler case:

    Code:
     case 8282:
                    random = Misc.random(1);
                    	if (random == 0) {
                    			npcs[i].projectileId = -1;
                    			npcs[i].endGfx = 1986;
                    			npcs[i].attackType = 0;
                    			hitThrough = true;
                    		} else {
                    			npcs[i].attackType = 0;
                    	}
                    	break;
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2017
    Posts
    113
    Thanks given
    23
    Thanks received
    29
    Rep Power
    16
    that code is only showing what type of attackstyle he is doing and is selecting the attack style randomly. Are all npcs having this problem of not doing non null damage? Or just this specific npc? Where is the code that actually applies the damage?
    Reply With Quote  
     

  3. #3  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Have you even assign it to deal any type of damage? Is something in your code preventing the damage from showing? Is there any error on the prompt?


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2015
    Posts
    147
    Thanks given
    27
    Thanks received
    12
    Rep Power
    0
    Quote Originally Posted by arch337 View Post
    Have you even assign it to deal any type of damage? Is something in your code preventing the damage from showing? Is there any error on the prompt?
    For some reason, just this NPC will not hit me. I declared its max hit number, and its on npc.cfg.
    Reply With Quote  
     

  5. #5  
    Registered Member OP411's Avatar
    Join Date
    May 2014
    Posts
    293
    Thanks given
    28
    Thanks received
    31
    Rep Power
    0
    Quote Originally Posted by slayterr View Post
    For some reason, just this NPC will not hit me. I declared its max hit number, and its on npc.cfg.
    if it has a definition that is correct it will have no issues
    try to copy one and just use the npc id
    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. OS-Reborn NPCHandler Npcs are null.
    By realspades in forum Help
    Replies: 1
    Last Post: 09-12-2016, 04:57 AM
  2. Replies: 12
    Last Post: 03-05-2015, 04:36 PM
  3. Replies: 7
    Last Post: 06-01-2010, 06:32 PM
  4. null in damages? (Delta)
    By 3lou 55 in forum Help
    Replies: 2
    Last Post: 11-12-2009, 07:10 PM
  5. NPC Dialouge null pointer -.- REP++
    By Unique in forum Help
    Replies: 0
    Last Post: 07-13-2009, 07:11 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
  •