Thread: Restore

Results 1 to 4 of 4
  1. #1 Restore 
    Registered Member Rampage PK's Avatar
    Join Date
    Sep 2013
    Posts
    98
    Thanks given
    45
    Thanks received
    2
    Rep Power
    1
    I would like to make it when you login your health and prayer will be restored, don't know how to write out code, or know where it goes.

    If you do, please post will help me and a lot others out!
    And no, this isn't for a NR remake.
    Reply With Quote  
     

  2. #2  
    0x2be|~0x2be
    akamichael's Avatar
    Join Date
    Jan 2012
    Age
    28
    Posts
    73
    Thanks given
    1
    Thanks received
    8
    Rep Power
    44
    In the Client class under the initialize() method add:

    //Hitpoints
    Code:
    playerLevel[3] = getPA().getLevelForXP(playerXP[3]);
    //Prayer
    Code:
    playerLevel[5] = getPA().getLevelForXP(playerXP[5]);
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member Rampage PK's Avatar
    Join Date
    Sep 2013
    Posts
    98
    Thanks given
    45
    Thanks received
    2
    Rep Power
    1
    I got a error, don't worry about it thank you for posting this.
    Reply With Quote  
     

  5. #4  
    0x2be|~0x2be
    akamichael's Avatar
    Join Date
    Jan 2012
    Age
    28
    Posts
    73
    Thanks given
    1
    Thanks received
    8
    Rep Power
    44
    Yeah sorry remove the "c." cause already in Client class, I fixed it on the reply.
    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. Restore Skills :P
    By Mrquarterx in forum Snippets
    Replies: 2
    Last Post: 01-23-2009, 10:37 PM
  2. hp restores at 25%
    By Sway in forum Requests
    Replies: 6
    Last Post: 10-19-2008, 11:56 PM
  3. Special Restore [Simple Copy and Paste!]
    By PKXLord in forum Tutorials
    Replies: 7
    Last Post: 03-25-2008, 09:37 PM
  4. Replies: 7
    Last Post: 05-14-2007, 08:19 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
  •