Thread: Plank Make Base

Results 1 to 5 of 5
  1. #1 Plank Make Base 
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    This is for PI and isnt perfect i wrote it in like 5 minutes but it makes planks.


    Open playerassistant.java and put this anywhere.

    Spoiler for playerassistant.java:
    public void plankMake() {
    if (c.playerLevel[6] < 86) {
    c.sendMessage("You need a magic level of 86 to cast this spell.");
    return;
    }
    if (c.getItems().playerHasItem(1511,1)) {
    if (c.getItems().playerHasItem(9075,3) && c.getItems().playerHasItem(557,15) && c.getItems().playerHasItem(561,1)) {
    c.startAnimation(-1);
    c.gfx0(-1);
    addSkillXP(c.MAGIC_SPELLS[51][7] * Config.MAGIC_EXP_RATE, 6);
    refreshSkill(6);
    c.getItems().deleteItem(9075,c.getItems().getItemS lot(9075),3);
    c.getItems().deleteItem(557,c.getItems().getItemSl ot(557),15);
    c.getItems().deleteItem(561,c.getItems().getItemSl ot(561),1);
    } else {
    c.sendMessage("You do not have the required runes to cast this spell.");
    }
    } else {
    c.sendMessage("You do not have the required logs to cast this spell.");
    }
    int plankAmountMade = 0;
    boolean plankMade = false;
    boolean messageGiven = false;
    for (int i = 0; i < 28; i++) {
    if (c.getItems().playerHasItem(1511,1)) {
    plankMade = true;
    c.getItems().deleteItem(1511,c.getItems().getItemS lot(1511),1);
    c.getItems().addItem(960, 1);
    plankAmountMade += 1;
    }
    }
    if (plankMade)
    c.sendMessage("You made "+plankAmountMade+" planks.");
    }



    Then find clickingbuttons.java and put this in there

    Spoiler for clickingbuttons.java:
    case 118034:
    c.getPA().plankMake();
    break;


    yes i know its not that great you can always add too it but my server doesnt support planks so i dont need it i just wanted to make it.
    Reply With Quote  
     

  2. #2  
    Registered Member
    FuckThePolice's Avatar
    Join Date
    Feb 2009
    Age
    30
    Posts
    846
    Thanks given
    29
    Thanks received
    57
    Rep Power
    87
    Nicely done All though.. I see no point in it honestly... what would people use planks for unless they were to add Con... and i doubt anyone will get that full but like i said Nice thx not adding though
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Mar 2008
    Posts
    1,937
    Thanks given
    131
    Thanks received
    61
    Rep Power
    0
    why not just have a full lunar spellbok
    Reply With Quote  
     

  4. #4  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    im gonna be writing out all the skills slowly ill release them when i finish each
    Reply With Quote  
     

  5. #5  
    Registered Member
    FuckThePolice's Avatar
    Join Date
    Feb 2009
    Age
    30
    Posts
    846
    Thanks given
    29
    Thanks received
    57
    Rep Power
    87
    Quote Originally Posted by animeking1120 View Post
    im gonna be writing out all the skills slowly ill release them when i finish each
    Sounds like something that'll be.. not so easy Goodluck..
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •