Thread: Eating timers

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Eating timers 
    Registered Member Jukk's Avatar
    Join Date
    Oct 2006
    Age
    28
    Posts
    1,881
    Thanks given
    0
    Thanks received
    18
    Rep Power
    436
    purpose, adding eating timers to your server
    difficulty is 10/10 for starters, others 0/10
    source is any, I didn't test but this works if I didn't miss something

    someone requested eating timers, posted it to it's own thread also :lock::lock::lock:






    add
    Code:
            if (EatTimer > 0) {
                 EatTimer -= 1;
            }
    to process


    Search for
    Code:
        public boolean CheckForSkillUse3(int Item, int Slot) {//ITEM CLICK ITEM
            boolean GoOn = true;
            switch (Item) {
    and add this under switch line:
    Code:
    if (EatTimer == 0) {
    then add } to end of this boolean.

    Then the timer, just add
    Code:
    EatTimer = 5;
    for example to case so it's like this:

    Code:
                case 315: //Shrimps
                    healing[1] = 5;
                    healing[2] = 5;
                    healing[3] = -1;
                    EatTimer = 5;
                    break;
    no need to add fukin else {} to every case

    then don't forget to declare:
    Code:
    public int EatTimer = 0;
     

  2. #2  
    T X
    Guest
    Jukk you suck at coding xD lel rarwr boy

    Nice btw jukk timers suck like you xD
     

  3. #3  
    Gander
    Guest
    no need to add fukin else {} to every case

    1. Learn to spell
    2. public int EatingTimer ?
    3. Oh yeah, and dont forget to read up on the Java code conventions here [Only registered and activated users can see links. ]
     

  4. #4  
    Banned

    Join Date
    May 2007
    Posts
    2,690
    Thanks given
    115
    Thanks received
    45
    Rep Power
    0
    good job on this
     

  5. #5  
    Registered Member Jukk's Avatar
    Join Date
    Oct 2006
    Age
    28
    Posts
    1,881
    Thanks given
    0
    Thanks received
    18
    Rep Power
    436
    ya got long sig der mr T X and lul ya ganda, teach me plx? O:O


    oo ganda on 2, i mean this code:

    Code:
    		
    	case 391: //Manta ray
    				if (eatingTimer1 == 0) {
    				healing[1] = 25;
    				healing[2] = 25;
    				healing[3] = -1;
                                    eatingTimer1 = 3;
    				sendMessage("You eat a manta ray. Healed for 25!");
                                    } else {
    				sendMessage("You already ate, don't get to fat!");
    				}
    				break;
    no need for that long code every time, thats not by me anyway
     

  6. #6  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    27
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    That's just going to ruin player killing, Why put a timer on food.
    :indeed:
     

  7. #7  
    Kurt
    Guest
    Quote Originally Posted by ViperSniper View Post
    That's just going to make player killing own, Why put a timer on food? That is why.
    fixed for you, nice tut.
     

  8. #8  
    nuuskis
    Guest
    I got this error?

    [Only registered and activated users can see links. ]
     

  9. #9  
    mr s' sock
    Guest
    Useless. there is already an eating timer, it's used as an actiontimer.
     

  10. #10  
    pureowner
    Guest
    Quote Originally Posted by nuuskis View Post
    I got this error?

    [Only registered and activated users can see links. ]
    you put it in the rong spot then lol...., plus i dont think jukk did it right plus he probably l33ched it from like a magic timer and made up a eating timer lol wtf?
     

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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •