Thread: Shard - Eating Food

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by PenisCount++ View Post
    l2 use an enum
    lol!

    Reply With Quote  
     

  2. #12  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,017
    Thanks given
    1,499
    Thanks received
    1,967
    Rep Power
    4898
    Good job
    Reply With Quote  
     

  3. #13  
    Registered Member
    Nando's Avatar
    Join Date
    Feb 2009
    Age
    26
    Posts
    3,518
    Thanks given
    2,437
    Thanks received
    1,107
    Rep Power
    5000
    boolean wtf lol


    Reply With Quote  
     

  4. #14  
    Interfacing with your sister

    Streax's Avatar
    Join Date
    Jun 2009
    Posts
    2,311
    Thanks given
    782
    Thanks received
    175
    Rep Power
    229
    don't forget to add so it removes the food from that slot.
    Code:
    		default:
    			//Remove item method here.
    		}
    Reply With Quote  
     

  5. #15  
    Registered Wizard

    Jesse's Avatar
    Join Date
    Sep 2009
    Age
    26
    Posts
    5,105
    Thanks given
    1,506
    Thanks received
    1,125
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by 'Mystic Flow View Post
    This actually would work faster then using an enum but it's messy either way lol

    OT: Good job
    explain plz



    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #16  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    25
    Posts
    4,561
    Thanks given
    1,158
    Thanks received
    1,173
    Rep Power
    2949
    Quote Originally Posted by Mayhem' View Post
    don't forget to add so it removes the food from that slot.
    Code:
    		default:
    			//Remove item method here.
    		}
    It already does remove food from its slot.
    [Only registered and activated users can see links. ]
    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  7. #17  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    Quote Originally Posted by Trololol View Post
    explain plz
    When using enums, you have to loop through the values to find the food type you're about to use, this code get's it directly without looping but in the end, nothing is really improved

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  8. #18  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,910
    Thanks given
    1,558
    Thanks received
    2,617
    Rep Power
    5000
    Quote Originally Posted by 'Mystic Flow View Post
    When using enums, you have to loop through the values to find the food type you're about to use, this code get's it directly without looping but in the end, nothing is really improved
    Enum would look cleaner then this.
    Reply With Quote  
     

  9. #19  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    Quote Originally Posted by Macho Man View Post
    Enum would look cleaner then this.
    Yeah I said that before, but in the end .. you're improving a very small portion of your server so it doesn't matter.

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  10. #20  
    Community Veteran


    Join Date
    Jun 2007
    Posts
    1,684
    Thanks given
    300
    Thanks received
    309
    Rep Power
    481
    How about make a public int, like case 391: return 21; and then call that int for heal from a separate method? And agreed with Flow, using an enum would not affect performance almost at all
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 2 of 3 FirstFirst 123 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. [SHARD] Eating food
    By deimos_ in forum Tutorials
    Replies: 3
    Last Post: 11-28-2010, 03:31 AM
  2. Food Eating #508
    By Zena in forum Tutorials
    Replies: 6
    Last Post: 06-13-2010, 02:14 PM
  3. [100%!!] NPC EATING [max food in autospawn]
    By Robin Spud in forum Show-off
    Replies: 30
    Last Post: 07-16-2009, 06:48 PM
  4. [508]Eating Food
    By Light Moger in forum Tutorials
    Replies: 6
    Last Post: 01-20-2009, 01:04 AM
  5. food problem (eating)
    By dalebra in forum RS2 Client
    Replies: 5
    Last Post: 08-17-2008, 02:27 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
  •