h productions



Join the forum, it's quick and easy

h productions

h productions

Would you like to react to this message? Create an account in a few clicks or log in to continue.
h productions

h productions evrything about setting up a game or server eg.runescape private server and runing it

Log in

I forgot my password

mp3player


Get a playlist! Standalone player Get Ringtones

Who is online?

In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

None


[ View the whole list ]


Most users ever online was 101 on Wed Jul 03, 2019 3:46 am

online chat

Chat login:
Nickname
Password (optional)

powered by h-prodz.co.cc

Latest topics

» New things for you
[tut]how to add skillcapes (508) EmptySun Nov 29, 2009 6:56 pm by marden

» DUN DUN DUN!
[tut]how to add skillcapes (508) EmptySun Nov 22, 2009 10:33 am by awesome pker

» tradescape stay online? or go away
[tut]how to add skillcapes (508) EmptyTue Aug 25, 2009 1:50 pm by FiZiX the second

» fix read!!!
[tut]how to add skillcapes (508) EmptyMon Aug 10, 2009 7:25 am by FiZiX the second

» LIGHT FALCONS SERVER HERE
[tut]how to add skillcapes (508) EmptyFri Jul 10, 2009 7:05 am by light falcon

» New CO Owner
[tut]how to add skillcapes (508) EmptyFri Jun 26, 2009 9:11 am by awesome pker

» I'm getting bored...
[tut]how to add skillcapes (508) EmptyFri Jun 26, 2009 7:26 am by Fizix

» what to post here
[tut]how to add skillcapes (508) EmptyMon Jun 22, 2009 12:26 pm by Fizix

» 2 servers 1 port LOOK!!!
[tut]how to add skillcapes (508) EmptyMon Jun 22, 2009 12:13 pm by Fizix

Navigation

