Thread: [718] Wild - 0 HP fix

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 [718] Wilderness - 0 HP fix 
    Registered Member
    Join Date
    Nov 2014
    Posts
    50
    Thanks given
    15
    Thanks received
    7
    Rep Power
    7
    It's very simple,

    Go to Wilderness.java,

    Then search the following :
    Code:
    player.getPackets().sendGameMessage("Oh dear, you have died.");

    Then add this below it :
    Code:
    if (player.getHitpoints() == 0)
                    sendDeath(player);
    And this under sendDeath(player); :
    Code:
    player.setNextWorldTile(new WorldTile(Settings.RESPAWN_PLAYER_LOCATION));

    And it should be fixed.

    Enjoy.. - MIKE
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    don't leech guys

    ANTILEECH's Avatar
    Join Date
    Jun 2013
    Posts
    736
    Thanks given
    171
    Thanks received
    196
    Rep Power
    129
    I'm guessing this is a fix to where a player stays at 0 hp after being killed.
    Reply With Quote  
     

  4. #3  
    Registered Member
    Join Date
    Nov 2013
    Posts
    201
    Thanks given
    35
    Thanks received
    7
    Rep Power
    0
    Wrong section. Should be under "Snippets".
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Nov 2013
    Posts
    815
    Thanks given
    111
    Thanks received
    109
    Rep Power
    14
    Quote Originally Posted by zJamie View Post
    Wrong section. Should be under "Snippets".
    Shouldn't even be here at all? wtf you on about
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Scrub Lord
    _Will's Avatar
    Join Date
    Aug 2012
    Posts
    537
    Thanks given
    60
    Thanks received
    61
    Rep Power
    34
    Quote Originally Posted by TemptedLegend View Post
    Shouldn't even be here at all? wtf you on about
    Lmao This made me laugh.

    OT: Can you at least tell us what this even fixes?
    Reply With Quote  
     

  8. #6  
    Banned

    Join Date
    Jan 2012
    Age
    25
    Posts
    2,703
    Thanks given
    906
    Thanks received
    630
    Rep Power
    0
    Quote Originally Posted by _Will View Post
    Lmao This made me laugh.

    OT: Can you at least tell us what this even fixes?
    He stated that it fixes a problem in the Wilderness that resolves around having 0 HP. It's pretty self explanatory and is actually a Tutorial because he tells you where to put the code.

    1.
    In the Wilderness.java class find where it sends:

    Code:
    player.getPackets().sendGameMessage("Oh dear, you have died.");
    2.
    Then, add the following method that means if the player hit points are 0 it sends the death event.

    Code:
    if (player.getHitpoints() == 0)
                    player.sendDeath(player);
    3.
    The final bit is simply sending the player to the death location, if you don't have it it's not hard to add to settings.java, just coordinates.

    Code:
    player.setNextWorldTile(new WorldTile(Settings.RESPAWN_PLAYER_LOCATION));
    Hating on people for trying to help others is pointless unless they are just doing it for their own benefit.
    Reply With Quote  
     

  9. Thankful users:


  10. #7  
    Registered Member
    Join Date
    Nov 2013
    Posts
    201
    Thanks given
    35
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by Sam Bartlett View Post
    He stated that it fixes a problem in the Wilderness that resolves around having 0 HP. It's pretty self explanatory and is actually a Tutorial because he tells you where to put the code.

    1.
    In the Wilderness.java class find where it sends:

    Code:
    player.getPackets().sendGameMessage("Oh dear, you have died.");
    2.
    Then, add the following method that means if the player hit points are 0 it sends the death event.

    Code:
    if (player.getHitpoints() == 0)
                    player.sendDeath(player);
    3.
    The final bit is simply sending the player to the death location, if you don't have it it's not hard to add to settings.java, just coordinates.

    Code:
    player.setNextWorldTile(new WorldTile(Settings.RESPAWN_PLAYER_LOCATION));
    Hating on people for trying to help others is pointless unless they are just doing it for their own benefit.
    Telling people where to put obvious code is considered a tutorial now? Damn.
    Reply With Quote  
     

  11. #8  
    Registered Member Seth's Avatar
    Join Date
    Feb 2013
    Posts
    644
    Thanks given
    179
    Thanks received
    101
    Rep Power
    20
    Quote Originally Posted by zJamie View Post
    Telling people where to put obvious code is considered a tutorial now? Damn.
    It always was. If you had read the guidelines for making a Tutorial thread you would have know. (facepalm)
    Reply With Quote  
     

  12. #9  
    Registered Member Im That Dude's Avatar
    Join Date
    Dec 2014
    Posts
    126
    Thanks given
    11
    Thanks received
    5
    Rep Power
    13
    Quote Originally Posted by Sam Bartlett View Post
    He stated that it fixes a problem in the Wilderness that resolves around having 0 HP. It's pretty self explanatory and is actually a Tutorial because he tells you where to put the code.

    1.
    In the Wilderness.java class find where it sends:

    Code:
    player.getPackets().sendGameMessage("Oh dear, you have died.");
    2.
    Then, add the following method that means if the player hit points are 0 it sends the death event.

    Code:
    if (player.getHitpoints() == 0)
                    player.sendDeath(player);
    3.
    The final bit is simply sending the player to the death location, if you don't have it it's not hard to add to settings.java, just coordinates.

    Code:
    player.setNextWorldTile(new WorldTile(Settings.RESPAWN_PLAYER_LOCATION));
    Hating on people for trying to help others is pointless unless they are just doing it for their own benefit.
    Some people just won't understand...

    If i have helped you in any way, I would appreciate if you click that "Thanks" button means alot!
    Reply With Quote  
     

  13. #10  
    Registered Member Im That Dude's Avatar
    Join Date
    Dec 2014
    Posts
    126
    Thanks given
    11
    Thanks received
    5
    Rep Power
    13
    Quote Originally Posted by BattlePrime View Post
    It's very simple,

    Go to Wilderness.java,

    Then search the following :
    Code:
    player.getPackets().sendGameMessage("Oh dear, you have died.");

    Then add this below it :
    Code:
    if (player.getHitpoints() == 0)
                    player.sendDeath(player);
    And this under player.sendDeath(player); :
    Code:
    player.setNextWorldTile(new WorldTile(Settings.RESPAWN_PLAYER_LOCATION));

    And it should be fixed.

    Enjoy.. - MIKE
    Thanks for contributing, Alot of people won't even do that.

    If i have helped you in any way, I would appreciate if you click that "Thanks" button means alot!
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. 718 SOF "HIDE BUTTON" Fix :P
    By izaazkothawala in forum Snippets
    Replies: 23
    Last Post: 08-29-2012, 08:41 AM
  2. 667 / 718 Clan wars small fix [PAYPAL]
    By Ynneh in forum Buying
    Replies: 1
    Last Post: 08-22-2012, 07:56 PM
  3. Replies: 10
    Last Post: 06-30-2011, 10:32 PM
  4. REQ--> Delta HP Fix range melee mage
    By mummie61 in forum Requests
    Replies: 3
    Last Post: 07-22-2009, 06:59 PM
  5. 100% npc hp fix!
    By killamess in forum Tutorials
    Replies: 34
    Last Post: 01-21-2009, 08:54 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
  •