cool minigame (pics coming soon)
Purpose: Creates a command ( ::minigame ) and you can have fun with a drill instructor and use emotes to do various muscle building moves.
Difficulty: 5/10
Assumed Knowledge: Brains
Server Base: TestScape
Classes Modified: Client.java, AutoSpawn.cfg and NpcHandler.java
Procedure
Step 1:
start off by opening your autospawn.cfg and adding this to the bottom:
Code:
spawn = 29 3153 3196 0 3112 3158 2602 3370 2 Boot Camp Officer
Then once youve done that save and exit
Step 2:
open your client.Java and search this:
and add this under it:
Code:
else if (command.equalsIgnoreCase("pushups")){
setAnimation(2756);
sendMessage("Build your Muscles to the MaX!.");
}
else if (command.equalsIgnoreCase("starjump")){
setAnimation(2761);
sendMessage("Jump to the Stars!.");
}
else if (command.equalsIgnoreCase("situps")){
setAnimation(2763);
sendMessage("Work those Abs!.");
}
Step 3:
Search:
and then you should see this:
Code:
public void QuestHelpMenu()
{
sendQuest("@[email protected]", 8144); //Title
clearQuestInterface();
sendQuest("@[email protected] secret commands quest", 8145);
sendQuest("@[email protected]@[email protected] start tele to 2511,[email protected]@", 8147);
sendQuest("@[email protected]@[email protected] click board raft for your first instructions :) @[email protected]", 8148);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8149);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8150);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8151);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8152);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8153);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8154);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8155);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8156);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8157);
sendQuest("@[email protected]*future quest*", 8160);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8161);
sendQuest("@[email protected]@[email protected] *future quest* @[email protected]", 8162);
sendQuest("@[email protected]@[email protected] *future quest*@[email protected]", 8163);
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
Under that place this:
Step 4:
search "questmenuhelp" again and you should find:
Code:
else if (command.equalsIgnoreCase("questmenu"))
{
QuestHelpMenu();
}
Under that on an new line place this:
Code:
else if (command.equalsIgnoreCase("bootcamphelp"))
{
bootcamphelp();
}
Step 5:
Then search:
And add this under that command:
Code:
else if (command.equalsIgnoreCase("minigame"))
if(absY >= 3672)
{
sendMessage("You cannot teleport above level 20 wilderness.");
}
else
{
teleportToX = 3153;
teleportToY = 3193;
sendMessage("Listen for His Orders and Dont go too Slow.");
inwildy = false;
}
Then save and close client.Java
Step 6:
open your NPCHandler.Java and search for
Then under that code and on the last } on a new line add this:
Code:
if (npcs[i].npcType == 29) {
if (misc.random2(25) == 3) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "NOW GIVE ME SOME SIT UPS!";
}
}
if (npcs[i].npcType == 29) {
if (misc.random2(40) == 3) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "I WANT TO SEE U JUMPING TO THE STARS!";
}
}
if (npcs[i].npcType == 29) {
if (misc.random2(60) == 3) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "GIVE ME SOME PUSH UPS NOW!";
}
}
Credits: me.