Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package server.model.players.skills;
- import server.model.players.Client;
- public class Smelting {
- public Smelting(Client Client) {
- this.c = Client;
- }
- public Client c;
- /**
- * Variables
- */
- public static boolean
- hasIronOre,
- hasMithOre,
- hasAddyOre,
- hasRuneOre,
- hasGoldOre;
- public static void checkOres(Client c) {
- if (c.getItems().playerHasItem(440, 1)) {
- hasIronOre = true;
- } else if (c.getItems().playerHasItem(447, 1)) {
- hasMithOre = true;
- } else if (c.getItems().playerHasItem(449, 1)) {
- hasAddyOre = true;
- } else if (c.getItems().playerHasItem(451, 1)) {
- hasRuneOre = true;
- } else if (c.getItems().playerHasItem(444, 1)) {
- hasGoldOre = true;
- } else {
- hasIronOre = false;
- hasMithOre = false;
- hasAddyOre = false;
- hasRuneOre = false;
- hasGoldOre = false;
- }
- }
- public static void showInterface1(Client c) {
- String option1;
- String option2;
- String option3;
- String option4;
- String option5;
- if (hasIronOre) {
- option1 = "Iron Ore (x)";
- } else {
- option1 = "Iron Ore ( )";
- }
- if (hasMithOre) {
- option2 = "Mithril Ore (x)";
- } else {
- option2 = "Mithril Ore ( )";
- }
- if (hasAddyOre) {
- option3 = "Adamant Ore (x)";
- } else {
- option3 = "Adamant Ore ( )";
- }
- if (hasRuneOre) {
- option4 = "Runite Ore (x)";
- } else {
- option4 = "Runite Ore ( )";
- }
- if (hasGoldOre) {
- option5 = "Gold Ore (x)";
- } else {
- option5 = "Gold Ore ( )";
- }
- c.getDH().sendOption5(option1, option2, option3, option4, option5);
- c.dialogueAction = 1234;
- //showInterface2();
- }
- }
Add Comment
Please, Sign In to add comment