Purpose: Adding 3rd Age Mini-Quest
Difficulty: Can be between 2/10 to 5/10 however you take it
Assumed Knowledge: Copy & Paste. & Basic editing
Server Base: Dodian/Devolution
Classes Modified: Client.java, NPCDrops.cfg, AutoSpawn.cfg
Procedure
Step 1: We'll start of basic first add the following NPC's into your autospawn.cfg
I personally removed all other NPC's like the above only because it's better just for the minigame. If you like you can always change it but then you'll need to change drops. Which is shown in the next step.
Step 2: Now that you've updated your autospawn.cfg lets get those NPCDrops in! add these into your npcdrops.cfg file
and below the last ReplaceObject2 put the following in
Step 4: Now search in client.java for
now after that break add in the following
Step 5: Now search in client.java for
and add the following anywhere in there with the rest of your commands
Step 6: Now search in client.java for
and either above or below this add
Step 7: Compile & Run!
Credits: Myself =]
Difficulty: Can be between 2/10 to 5/10 however you take it
Assumed Knowledge: Copy & Paste. & Basic editing
Server Base: Dodian/Devolution
Classes Modified: Client.java, NPCDrops.cfg, AutoSpawn.cfg
Procedure
Step 1: We'll start of basic first add the following NPC's into your autospawn.cfg
- Code:
//**************3RD AGE MINIQUEST BEGINNING**************\\
spawn = 52 2605 4772 0 3262 3424 3262 3424 1 Baby Green Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 52 2604 4776 0 3262 3424 3262 3424 1 Baby Green Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 52 2598 4776 0 3262 3424 3262 3424 1 Baby Green Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 52 2596 4774 0 3262 3424 3262 3424 1 Baby Green Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 1589 2606 4774 0 3262 3424 3262 3424 1 Baby Red Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 1589 2602 4780 0 3262 3424 3262 3424 1 Baby Red Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 1589 2598 4772 0 3262 3424 3262 3424 1 Baby Red Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 3376 2600 4778 0 3262 3424 3262 3424 1 Baby Black Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 3376 2596 4774 0 3262 3424 3262 3424 1 Baby Black Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 3376 2597 4778 0 3262 3424 3262 3424 1 Baby Black Dragon - 3RD AGE MINIQUEST - STAGE 1
spawn = 55 2718 9814 0 2653 9834 2673 9817 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 55 2721 9816 0 2653 9834 2673 9817 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 55 2719 9825 0 3100 3929 3108 3937 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 55 2716 9804 0 3262 3424 3262 3424 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 941 2722 9821 0 3262 3424 3262 3424 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 941 2714 9818 0 3262 3424 3262 3424 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 941 2722 9822 0 3262 3424 3262 3424 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 941 2712 9808 0 3262 3424 3262 3424 1 Green Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 54 2724 9818 0 3262 3424 3262 3424 1 Black Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 54 2717 9809 0 3262 3424 3262 3424 1 Black Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 54 2715 9827 0 3262 3424 3262 3424 1 Black Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 53 2722 9815 0 3262 3424 3262 3424 1 Red Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 53 2725 9810 0 3262 3424 3262 3424 1 Red Dragon - 3RD AGE MINIQUEST - STAGE 2
spawn = 1590 2654 4498 0 3262 3424 3262 3424 1 Bronze Dragon - 3RD AGE MINIQUEST - STAGE 3
spawn = 1590 2647 4507 0 3262 3424 3262 3424 1 Bronze Dragon - 3RD AGE MINIQUEST - STAGE 3
spawn = 1591 2648 4497 0 3262 3424 3262 3424 1 Iron Dragon - 3RD AGE MINIQUEST - STAGE 3
spawn = 1591 2645 4501 0 3262 3424 3262 3424 1 Iron Dragon - 3RD AGE MINIQUEST - STAGE 3
spawn = 1592 2660 4495 0 3262 3424 3262 3424 1 Steel Dragon - 3RD AGE MINIQUEST - STAGE 3
spawn = 1592 2647 4501 0 3262 3424 3262 3424 1 Steel Dragon - 3RD AGE MINIQUEST - STAGE 3
spawn = 1615 2463 4781 0 3262 3424 3262 3424 1 Abyssal - 3RD AGE MINIQUEST - FINAL STAGE
//*****************3RD AGE MINIQUEST END*****************\\
I personally removed all other NPC's like the above only because it's better just for the minigame. If you like you can always change it but then you'll need to change drops. Which is shown in the next step.
Step 2: Now that you've updated your autospawn.cfg lets get those NPCDrops in! add these into your npcdrops.cfg file
- Code:
//**************3RD AGE MINIQUEST BEGINNING**************\\
npcdrop = 52 85 1 20 ///Baby Blue Dragon - 3RD AGE MINIQUEST - Shiny Key - STAGE 1
npcdrop = 1589 85 1 20 ///Baby Red Dragon - 3RD AGE MINIQUEST - Shiny Key - STAGE 1
npcdrop = 3376 85 1 20 ///Baby Black Dragon - 3RD AGE MINIQUEST - Shiny Key - STAGE 1
npcdrop = 55 423 1 15 ///Blue Dragon - 3RD AGE MINIQUEST - Key - STAGE 2
npcdrop = 941 423 1 15 ///Green Dragon - 3RD AGE MINIQUEST - Key - STAGE 2
npcdrop = 53 423 1 15 ///Red Dragon - 3RD AGE MINIQUEST - Key - STAGE 2
npcdrop = 54 423 1 15 ///Black Dragon - 3RD AGE MINIQUEST - Key - STAGE 2
npcdrop = 1590 293 1 10 ///Bronze Dragon - 3RD AGE MINIQUEST - A Key - STAGE 3
npcdrop = 1591 293 1 10 ///Iron Dragon - 3RD AGE MINIQUEST - A Key - STAGE 3
npcdrop = 1592 293 1 10 ///Steel Dragon - 3RD AGE MINIQUEST - A Key - STAGE 3
npcdrop = 1615 4272 1 05 ///Abyssal - 3RD AGE MINIQUEST - Bone Key - FINAL STAGE
//*****************3RD AGE MINIQUEST END*****************\\
and below the last ReplaceObject2 put the following in
- Code:
ReplaceObject2(2601, 4776, 4**** 0, 10); ///3RD AGE MINIQUEST - STAGE 1
ReplaceObject2(2716, 9814, 4121, 0, 10); ///3RD AGE MINIQUEST - STAGE 2
ReplaceObject2(2647, 4512, 4116, 0, 10); ///3RD AGE MINIQUEST - STAGE 3
ReplaceObject2(2461, 4783, 4130, 0, 10); ///3RD AGE MINIQUEST - FINAL STAGE
Step 4: Now search in client.java for
- Code:
case 192:
// Use an item on an object
junk = inStream.readSignedWordBigEndianA();
int UsedOnObjectID = inStream.readUnsignedWordBigEndian();
int UsedOnY = inStream.readSignedWordBigEndianA();
int ItemSlot = (inStream.readSignedWordBigEndianA() - 128);
int UsedOnX = inStream.readUnsignedWordBigEndianA();
int ItemID = inStream.readUnsignedWord();
if (!playerHasItem(ItemID))
break;
now after that break add in the following
- Code:
else if(ItemID == 423 && UsedOnObjectID == 4121) // Stage 2 Completed - 3RD AGE MINIQUEST
{
deleteItem(423,getItemSlot(423), 1);
teleportToX = 2647;
teleportToY = 4506;
sendMessage("Well done, you have completed Stage 2 of your mini-quest.");
}
else if(ItemID == 293 && UsedOnObjectID == 4116) // Stage 3 Completed - 3RD AGE MINIQUEST
{
deleteItem(293,getItemSlot(293), 1);
teleportToX = 2463;
teleportToY = 4777;
sendMessage("Well done, you have completed Stage 3 of your mini-quest.");
}
else if(ItemID == 4272 && UsedOnObjectID == 4130) // Final Stage Completed - 3RD AGE MINIQUEST
{
sendMessage("Well done, you have now completed your mini-quest here's your reward!");
addSkillXP((186000*playerLevel[6]), 6);
deleteItem(4272,getItemSlot(4272), 1);
addItem(995, 10000000);
addItem(3204, 1);
addItem(386, 1000);
addItem(3840, 1);
addItem(6809, 1);
}
///3RD AGE MINIQUEST START///
Step 5: Now search in client.java for
- Code:
public void customCommand(String command) {
and add the following anywhere in there with the rest of your commands
- Code:
if (command.startsWith("3rdage")) {
teleportToX = 2602;
teleportToY = 4773;
thirdage();
sendMessage("If you require to view the 3rd Age Miniquest Help please use ::help3rdage");
}
if (command.startsWith("help3rdage")) {
thirdage();
}
Step 6: Now search in client.java for
- Code:
public void ServerHelp() {
and either above or below this add
- Code:
public void thirdage() {
sendFrame126("@dre@3rd Age - Mini Quest Help", 8144);
clearQuestInterface();
sendFrame126("", 8145);
sendFrame126("@dbl@", 8146);
sendFrame126("@dbl@3rd Age - Mini Quest", 8147);
sendFrame126("@dre@@dbl@@blu@There are FOUR Stages!", 8148);
sendFrame126("@dre@@red@Stage #1",8149);
sendFrame126("@dre@",8150);
sendFrame126("@dre@You must defeat any of the Baby Dragons to get a Key",8151);
sendFrame126("@dre@Use the Key with Bronze Chest to go to Stage #2",8152);
sendFrame126("", 8153);
sendFrame126("@dre@@red@Stage #2",8154);
sendFrame126("@dre@",8155);
sendFrame126("@dre@You must defeat any of the Dragons to get a Key",8156);
sendFrame126("@dre@Use the Key with Black Chest to go to Stage #3",8157);
sendFrame126("", 8158);
sendFrame126("@dre@@red@Stage #3",8159);
sendFrame126("@dre@",8160);
sendFrame126("@dre@You must defeat any of the Bronze,Iron or Steel Dragons to get a Key",8161);
sendFrame126("@dre@Use the Key with Steel Chest to go to the Final Stage",8162);
sendFrame126("", 8163);
sendFrame126("@dre@@red@Final Stage",8164);
sendFrame126("@dre@",8165);
sendFrame126("@dre@You must defeat any of the Abyssal to get a Bone Key",8166);
sendFrame126("@dre@Use the Key with the chest and collect your reward!",8167);
sendFrame126("", 8168);
sendFrame126("", 8169);
sendFrame126("", 8170);
sendFrame126("", 8170);
sendFrame126("", 8170);
sendQuestSomething(8143);
showInterface(8134);
}
Step 7: Compile & Run!
Credits: Myself =]
Sun Nov 29, 2009 6:56 pm by marden
» DUN DUN DUN!
Sun Nov 22, 2009 10:33 am by awesome pker
» tradescape stay online? or go away
Tue Aug 25, 2009 1:50 pm by FiZiX the second
» fix read!!!
Mon Aug 10, 2009 7:25 am by FiZiX the second
» LIGHT FALCONS SERVER HERE
Fri Jul 10, 2009 7:05 am by light falcon
» New CO Owner
Fri Jun 26, 2009 9:11 am by awesome pker
» I'm getting bored...
Fri Jun 26, 2009 7:26 am by Fizix
» what to post here
Mon Jun 22, 2009 12:26 pm by Fizix
» 2 servers 1 port LOOK!!!
Mon Jun 22, 2009 12:13 pm by Fizix