Thread: [PI] Ranged projectiles bug

Results 1 to 4 of 4
  1. #1 [PI] Ranged projectiles bug 
    Registered Member
    netzo's Avatar
    Join Date
    Feb 2008
    Age
    31
    Posts
    1,226
    Thanks given
    402
    Thanks received
    135
    Rep Power
    185
    Hello,

    Base: Project Insanity
    Problem: I noticed that after the npc is killed (when he's dying), the player shoots an extra arrow (if the npc is killed from the first hit, then the extra arrow isn't shooted).
    Errors(Compiling Errors): no errors
    Other Information/Media(Pictures, etc):



    Any ideas what could cause it?
    Reply With Quote  
     

  2. #2  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    Yes, fail combat system causes it.
    Make sure that you check if npc has hp before sending a projectile.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    arrowzftw
    Guest
    Spoiler for Your post:
    Quote Originally Posted by netzo View Post
    Hello,

    Base: Project Insanity
    Problem: I noticed that after the npc is killed (when he's dying), the player shoots an extra arrow (if the npc is killed from the first hit, then the extra arrow isn't shooted).
    Errors(Compiling Errors): no errors
    Other Information/Media(Pictures, etc):



    Any ideas what could cause it?


    Show the code that you use for projectile maybe you can make it like this

    if(!npcs[whatevergetsurnpcindex].isDead)
    {
    return;
    }
    something like that.
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member
    netzo's Avatar
    Join Date
    Feb 2008
    Age
    31
    Posts
    1,226
    Thanks given
    402
    Thanks received
    135
    Rep Power
    185
    Quote Originally Posted by arrowzftw View Post
    Spoiler for your post:



    show the code that you use for projectile maybe you can make it like this

    if(!npcs[whatevergetsurnpcindex].isdead)
    {
    return;
    }
    something like that.
    Thanks for trying, but:

    Quote Originally Posted by klepto- View Post
    yes, fail combat system causes it.
    Make sure that you check if npc has hp before sending a projectile.
    this
    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. Amazing Ranged pure! CB 58 - 89 RANGED!
    By Georgio in forum Accounts
    Replies: 11
    Last Post: 09-10-2010, 02:39 AM
  2. 80 Ranged.
    By Origin in forum Media
    Replies: 2
    Last Post: 01-19-2010, 12:10 AM
  3. Ranged
    By DeclarationOfIndependence in forum Requests
    Replies: 10
    Last Post: 09-14-2009, 11:13 PM
  4. Can someone add ranged please!?
    By Jodan Belfort in forum Help
    Replies: 0
    Last Post: 11-04-2008, 06:20 AM
  5. Ranged ^_^
    By ZachHaley in forum RS 503+ Client & Server
    Replies: 22
    Last Post: 08-19-2008, 05:36 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
  •