Affiliates


    [tut]how to add skillcapes (508)

    Admin
    Admin
    Admin
    Admin


    Posts : 88
    Reputation : 5
    Join date : 2009-04-14

    [tut]how to add skillcapes (508) Empty [tut]how to add skillcapes (508)

    Post  Admin Sat Apr 18, 2009 10:34 am

    this tut is only for 508 servers
    _______________________________
    First off , credits go to Linux from rune-server.

    And now for the tutorial:

    go to src\palidino76\rs2\ folder and make a folder ( if you dont already have that ) called "content"

    and make a new file called Skillcape.java
    Into that put this :

    Code:
    package palidino76.rs2.content;

    import palidino76.rs2.players.Player;
    import palidino76.rs2.util.Misc;
    import palidino76.rs2.world.items.Items;

    /*
     * Class Skillcape
     *
     * Version 1.0
     *
     * Monday, August 25, 2008
     *
     * Created by Linux
     */

    public class Skillcape {
       /**
        * Skillcape animation.
        */
       public int skillcapeAnimation = 0;
       /**
        * Skillcape graphic.
        */
       public int skillcapeGraphic = 0;
       /**
        * Skill of the skillcape.
        */
       public int skill = 0;

       public Skillcape(Player p, int skillcapeId) {

          switch (skillcapeId) {
          /*
           * Attack cape.
           */
          case 9747:
          case 9748:
             skill = 0;
             skillcapeAnimation = 4959;
             skillcapeGraphic = 823;
             break;
          /*
           * Defense cape.
           */
          case 9753:
          case 9754:
             skill = 1;
             skillcapeAnimation = 4961;
             skillcapeGraphic = 824;
             break;   
          /*
           * Strength cape.
            */
          case 9750:
          case 9751:
             skill = 2;
             skillcapeAnimation = 4981;
             skillcapeGraphic = 828;
             break;
          /*
           * Hitpoints cape.
           */
          case 9768:
          case 9769:
             skill = 3;
             skillcapeAnimation = 4971;
             skillcapeGraphic = 833;
             break;
          /*
           * Ranging cape.   
           */
          case 9756:
          case 9757:
             skill = 4;
             skillcapeAnimation = 4973;
             skillcapeGraphic = 832;
             break;
          /*
           * Prayer cape.
           */
          case 9759:
          case 9760:
             skill = 5;
             skillcapeAnimation = 4979;
             skillcapeGraphic = 829;
             break;
          /*
           * Magic cape.
           */
          case 9762:
          case 9763:
             skill = 6;
             skillcapeAnimation = 4939;
             skillcapeGraphic = 813;
             break;
          /*
           * Cooking cape.
           */
          case 9801:
          case 9802:
             skill = 7;
             skillcapeAnimation = 4955;
             skillcapeGraphic = 821;
             break;
          /*
           * Woodcutting cape.
           */
          case 9807:
          case 9808:
             skill = 8;
             skillcapeAnimation = 4957;
             skillcapeGraphic = 822;
             break;
          /*
           * Fletching cape.
           */
          case 9783:
          case 9784:
             skill = 9;
             skillcapeAnimation = 4937;
             skillcapeGraphic = 812;
             break;
          /*
           * Fishing cape.
           */
          case 9798:
          case 9799:
             skill = 10;
             skillcapeAnimation = 4951;
             skillcapeGraphic = 819;
             break;
          /*
           * Firemaking cape.
           */
          case 9804:
          case 9805:
             skill = 11;
             skillcapeAnimation = 4975;
             skillcapeGraphic = 831;
             break;
          /*
           * Crafting cape.
           */
          case 9780:
          case 9781:
             skill = 12;
             skillcapeAnimation = 4949;
             skillcapeGraphic = 818;
             break;
          /*
           * Smithing cape.
           */
          case 9795:
          case 9796:
             skill = 13;
             skillcapeAnimation = 4943;
             skillcapeGraphic = 815;
             break;
          /*
           * Mining cape.
           */
          case 9792:
          case 9793:
             skill = 14;
             skillcapeAnimation = 4941;
             skillcapeGraphic = 814;
             break;
          /*
           * Herblore cape.
           */
          case 9774:
          case 9775:
             skill = 15;
             skillcapeAnimation = 4969;
             skillcapeGraphic = 835;
             break;
          /*
           * Agility cape.
           */
          case 9771:
          case 9772:
             skill = 16;
             skillcapeAnimation = 4977;
             skillcapeGraphic = 830;
             break;
          /*
           * Thieving cape.
           */
          case 9777:
          case 9778:
             skill = 17;
             skillcapeAnimation = 4965;
             skillcapeGraphic = 826;
             break;
          /*
           * Slayer cape.
           */
          case 9786:
          case 9787:
             skill = 18;
             skillcapeAnimation = 4937;//need animation
             skillcapeGraphic = 812;//need graphic
             break;
          /*
           * Farming cape.
           */
          case 9810:
          case 9811:
             skill = 19;
             skillcapeAnimation = 4963;
             skillcapeGraphic = 825;
             break;
          /*
           * Runecraft cape.
           */
          case 9765:
          case 9766:
             skill = 20;
             skillcapeAnimation = 4947;
             skillcapeGraphic = 817;
             break;
          /*
           * Hunter's cape
           */
          case 9948:
          case 9949:
             skill = 21;
             skillcapeAnimation = 5158;
             skillcapeGraphic = 907;
             break;
           /*
           * Construct. cape.
           */
          case 9789:
          case 9790:
             skill = 22;
             skillcapeAnimation = 4953;
             skillcapeGraphic = 820;
             break;
          /*
           * Summoning cape.
           */
          case 12169:
          case 12170:
             skill = 23;
             skillcapeAnimation = 8525;
             skillcapeGraphic = 1515;
             break;
          /*
           * Quest cape.
           */
          case 9813:
             skillcapeAnimation = 4945;
             skillcapeGraphic = 816;
             break;
          }
          if(p.skillLvl[skill] == 99 && p.equipment[1] == skillcapeId) {
             p.requestAnim(skillcapeAnimation, 0);
             p.requestGFX(skillcapeGraphic, 0);
          } else {
             p.frames.sendMessage(p, "You need to be level 99 " + Misc.getSkillName(skill) + " to do the " + Items.getItemName(skillcapeId) +  " emote.");
          }   
       }
    }

    then go to
    src\palidino76\rs2\io\packets

    and find something like this:

    Code:
    else if (buttonId == 39)

    and replace whole that whit this :

    Code:
          else if (buttonId == 39) {
                new Skillcape(p, p.equipment[1]);

    and your done
    credits:linux from rune-server

      Current date/time is Tue May 07, 2024 12:46 pm