Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.rs.game.player.dialogues;
- import com.rs.cache.loaders.NPCDefinitions;
- import com.rs.game.player.content.PlayerLook;
- public class MakeOverMage extends Dialogue {
- int npcId;
- @Override
- public void start() {
- int v = 0;
- if((Integer) parameters[0] >= 0 && (Integer) parameters[0] <= 2)
- v = (Integer) parameters[0];
- if (v == 0) {
- stage = 99;
- sendNPCDialogue(599, 9810, "Hello there! I am know as the Makeover Mage! I have",
- "spent many years researching magicks that can change",
- "your physical appearance.");
- } else if (v == 1) {
- stage = -2;
- sendNPCDialogue(599, 9810, "That is no different from what you already have. I guess I",
- "shouldn't charge you if I'm not changing anything.");
- } else if (v == 2) {
- stage = 19;
- sendEntityDialogue(SEND_1_TEXT_CHAT,
- new String[] {
- NPCDefinitions.getNPCDefinitions(npcId).name,
- "Whew! That was lucky." }, IS_NPC, npcId, 9827);
- }
- }
- /*REALLY_SAD(9760), SAD(9765), DEPRESSED(9770), WORRIED(9775), SCARED(9780), MEAN_FACE(
- 9785), MEAN_HEAD_BANG(9790), EVIL(9795), WHAT_THE_CRAP(9800), CALM(
- 9805), CALM_TALK(9810), TOUGH(9815), SNOBBY(9820), SNOBBY_HEAD_MOVE(
- 9825), CONFUSED(9830), DRUNK_HAPPY_TIRED(9835), TALKING_ALOT(9845), HAPPY_TALKING(
- 9850), BAD_ASS(9855), THINKING(9860), COOL_YES(9864), LAUGH_EXCITED(
- 9851), SECRELTY_TALKING(9838);
- */
- @Override
- public void run(int interfaceId, int componentId) {
- if(stage == 99){
- sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE,
- "Sure, do it.", "Cool amulet! Can I have one?", "No thanks.");
- stage = 100;
- } else if(stage == 100){
- if(componentId == OPTION_1){
- PlayerLook.openMageMakeOver(player);
- end();
- } else if(componentId == OPTION_2){
- sendEntityDialogue(SEND_1_TEXT_CHAT,
- new String[] {
- NPCDefinitions.getNPCDefinitions(npcId).name,
- "I'd rather keep this for myself." }, IS_NPC, npcId, 9800);
- stage = 101;
- } else {
- end();
- }
- } else if(stage == 101){
- sendPlayerDialogue( 9775, "..." );
- stage = 102;
- } else {
- end();
- }
- }
- @Override
- public void finish() {
- // TODO Auto-generated method stub
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement