[Tut] [317] Making players start on server wearing items

Results 1 to 10 of 10
  1. #1
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    [Tut] [317] Making players start on server wearing items

    Purpose: ok, allow people to start with items on them (wearing the items :P)

    Difficulty: 2

    Assumed Knowledge: copy and paste

    Server Base: pimpscape, cheezscape, testscape

    Classes Modified: player.java

    step 1:

    ok first open up your player.java and search for this
    Code:
    //Giving the player an unique look
    playerEquipment[playerHat]=
    step 2:
    you should see the following :
    Code:
    //Giving the player an unique look
    		playerEquipment[playerHat]=Item.randomHat();
    		playerEquipment[playerCape]=Item.randomCape();
    		playerEquipment[playerAmulet]=Item.randomAmulet();
    		playerEquipment[playerChest]=Item.randomBody();
    		playerEquipment[playerShield]=Item.randomShield();
    		playerEquipment[playerLegs]=Item.randomLegs();
    		playerEquipment[playerHands]=Item.randomGloves();
    		playerEquipment[playerFeet]=Item.randomBoots();
    		playerEquipment[playerRing]=Item.randomRing();
    		playerEquipment[playerArrows]=Item.randomArrows();
    		playerEquipment[playerWeapon]=1275;
    or atleast something very similar :p

    step 3:
    ok now to have them start with something make sure there are no /* or */ in front or at the end of the code above , and then all you do is change the code like so...

    Code:
    playerEquipment[playerHat]=Item.randomHat();
    to
    Code:
    playerEquipment[playerHat]= 1038;
    that would make them start wearing a red party hat, you just change each code to an item you want :P


    or you could also make a random thing, so you would go into item.java , and add something like this...

    Code:
    public static int hats[] = {1038, 1040};
    you would only need to add the static int , because most sources come with the rest of the coding completed :P


    credits : -fedexer-


  2. #2
    Valued Member Thomy-13 is offline
    MemberRank
    May 2007 Join Date
    Emps-ScapeLocation
    138Posts

    Re: [Tut] making players start on server wearing items

    Nice, i was searching days to do this, but you helped me :)
    Thanks to fedexer :)

  3. #3
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [Tut] making players start on server wearing items

    No problem Thomy, im glad my tutorial was of use to you

  4. #4
    Proficient Member eddie1231231 is offline
    MemberRank
    Oct 2006 Join Date
    SpainLocation
    179Posts

    Re: [Tut] making players start on server wearing items

    guess is ok

  5. #5
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [Tut] making players start on server wearing items

    yeah it is ok, i only made it cause i got bored, and the folk at mopar didnt actually all know how to do this

  6. #6
    Apprentice f-r-o-z-e-n is offline
    MemberRank
    Jul 2007 Join Date
    9Posts

    Re: [Tut] making players start on server wearing items

    Thx worked nice =)

  7. #7
    Account Upgraded | Title Enabled! Hubba-Hotel is offline
    MemberRank
    Feb 2007 Join Date
    ScotlandLocation
    513Posts

    Re: [Tut] making players start on server wearing items

    Nice.
    Using it on my server.

  8. #8
    Apprentice Darth Mopar is offline
    MemberRank
    Jan 2007 Join Date
    19Posts

    Re: [Tut] making players start on server wearing items

    Quote Originally Posted by -fedexer- View Post
    yeah it is ok, i only made it cause i got bored, and the folk at mopar didnt actually all know how to do this
    That's insulting... I know how to do it just fine, thank you.

  9. #9
    Enthusiast psychodog3000 is offline
    MemberRank
    Feb 2007 Join Date
    Unknown LocationLocation
    46Posts

    Re: [Tut] making players start on server wearing items

    Nice But Pretty Easy To Figure Out lol

  10. #10
    Member fotur3z is offline
    MemberRank
    Jul 2007 Join Date
    In RagezoneLocation
    69Posts

    Re: [Tut] making players start on server wearing items

    I think theres something wrong with zamorak server, When i done this, i made a new char, and it died..

    SO whenever a new char starts, they die ? :p
    Does anyone know how to fix this?



Advertisement