Thread: Adding Skill capes my way

Results 1 to 8 of 8
  1. #1 Adding Skill capes my way 
    Apple Computers
    Bridget7298's Avatar
    Join Date
    Aug 2007
    Age
    29
    Posts
    1,085
    Thanks given
    99
    Thanks received
    48
    Rep Power
    231
    :locklease read all information:lock:
    Server base: Any

    Client: Silabsoft or any client with silab items

    Files: Client.java (server side)

    Difficulty: 3/10

    Other: This method is not fully developed and is only 60% working

    :lock:This method is only for skill capes right now!:lock:

    :lock:Use this method if Tico's Tut on MoparScape doesnt work and you can't get the capes to work with out crashing the server!:lock:

    Step 1: Get all of the cape Id's you want to add and write them down.

    Step 2: Open a note pad and have a clean sheet ready, and copy the following code down and paste it in note pad.

    Step 3:
    Code:
    if (command.startsWith("NAME OF COMMAND"))
    		if(playerLevel[NUMBER OF SKILL] >= 99)  
    		{
                                    	playerEquipment[playerCape] = CAPE ID;
    		                                      }
    		else
    		{
    		sendMessage("You need a SKILL NAME level of 99 to weild this cape.");
    		}
    Step 4: Fill in your information in the code I just gave you, Here's what
    mine looks like:
    Code:
    if (command.startsWith("hpcape"))
    		if(playerLevel[3] >= 99)  
    		{
                                    	playerEquipment[playerCape] = 10041;
    		                                    }
    		else
    		{
    		sendMessage("You need a Hp level of 99 to weild this cape.");
    		}
    The "3" is the skill number so 3 is hitpoints skill, the "10041" is the Id number of the Hp cape for MY CLIENT, DO NOT USE 10041 AS HP CAPE FOR YOURS. Now copy the full code into your commands inside client.java.

    Now you should have this:
    Code:
    if (command.startsWith("hpcape"))
    		if(playerLevel[3] >= 99)  
    		{
                                    	playerEquipment[playerCape] = 10041;
    		                                      }
    		else
    		{
    		sendMessage("You need a Hp level of 99 to weild this cape.");
    		}
    While in the game type ::hpcape to automatically weild the hp cape.

    :lock:NOTE: This method is only 60% finished which means you can't unweild the cape but you can weild more skill capes by typing in the command of another one you might of made, so basically if I'm weilding an Hp cape and I type in my other code "farmcape" it will weild the farming cape, the point is is that you can't unweild the cape but you can weild more of them.:lock:

    Save
    Compile
    Run

    100% credits me

    Thanks, don't flame or spaz out about this like I said It's only 60% done. When I finish the full version I'll post it.
     

  2. #2  
    Casella
    Guest
    to many :lock: s
     

  3. #3  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    or ELMarshall you could do this


    add this under "public class implements runnable"
    Code:
    public void skillcapeRec(String SkillName, int skillNum, int CapeID) {
    		if(playerLevel[skillNum] >= 99)  
    		{
                                    	playerEquipment[playerCape] = CapeID;
    		                                    }
    		else
    		{
    		sendMessage("You need 99 "+ cape +" to receive this Skillcape.);
    		}
    Usage

    Code:
    skillcapeRec("Hitpoints", 3, 10041)

     

  4. #4  
    Apple Computers
    Bridget7298's Avatar
    Join Date
    Aug 2007
    Age
    29
    Posts
    1,085
    Thanks given
    99
    Thanks received
    48
    Rep Power
    231
    well to be honest i was going to add something like that but like i said.. its not fully developed, once I get the bugs worked out I'll use that.
     

  5. #5  
    Registered Member
    Join Date
    Feb 2008
    Age
    29
    Posts
    188
    Thanks given
    0
    Thanks received
    1
    Rep Power
    27
    lolzzz difficulty 3????

    and btw why would u add it in a command

    make it in your levelup void or something and then just make it in the int GetCLAttack much better and more ppl will like that use instead of yours ...
    I loot I:
    Hybrid 508: [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
     

  6. #6  
    Apple Computers
    Bridget7298's Avatar
    Join Date
    Aug 2007
    Age
    29
    Posts
    1,085
    Thanks given
    99
    Thanks received
    48
    Rep Power
    231
    you must be slow.. anyway the reason its a command is because it AUTOMATICALLY WEILDS THE CAPE AND THIS IS BECAUSE FOR MY SERVER BASE I COULD NOT ADD SILAB ITEMS!

    Quote Originally Posted by lootface View Post
    lolzzz difficulty 3????

    and btw why would u add it in a command

    make it in your levelup void or something and then just make it in the int GetCLAttack much better and more ppl will like that use instead of yours ...
    if i made it give you a cape wen u get 99 in that combat skill you wouldnt be able to get another one... omg im sorry i just cant explain it very well, you have have this in your server to know what i meen
    Last edited by Bridget7298; 02-19-2008 at 02:52 AM. Reason: Double posting is not allowed!
     

  7. #7  
    IGotSkillz
    Guest
    Nice tutorial again mate.
     

  8. #8  
    Software
    Guest
    i Dont really understand this tut..
     


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
  •