Thread: fully working crystal chest!

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1 fully working crystal chest! 
    We Are The Revolution!
    Volcom's Avatar
    Join Date
    Apr 2007
    Posts
    1,118
    Thanks given
    0
    Thanks received
    5
    Rep Power
    859
    FIRST TUT!

    Purpose: To add a crystal chest to your server!

    Difficulty: 1-2 (must have some coding knowledge)

    Server Base: volcomscape, but can work on any source.

    Classes Modified: Client.java, and item2.java

    Procedure
    Step 1: Open up Client.java and declare this void

    Code:
    public void crystalkey()
    {
            sendMessage("You have opened the crystal chest!");
            deleteItem(989,getItemSlot(989),1);
            addItem(1615,1);
            addItem(Item2.randomCrystal(), 1);
    }
    step2: In client.java search rune();. under tht last } add this

    Code:
    //crystal key
                    else if(useItemID == 989 && (atObjectX == 2914 && atObjectY == 3452))
                    {
                    crystalkey();
                    }
    it should look something like this
    Code:
           rune();
                    }
                                                                           
                    //crystal key
                    else if(useItemID == 989 && (atObjectX == 2914 && atObjectY == 3452))
                    {
                    crystalkey();
                    }
    step3: then add this command:

    Code:
        else if (command.equalsIgnoreCase("crystalchest"))
    	{
    		teleportToX = 2914;
    		teleportToY = 3450;
    
    	sendMessage("Use all of your crystal keys here!");
    	}
    close client.java

    step4: open up item2.java and scroll down to the second code from the bottom, under the last } of tht code add this

    Code:
    public static int crystal[] = {6918,6916,6924,6920,6914,6889,6922,6237,6295,6215,4716,4708,4753,4745,4732,4726,4718,4710,4755,4747,4734,4728,4720,4712,4757,4749,4736,4730,4722,4714,4759,4751,4738,4724,1038,1044,1046,1048,1040,1050,1057,1053,1055,1050,1037,1419,1961,1959,962,4716,4708,4753,4745,4732,4726,4718,4710,4755,4747,4734,4728,4720,4712,4757,4749,4736,4730,4722,4714,4759,4751,4738,4724,1038,1044,1046,1048,1040,1050,1057,1053,1055,1050,1037,1419,1961,1959,962,4716,4708,4753,4745,4732,4726,4718,4710,4755,4747,4734,4728,4720,4712,4757,4749,4736,4730,4722,4714,4759,4751,4738,4724,1038,1044,1046,1048,1040,1050,1057,1053,1055,1050,1037,1419,1961,1959,962,4716,4708,4753,4745,4732,4726,4718,4710,4755,4747,4734,4728,4720,4712,4757,4749,4736,4730,4722,4714,4759,4751,4738,4724,1038,1044,1046,1048,1040,1050,1057,1053,1055,1050,1037,1419,1961,1959,962,4716,4708,4753,4745,4732,4726,4718,4710,4755,4747,4734,4728,4720,4712,4757,4749,4736,4730,4722,4714,4759,4751,4738,4724,1038,1044,1046,1048,1040,1050,1057,1053,1055,1050,1037,1419,1961,1959,962,4716,4708,4753,4745,4732,4726,4718,4710,4755,4747,4734,4728,4720,4712,4757,4749,4736,4730,4722,4714,4759,4751,4738,4724,1038,1044,1046,1048,1040,1050,1057,1053,1055,1050,1037,1419,1961,1959,962};
        
        public static int randomCrystal()
        {
        return crystal[(int)(Math.random()*crystal.length)];
        }
    and thats it

    post any errors or questions on here

    Credits: 90% me 10% Sith
     

  2. #2  
    Registered Member Lord Alan's Avatar
    Join Date
    May 2007
    Age
    28
    Posts
    211
    Thanks given
    0
    Thanks received
    0
    Rep Power
    15
    woot part my idea first post thanx dude for this!
    A life spent making mistakes is not only more honorable, but more useful than a life spent doing nothing.
     

  3. #3  
    black-pure-4-lyfe
    Guest
    Nice maybe ill use i dunno.
     

  4. #4  
    ♦♦♦♦
    Guest
    this doesnt even delete the key lmfao.
     

  5. #5  
    We Are The Revolution!
    Volcom's Avatar
    Join Date
    Apr 2007
    Posts
    1,118
    Thanks given
    0
    Thanks received
    5
    Rep Power
    859
    actually yes it does. u havent even tried the code so dont judge!

    P.S. LEARN TO READ!

    Code:
    public void crystalkey()
    {
            sendMessage("You have opened the crystal chest!");
            deleteItem(989,getItemSlot(989),1);
            addItem(1615,1);
            addItem(Item2.randomCrystal(), 1);
    }
     

  6. #6  
    Registered Member
    Join Date
    Nov 2006
    Posts
    699
    Thanks given
    1
    Thanks received
    32
    Rep Power
    524
    Quote Originally Posted by volcomskater View Post
    actually yes it does. u havent even tried the code so dont judge!

    P.S. LEARN TO READ!

    Code:
    public void crystalkey()
    {
            sendMessage("You have opened the crystal chest!");
            deleteItem(989,getItemSlot(989),1);
            addItem(1615,1);
            addItem(Item2.randomCrystal(), 1);
    }
    PWNED.

    ~Z
     

  7. #7  
    Sir_pod2
    Guest
    Looks good
     

  8. #8  
    0x2B | ~0x2B


    Impulser's Avatar
    Join Date
    Jul 2006
    Posts
    1,305
    Thanks given
    389
    Thanks received
    336
    Rep Power
    2751
    ♦♦♦♦ Thinks he knows it all, don't wory... Good Tut, Though this was done in Cheez 63 or 80, i can't rember
     

  9. #9  
    We Are The Revolution!
    Volcom's Avatar
    Join Date
    Apr 2007
    Posts
    1,118
    Thanks given
    0
    Thanks received
    5
    Rep Power
    859
    thx guys for the great comments!

    Quote Originally Posted by Zachera View Post
    Code:
    actually yes it does. u havent even tried the code so dont judge!
    
    P.S. LEARN TO READ!
    
    Code:
    
    public void crystalkey()
    {
            sendMessage("You have opened the crystal chest!");
            deleteItem(989,getItemSlot(989),1);
            addItem(1615,1);
            addItem(Item2.randomCrystal(), 1);
    }
    PWNED.
    LMAO!
     

  10. #10  
    steve20007
    Guest
    Quote Originally Posted by volcomskater View Post
    FIRST TUT!
    Open up Client.java and add this void
    Lul, It Should Be

    Quote Originally Posted by volcomskater View Post
    FIRST TUT!
    Open up Client.java and delcare this method
     

Page 1 of 4 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. [pi]Fully working Crystal Chest
    By deadsoul in forum Tutorials
    Replies: 2
    Last Post: 01-04-2011, 06:17 PM
  2. Replies: 4
    Last Post: 02-07-2010, 10:09 PM
  3. Fully Working Chest Gambling [From Highscape!]
    By Hybrid Pk3r in forum Tutorials
    Replies: 46
    Last Post: 02-19-2008, 03:34 AM
  4. Adding rare Crystal chest
    By Jukk in forum Tutorials
    Replies: 18
    Last Post: 02-18-2008, 07:40 PM
  5. Crystal chest V2
    By Volcom in forum Tutorials
    Replies: 18
    Last Post: 12-11-2007, 12:54 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
  •