Thread: Making Npcs spawn and despawn.

Results 1 to 3 of 3
  1. #1 Making Npcs spawn and despawn. 
    Meh. I can't code.

    Soulevoker's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    1,198
    Thanks given
    5
    Thanks received
    6
    Rep Power
    137
    How do I make barrows and I need help with a couple methods added or not. I need to know how to make a npc spawn when clicked on their casket, and despawn or disappear (like die almost idk) when you are more than 12 squares away from him so he wont follow you and no clip trough the game. Thanks for your help.

    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,345
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    A way of NPC Following has been released, so use that.

    Then use the getDistance method to check if the player is 12 or more spaces away from the NPC, and if he is, the NPC's attack is reset.

    Use the newNPC method to spawn the NPC when you click on the casket.

    Once the NPC dies, it shouldn't respawn because its not in the NPCSpawn and it doesn't have any respawn delays.
    Reply With Quote  
     

  3. #3  
    Meh. I can't code.

    Soulevoker's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    1,198
    Thanks given
    5
    Thanks received
    6
    Rep Power
    137
    Ok. Last night about 30 minutes after I posted this I found the newNpc method in npcupdate. I tried to use it but my attempts failed. I don't need following because I already have it. How do I make the npc i guess die when you dsie or go up the stairs to stop him from following you and causing problems? If you can help me with the newNpc method I should be fine for now. But I still need to make a method to delete the npc. I'll try to find a die method or something. Thanks for your help.

    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •