T
The Myth
Guest
Hi ive decided 2 release mi new mini-game 
DIFICULTY: 2/10
NEEDED:A brain and some basic understanding of how 2 make objects, npcs ext.
MODIFIED: client.java, autospawn.cfg, npchandler.java and item2.java
ok 1st open up your client.java and search for:
you should get somthing like this
after the last 1 do space and enter this:
dw if about straitning up the lines to the 1's in ur client, it doesnt matter.
ok next search 4:
note: if u dont get any results consider changing the spaces (e.g. doing:
insted or mabye just:
ok keep looking till u find somthing like this:
after the
do a enter and put this in:
note: after this u should probs search 4
,
and
if u get any results exept the portals we just added for any o theese case's delete them (for those of u who r dumb, i mean the origonal case's not the 1's u just added)
ok next search 4:
u should see somthing like this:
at the end of this text enter this:
ok final thing in client.java
get 2 any of ur tele commands, like
under it add this:
then search 4 any of ur menus like
or
my example is of my
, you should see somthing like this:
under it add this:
ok we're dont with client.java now
WOT WE'VE DONE SO FAR:
we have added the objects, like portals and machine that gives xp.
we have made the objects do things, like portal tele u and machine give xp.
we have added the command that gets u 2 the mini-game.
we have added the info, so that it will open wen u go 2 the mini-game.
ok next, go in2 autospawn.cfg and enter this:
ok save and close autospawn, (srry forgot 2 mention b4 2 save and close client.jave)
not open up ur npchandler.java and search 4 any of ur npc's shouts (wer uve put the text ur npc's say outload)
and enter this under it:
ok now search 4:
u should get sumthin like this:
add under any of these:
ok save and close this
on2 the last part, open up item 2 and scroll 2 the bottom add this under the last 1:
ok and thats it! you have your mini-game set up!!
INSTRUCTIONS 2 GAME:
1. go 2 ::xpmini
2. go in 1 of the portals, (the monsters will say if its att, str or deff)
3. kill the monsters till u get a jar drop
4. go bak 2 ::xpmini
5. use ur jar on the machine
6. enjoy ur 1m att/str/deff xp
ENJOY!!!!!!!
This is coded 100% from me, The Myth if u see this leeched ne wer plz post a link to it here, or come tell me ingame on mi server.
server ip: Myth-Scape.no-ip.info
port.43594
ok have fun with mi mini-game guys lol
DIFICULTY: 2/10
NEEDED:A brain and some basic understanding of how 2 make objects, npcs ext.
MODIFIED: client.java, autospawn.cfg, npchandler.java and item2.java
ok 1st open up your client.java and search for:
Code:
public void NewObjects
you should get somthing like this
Code:
public void NewObjects() {
makeGlobalObject(3117, 9857, 2783, 0, 10);//anvil
makeGlobalObject(3379, 9759, 2343, 0, 10);//brick
makeGlobalObject(2708, 9473, 2343, 0, 10);//brick
makeGlobalObject(2709, 9473, 2343, 0, 10);//brick
makeGlobalObject(2710, 9473, 2343, 0, 10);//brick
makeGlobalObject(2711, 9473, 2343, 0, 10);//brick
makeGlobalObject(3379, 9759, 2343, 0, 10);//brick
makeGlobalObject(3116, 3452, 2783, 0, 10);//anvil
makeGlobalObject(3119, 9857, 2783, 0, 10);//anvil
makeGlobalObject(3298, 3199, 4877, 0, 10);//general stall
makeGlobalObject(3286, 3211, 2562, 0, 10);//gem stall
makeGlobalObject(3299, 3199, 4878, 0, 10);//scimitar stall
after the last 1 do space and enter this:
Code:
makeGlobalObject(2466, 4773, 4150, 0, 10);//XP Mini, portal
makeGlobalObject(2467, 4773, 4151, 0, 10);//XP Mini, portal
makeGlobalObject(2468, 4773, 4152, 0, 10);//XP Mini, portal
makeGlobalObject(2461, 4771, 11546, 0, 10);//ticet machine, XP Mini
dw if about straitning up the lines to the 1's in ur client, it doesnt matter.
ok next search 4:
Code:
// Portals
note: if u dont get any results consider changing the spaces (e.g. doing:
Code:
//Portals
Code:
portals
Code:
// Portals
case 2468: // Home from Ghost Mini
teleportToX = 2351;
teleportToY = 3172;
sendMessage("You teleport to Home! ;)");
break;
case 7319: // Portal At Front.
teleportToX = 3117;
teleportToY = 9842;
sendMessage("you teleport to the train area");
break;
case 4389: // Portal At Front.
teleportToX = 2540;
teleportToY = 3890;
sendMessage("You teleport to the shop's");
break;
case 2465: // trainportal
teleportToX = 2577;
teleportToY = 9747;
sendMessage("you teleport to the training area.");
break;
after the
Code:
// portals
Code:
case 4150: // XP Mini,Portal
teleportToX = 3306;
teleportToY = 9199;
sendMessage("Welcome To the Attack Zone! These will drop att tokens.");
break;
case 4151: // XP Mini,Portal
teleportToX = 3280;
teleportToY = 9199;
sendMessage("Welcome To the strength zone! these will drop str tokens.");
break;
case 4152: // XP Mini,Portal
teleportToX = 2865;
teleportToY = 9956;
sendMessage("Welcome to the Deffence zone! these will drop deff tokens!");
break;
note: after this u should probs search 4
Code:
case 4150
Code:
case 4151
Code:
case 4152
ok next search 4:
Code:
You need to be lvl 60 fishing to catch lobster.
u should see somthing like this:
Code:
} else if (lob == 12599) // varrock Founation X=3240,3435 item lobster pot slot 1
{
if (playerLevel[10] <= 59) {
sendMessage(
"You need to be lvl 60 fishing to catch lobster.");
} else {
lob();
}
} else if (carb == 12603) // varrock Founation X=3240,3435 //item big net slot 1
{
carb();
} else if (turtle == 12706) // Well X=2651,3370 //item lobby pot slot 1
{
if (playerLevel[10] <= 98) {
sendMessage(
"You need to be lvl 99 fishing to catch sea turtle.");
} else {
turtle();
}
} else if (manta == 12716) // Well X=2651,3370 //item harpoon slot 1
{
if (playerLevel[10] <= 119) {
sendMessage(
"You need to be lvl 120 fishing to catch manta rays.");
} else {
manta();
}
} else if (useItemID == 436
&& (atObjectID == 2781 || atObjectID == 11666
|| atObjectID == 9390)) {
tin();
} /* else if(useItemID == 453 && (atObjectID == 2781 || atObjectID == 11666))
{
steel(itemSlot);
}*/ else if (useItemID == 438
&& (atObjectID == 2781 || atObjectID == 11666
|| atObjectID == 9390)) {
Copper();
} else if (useItemID == 293
&& (atObjectX == 3028 && atObjectY == 3356)) {
if (absY == 3355) {
teleportToX = absX;
teleportToY = (absY + 2);
} else {
teleportToX = 3028;
teleportToY = 3355;
}
}
at the end of this text enter this:
Code:
else if(useItemID == 4678 && atObjectID == 11546) // reward
{
sendMessage("Nice 1, u get some att xp");
deleteItem(4678, GetItemSlot(4678), 1);
addSkillXP(1000000 * playerLevel[0], 0);
teleportToX = 2461;
teleportToY = 4772;
}
else if(useItemID == 4679 && atObjectID == 11546) // reward
{
sendMessage("Nice 1, u get some str xp");
deleteItem(4679, GetItemSlot(4679), 1);
addSkillXP(1000000 * playerLevel[2], 2);
teleportToX = 2461;
teleportToY = 4772;
}
else if(useItemID == 4680 && atObjectID == 11546) // reward
{
sendMessage("Nice 1, u get some deff xp");
deleteItem(4680, GetItemSlot(4680), 1);
addSkillXP(1000000 * playerLevel[1], 1);
teleportToX = 2461;
teleportToY = 4772;
}
ok final thing in client.java
Code:
("home")
under it add this:
Code:
} else if (command.equalsIgnoreCase("xpmini")) {
xpminiMenu();
setAnimation(733);
if (teleblock == true) {
sendMessage("A magical force stops you from teleporting."); // made by Musicmad441
} else {
teleportToX = 2464;
teleportToY = 4776;
heightLevel = 0;
sendMessage("Welcome to the Xp Mini!!!");
}
then search 4 any of ur menus like
Code:
castlewarshelpmenu
Code:
mainhelpmenu
my example is of my
Code:
fishinghelpmenu
Code:
public void FishingHelpMenu() {
sendQuest("@dre@Fishing Information Menu", 8144); // Title
clearQuestInterface();
sendQuest("@dre@Fishing Menu", 8145);
sendQuest("@dbl@First off type in ::fish@dbl@", 8148);
sendQuest(
"@dbl@Fish at the big fountain next to where ::fish teles you to@dbl@",
8149);
sendQuest(
"@dbl@The item your fishing with must be in the 1st slot of your inventory.@dbl@",
8150);
sendQuest("@dbl@You may only fish there for now.@dbl@", 8151);
sendQuest("@dbl@Harpoon Fishes Sharks.@dbl@", 8153);
sendQuest("@dbl@Lobster pot Fishes Lobsters.@dbl@", 8154);
sendQuest("@dbl@Big Fishing net fishes carp.@dbl@", 8155);
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
under it add this:
Code:
public void xpminiMenu() {
sendQuest("@gre@Xp Game", 8144); // Title
clearQuestInterface();
sendQuest("@Blu@---How It Works---", 8145);
sendQuest("", 8146);
sendQuest("@dbl@Ok Basicly with this mini-game you", 8147);
sendQuest("@dbl@earn xp by going in the portals,", 8148);
sendQuest("@dbl@Killing the monsters untill you get a", 8149);
sendQuest("@dbl@jar drop, then using jar on", 8150);
sendQuest("@dbl@the machine at entrance :)", 8151);
sendQuest("@red@----------------", 8152);
sendQuest("@whi@Ok Hope u enjoy this new mini!!!", 8153);
sendQuest("@whi@----------------", 8154);
sendQuest("@dbl@----------@dbl@", 8155);
sendQuest("@red@The Mini is coded 100% by me", 8156);
sendQuest("@red@ (The Myth)", 8157);
sendQuest("", 8158);
sendQuest("@Whi@------------", 8159);
sendQuest("@blu@Ok Like I Sed Have Fun!!!!", 8160);
sendQuest("@whi@----------@dbl@", 8161);
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
ok we're dont with client.java now
WOT WE'VE DONE SO FAR:
we have added the objects, like portals and machine that gives xp.
we have made the objects do things, like portal tele u and machine give xp.
we have added the command that gets u 2 the mini-game.
we have added the info, so that it will open wen u go 2 the mini-game.
ok next, go in2 autospawn.cfg and enter this:
Code:
spawn = 1958 3302 9195 0 0 0 0 0 1
spawn = 1958 3304 9194 0 0 0 0 0 1
spawn = 1958 3306 9193 0 0 0 0 0 1
spawn = 1958 3308 9194 0 0 0 0 0 1
spawn = 1958 3308 9196 0 0 0 0 0 1
spawn = 1958 3309 9197 0 0 0 0 0 1
spawn = 1958 3310 9193 0 0 0 0 0 1
spawn = 1958 3300 9197 0 0 0 0 0 1
spawn = 1962 3283 9195 0 0 0 0 0 1
spawn = 1962 3285 9197 0 0 0 0 0 1
spawn = 1962 3285 9194 0 0 0 0 0 1
spawn = 1962 3284 9192 0 0 0 0 0 1
spawn = 1962 3282 9194 0 0 0 0 0 1
spawn = 1962 3281 9193 0 0 0 0 0 1
spawn = 1962 3279 9193 0 0 0 0 0 1
spawn = 1962 3278 9195 0 0 0 0 0 1
spawn = 1962 3277 9198 0 0 0 0 0 1
spawn = 1962 3279 9196 0 0 0 0 0 1
spawn = 1962 3276 9194 0 0 0 0 0 1
spawn = 1941 2866 9953 0 0 0 0 0 1
spawn = 1941 2868 9952 0 0 0 0 0 1
spawn = 1941 2870 9948 0 0 0 0 0 1
spawn = 1941 2872 9956 0 0 0 0 0 1
spawn = 1941 2868 9959 0 0 0 0 0 1
spawn = 1941 2865 9962 0 0 0 0 0 1
spawn = 1941 2861 9960 0 0 0 0 0 1
spawn = 1941 2859 9955 0 0 0 0 0 1
spawn = 1941 2860 9952 0 0 0 0 0 1
spawn = 1941 2863 9953 0 0 0 0 0 1
spawn = 1961 2467 4774 0 0 0 0 0 1
spawn = 1935 2468 4774 0 0 0 0 0 1
spawn = 1959 2466 4774 0 0 0 0 0 1
ok save and close autospawn, (srry forgot 2 mention b4 2 save and close client.jave)
not open up ur npchandler.java and search 4 any of ur npc's shouts (wer uve put the text ur npc's say outload)
and enter this under it:
Code:
if (npcs[i].npcType == 1959) {
if (misc.random2(30) <= 2) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "ATTACK!!";
}
}
if (npcs[i].npcType == 1961) {
if (misc.random2(30) <= 2) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "STRENGTH!!";
}
}
if (npcs[i].npcType == 1935) {
if (misc.random2(30) <= 2) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "DEFFENCE!!";
}
}
ok now search 4:
Code:
ItemHandler.addItem(Item2.random
u should get sumthin like this:
Code:
ItemHandler.addItem(Item2.randomSilvchest(),
npcs[NPCID].absX, npcs[NPCID].absY, 1,
GetNpcKiller(NPCID), false);
}
if (npcs[NPCID].npcType == 1007) {
ItemHandler.addItem(6754, npcs[NPCID].absX,
npcs[NPCID].absY, 1, GetNpcKiller(NPCID),
false);
}
add under any of these:
Code:
if (npcs[NPCID].npcType == 1958) {
ItemHandler.addItem(Item2.randommummy(),
npcs[NPCID].absX, npcs[NPCID].absY, 1,
GetNpcKiller(NPCID), false);
}
if (npcs[NPCID].npcType == 1941) {
ItemHandler.addItem(Item2.randomicetroll(),
npcs[NPCID].absX, npcs[NPCID].absY, 1,
GetNpcKiller(NPCID), false);
}
if (npcs[NPCID].npcType == 1962) {
ItemHandler.addItem(Item2.randommummy2(),
npcs[NPCID].absX, npcs[NPCID].absY, 1,
GetNpcKiller(NPCID), false);
}
ok save and close this
on2 the last part, open up item 2 and scroll 2 the bottom add this under the last 1:
Code:
public static int mummy[] = {
4678, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995,};
public static int randommummy() {
return mummy[(int) (Math.random() * mummy.length)];
}
public static int mummy2[] = {
4679, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995,};
public static int randommummy2() {
return mummy2[(int) (Math.random() * mummy2.length)];
}
public static int icetroll[] = {
4680, 995, 995, 995, 995, 995, 995, 995, 995, 995, 995,};
public static int randomicetroll() {
return icetroll[(int) (Math.random() * icetroll.length)];
}
}
ok and thats it! you have your mini-game set up!!
INSTRUCTIONS 2 GAME:
1. go 2 ::xpmini
2. go in 1 of the portals, (the monsters will say if its att, str or deff)
3. kill the monsters till u get a jar drop
4. go bak 2 ::xpmini
5. use ur jar on the machine
6. enjoy ur 1m att/str/deff xp
ENJOY!!!!!!!
This is coded 100% from me, The Myth if u see this leeched ne wer plz post a link to it here, or come tell me ingame on mi server.
server ip: Myth-Scape.no-ip.info
port.43594
ok have fun with mi mini-game guys lol

