Thread: Fixing Npc Health Client Crash

Results 1 to 4 of 4
  1. #1 Fixing Npc Health Client Crash 
    Sub
    Sub is offline
    sυввч

    Sub's Avatar
    Join Date
    Aug 2007
    Age
    21
    Posts
    4,325
    Thanks given
    1,082
    Thanks received
    346
    Discord
    View profile
    Rep Power
    2755
    Code:
     if (HP <= 0) { //if the hp is below 0 then set the hp to 30! Otherwise it will crash.
                HP = 30;
            }
    Reply With Quote  
     

  2. #2  
    Registered Member
    D3d Wildy's Avatar
    Join Date
    Aug 2007
    Posts
    578
    Thanks given
    24
    Thanks received
    6
    Rep Power
    180
    This makes no sense. If the hp is below 0, why not make it 0 so it will die.
    Proud to be apart of such an amazing RSPS community.
    Reply With Quote  
     

  3. #3  
    I Sell 07 Gold PM Me

    Join Date
    Jan 2007
    Age
    21
    Posts
    1,522
    Thanks given
    48
    Thanks received
    79
    Rep Power
    280
    If it is below zero, as in -1, then it will crash.
    Remember buying your first rune set with rune chain at W1 Varrock?
    Remember the excitement you got being Members for the first time?

    Want to re-live the good old days of RuneScape 2006 at its fullest?


    Then try:
    Spoiler for 2006 Old Days:


    Comes in many flavors.
    Reply With Quote  
     

  4. #4  
    Sub
    Sub is offline
    sυввч

    Sub's Avatar
    Join Date
    Aug 2007
    Age
    21
    Posts
    4,325
    Thanks given
    1,082
    Thanks received
    346
    Discord
    View profile
    Rep Power
    2755
    Quote Originally Posted by Poisoned I V View Post
    This makes no sense. If the hp is below 0, why not make it 0 so it will die.
    lol it will crash.. try it make some npcs health -1
    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
  •