wrong section..?
|
|
add this in your public boolean wear(int wearID, int slot) {
Have funCode:if (wearID == 10704 && (playerLevel[0] <= 98)) { GoFalse = true; sendMessage("You need 99 Attack to wear this cape."); } if (wearID == 10705 && (playerLevel[0] <= 98)) { GoFalse = true; sendMessage("You need 99 Attack to wear this cape."); } if (wearID == 10710 && (playerLevel[1] <= 98)) { GoFalse = true; sendMessage("You need 99 Defence to wear this cape."); } if (wearID == 10711 && (playerLevel[1] <= 98)) { GoFalse = true; sendMessage("You need 99 Defence to wear this cape."); } if (wearID == 10707 && (playerLevel[2] <= 98)) { GoFalse = true; sendMessage("You need 99 Strength to wear this cape."); } if (wearID == 10708 && (playerLevel[2] <= 98)) { GoFalse = true; sendMessage("You need 99 Strength to wear this cape."); } if (wearID == 10713 && (playerLevel[4] <= 98)) { GoFalse = true; sendMessage("You need 99 Range to wear this cape."); } if (wearID == 10714 && (playerLevel[4] <= 98)) { GoFalse = true; sendMessage("You need 99 Range to wear this cape."); } if (wearID == 10716 && (playerLevel[5] <= 98)) { GoFalse = true; sendMessage("You need 99 Prayer to wear this cape."); } if (wearID == 10717 && (playerLevel[5] <= 98)) { GoFalse = true; sendMessage("You need 99 Prayer to wear this cape."); } if (wearID == 10719 && (playerLevel[6] <= 98)) { GoFalse = true; sendMessage("You need 99 Magic to wear this cape."); } if (wearID == 10720 && (playerLevel[6] <= 98)) { GoFalse = true; sendMessage("You need 99 Magic to wear this cape."); } if (wearID == 10758 && (playerLevel[7] <= 98)) { GoFalse = true; sendMessage("You need 99 Cooking to wear this cape."); } if (wearID == 10759 && (playerLevel[7] <= 98)) { GoFalse = true; sendMessage("You need 99 Cooking to wear this cape."); } if (wearID == 10764 && (playerLevel[8] <= 98)) { GoFalse = true; sendMessage("You need 99 WoodCutting to wear this cape."); } if (wearID == 10765 && (playerLevel[8] <= 98)) { GoFalse = true; sendMessage("You need 99 WoodCutting to wear this cape."); } if (wearID == 10740 && (playerLevel[9] <= 98)) { GoFalse = true; sendMessage("You need 99 Fletching to wear this cape."); } if (wearID == 10741 && (playerLevel[9] <= 98)) { GoFalse = true; sendMessage("You need 99 Fletching to wear this cape."); } if (wearID == 10755 && (playerLevel[10] <= 98)) { GoFalse = true; sendMessage("You need 99 Fishing to wear this cape."); } if (wearID == 10756 && (playerLevel[10] <= 98)) { GoFalse = true; sendMessage("You need 99 Fishing to wear this cape."); } if (wearID == 10761 && (playerLevel[11] <= 98)) { GoFalse = true; sendMessage("You need 99 FireMaking to wear this cape."); } if (wearID == 10762 && (playerLevel[11] <= 98)) { GoFalse = true; sendMessage("You need 99 FireMaking to wear this cape."); } if (wearID == 10737 && (playerLevel[12] <= 98)) { GoFalse = true; sendMessage("You need 99 Crafting to wear this cape."); } if (wearID == 10738 && (playerLevel[12] <= 98)) { GoFalse = true; sendMessage("You need 99 Crafting to wear this cape."); } if (wearID == 10752 && (playerLevel[13] <= 98)) { GoFalse = true; sendMessage("You need 99 Smithing to wear this cape."); } if (wearID == 10753 && (playerLevel[13] <= 98)) { GoFalse = true; sendMessage("You need 99 Smithing to wear this cape."); } if (wearID == 10749 && (playerLevel[14] <= 98)) { GoFalse = true; sendMessage("You need 99 Mining to wear this cape."); } if (wearID == 10750 && (playerLevel[14] <= 98)) { GoFalse = true; sendMessage("You need 99 Mining to wear this cape."); } if (wearID == 10731 && (playerLevel[15] <= 98)) { GoFalse = true; sendMessage("You need 99 Herblore to wear this cape."); } if (wearID == 10732 && (playerLevel[15] <= 98)) { GoFalse = true; sendMessage("You need 99 Herblore to wear this cape."); } if (wearID == 10728 && (playerLevel[16] <= 98)) { GoFalse = true; sendMessage("You need 99 Agility to wear this cape."); } if (wearID == 10729 && (playerLevel[16] <= 98)) { GoFalse = true; sendMessage("You need 99 Agility to wear this cape."); } if (wearID == 10734 && (playerLevel[17] <= 98)) { GoFalse = true; sendMessage("You need 99 Theiving to wear this cape."); } if (wearID == 10735 && (playerLevel[17] <= 98)) { GoFalse = true; sendMessage("You need 99 Theiving to wear this cape."); } if (wearID == 10743 && (playerLevel[18] <= 98)) { GoFalse = true; sendMessage("You need 99 Slayer to wear this cape."); } if (wearID == 10744 && (playerLevel[18] <= 98)) { GoFalse = true; sendMessage("You need 99 Slayer to wear this cape."); } if (wearID == 10767 && (playerLevel[19] <= 98)) { GoFalse = true; sendMessage("You need 99 Farming to wear this cape."); } if (wearID == 10768 && (playerLevel[19] <= 98)) { GoFalse = true; sendMessage("You need 99 Farming to wear this cape."); } if (wearID == 10722 && (playerLevel[20] <= 98)) { GoFalse = true; sendMessage("You need 99 Rune Crafting to wear this cape."); } if (wearID == 10723 && (playerLevel[20] <= 98)) { GoFalse = true; sendMessage("You need 99 Rune Crafting to wear this cape."); } if (wearID == 10706 && (playerLevel[0] <= 98)) { GoFalse = true; sendMessage("You need 99 Attack to wear this hood."); } if (wearID == 10712 && (playerLevel[1] <= 98)) { GoFalse = true; sendMessage("You need 99 Defence to wear this hood."); } if (wearID == 10709 && (playerLevel[2] <= 98)) { GoFalse = true; sendMessage("You need 99 Strength to wear this hood."); } if (wearID == 10727 && (playerLevel[3] <= 98)) { GoFalse = true; sendMessage("You need 99 HP to wear this hood."); } if (wearID == 10713 && (playerLevel[4] <= 98)) { GoFalse = true; sendMessage("You need 99 Range to wear this hood."); } if (wearID == 10718 && (playerLevel[5] <= 98)) { GoFalse = true; sendMessage("You need 99 Prayer to wear this hood."); } if (wearID == 10721 && (playerLevel[6] <= 98)) { GoFalse = true; sendMessage("You need 99 Magic to wear this hood."); } if (wearID == 10760 && (playerLevel[7] <= 98)) { GoFalse = true; sendMessage("You need 99 Cooking to wear this hood."); } if (wearID == 10766 && (playerLevel[8] <= 98)) { GoFalse = true; sendMessage("You need 99 WoodCutting to wear this hood."); } if (wearID == 10742 && (playerLevel[9] <= 98)) { GoFalse = true; sendMessage("You need 99 Fletching to wear this hood."); } if (wearID == 10757 && (playerLevel[10] <= 98)) { GoFalse = true; sendMessage("You need 99 Fishing to wear this hood."); } if (wearID == 10763 && (playerLevel[11] <= 98)) { GoFalse = true; sendMessage("You need 99 FireMaking to wear this hood."); } if (wearID == 10739 && (playerLevel[12] <= 98)) { GoFalse = true; sendMessage("You need 99 Crafting to wear this hood."); } if (wearID == 10754 && (playerLevel[13] <= 98)) { GoFalse = true; sendMessage("You need 99 Smithing to wear this hood."); } if (wearID == 10751 && (playerLevel[14] <= 98)) { GoFalse = true; sendMessage("You need 99 Mining to wear this hood."); } if (wearID == 10733 && (playerLevel[15] <= 98)) { GoFalse = true; sendMessage("You need 99 Herblore to wear this hood."); } if (wearID == 10730 && (playerLevel[16] <= 98)) { GoFalse = true; sendMessage("You need 99 Agility to wear this hood."); } if (wearID == 10736 && (playerLevel[17] <= 98)) { GoFalse = true; sendMessage("You need 99 Theiving to wear this hood."); } if (wearID == 10745 && (playerLevel[18] <= 98)) { GoFalse = true; sendMessage("You need 99 Slayer to wear this hood."); } if (wearID == 10769 && (playerLevel[19] <= 98)) { GoFalse = true; sendMessage("You need 99 Farming to wear this hood."); } if (wearID == 10724 && (playerLevel[20] <= 98)) { GoFalse = true; sendMessage("You need 99 Rune Crafting to wear this hood."); }33333
Only thing that works for my server, my code like
Code:public boolean wear(int wearID, int slot) { int targetSlot = 0; if((playerItems[slot] - 1) == wearID) { targetSlot = itemType(wearID); int CLFishing = GetCLFishing(wearID); boolean GoFalse = false; if (CLFishing > playerLevel[playerFishing]) { sendMessage("You need " + CLFishing + " " + statName[playerFishing] + " to equip this item."); GoFalse = true; }didnt work.Code:public int GetCLFishing(int ItemID) { if (ItemID == -1) { return 1; } if (ItemID == 10755) { return 99; } String ItemName = GetItemName(ItemID); if (ItemName.startsWith("Fishing")) { return 99; } return 1; }
rep+ for j00!
THis dosen't work for me...
All it does, if someone clicks on the cape, they wear it and it displays the message "You Need 99 Cooking To Wear this cape"
Doesn't work![]()
So your tut is for if someone puts on a skillcape it lets them know that they need 99 in that skill to wear them?
Although, you can wear them at any level..
| « Searching for Actionbutton's ? | new and inprove edge bank » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |