runecrafting on dodian my way
DONT LEECH THIS LIKE A GUY ON MOPAR JUST DID AND HE TOOK FULL CREDIT FOR ADDING THE SKILLS!
Purpose: add runecrafting to dodian source
Difficulty: 1/10 its easy
Assumed Knowledge: copy and paste knowledge and knowing how to search
Server base: dodian
Classes Modified: client.java
ok go into client.java and search for this
Code:
if (objectID == 6836 && System.
you should c something like this
Code:
if (objectID == 6836 && System.currentTimeMillis()-lastAction >= (2000+misc.random(200))) {
if (!((objectX == 2604 || objectX == 2606 || objectX == 2608) && objectY == 3104)) {
resetPos();
break;
}
now right above it press enter
and add this
Code:
//runecrafting
if (objectID == 7139) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(556, 15);
addSkillXP(250, 20);
sendMessage("You make air runes");
}
else {
sendMessage("You need rune ess to make air runes");
break;
}
}
if (objectID == 7140 && playerLevel[20] >= 5) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(558, 15);
addSkillXP(500, 20);
sendMessage("You make mind runes");
}
else if(playerLevel[20] < 5){
sendMessage("You need level 5 rc to make mind runes");
sendMessage("You need rune ess to make mind runes");
break;
}
}
if (objectID == 7131 && playerLevel[20] >= 10) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(559, 15);
addSkillXP(500, 20);
sendMessage("You make body runes");
}
else if(playerLevel[20] < 10){
sendMessage("You need level 10 rc to make body runes");
sendMessage("You need rune ess to make body runes");
break;
}
}
if (objectID == 7130 && playerLevel[20] >= 13) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(557, 15);
addSkillXP(500, 20);
sendMessage("You make earth runes");
}
else if(playerLevel[20] < 13){
sendMessage("You need level 13 rc to make earth runes");
sendMessage("You need rune ess to make earth runes");
break;
}
}
if (objectID == 7129 && playerLevel[20] >= 35) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(554, 15);
addSkillXP(500, 20);
sendMessage("You make fire runes");
}
else if(playerLevel[20] < 35){
sendMessage("You need level 35 rc to make fire runes");
sendMessage("You need rune ess to make fire runes");
break;
}
}
if (objectID == 7141 && playerLevel[20] >= 85) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(565, 15);
addSkillXP(500, 20);
sendMessage("You make blood runes");
}
else if(playerLevel[20] < 85){
sendMessage("You need level 85 rc to make blood runes");
sendMessage("You need rune ess to make blood runes");
break;
}
}
if (objectID == 7132 && playerLevel[20] >= 40) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(564, 15);
addSkillXP(125, 20);
sendMessage("You make cosmic runes");
}
else if(playerLevel[20] < 40){
sendMessage("You need level 40 rc to make cosmic runes");
sendMessage("You need rune ess to make cosmic runes");
break;
}
}
if (objectID == 7133 && playerLevel[20] >= 65) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(561, 15);
addSkillXP(125, 20);
sendMessage("You make nature runes");
}
else if(playerLevel[20] < 65){
sendMessage("You need level 65 rc to make nature runes");
sendMessage("You need rune ess to make nature runes");
break;
}
}
if (objectID == 7134 && playerLevel[20] >= 55) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(562, 15);
addSkillXP(300, 20);
sendMessage("You make chaos runes");
}
else if(playerLevel[20] < 55){
sendMessage("You need level 55 rc to make chaos runes");
sendMessage("You need rune ess to make chaos runes");
break;
}
}
if (objectID == 7135 && playerLevel[20] >= 90) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(563, 15);
addSkillXP(750, 20);
sendMessage("You make law runes");
}
else if(playerLevel[20] < 90){
sendMessage("You need level 90 rc to make law runes");
sendMessage("You need rune ess to make law runes");
break;
}
}
if (objectID == 7136 && playerLevel[20] >= 75) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(560, 15);
addSkillXP(1250, 20);
sendMessage("You make death runes");
}
else if(playerLevel[20] < 75){
sendMessage("You need level 75 rc to make death runes");
sendMessage("You need rune ess to make death runes");
break;
}
}
if (objectID == 7137 && playerLevel[20] >= 7) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(555, 15);
addSkillXP(250, 20);
sendMessage("You make water runes");
}
else if(playerLevel[20] < 7){
sendMessage("You need level 7 rc to make water runes");
sendMessage("You need rune ess to make water runes");
break;
}
}
if (objectID == 7138 && playerLevel[20] >= 95) {
if (playerHasItem(1436)) {
pEmote = 791;
deleteItem(1436, getItemSlot(1436), 1);
addItem(566, 15);
addSkillXP(5000, 20);
sendMessage("You make soul runes");
}
else if(playerLevel[20] < 95){
sendMessage("You need level 95 rc to make soul runes");
sendMessage("You need rune ess to make soul runes");
break;
}
}
//end of runecrafting also made by Im So Hood
compile
and save report any errors here
dont forget to add the objects!!
and as requested here's the command to get to it
Code:
if (command.startsWith("rcraft"))
{
teleportToX = 3039;
teleportToY = 4834;
sendMessage("welcome to the runecrafting");
sendMessage("type ::rchelp if you need it");
}
k and if u want a help screen to pop up and tell you
the requirements add find this
Code:
if (command.equalsIgnoreCase("help")) {
and replace the whole command with this
Code:
if (command.equalsIgnoreCase("rchelp")) {
Teleport1();
then find this
and you should c somthing like this
Code:
public void ServerHelp() {
sendFrame126("@[email protected] (Beta) - Help Menu", 8144);
clearQuestInterface();
sendFrame126("", 8145);
sendFrame126("@[email protected] to @[email protected] (Beta)", 8146);
sendFrame126("@[email protected] (Beta) - No spawning", 8147);
sendFrame126("@[email protected]: @[email protected]://[email protected]@", 8148);
sendFrame126("@[email protected] items: @[email protected] good gear/cash are dropped by npcs.", 8149);
sendFrame126("@[email protected] Monsters: @[email protected] by bank and Soldiers by bank.", 8150);
sendFrame126("@[email protected] Monsters: @[email protected], Moss giants, west of rats.", 8151);
sendFrame126("@[email protected] Monsters: @[email protected] (far west), Dad (70 cb+ Boss).", 8152);
sendFrame126("@[email protected] (red key, orange key, blue key,): @[email protected] black dragon (Boss).", 8153);
sendFrame126("@[email protected] can also kill blue dragon if u can", 8156);
sendFrame126("", 8155);
sendFrame126("@[email protected]/Crackers: @[email protected], you can buy off of players.", 8157);
sendFrame126("@[email protected] rares: @[email protected] hats, discontinued.", 8158);
sendFrame126("", 8162);
sendFrame126("", 8163);
sendFrame126("", 8164);
sendFrame126("", 8165);
sendFrame126("", 8166);
sendFrame126("", 8167);
sendFrame126("", 8168);
sendFrame126("", 8169);
sendFrame126("", 8170);
sendFrame126("", 8170);
sendFrame126("", 8170);
sendQuestSomething(8143);
showInterface(8134);
}
change that to this
Code:
public void Teleport1(){
sendQuest("@[email protected] [email protected]@", 8144); //Title
clearQuestInterface();
sendQuest("@[email protected] rc you need rune ess go buy [email protected]@", 8145);
sendQuest("@[email protected] on air [email protected]@", 8146);
sendQuest("@[email protected]'s you need [email protected]@", 8147);
sendQuest("@[email protected]'s you need [email protected]@", 8148);
sendQuest("@[email protected]'s you need [email protected]@", 8149);
sendQuest("@[email protected]'s you need [email protected]@", 8150);
sendQuest("@[email protected]'s you need [email protected]@", 8151);
sendQuest("@[email protected]'s you need [email protected]@", 8152);
sendQuest("@[email protected]'s you need [email protected]@", 8153);
sendQuest("@[email protected]'s you need [email protected]@", 8154);
sendQuest("@[email protected]'s you need [email protected]@", 8155);
sendQuest("@[email protected]'s you need [email protected]@", 8156);
sendQuest("@[email protected]'s you need [email protected]@", 8157);
sendQuest("@[email protected]'s you need [email protected]@", 8158);
sendQuest("", 8159);
sendQuest("@[email protected] [email protected]@@[email protected] So [email protected]@", 8160);
sendQuest("", 8161);
sendQuestSomething(8143);
showInterface(8134);
}
and there you go