xxavixx
Apprentice
Note: i am xxislx at runeserver and runelocus. I can Proove
Description: A minigame in wich you have to kill mr.hyde in 4 combat lvls
(this is my first minigame)
Difficulty: 1
Assumed Knowledge: Copy and Paste.
Tested Server: Will work on all?, i used Czar
Files/Classes Modified: Client.java,Autospawn,NPCHandler
add this in auto spawn:
find case 155 in client.java and add this:
in npc handler look for:
public void MonsterDropItem
and add:
now look for zeke and add:
now go to client.java
find case 155 in client.java and add this:
now look for: (go to use item on object)
and add:
Note: change DR.jekyll coords.
Note: if dr.jekyll doesnt tele you, just add a portal.
Note: remember to change mr hyde hp at npc.cfg.





You can also make this a random:
go to client.java and under
add this
note: skillers will be free to leave
now search for
under it add:
thats 50% of getting this random every 10min
credits 100% to me
Description: A minigame in wich you have to kill mr.hyde in 4 combat lvls
(this is my first minigame)
Difficulty: 1
Assumed Knowledge: Copy and Paste.
Tested Server: Will work on all?, i used Czar
Files/Classes Modified: Client.java,Autospawn,NPCHandler
add this in auto spawn:
Code:
spawn = 2543 2439 4384 0 0 0 0 0 1 mrhyde
spawn = 2544 2375 4389 0 0 0 0 0 1 mrhyde
spawn = 2545 2949 3820 0 0 0 0 0 1 mrhyde
spawn = 2546 3605 3564 0 0 0 0 0 1 mrhyde
spawn = 2540 2907 9691 0 0 0 0 0 1 jekyl
find case 155 in client.java and add this:
Code:
if (NPCID == 2540) {
teleportToX = 2439;
teleportToY = 4386;
sendMessage("AARRGGG im MR.Hyde kill me");
}
in npc handler look for:
public void MonsterDropItem
and add:
Code:
if (npcs[NPCID].npcType == 2543) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.teleportToX = 2375;
ppl.teleportToY = 4391;
}
if (npcs[NPCID].npcType == 2544) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.teleportToX = 2951;
ppl.teleportToY = 3821;
}
if (npcs[NPCID].npcType == 2545) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.teleportToX = 3603;
ppl.teleportToY = 3564;
}
if (npcs[NPCID].npcType == 2546) { //mrhyde
ItemHandler.addItem(788, npcs[NPCID].absX,
npcs[NPCID].absY, 1, GetNpcKiller(NPCID),
false);
}
now look for zeke and add:
Code:
if (npcs[i].npcType == 2540) {
if (misc.random2(30) <= 2) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "Talk to me for Mr.Hyde mini!";
}
}
now go to client.java
find case 155 in client.java and add this:
Code:
if (NPCID == 2540) {
teleportToX = 2439;
teleportToY = 4386;
sendMessage("AARRGGG im MR.Hyde kill me");
}
now look for: (go to use item on object)
Code:
} else if (useItemID ==
and add:
Code:
} else if (useItemID == 788 && atObjectID == 4126) // reward
{
sendMessage(
"Well done, you have just killed mr hyde , here's your reward ");
addSkillXP((50000 * playerLevel[6]), 6);
deleteItem(788, getItemSlot(788), 1);
teleblock = false;
LogoutDelay = 0;
addItem(995, 10000000);
customCommand("home");
Note: change DR.jekyll coords.
Note: if dr.jekyll doesnt tele you, just add a portal.
Note: remember to change mr hyde hp at npc.cfg.





You can also make this a random:
go to client.java and under
Code:
public class client extends Player implements Runnable {
add this
Code:
public int randomEvent = 0;
public int randomTimer = 1200;
public void randomEvent1() {
if(randomTimer == 0 && randomEvent == 0) {
randomEvent = misc.random(1);
randomTimer = 1200;
}
if(randomEvent == 1) {
stillgfx(189, absY, absX);
sendMessage("Defeat MR.Hyde.");
string4UpdateRequired = true;
teleportToX = 2439;
teleportToY = 4386;
teleblock = true;
LogoutDelay = 1000000;
randomEvent = 0;
updateRequired = true;
appearanceUpdateRequired = true;
if(combat <= 10) {
teleblock = false;
LogoutDelay = 0;
}
}
}
now search for
Code:
public void process ()
under it add:
Code:
if(randomTimer > 0)
randomTimer -= 1;
randomEvent1();
thats 50% of getting this random every 10min
credits 100% to me


