Purpose: To Add construction.
Assumed knowledge: Voids classes caes and basic editing techniques.
Difficulty = What you make it to be
Source: pimpscape
EDITED THINGS: CLIENT.JAVA
STEP ONE:
First we have to add the construction skill so.... find.
and under that case add...
Code:
case 24: //construction By oblak
sendFrame164(6263);
stillgfx(444, absX, absY);
sendFrame126("You just advanced a con level (BY OBLAK)", 6264);
sendFrame126("Your construction level is now "+playerLevel[24]+" .", 6265);
sendMessage("You advanved a Contruction Level :)!");
NpcDialogueSend = true;
break;
Step Two:
search...
Code:
playerLevel[21] = summonLevel;
playerXP[21] = summonXP;
Under that add...
Code:
int Conlvl = playerLevel[24];
int Conxp = playerXP[24];
Step Three:
search...
Code:
int Summonlvl = p2.summonLevel;
under it add...
Code:
int Conlvl = p2.playerLevel[24];
Step Four:
search...
Code:
if (Runecrafting < getLevelForXP(playerXP[20])) {
playerLevel[20] = getLevelForXP(playerXP[20]);
levelup(20);
updateRequired = true;
appearanceUpdateRequired = true;
}
under it add...
Code:
if (Con < getLevelForXP(playerXP[24])) {
playerLevel[24] = getLevelForXP(playerXP[24]);
levelup(24);
stillgfx(199, absX, absY);
updateRequired = true;
appearanceUpdateRequired = true;
}
Step 4.5:
add This :
Code:
int Con = getLevelForXP(playerXP[24]);
Under this :
Code:
int Runecrafting = getLevelForXP(playerXP[20]);
Step Five:
search for...
Code:
public void quest()
Replace everything in that void with....
Code:
if(questid == 1)
{
if(playerLevel[24] >= 1)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Dummy!");
addSkillXP((5*playerLevel[24]), 24);
makeGlobalObject(absX,absY-1,823,1,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
else if(questid == 2)
{
if(playerLevel[24] >= 1)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Bank!");
addSkillXP((5*playerLevel[24]), 24);
makeGlobalObject(absX,absY-1,2213,1,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 3)
{
if(playerLevel[24] >= 1)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A North Wall!");
addSkillXP((5*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2854,1,0);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 5)
{
if(playerLevel[24] >= 1)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Southern Wall!");
addSkillXP((5*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2854,3,0);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 52)
{
if(playerLevel[24] >= 1)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Western Wall!");
addSkillXP((5*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2854,0,0);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 8)
{
if(playerLevel[24] >= 1)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Eastern Wall!");
addSkillXP((5*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2854,2,0);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 9)
{
if(playerLevel[24] >= 5)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A BookCase!");
addSkillXP((10*playerLevel[24]), 24);
makeGlobalObject(absX,absY,10273,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 15)
{
if(playerLevel[24] >= 5)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Magic Lever!");
addSkillXP((10*playerLevel[24]), 24);
makeGlobalObject(absX,absY,5959,3,4);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 10)
{
if(playerLevel[24] >= 5)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Altar!");
addSkillXP((10*playerLevel[24]), 24);
makeGlobalObject(absX,absY,409,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 11)
{
if(playerLevel[24] >= 5)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Web-Door!");
addSkillXP((10*playerLevel[24]), 24);
makeGlobalObject(absX,absY,734,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 6)
{
if(playerLevel[24] >= 10)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A NW-SE Diag Wall!");
addSkillXP((25*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2854,1,9);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 12)
{
if(playerLevel[24] >= 10)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A NE-SW Diag Wall!");
addSkillXP((25*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2854,0,9);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 4)
{
if(playerLevel[24] >= 10)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Saradomin Statue!");
addSkillXP((25*playerLevel[24]), 24);
makeGlobalObject(absX,absY,585,0,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 13)
{
if(playerLevel[24] >= 15)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Small Farm Fencing!");
addSkillXP((30*playerLevel[24]), 24);
COOP();
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 14)
{
if(playerLevel[24] >= 20)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Throne! SIT YOU KING!");
addSkillXP((35*playerLevel[24]), 24);
makeGlobalObject(absX,absY,1105,0,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 16)
{
if(playerLevel[24] >= 20)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Thorny rose bush! OUCH");
addSkillXP((35*playerLevel[24]), 24);
makeGlobalObject(absX,absY,1126,0,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 17)
{
if(playerLevel[24] >= 20)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Suit Of Armor!!!!!");
addSkillXP((35*playerLevel[24]), 24);
makeGlobalObject(absX,absY,818,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 21)
{
if(playerLevel[24] >= 25)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Phat Rock!!!!!");
addSkillXP((50*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2107,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 22)
{
if(playerLevel[24] >= 25)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Jewelry Table!!!!!");
addSkillXP((50*playerLevel[24]), 24);
makeGlobalObject(absX,absY,2562,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 23)
{
if(playerLevel[24] >= 25)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Maple Tree!!!!!");
addSkillXP((50*playerLevel[24]), 24);
makeGlobalObject(absX,absY,4674,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 24)
{
if(playerLevel[24] >= 30)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A FLAMING FIRE ALTAR!!!!!");
addSkillXP((50*playerLevel[24]), 24);
makeGlobalObject(absX,absY,4090,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 25)
{
if(playerLevel[24] >= 35)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Upward Staircase!!!!!");
addSkillXP((50*playerLevel[24]), 24);
makeGlobalObject(absX,absY,1738,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
if(questid == 26)
{
if(playerLevel[24] >= 35)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Downward Staircase!!!!!");
addSkillXP((50*playerLevel[24]), 24);
makeGlobalObject(absX,absY,1740,2,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
Step Six:
Search...
Code:
public void loadquestinterface()
Replace the entire void with....
Code:
public void loadquestinterface()
{
sendQuest("CONSTRUCTION", 640);
sendQuest("LVL 25+ Con skills", 682); // 2848,3109
if(playerLevel[24] >= 1)
{
sendQuest("@[email protected] Dummy (Lvl 1)", 7332);
}
if(playerLevel[24] < 1)
{
sendQuest("@[email protected] Dummy (Lvl 1)", 7332);
}
if(playerLevel[24] >= 1)
{
sendQuest("@[email protected] Bank (Lvl 1)", 7333);
}
if(playerLevel[24] < 1)
{
sendQuest("@[email protected] Bank (Lvl 1)", 7333);
}
if(playerLevel[24] >= 1)
{
sendQuest("@[email protected] NorthWall (Lvl 1)", 7334);
}
if(playerLevel[24] < 1)
{
sendQuest("@[email protected] NorthWall (Lvl 1)", 7334);
}
if(playerLevel[24] >= 1)
{
sendQuest("@[email protected] SouthWall (Lvl 1)", 7336);
}
if(playerLevel[24] < 1)
{
sendQuest("@[email protected] SouthWall (Lvl 1)", 7336);
}
if(playerLevel[24] >= 1)
{
sendQuest("@[email protected] WestWall (Lvl 1)", 7383);
}
if(playerLevel[24] < 1)
{
sendQuest("@[email protected] WestWall (Lvl 1)", 7383);
}
if(playerLevel[24] >= 1)
{
sendQuest("@[email protected] EastWall (Lvl 1)", 7339);
}
if(playerLevel[24] < 1)
{
sendQuest("@[email protected] EastWall (Lvl 1)", 7339);
}
sendQuest("@[email protected] - -", 7338);
if(playerLevel[24] >= 5)
{
sendQuest("@[email protected] BookCase (Lvl 5)", 7340);
}
if(playerLevel[24] < 5)
{
sendQuest("@[email protected] BookCase (Lvl 5)", 7340);
}
if(playerLevel[24] >= 5)
{
sendQuest("@[email protected] Magic Lever (Lvl 5)", 7346);
}
if(playerLevel[24] < 5)
{
sendQuest("@[email protected] Magic Lever (Lvl 5)", 7346);
}
if(playerLevel[24] >= 5)
{
sendQuest("@[email protected] Altar (Lvl 5)", 7341);
}
if(playerLevel[24] < 5)
{
sendQuest("@[email protected] Altar (Lvl 5)", 7341);
}
if(playerLevel[24] >= 5)
{
sendQuest("@[email protected] Web-Door (Lvl 5)", 7342);
}
if(playerLevel[24] < 5)
{
sendQuest("@[email protected] Web-Door (Lvl 5)", 7342);
}
if(playerLevel[24] >= 10)
{
sendQuest("@[email protected] NW-SE Diag Wall (Lvl 10)", 7337);
}
if(playerLevel[24] < 10)
{
sendQuest("@[email protected] NW-SE Diag Wall (Lvl 10)", 7337);
}
if(playerLevel[24] >= 10)
{
sendQuest("@[email protected] SW-NE Diag Wall (Lvl 10)", 7343);
}
if(playerLevel[24] < 10)
{
sendQuest("@[email protected] SW-NE Diag Wall (Lvl 10)", 7343);
}
if(playerLevel[24] >= 10)
{
sendQuest("@[email protected] Sara Statue (Lvl 10)", 7335);
}
if(playerLevel[24] < 10)
{
sendQuest("@[email protected] Sara Statue (Lvl 10)", 7335);
}
if(playerLevel[24] >= 15)
{
sendQuest("@[email protected] Small Farm (Lvl 15)", 7344);
}
if(playerLevel[24] < 15)
{
sendQuest("@[email protected] Small Farm (Lvl 15)", 7344);
}
if(playerLevel[24] >= 20)
{
sendQuest("@[email protected] Throne (Lvl 20)", 7345);
}
if(playerLevel[24] < 20)
{
sendQuest("@[email protected] Throne (Lvl 20)", 7345);
}
if(playerLevel[24] >= 20)
{
sendQuest("@[email protected] Rose Bush (Lvl 20)", 7347);
}
if(playerLevel[24] < 20)
{
sendQuest("@[email protected] Rose Bush (Lvl 20)", 7347);
}
if(playerLevel[24] >= 20)
{
sendQuest("@[email protected] Armor Suit (Lvl 20)", 7348);
}
if(playerLevel[24] < 20)
{
sendQuest("@[email protected] Armor Suit (Lvl 20)", 7348);
}
sendQuest("Empty", 12772);
sendQuest("Empty", 673);
if(playerLevel[24] >= 25)
{
sendQuest("@[email protected] Phat Rock (Lvl 25)", 7352);
}
if(playerLevel[24] < 25)
{
sendQuest("@[email protected] Phat Rock (Lvl 25)", 7352);
}
sendQuest("Empty", 17510);
if(playerLevel[24] >= 25)
{
sendQuest("@[email protected] Jewelry Table (Lvl 25)", 7353);
}
if(playerLevel[24] < 25)
{
sendQuest("@[email protected] Jewelry Table (Lvl 25)", 7353);
}
sendQuest("Empty", 12129);
sendQuest("Empty", 8438);
sendQuest("Empty", 12852);
sendQuest("Empty", 15841);
if(playerLevel[24] >= 25)
{
sendQuest("@[email protected] Maple Tree (Lvl 25)", 7354);
}
if(playerLevel[24] < 25)
{
sendQuest("@[email protected] Maple Tree (Lvl 25)", 7354);
}
if(playerLevel[24] >= 30)
{
sendQuest("@[email protected] FIRE ALTAR (Lvl 30)", 7355);
}
if(playerLevel[24] < 30)
{
sendQuest("@[email protected] FIRE ALTAR (Lvl 30)", 7355);
}
if(playerLevel[24] >= 35)
{
sendQuest("@[email protected] Upward Stair (Lvl 35)", 7356);
}
if(playerLevel[24] < 35)
{
sendQuest("@[email protected] Upward Stair (Lvl 35)", 7356);
}
sendQuest("Empty", 8679);
sendQuest("Empty", 7459);
sendQuest("Empty", 16149);
sendQuest("Empty", 6987);
if(playerLevel[24] >= 35)
{
sendQuest("@[email protected] Downward Stair (Lvl 35)", 7357);
}
if(playerLevel[24] < 35)
{
sendQuest("@[email protected] Downward Stair (Lvl 35)", 7357);
}
}
Step Seven:
Search...
Delete all the cases that look remotely like this...
Code:
{
questid = 1;
quest();
}
break;
Then Add These Cases Where the old ones were deleted....
Code:
case 28164: // Make Dummy (Level 1)
{
questid = 1;
quest();
}
break;
case 28165: // Make bank (Level 1)
{
questid = 2;
quest();
}
break;
case 28166: // Make North Wall
{
questid = 3;
quest();
}
break;
case 28168: // Make South Wall
{
questid = 5;
quest();
}
break;
case 28215: // Make west Wall
{
questid = 52;
quest();
}
break;
case 28171: // Make east Wall
{
questid = 8;
quest();
}
break;
case 28172: // bookcase
{
questid = 9;
quest();
}
break;
case 28178: // magic lever
{
questid = 15;
quest();
}
break;
case 28173: // Altar
{
questid = 10;
quest();
}
break;
case 28174: // Door
{
questid = 11;
quest();
}
break;
case 28169: // Make NW SE Wall
{
questid = 6;
quest();
}
break;
case 28175: // Make SW NE Wall
{
questid = 12;
quest();
}
break;
case 28167: // Make Sara statue
{
questid = 4;
quest();
}
break;
case 28176: // Make Small Farm
{
questid = 13;
quest();
}
break;
case 28177: // Make Throne
{
questid = 14;
quest();
}
break;
case 28179: // Make Rose Bush
{
questid = 16;
quest();
}
break;
case 28180: // Make suit of armor
{
questid = 17;
quest();
}
break;
case 28184: // Make phat rock (Level 25)
{
questid = 21;
quest();
}
break;
case 28185: // Make J-Table (Level 25)
{
questid = 22;
quest();
}
break;
case 28186: // Make maple (Level 25)
{
questid = 23;
quest();
}
break;
case 28187: // Make FIRE ALTAR (Level 30)
{
questid = 24;
quest();
}
break;
case 28188: // Make Upward Stair (Level 35)
{
questid = 25;
quest();
}
break;
case 28189: // Make Downward Stair (Level 35)
{
questid = 26;
quest();
}
break;
and add this to your commands...
Code:
if (command.startsWith("construction")) {
teleportToX = 3253;
teleportToY = 2879;
updateRequired = true;
appearanceUpdateRequired = true;
}
Yeah ur done.
Credits: 100% me
I can't believe I found this thing
...