Adding item requirements to your item.cfg(POSTED FROM OTHER FORUMS)
Purpose: Duh, read the title.
Difficuly: 1-3/10 (Some servers might not have this)
Files changed: Client.java
Sources tested: DeathMoon v.1
Alright this is the tutorial for adding item requirements to your items. First, open your client.java
Search for this:
CODE
Code:
public int GetCLAttack(int ItemID) {
If you don't find that try this:
CODE
Code:
/*Equipment level checking*/
Alright. Under that you should see some stuff that looks like this:
CODE
Code:
if (ItemID == 10705) {
return 100;
}
The itemID == 10705 is the id for the item you want to have the level requirement.
The return 100 is the level you want it to be required for. (Note: This is under attack, so this item requires 100 attack to weild it. You can look for other skills by looking down.)
Look a little down and you will see something like this:
CODE
Code:
} else if (ItemName.startsWith("Dragon")) {
return 60;
The "dragon" in the code indicates that anything that starts with dragon, takes 60 attack to weild. You can also make it so that anything that ends with "blank" will be set. Like this:
CODE
Code:
} else if (ItemName.endsWith("whip") {
return 70;
This indicates that anything that ends in "whip" will take 70 attack to wield.
You can go down and see other skills to add the requirements. Will post a little more on this if needed.
Hope it helped.
Credits to rspserver.com. Please list any mistakes. (DID I SAY ITS MY TUT) well not 100% mine