Thread: [508] 100% Burying (Best)

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 [508] 100% Burying (Best) 
    iLL-ViZi0N
    Guest
    Updated, please Repalce the boolean bury bones, p.addSkillXP(XPAmt, 5); fixed.
    Updated again, Please replace, this time its flawless =)

    Okay in prayer.java add this,
    Code:
            public boolean buryBones(Player p, int BoneID){
    		int XPAmt = 0;
    		PlayerItems pi = new PlayerItems();
    		switch(BoneID){
    
    		case 526: //Regular Bones
                            case 2859: //Wolf Bones
                            case 528: //Burnt Bones
                            case 3179: //Monkey Bones
                                    XPAmt = 4;
                            break;
                            
                            case 530: //Bat Bones
    				XPAmt = 5;
    			break;
                            
                            case 532: //Big Bones
                            case 3125: //Jogre Bones
                            case 10977: //Curved Bones
    			case 10976: //Long Bones
    				XPAmt = 15;
    			break;
                            
                            case 4812: //Zogre Bones
    				XPAmt = 23;
    			break;
                            
                            case 3123: //Shaikahan Bones
    				XPAmt = 25;
    			break;
                            
                            case 534: //Babydragon Bones
    				XPAmt = 30;
    			break;
                            
                            case 6812: //Wyvern Bones
    				XPAmt = 50;
    			break;
                            
                            case 536: //Dragon Bones
    				XPAmt = 72;
    			break;
                            
                            case 4830: //Fayrg Bones
    				XPAmt = 87;
    			break;
                            
                            case 4832: //Raurg Bones
    				XPAmt = 96;
    			break;
                            
                            case 6729: //Dagannoth Bones
    				XPAmt = 125;
    			break;
                            
                            case 4834: //Ourg Bones
    				XPAmt = 140;
    			break;
                            
    			default:
    			return false;
    		}
    		if(p.BuryDelay <= 0) {
    			p.BuryDelay = 4;
    			p.requestAnim(827, 0);
    			Engine.playerItems.deleteItem(p, BoneID, Engine.playerItems.getItemSlot(p, BoneID), 1);	
    			p.frames.sendMessage(p,"You bury the "+Engine.items.getItemName(BoneID)+".");
    			p.addSkillXP(XPAmt, 5);
    			p.updateReq = true;
    			pi = null;
    		}
    		return true;
    	}
    Import These
    Code:
    Engine
    Player items
    Player
    In player.java add this
    Code:
    public int BuryDelay = 0;
    Under Proccess() Add this
    Code:
    if (BuryDelay > 0) {
    		BuryDelay--;
    	}
    In itemselect, find
    Code:
    if (itemSlot < 0 || itemSlot > p.items.length || p.items[itemSlot] != itemId) {
                return;
            }
    above it add this,
    Code:
    Prayer Prayer = new Prayer();
    	if(Prayer.buryBones(p, itemId))return;
    	Prayer = null;
    Done,
    100% Credits to me.
    Rep ++, and post and ill keep releasing, got plenty to release. ( 100% Cooking, Eating, Runecrafting Etc... )
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Sep 2006
    Posts
    375
    Thanks given
    0
    Thanks received
    3
    Rep Power
    0
    Really nice, better than the ones I have now so I probably use them Thanks!
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Aug 2008
    Posts
    1,171
    Thanks given
    21
    Thanks received
    44
    Rep Power
    0
    Lol is that 2 anti-leaches or an accident? =P
    Reply With Quote  
     

  4. #4  
    Registered Member Bitlord44's Avatar
    Join Date
    Jul 2008
    Posts
    603
    Thanks given
    20
    Thanks received
    34
    Rep Power
    62
    Code:
    Prayer Prayer = new Prayer();

    gives 2 Cannot find symbol errors..
    Remember, there's always an asian out there that can do something better than you.
    Reply With Quote  
     

  5. #5  
    iLL-ViZi0N
    Guest
    ... Imports people... my server isnt palidinos packageing + imports.. if you cant fix that yourself you fail ..

    51 views and 2 posts no rep.. im not releasing **** to you leechers..
    Last edited by iLL-ViZi0N; 09-13-2008 at 09:05 PM. Reason: Double posting is not allowed!
    Reply With Quote  
     

  6. #6  
    ritz929
    Guest
    nice one ill-vizion

    been meaning too look at this since you posted lolz

    way more tidy than my way, will be using

    repped
    Reply With Quote  
     

  7. #7  
    iLL-ViZi0N
    Guest
    Ty, dont think ill be releaseing anything new..
    Reply With Quote  
     

  8. #8  
    Donator


    Join Date
    Sep 2006
    Age
    30
    Posts
    2,106
    Thanks given
    73
    Thanks received
    54
    Rep Power
    491
    This is useful, although I won't use rep++
    Reply With Quote  
     

  9. #9  
    ritz929
    Guest
    ahh well, leechers ruin everything

    lol
    Reply With Quote  
     

  10. #10  
    Donator


    Join Date
    Sep 2006
    Age
    30
    Posts
    2,106
    Thanks given
    73
    Thanks received
    54
    Rep Power
    491
    Quote Originally Posted by ritz929 View Post
    ahh well, leechers ruin everything

    lol
    In what way? it just proves that they can't program Java and need tutorials for there server's to live on, that is why you make the tutorial as crappy as you can .
    Reply With Quote  
     

Page 1 of 3 123 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
  •