Advertisement
Guest User

Untitled

a guest
May 6th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. package com.rs.game.player.dialogues;
  2.  
  3. import com.rs.cache.loaders.NPCDefinitions;
  4. import com.rs.game.player.content.PlayerLook;
  5.  
  6. public class MakeOverMage extends Dialogue {
  7.  
  8. int npcId;
  9.  
  10. @Override
  11. public void start() {
  12. int v = 0;
  13.  
  14. if((Integer) parameters[0] >= 0 && (Integer) parameters[0] <= 2)
  15. v = (Integer) parameters[0];
  16.  
  17. if (v == 0) {
  18. stage = 99;
  19. sendNPCDialogue(599, 9810, "Hello there! I am know as the Makeover Mage! I have",
  20. "spent many years researching magicks that can change",
  21. "your physical appearance.");
  22. } else if (v == 1) {
  23. stage = -2;
  24. sendNPCDialogue(599, 9810, "That is no different from what you already have. I guess I",
  25. "shouldn't charge you if I'm not changing anything.");
  26. } else if (v == 2) {
  27. stage = 19;
  28. sendEntityDialogue(SEND_1_TEXT_CHAT,
  29. new String[] {
  30. NPCDefinitions.getNPCDefinitions(npcId).name,
  31. "Whew! That was lucky." }, IS_NPC, npcId, 9827);
  32. }
  33. }
  34.  
  35. /*REALLY_SAD(9760), SAD(9765), DEPRESSED(9770), WORRIED(9775), SCARED(9780), MEAN_FACE(
  36. 9785), MEAN_HEAD_BANG(9790), EVIL(9795), WHAT_THE_CRAP(9800), CALM(
  37. 9805), CALM_TALK(9810), TOUGH(9815), SNOBBY(9820), SNOBBY_HEAD_MOVE(
  38. 9825), CONFUSED(9830), DRUNK_HAPPY_TIRED(9835), TALKING_ALOT(9845), HAPPY_TALKING(
  39. 9850), BAD_ASS(9855), THINKING(9860), COOL_YES(9864), LAUGH_EXCITED(
  40. 9851), SECRELTY_TALKING(9838);
  41. */
  42.  
  43. @Override
  44. public void run(int interfaceId, int componentId) {
  45. if(stage == 99){
  46. sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE,
  47. "Sure, do it.", "Cool amulet! Can I have one?", "No thanks.");
  48. stage = 100;
  49. } else if(stage == 100){
  50. if(componentId == OPTION_1){
  51. PlayerLook.openMageMakeOver(player);
  52. end();
  53. } else if(componentId == OPTION_2){
  54. sendEntityDialogue(SEND_1_TEXT_CHAT,
  55. new String[] {
  56. NPCDefinitions.getNPCDefinitions(npcId).name,
  57. "I'd rather keep this for myself." }, IS_NPC, npcId, 9800);
  58. stage = 101;
  59. } else {
  60. end();
  61. }
  62. } else if(stage == 101){
  63. sendPlayerDialogue( 9775, "..." );
  64. stage = 102;
  65. } else {
  66. end();
  67. }
  68.  
  69. }
  70.  
  71. @Override
  72. public void finish() {
  73. // TODO Auto-generated method stub
  74.  
  75. }
  76.  
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement