:lock
lease 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.