Thread: 200m capes

Results 1 to 9 of 9
  1. #1 200m capes 
    Registered Member
    Join Date
    Apr 2015
    Posts
    19
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Trying to figure out how to write a code so they cant equip until 200m xp in that certain level any hints on how to start? im on a 667 revision



    I went into itemDefinitions.java and found the code for 99 ( itemRequiriments.put(Skills.RANGE, 99); ) but not for 200m
    Reply With Quote  
     

  2. #2  
    Husband. Father.
    Loyalty_'s Avatar
    Join Date
    Aug 2013
    Age
    28
    Posts
    1,170
    Thanks given
    74
    Thanks received
    130
    Rep Power
    64
    ItemContenets.java under "canWear"
    Loyalty_





    Quote Originally Posted by Falconpunch View Post
    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2015
    Posts
    19
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    I found that but what would the code be in order for it to only be wearable if you have 200m xp
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Jul 2015
    Posts
    173
    Thanks given
    15
    Thanks received
    15
    Rep Power
    31
    Just an example. This method sucks but it works so meh.

    player.java

    Code:
    public boolean maxDefence = false;
    Skills.java

    Code:
    public void maxXpOrNaw(int skill, Player player) {
    if(skill == DEFENCE) {
    if(player.maxDefence)
    return;
    player.maxDefence = true;
    }
    In the addXp method in Skills.java

    Code:
    if (xp[skill] > MAXIMUM_EXP) {
    xp[skill] = MAXIMUM_EXP;
    maxXpOrNaw(skill, player);
    }
    buttonhandler.java

    Code:
    if(itemId == ##### && player.maxDefence == false) {
    player.errorMessage("You need 200M xp in Defence to wear this cape.");
    return false;
    }
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2015
    Posts
    19
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    That dont work lol.
    Reply With Quote  
     

  6. #6  
    Krator || Indie Dev

    Jordan Belfort's Avatar
    Join Date
    Dec 2012
    Posts
    1,051
    Thanks given
    535
    Thanks received
    485
    Rep Power
    1172
    Quote Originally Posted by mikerwave View Post
    That dont work lol.
    I believe that was pseudo-code and not meant for you to directly copy and paste, lol. Not sure what framework you're using, but what was mentioned above is exactly how you'd do it. I'll 'word' you through the process, because spoonfeeding isn't going to help you learn.

    1. Find where items run through a "requirements" check upon equip.
    2. Wherever the case may be, create a new check.
    3. Referencing the player, check the player's XP for "X" skill.
    4. If the player has 200M xp in "X" skill, allow the item to be equipped. If not, send a notification to the player as to why.


    I'm sure you were looking for code, but again I have no base downloaded nor did you mention your framework. Best of luck to you.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2015
    Posts
    19
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Its a 667
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Aug 2011
    Posts
    843
    Thanks given
    541
    Thanks received
    220
    Rep Power
    0
    Whats your skype? ill fix this for ya fele
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Apr 2015
    Posts
    19
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    zamoramike31

    Quote Originally Posted by Pikajew View Post
    Whats your skype? ill fix this for ya fele
    zamoramike31
    Reply With Quote  
     


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. Replies: 10
    Last Post: 05-15-2015, 01:31 AM
  2. [667/***] Help. 200m skill capes
    By timo191212 in forum Help
    Replies: 4
    Last Post: 12-10-2014, 06:04 PM
  3. 200m Xp Capes(ANIMATED)
    By Skyknight181 in forum Show-off
    Replies: 20
    Last Post: 11-06-2014, 07:01 PM
  4. Replies: 17
    Last Post: 10-19-2014, 08:56 PM
  5. Skill Capes
    By Itachi Uchiha in forum Tutorials
    Replies: 33
    Last Post: 09-20-2007, 12:15 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •