Jump to content

Search the Community

Showing results for tags 'large xp'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. Well, it literally took me 5 minutes to type this all up and I thought it could be semi-useful for some for whatever reason (If they only want to add 1 lamp instead of different statements for all one skill-oriented lamps). Here you go :P [code]package com.rs.game.player.dialogues; import com.rs.game.player.Skills; public class LargeLamp extends Dialogue { int XP = 1550; int LAMP = 23715; @Override public void start() { sendOptionsDialogue("What skill would you like to gain experience in?", "Attack", "Strength", "Defence", "Ranged", "More..."); } @Override public void run(int interfaceId, int componentId) { switch(stage) { case -1: if(componentId == OPTION_1) { player.getSkills().addXp(Skills.ATTACK, XP); destroyLamp(); } else if(componentId == OPTION_2) { player.getSkills().addXp(Skills.STRENGTH, XP); destroyLamp(); } else if(componentId == OPTION_3) { player.getSkills().addXp(Skills.DEFENCE, XP); destroyLamp(); } else if(componentId == OPTION_4) { player.getSkills().addXp(Skills.RANGE, XP); destroyLamp(); } else { sendOptionsDialogue("What skill would you like to gain experience in?", "Prayer", "Magic", "Constitution", "Summoning", "More..."); stage = 1; } break; case 1: if(componentId == OPTION_1) { player.getSkills().addXp(Skills.PRAYER, XP); destroyLamp(); } else if(componentId == OPTION_2) { player.getSkills().addXp(Skills.MAGIC, XP); destroyLamp(); } else if(componentId == OPTION_3) { player.getSkills().addXp(Skills.HITPOINTS, XP); destroyLamp(); } else if(componentId == OPTION_4) { player.getSkills().addXp(Skills.SUMMONING, XP); destroyLamp(); } else { sendOptionsDialogue("What skill would you like to gain experience in?", "Agility", "Herblore", "Thieving", "Crafting", "More..."); stage = 2; } break; case 2: if(componentId == OPTION_1) { player.getSkills().addXp(Skills.AGILITY, XP); destroyLamp(); } else if(componentId == OPTION_2) { player.getSkills().addXp(Skills.HERBLORE, XP); destroyLamp(); } else if(componentId == OPTION_3) { player.getSkills().addXp(Skills.THIEVING, XP); destroyLamp(); } else if(componentId == OPTION_4) { player.getSkills().addXp(Skills.CRAFTING, XP); destroyLamp(); } else { sendOptionsDialogue("What skill would you like to gain experience in?", "Fletching", "Runecrafting", "Construction", "Slayer", "More..."); stage = 3; } break; case 3: if(componentId == OPTION_1) { player.getSkills().addXp(Skills.FLETCHING, XP); destroyLamp(); } else if(componentId == OPTION_2) { player.getSkills().addXp(Skills.RUNECRAFTING, XP); destroyLamp(); } else if(componentId == OPTION_3) { player.getSkills().addXp(Skills.CONSTRUCTION, XP); destroyLamp(); } else if(componentId == OPTION_4) { player.getSkills().addXp(Skills.SLAYER, XP); destroyLamp(); } else { sendOptionsDialogue("What skill would you like to gain experience in?", "Hunter", "Mining", "Smithing", "Fishing", "More..."); stage = 4; } break; case 4: if(componentId == OPTION_1) { player.getSkills().addXp(Skills.HUNTER, XP); destroyLamp(); } else if(componentId == OPTION_2) { player.getSkills().addXp(Skills.MINING, XP); destroyLamp(); } else if(componentId == OPTION_3) { player.getSkills().addXp(Skills.SMITHING, XP); destroyLamp(); } else if(componentId == OPTION_4) { player.getSkills().addXp(Skills.FISHING, XP); destroyLamp(); } else { sendOptionsDialogue("What skill would you like to gain experience in?", "Cooking", "Firemaking", "Woodcutting", "Farming", "Back..."); stage = 5; } break; case 5: if(componentId == OPTION_1) { player.getSkills().addXp(Skills.COOKING, XP); destroyLamp(); } else if(componentId == OPTION_2) { player.getSkills().addXp(Skills.FIREMAKING, XP); destroyLamp(); } else if(componentId == OPTION_3) { player.getSkills().addXp(Skills.WOODCUTTING, XP); destroyLamp(); } else if(componentId == OPTION_4) { player.getSkills().addXp(Skills.FARMING, XP); destroyLamp(); } else { sendOptionsDialogue("What skill would you like to gain experience in?", "Attack", "Strength", "Defence", "Ranged", "More..."); stage = -1; } } } public void destroyLamp() { player.getInventory().deleteItem(LAMP, 1); } @Override public void finish() { } } [/code] Don't forget: [code]handledDialogues.put("LargeLamp", (Class<Dialogue>) Class.forName(LargeLamp.class.getCanonicalName()));[/code] [code]if (itemId == 23715) { player.getDialogueManager().startDialogue("LargeLamp"); }[/code] Enjoy ^^ Thank you, ~Derek
×