How to let one spawn at a time.
Go to
src> com> rs> game> player> content
in commands.java search this "item" And change the code with
Where it says
This means that only ''Username'' and ''Test'' are able to spawn if you want more to spawn do this
So now 4 people are able to spawn including the admin.
Now ''username'' and ''test'' can spawn and now you need to compile.
================================================== ===========================
Now to show you how to make a female personage
first go to src> com> rs> game> player open Appearence.java en search this
Change this to
Save and go to
src> com> rs> game> player> content open commands.java and add this:
Where it says
look [0] = 48 ;/ / This is the hairstyle
Save and compile and now you have a female personage
[/COLOR][URL="https://retronet.nl/proxy/?u=http://www.upload.ee/image/2204801/female_switch.png"]http://www.upload.ee/image/2204801/female_switch.png[/URL][COLOR=#000000] [/ img][/COLOR]
This is the first one! I will put more tutorials soon!
+ rep and like if this work and/or you like this share
Go to
src> com> rs> game> player> content
in commands.java search this "item" And change the code with
Code:
[COLOR=#000000]if (cmd [0] equalsIgnoreCase ("item") |. |. (Player.getUsername () equalsIgnoreCase ("username")) | |. Player.getUsername () equalsIgnoreCase ("test")) {[/COLOR]
[COLOR=#000000]if (cmd.length <2) {[/COLOR]
[COLOR=#000000]if (player.getRights () <= 2)[/COLOR]
[COLOR=#000000]player.getPackets (). sendGameMessage ([/COLOR]
[COLOR=#000000]"use :: item id (optional: amount)");[/COLOR]
[COLOR=#000000]return true;[/COLOR]
[COLOR=#000000]}[/COLOR]
Where it says
Code:
[COLOR=#000000](. Player.getUsername () equalsIgnoreCase ("username")) | |. Player.getUsername () equalsIgnoreCase ("test"))[/COLOR]
This means that only ''Username'' and ''Test'' are able to spawn if you want more to spawn do this
Code:
[COLOR=#000000]if (cmd [0] equalsIgnoreCase ("item") |. |. (Player.getUsername () equalsIgnoreCase ("name here")) | |. Player.getUsername () equalsIgnoreCase ("name here") | |. player.getUsername () equalsIgnoreCase ("naam hier") | |. player.getUsername () equalsIgnoreCase ("name here")) {[/COLOR]
So now 4 people are able to spawn including the admin.
Now ''username'' and ''test'' can spawn and now you need to compile.
================================================== ===========================
Now to show you how to make a female personage
first go to src> com> rs> game> player open Appearence.java en search this
Code:
[COLOR=#000000] public void female () {[/COLOR]
Change this to
Code:
[COLOR=#000000]public void female () {[/COLOR]
[COLOR=#000000] kijk [0] = 48; / / Hair[/COLOR]
[COLOR=#000000] kijk [1] = 57; / / Beard[/COLOR]
[COLOR=#000000] kijk [2] = 57; / / Torso[/COLOR]
[COLOR=#000000] kijk [3] = 65; / / Arms[/COLOR]
[COLOR=#000000] kijk [4] = 68; / / Arm acc[/COLOR]
[COLOR=#000000] kijk [5] = 77; / / Legs[/COLOR]
[COLOR=#000000] kijk [6] = 80; / / Shoes[/COLOR]
[COLOR=#000000] Colour [2] = 16;[/COLOR]
[COLOR=#000000] Colour [1] = 16;[/COLOR]
[COLOR=#000000] Colour [0] = 3;[/COLOR]
[COLOR=#000000] male = false;[/COLOR]
[COLOR=#000000] }[/COLOR]
Save and go to
src> com> rs> game> player> content open commands.java and add this:
Code:
[COLOR=#000000]
if (cmd [0]. EqualsIgnoreCase ("female")) {[/COLOR]
[COLOR=#000000] . player.getAppearence () female ();[/COLOR]
[COLOR=#000000] }[/COLOR]
[COLOR=#000000]if (cmd [0]. equalsIgnoreCase ("male")) {[/COLOR]
[COLOR=#000000] player.getAppearence () man ().;[/COLOR]
[COLOR=#000000] }[/COLOR]
Where it says
Code:
[COLOR=#000000] look[0] = 48; // Hair[/COLOR]
[COLOR=#000000]look[1] = 57; // Beard[/COLOR]
[COLOR=#000000]look[2] = 57; // torso[/COLOR]
[COLOR=#000000]look[3] = 65; // Arms[/COLOR]
[COLOR=#000000]look[4] = 68; // amulet[/COLOR]
[COLOR=#000000]look[5] = 77; // legs[/COLOR]
[COLOR=#000000]look[6] = 80; // Shoes[/COLOR]
look [0] = 48 ;/ / This is the hairstyle
Save and compile and now you have a female personage
[/COLOR][URL="https://retronet.nl/proxy/?u=http://www.upload.ee/image/2204801/female_switch.png"]http://www.upload.ee/image/2204801/female_switch.png[/URL][COLOR=#000000] [/ img][/COLOR]
This is the first one! I will put more tutorials soon!
+ rep and like if this work and/or you like this share