Thread: Rotten potato 'Heal' option snippet.

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Rotten potato 'Heal' option snippet. 
    Registered Member
    Anfernio's Avatar
    Join Date
    Jul 2008
    Age
    23
    Posts
    414
    Thanks given
    23
    Thanks received
    39
    Rep Power
    221
    No clue whether this has been done or not. Cba searching either.

    in class ItemAssistant under

    Code:
    switch (wearID) {
    add...

    Code:
    					case 5733: //Rotten potato
    					if(c.playerRights <= 1) {
    					c.sendMessage("You do not have sufficient permissions to do that.");
    					c.sendMessage("Please send a message to Anfernio telling how you received this.");
    					return false;
    					} else {
    					if(c.playerRights > 1 && c.inWild()) {
    					c.sendMessage("You're not allowed to do that inside of the Wilderness.");
    					return false;
    					} else {
     					c.playerLevel[3] += 99;
    					c.getPA().refreshSkill(3);
    					c.sendMessage("You add 99 onto your current HP.");
    					return false;
    					}
    					}

    Could probably be done much neater/nicer.


    The return false; was added because on my server it made you wield the rotten potato whenever you hit the 'Heal' option, and the return false prevented that.
    Reply With Quote  
     

  2. #2  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    is this on the legit rotten potato (on rs?). gj nonetheless

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  3. #3  
    Registered Member
    Anfernio's Avatar
    Join Date
    Jul 2008
    Age
    23
    Posts
    414
    Thanks given
    23
    Thanks received
    39
    Rep Power
    221
    Quote Originally Posted by Scu11 View Post
    is this on the legit rotten potato (on rs?). gj nonetheless
    Yes.
    Reply With Quote  
     

  4. #4  
    Whatchu talkin bout willis?

    Gary's Avatar
    Join Date
    Sep 2008
    Posts
    4,165
    Thanks given
    690
    Thanks received
    646
    Rep Power
    3462
    nicely done
    Ellie
    Sadly lost my beautiful ellie in july 2018 always going to miss you my girl
    Spoiler for sig too big:


    Reply With Quote  
     

  5. #5  
    Registered Member
    Zaga's Avatar
    Join Date
    Jan 2010
    Posts
    515
    Thanks given
    89
    Thanks received
    47
    Rep Power
    149
    Code:
    if(c.playerRights >= 2 && c.inWild() == true) {
       c.sendMessage("You're not allowed to do that inside of the Wilderness.");
       return false;
    }
    Did you mean:
    Code:
    if(c.playerRights <= 2 && c.inWild() == true) {


    Reply With Quote  
     

  6. #6  
    Registered Member
    Anfernio's Avatar
    Join Date
    Jul 2008
    Age
    23
    Posts
    414
    Thanks given
    23
    Thanks received
    39
    Rep Power
    221
    Quote Originally Posted by Zaga View Post
    Code:
    if(c.playerRights >= 2 && c.inWild() == true) {
    					c.sendMessage("You're not allowed to do that inside of the Wilderness.");
    					return false;
    					}
    Did you mean:
    Code:
    if(c.playerRights <= 2 && c.inWild() == true) {
    editv2: Did a little more messing around and will change it.

    Thanks kataang.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,823
    Thanks given
    362
    Thanks received
    447
    Rep Power
    965
    Quote Originally Posted by Zaga View Post
    Code:
    if(c.playerRights >= 2 && c.inWild() == true) {
       c.sendMessage("You're not allowed to do that inside of the Wilderness.");
       return false;
    }
    Did you mean:
    Code:
    if(c.playerRights <= 2 && c.inWild() == true) {
    Don't you mean
    Code:
    if(c.playerRights <= 2 && c.inWild()) {
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Banned
    Join Date
    Nov 2010
    Posts
    508
    Thanks given
    5
    Thanks received
    61
    Rep Power
    0
    should this not go into itemClick3.java?
    Reply With Quote  
     

  10. #9  
    Banned
    Join Date
    Apr 2011
    Posts
    801
    Thanks given
    66
    Thanks received
    84
    Rep Power
    0
    Nice I guess not that hard
    Reply With Quote  
     

  11. #10  
    Registered Member
    Anfernio's Avatar
    Join Date
    Jul 2008
    Age
    23
    Posts
    414
    Thanks given
    23
    Thanks received
    39
    Rep Power
    221
    Quote Originally Posted by Lechuur View Post
    should this not go into itemClick3.java?
    Heal was oddly added in their for whatever reason.


    Additional, gonna prob be doing other options later.
    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. [JMod Item]Rotten Potato
    By K4rn4ge in forum Models
    Replies: 19
    Last Post: 08-10-2011, 01:27 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
  •