Thread: How Add Master-Cape REQs

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 How Add Master-Cape REQs 
    Registered Member apfel00111's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Discord
    View profile
    Rep Power
    11
    Hey Guys

    i have a 718 Server and i know how to add the capes in the game but not the req (104,273,167 experience and the Skill).

    anyone can help me?
    Reply With Quote  
     

  2. #2  
    Donator

    El Camino's Avatar
    Join Date
    Dec 2011
    Age
    22
    Posts
    1,735
    Thanks given
    461
    Thanks received
    334
    Rep Power
    175
    Didn't test, but this should work.
    Code:
    if (itemName.contains("attack master cape")) {
    if (player.getSkills().getXP(Skills.ATTACK) < 104273167) {
    player.getPackets().sendGameMessage("You need to have an attack level of 120.");
    return false;
    }
    Don't be scared. It can't hurt you.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member apfel00111's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Discord
    View profile
    Rep Power
    11
    I have add this to itemconstants here

    [Only registered and activated users can see links. ]


    but i got errors :c
    Reply With Quote  
     

  5. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by apfel00111 View Post
    I have add this to itemconstants here

    [Only registered and activated users can see links. ]


    but i got errors :c
    Can't help you if you don't post the errors
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #5  
    Registered Member apfel00111's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Discord
    View profile
    Rep Power
    11
    src\com\rs\game\player\content\ItemConstants.java: 138: error: illegal start of expression
    public static boolean isTradeable(Item item) {
    ^
    src\com\rs\game\player\content\ItemConstants.java: 138: error: illegal start of expression
    public static boolean isTradeable(Item item) {
    ^
    src\com\rs\game\player\content\ItemConstants.java: 138: error: ';' expected
    public static boolean isTradeable(Item item) {
    ^
    src\com\rs\game\player\content\ItemConstants.java: 138: error: ')' expected
    public static boolean isTradeable(Item item) {
    ^
    src\com\rs\game\player\content\ItemConstants.java: 138: error: illegal start of expression
    public static boolean isTradeable(Item item) {
    ^
    src\com\rs\game\player\content\ItemConstants.java: 138: error: ';' expected
    public static boolean isTradeable(Item item) {
    ^
    src\com\rs\game\player\Player.java:2071: error: cannot find symbol
    ItemConstants.isTradeable(equipment.getItem(i))) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\Player.java:2082: error: cannot find symbol
    ItemConstants.isTradeable(inventory.getItem(i))) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\Player.java:2158: error: cannot find symbol
    if (ItemConstants.isSafeOnDeath(equipment.getItem(i). getId()) || ItemConstants.isTradeable(equipment.getItem(i))) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\Player.java:2168: error: cannot find symbol
    if (ItemConstants.isSafeOnDeath(inventory.getItem(i). getId()) || ItemConstants.isTradeable(inventory.getItem(i))) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\PriceCheckManager.java:60: error: cannot find symbol
    if (!ItemConstants.isTradeable(item)) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\Trade.java:108: error: cannot find symbol
    if (!ItemConstants.isTradeable(item)) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\Trade.java:208: error: cannot find symbol
    if (!ItemConstants.isTradeable(item)) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\Trade.java:220: error: cannot find symbol
    if (!ItemConstants.isTradeable(item)) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\content\pet\PetManager.java :196: error: cannot find symbol
    if (!ItemConstants.isTradeable(new Item(foodId))) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\npc\familiar\BeastOfBurden.java:11 2: error: cannot find symbol
    if (!ItemConstants.isTradeable(item) || item.getId() == 4049 || (familiar.canStoreEssOnly() && item.getId() != 1436 && item .getId() != 7936) || ItemManager.getPrice(item.getId()) > 50000) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\World.java:1199: error: cannot find symbol
    if (underGrave || !ItemConstants.isTradeable(floorItem)) {
    ^
    symbol: method isTradeable(FloorItem)
    location: class ItemConstants
    src\com\rs\game\player\content\Shop.java:306: error: cannot find symbol
    if (item.getDefinitions().isDestroyItem() || ItemConstants.getItemDefaultCharges(item.getId()) != -1 || !ItemConstants.isTradeable(item) || item.getId() == money) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\content\Shop.java:378: error: cannot find symbol
    if (item.getDefinitions().isNoted() || !ItemConstants.isTradeable(item) || item.getId() == money) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\minigames\duel\DuelArena.java:158: error: cannot find symbol
    if (!ItemConstants.isTradeable(item)) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\game\player\content\ItemConstants.java: 110: error: cannot find symbol
    if (player.getSkills().getXP(Skills.FISHING) < 104273167) {
    ^
    symbol: variable Skills
    location: class ItemConstants
    src\com\rs\game\player\content\ItemConstants.java: 138: error: cannot find symbol
    public static boolean isTradeable(Item item) {
    ^
    symbol: variable Item
    location: class ItemConstants
    src\com\rs\utils\EconomyPrices.java:16: error: cannot find symbol
    if (!ItemConstants.isTradeable(new Item(itemId, 1)))
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    src\com\rs\net\decoders\handlers\InventoryOptionsH andler.java:781: error: cannot find symbol
    if (ItemConstants.isTradeable(item)) {
    ^
    symbol: method isTradeable(Item)
    location: class ItemConstants
    24 errors

    https://gyazo.com/eeb6fb9d0e7b9553684a187043556e82

    i only got so much errors if i add this
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Oct 2020
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Discord
    View profile
    Rep Power
    0
    Add this
    Code:
    } else if (itemName.contains("attack master cape")) {
    	if (player.getSkills().getXP(Skills.ATTACK) < 104273167) {
    		player.sendMessage("You need to have an attack level of 120 to wear this.");
    		return false;
    		}
    in your canWear class.
    Reply With Quote  
     

  8. #7  
    Registered Member apfel00111's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Discord
    View profile
    Rep Power
    11
    public static boolean canWear(Item item, Player player) {
    String itemName = ItemDefinitions.getItemDefinitions(item.getId()).g etName().toLowerCase();
    if (itemName.contains("completionist")) {
    if (player.getSkills().getTotalLevel(player) < 2496) {
    player.sendMessage("You need a total level of 2496 before you can wear this.");
    return false;
    }
    } else if (itemName.contains("max")) {
    if (player.getSkills().getTotalLevel(player) < 2475) {
    player.sendMessage("You need a total level of 2475 before you can wear this.");
    return false;
    }
    } else if (itemName.contains("fire cape")) {
    if (!player.isCompletedFightCaves()) {
    player.getPackets().sendGameMessage("You need to complete fightcaves before you can equip firecape.");
    return false;
    }
    } else if (itemName.contains("blue cape") || itemName.contains("red cape")) {
    if (!player.getQuestManager().completedQuest(Quests.N OMADS_REQUIEM)) {
    player.getPackets().sendGameMessage("You need to have completed Nomad's Requiem miniquest to use this cape.");
    return false;
    }
    }
    return true;
    }





    here?

    https://gyazo.com/eeb6fb9d0e7b9553684a187043556e82


    i have add this there but i get errors if i add this
    Reply With Quote  
     

  9. #8  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by apfel00111 View Post
    public static boolean canWear(Item item, Player player) {
    String itemName = ItemDefinitions.getItemDefinitions(item.getId()).g etName().toLowerCase();
    if (itemName.contains("completionist")) {
    if (player.getSkills().getTotalLevel(player) < 2496) {
    player.sendMessage("You need a total level of 2496 before you can wear this.");
    return false;
    }
    } else if (itemName.contains("max")) {
    if (player.getSkills().getTotalLevel(player) < 2475) {
    player.sendMessage("You need a total level of 2475 before you can wear this.");
    return false;
    }
    } else if (itemName.contains("fire cape")) {
    if (!player.isCompletedFightCaves()) {
    player.getPackets().sendGameMessage("You need to complete fightcaves before you can equip firecape.");
    return false;
    }
    } else if (itemName.contains("blue cape") || itemName.contains("red cape")) {
    if (!player.getQuestManager().completedQuest(Quests.N OMADS_REQUIEM)) {
    player.getPackets().sendGameMessage("You need to have completed Nomad's Requiem miniquest to use this cape.");
    return false;
    }
    }
    return true;
    }





    here?

    [Only registered and activated users can see links. ]


    i have add this there but i get errors if i add this
    Put [CODE] [/ CODE] around your code to wrap it. Also post the code you have right now, you probably have an open pair of brackets or parenthesis.
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #9  
    Registered Member apfel00111's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Discord
    View profile
    Rep Power
    11
    public static boolean canWear(Item item, Player player) {
    String itemName = ItemDefinitions.getItemDefinitions(item.getId()).g etName().toLowerCase();
    } else if (itemName.contains("Fishing Master Cape")) {
    if (player.getSkills().getXP(Skills.FISHING) < 104273167) {
    player.sendMessage("You need to have the Fishing level of 120 to wear this.");
    return false;
    }
    if (itemName.contains("completionist")) {
    if (player.getSkills().getTotalLevel(player) < 2496) {
    player.sendMessage("You need a total level of 2496 before you can wear this.");
    return false;
    }
    } else if (itemName.contains("max")) {
    if (player.getSkills().getTotalLevel(player) < 2475) {
    player.sendMessage("You need a total level of 2475 before you can wear this.");
    return false;
    }
    } else if (itemName.contains("fire cape")) {
    if (!player.isCompletedFightCaves()) {
    player.getPackets().sendGameMessage("You need to complete fightcaves before you can equip firecape.");
    return false;
    }
    } else if (itemName.contains("blue cape") || itemName.contains("red cape")) {
    if (!player.getQuestManager().completedQuest(Quests.N OMADS_REQUIEM)) {
    player.getPackets().sendGameMessage("You need to have completed Nomad's Requiem miniquest to use this cape.");
    return false;
    }
    }
    return true;
    }

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  11. #10  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,417
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  12. Thankful user:


Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How Add Master-Cape REQs
    By apfel00111 in forum Help
    Replies: 1
    Last Post: 08-13-2020, 08:01 PM
  2. Replies: 4
    Last Post: 08-13-2017, 01:42 AM
  3. 718 5b master cape how would add particles
    By Castiel in forum Requests
    Replies: 1
    Last Post: 01-18-2017, 01:16 AM
  4. [Req] Actual Magic master cape [req]
    By Codiction in forum Models
    Replies: 8
    Last Post: 10-22-2014, 05:42 PM
  5. Replies: 4
    Last Post: 11-25-2012, 11:21 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •