Thread: paying $5 might be easy

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 paying $5 might be easy 
    owner cody
    Guest
    How the hell do u make a java class file!?! out of this code:
    if u can help add
    [email protected]

    Code:
    /*
     * Class ShopBuyConfig
     *
     * Version 1.0
     *
     * Novemeber 20, 2008
     *
     * Created by Dragonking <[email protected]>
     */
    
    package net.com.codeusa.net.packethandler;
    
    import net.com.codeusa.model.Player;
    import net.com.codeusa.util.Misc;
    import net.com.codeusa.model.items.PlayerItems;
    import net.com.codeusa.*;
    public class ShopBuyConfig implements Packet {
        /**
         * Handles operating equipped items.
         * @param p The Player which the frame should be handled for.
         * @param packetId The packet id this belongs to.
         * @param packetSize The amount of bytes being recieved for this packet.
         */
       public Server Server; 
    	public void handlePacket(Player p, int packetId, int packetSize) {
            if (p == null || p.stream == null) {
                return;
            }
    		PlayerItems pi = new PlayerItems();
    		NPCOption1 N1 = new NPCOption1();
            int junk = p.stream.readDWord();
            int itemId = p.stream.readUnsignedWordA();
            int itemSlot = p.stream.readUnsignedWordBigEndianA();      
    
    //if (itemSlot < 0 || itemSlot >= p.equipment.length || p.equipment[itemSlot] != itemId) {
            //    return;
    	//}
    		if (p.shopid == 2 && pi.hasPlayerItemAmount(p, 995, p.shop2p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop2p[itemSlot]);
    			pi.addItem(p, p.shop2[itemSlot], 1);
    		} 
    		
    		else if (p.shopid == 12 && pi.hasPlayerItemAmount(p, 995, p.shop12p[0]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop12p[0]);
    			pi.addItem(p, p.shop12[itemSlot], 1);
    		} 
    		else if (p.shopid == 3 && pi.hasPlayerItemAmount(p, 995, p.shop3p[0]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop3p[0]);
    			pi.addItem(p, p.shop3[itemSlot], 1);
    		} 
    		else if (p.shopid == 9 && pi.hasPlayerItemAmount(p, 995, p.shop9p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop9p[itemSlot]);
    			pi.addItem(p, p.shop9[itemSlot], 1);
    		} 
    		else if (p.shopid == 13 && pi.hasPlayerItemAmount(p, 995, p.shop13p[itemSlot]))
    		 {
    			pi.addItem(p, p.shop13[itemSlot], 1);
    		} 
    		else if (p.shopid == 11 && pi.hasPlayerItemAmount(p, 995, p.shop11p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop11p[itemSlot]);
    			pi.addItem(p, p.shop11[itemSlot], 1);
    		} 
    		else if (p.shopid == 10 && pi.hasPlayerItemAmount(p, 995, p.shop10p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop10p[itemSlot]);
    			pi.addItem(p, p.shop10[itemSlot], 1);
    		} 
    		else if (p.shopid == 8 && pi.hasPlayerItemAmount(p, 995, p.shop8p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop8p[itemSlot]);
    			pi.addItem(p, p.shop8[itemSlot], 1);
    		} 
    		else if (p.shopid == 4 && pi.hasPlayerItemAmount(p, 995, p.shop4p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop4p[itemSlot]);
    			pi.addItem(p, p.shop4[itemSlot], 1);
    		} 
    		else if (p.shopid == 6 && pi.hasPlayerItemAmount(p, 995, p.shop4p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop6p[itemSlot]);
    			pi.addItem(p, p.shop6[itemSlot], 1);
    		} 
    		else if (p.shopid == 7 && pi.hasPlayerItemAmount(p, 995, p.shop7p[itemSlot]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop7p[itemSlot]);
    			pi.addItem(p, p.shop7[itemSlot], 1);
    		} 
    		else if (p.shopid == 5 && pi.hasPlayerItemAmount(p, 995, p.shop5p[0]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop5p[0]);
    			pi.addItem(p, p.shop5[itemSlot], 1);
    		}
    		else if (p.shopid == 14 && pi.hasPlayerItemAmount(p, 995, p.shop14p[0]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop14p[0]);
    			pi.addItem(p, p.shop14[itemSlot], 5000);
    		} 
    		else if (p.shopid == 15 && pi.hasPlayerItemAmount(p, 995, p.shop15p[0]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop15p[0]);
    			pi.addItem(p, p.shop15[itemSlot], 1);
    		}   
    		else if (p.shopid == 16 && pi.hasPlayerItemAmount(p, 995, p.shop16p[0]))
    		 {
    			pi.deleteItem(p, 995, pi.getItemSlot(p, 995), p.shop16p[0]);
    			pi.addItem(p, p.shop16[itemSlot], 1);
    		}  	
    		else 
    		{
    			p.getActionSender().sendMessage(p,"You dont have enough coins. Try doing ::cash");
    		}
    }
    }
    i saved it as ShopBuyConfig.java and when i compile it says bad class file, and the guy told me to make a java class file how do i do that?
    Reply With Quote  
     

  2. #2  
    Name Invalid
    Guest
    Lol thats simple
    you got msn? il help you
    Reply With Quote  
     

  3. #3  
    Super Donator

    Janizary's Avatar
    Join Date
    Jul 2009
    Age
    22
    Posts
    2,131
    Thanks given
    109
    Thanks received
    137
    Rep Power
    1031
    Doesn't belong in Tutorials genius.


    Quote Originally Posted by Pirlo View Post
    I don't think the cold war existed during/before WWI
    Reply With Quote  
     

  4. #4  
    owner cody
    Guest
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Sep 2009
    Age
    27
    Posts
    2,768
    Thanks given
    367
    Thanks received
    187
    Rep Power
    458
    dont trust him he scammed my freind and didnt give him 50$ he wont give u the 5$ lol
    Reply With Quote  
     

  6. #6  
    owner cody
    Guest
    ? this is my first time asking for help.. and what friend of your's? lol.. whats to scam $5? thats nothing bro.
    Reply With Quote  
     

  7. #7  
    Name Invalid
    Guest
    Quote Originally Posted by Punish-Pvp View Post
    dont trust him he scammed my freind and didnt give him 50$ he wont give u the 5$ lol
    Lol il let him send me cash first
    best way to do it
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Sep 2009
    Age
    27
    Posts
    2,768
    Thanks given
    367
    Thanks received
    187
    Rep Power
    458
    Yep and u scammed sk8 for 50$ to help u with a anit-viurs coz you fail
    Reply With Quote  
     

  9. #9  
    owner cody
    Guest
    anti virus? what?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Tom's Avatar
    Join Date
    Jul 2006
    Age
    30
    Posts
    1,148
    Thanks given
    8
    Thanks received
    87
    Rep Power
    902
    Whoever created that server fails hard at naming packages
    uh
    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

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