Thread: Key Crafting Skill!!!

Results 1 to 7 of 7
  1. #1 Key Crafting Skill!!! 
    Why Am I Not Vet?!

    Clouds Mine's Avatar
    Join Date
    May 2008
    Age
    28
    Posts
    2,400
    Thanks given
    1
    Thanks received
    21
    Rep Power
    1478
    Hello once again with another tutorial like i said before...
    If this has already been posted let me know and i will delete it!!!!

    Key Crafting Skill

    Purpose: New Skill *Rolls Eyes* lol

    Difficulty: 3/10

    Assumed Knowledge: copy and past and how to use ctrl+f

    Server Base: Allstar-Scape

    What do to: Makeing keys!

    Credits: me Duh 0.0

    Step1:
    open your cilent.java and search for this,
    Code:
             case 20: //Runecrafting
    It should look something like this
    Code:
             case 20: //Runecrafting
                sendFrame164(4267);
    			stillgfx(199, absX, absY);
                sendFrame126("Congratulations, you just advanced a runecrafting level!", 4268);
                sendFrame126("Your runecrafting level is now "+playerLevel[20]+" .", 4269);
                sendMessage("Congratulations, you just advanced a runecrafting level.");
                NpcDialogueSend = true;
                break;
    add this after the break;
    Code:
    	 case 24: //Keycrafting
    	    sendFrame164(4882);
                            stillgfx(199, absX, absY);
                sendFrame126("Congrats, you lv'd in Key Crafting good job "+playerName+"", 4884);
    	    sendFrame126("Congrats, your Keycrafting level is now "+playerLevel[24]+" .", 4885);
                sendMessage("Congrats, you just advanced in my new skill.");
                NpcDialogueSend = true;
                break;
    Step3:
    Search for this
    Code:
    int Farmingxp = playerXP[19];
    then put this under it
    Code:
    int Keycrafting = playerLevel[24];
    int Keycraftingxp = playerXP[24];
    Step4:
    Search for this
    Code:
    int Farminglvl = p2.playerLevel[19];
    put this under it
    Code:
    int Keycraftinglvl = p2.playerLevel[24];
    Step5:
    search for this
    Code:
    public void guamSeed()
    and add this right above it
    Code:
    public void redkey1()
    	{
    	if(playerLevel[24] >= 1)
    		{
    		addSkillXP((12*playerLevel[24]), 24);
    		addItem(1543, 1);
    		deleteItem(1511, getItemSlot(1511), 1);
    		sendMessage("You made a Rune key use it on the Crystal Chest to get your reward!");
    		}
    		else if(playerLevel[24] < 1)
    		{
    			sendMessage("You need at least 1 keycrafting to make this!");
    
    		}
    	}
    public void orangekey1()
    	{
    	if(playerLevel[24] >= 20)
    		{
    		addSkillXP((34*playerLevel[24]), 24);
    		addItem(1544, 1);
    		deleteItem(1521, getItemSlot(1521), 1);
    		sendMessage("you made a money key use it on the crystal chest to get you reward!");
    		}
    		else if(playerLevel[24] < 20)
    		{
    			sendMessage("You need atleast 20 Keycrafting to make this!");
    		}
    	}
    public void yellowkey1()
    	{
    	if(playerLevel[24] >= 40)
    		{
    		addSkillXP((60*playerLevel[24]), 24);
    		addItem(1545, 1);
    		deleteItem(1519, getItemSlot(1519), 1);
    		sendMessage("You make a Key go use it on the crystal chest to get your reward!");
    		}
    		else if(playerLevel[24] < 40)
    		{
    			sendMessage("You need atleast 40 Keycrafting to make this!");
    		}
    	}
    Step6:
    Search for
    Code:
    steel(itemSlot);
    				}*/
    add this under it
    Code:
    					//keycrafting
    				else if(useItemID == 1511 && (atObjectX == 3238 && atObjectY == 3434))
    				{
    					redkey1();
    				}
    					//keycrafting
    				else if(useItemID == 1521 && (atObjectX == 3238 && atObjectY == 3434))
    				{
    					orangekey1();
    				}
    					//keycrafting				
    				else if(useItemID == 1519 && (atObjectX == 3238 && atObjectY == 3434))
    				{
    					yellowkey1();
    				}
    compile and run,

    now theres ur skill but u want the keys to do something right?

    Step1
    ok search for this,
    Code:
    				crystalkey();
    after the last } add this
    Code:
    				//key1
    				else if(useItemID == 1543 && (atObjectX == 2914 && atObjectY == 3452))
    				{
    				key1();
    				} 
    				//key2
    				else if(useItemID == 1544 && (atObjectX == 2914 && atObjectY == 3452))
    				{
    				key2();
    				} 
    				//key3
    				else if(useItemID == 1545 && (atObjectX == 2914 && atObjectY == 3452))
    				{
    				key3();
    				}
    Step2:
    now search for
    Code:
    public void crystalkey()
    and it should look like this
    Code:
    public void crystalkey()
    {
    		sendMessage("You have opened the crystal chest!");
    		deleteItem(989,getItemSlot(989),1);
    		addItem(1615,1);
    		addItem(Item2.randomCrystal(), 1);
    }
    after the } add this
    Code:
    public void key1()
    {
    		sendMessage("Your Red Key turns into dust as you unlock the chest!");
    		deleteItem(1543,getItemSlot(1543),1);
    		addItem(558,25);
    		addItem(554,25);
    		addItem(555,25);
    		addItem(556,25);
    		addItem(557,25);
    		addItem(560,25);
    		addItem(561,25);
    		addItem(562,25);
    		addItem(563,25);
    		addItem(566,25);
    		addItem(4278,25);
    		addItem(Item2.Key1(), 1);
    }
    public void key2()
    {
    		sendMessage("The Orange key starts to glow and dissapears back to the heavens.");
    		deleteItem(1544,getItemSlot(1544),1);
    		addItem(995,20000);
    		addItem(Item2.Key2(), 1);
    }
    public void key3()
    {
    		sendMessage("Wow your key changed colors! use it to see what you get!");
    		deleteItem(1545,getItemSlot(1545),1);
    		addItem(Item2.Key3(), 1);
    }
    Step 3:
    Now for the harder part open your item2.java and search for this,
    Code:
    public static int crystal[] = {1048,1046,1050,4151};
    should look something like this
    Code:
    public static int crystal[] = {1048,1046,1050,4151};
        
        public static int randomCrystal()
        {
    	return crystal[(int)(Math.random()*crystal.length)];
        }
    after the last } add this,
    Code:
    public static int key1[] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1544};
        
        public static int Key2()
        {
    	return key2[(int)(Math.random()*key2.length)];
        }
    public static int key3[] = {1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1543,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1544,1545,1545,1545,1545,1545,1545};
        
        public static int Key3()
        {
    	return key3[(int)(Math.random()*key3.length)];
        }
    And now your are done!!!!
    I hope you like the tut and i hope you use it
    Please leave good feedback rep is always the best way to go rofl jk/./././
     

  2. #2  
    Donator

    Divide's Avatar
    Join Date
    Dec 2007
    Age
    25
    Posts
    816
    Thanks given
    3
    Thanks received
    0
    Rep Power
    91
    Nice Probably Wont use tho. Hope this is helpful to other people tho
    [Only registered and activated users can see links. ]

     

  3. #3  
    Why Am I Not Vet?!

    Clouds Mine's Avatar
    Join Date
    May 2008
    Age
    28
    Posts
    2,400
    Thanks given
    1
    Thanks received
    21
    Rep Power
    1478
    Quote Originally Posted by dangt351 View Post
    Nice Probably Wont use tho. Hope this is helpful to other people tho
    Thanks dude took me a while to do this damn tut lol....:woot:
     

  4. #4  
    Dead Man H
    Guest
    Why not handle this other then throwing **** into client.java?
     

  5. #5  
    Registered Member
    Steven317's Avatar
    Join Date
    May 2008
    Age
    28
    Posts
    1,133
    Thanks given
    19
    Thanks received
    24
    Rep Power
    573
    Nice job, i might try it out


    If you need any help, PM me.
    114407 reputation points



     

  6. #6  
    Totally Pro

    Fubergen's Avatar
    Join Date
    Nov 2007
    Age
    28
    Posts
    1,026
    Thanks given
    24
    Thanks received
    14
    Rep Power
    310
    hmmm pics would be nice



    advertising without affiliate is rude
     

  7. #7  
    Why Am I Not Vet?!

    Clouds Mine's Avatar
    Join Date
    May 2008
    Age
    28
    Posts
    2,400
    Thanks given
    1
    Thanks received
    21
    Rep Power
    1478
    I didn't add it to me server well i did but i got 3 errors sooo....
    But im working on it once i get it i will post pics
     


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
  •