Thread: npc don't hit

Results 1 to 3 of 3
  1. #1 npc don't hit 
    Registered Member
    Join Date
    Nov 2009
    Posts
    31
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    hello, i making Desert Treasure quest.

    my problem is, if you click on Vampire tomb, it spawn npc: Dessous.
    if its spawn for the first time it hits you back, but if you teleport away or run Dessous gets removed in game. so if you click again on vampire tomb it spawns again Dessous but this time it doesn't hit anymore.

    i found out it has to do with this code

    Code:
    		if ((DesertBoss.isDesertBoss(this)) && (owner != null)) {
    			owner.setDesertNpc(null);
    			owner.getCombat().resetCombatTimer();
    		}
    this code: owner.setDesertNpc(null);

    if i delete that line, then the vampire tomb says that dessous already has spawned, but dessous is gone.
    can anyone help me please?
    Reply With Quote  
     

  2. #2  
    uwu

    Teemo.'s Avatar
    Join Date
    Oct 2014
    Age
    19
    Posts
    335
    Thanks given
    18
    Thanks received
    73
    Rep Power
    85
    Hi! Mate
    B E G O N E T H O T
    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
    My guess would be to add a check in which it send the npc to null. Make sure that this code actually are being sended correctly.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    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. NPCs Don't Hit [PI]
    By Wobblum in forum Help
    Replies: 4
    Last Post: 01-13-2013, 09:14 AM
  2. My npc's don't hit anything?
    By Sheep in forum Help
    Replies: 11
    Last Post: 01-10-2013, 11:26 PM
  3. Replies: 4
    Last Post: 07-04-2009, 12:19 AM
  4. Npcs don't hit back
    By Markk in forum Help
    Replies: 8
    Last Post: 06-26-2009, 07:43 AM
  5. NPCS don't noclip (Cheap hax!)
    By Concious in forum Show-off
    Replies: 6
    Last Post: 02-27-2009, 04:45 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
  •