Advertisement
Guest User

Untitled

a guest
Oct 17th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. Main
  2. {
  3. questname "Mining Quest"
  4. version 1.0
  5. }
  6. state Begin
  7. {
  8. desc "Talk to Nidhi"
  9. action AddNpcText(76, "Hello,[c-name] I can smith metal bars if you give me metal ores!!!!");
  10.  
  11. action AddNpcInput(76,1,"Sure");
  12. action AddNpcInput(76,2,"No thanks");
  13. action AddNpcInput(76,3,"Milestone");
  14.  
  15. rule InputNpc(1) goto Metal
  16. rule InputNpc(2) goto Reset
  17. rule InputNpc(3) goto Milestone
  18. }
  19. state Metal
  20. {
  21. desc "Smithing Amount"
  22. action AddNpcText(76, "How many metal bars do you want me to smith?");
  23.  
  24. action AddNpcInput(76,1,"25 Metal Bars");
  25. action AddNpcInput(76,2,"50 Metal Bars");
  26. action AddNpcInput(76,3,"75 Metal Bars");
  27. action AddNpcInput(76,4,"100 Metal Bars");
  28.  
  29. rule InputNpc(1) goto MB25
  30. rule InputNpc(2) goto MB50
  31. rule InputNpc(3) goto MB75
  32. rule InputNpc(4) goto MB100
  33. }
  34. state MB25
  35. {
  36. action AddNpcText(76, "Please get 375 metal ores to purchase.");
  37. action AddNpcInput(76, 1, "Alright");
  38.  
  39. rule InputNpc(1) goto Metal
  40. rule GotItems(694,375) goto Give25
  41. }
  42. state Give25
  43. {
  44. action RemoveItem(694,375);
  45. action GiveItem(693,25);
  46. action ShowHint("You have smithed 25 metal bars");
  47. action Reset();
  48. }
  49. state MB50
  50. {
  51. action AddNpcText(76, "Please get 750 metal ores.");
  52. action AddNpcInput(76, 1, "Alright");
  53.  
  54. rule InputNpc(1) goto Metal
  55. rule GotItems(694,750) goto Give50
  56. }
  57. state Give50
  58. {
  59. action RemoveItem(694,750);
  60. action GiveItem(693,50);
  61. action ShowHint("You have smithed 50 metal bars.");
  62. action Reset();
  63. }
  64. state MB75
  65. {
  66. action AddNpcText(76, "Please get 1125 metal ores.");
  67. action AddNpcInput(76, 1, "Alright");
  68.  
  69. rule InputNpc(1) goto Metal
  70. rule GotItems(694,1125) goto Give75
  71. }
  72. state Give75
  73. {
  74. action RemoveItem(694,1125);
  75. action GiveItem(693,75);
  76. action ShowHint("You have smithed 75 metal bars.");
  77. action Reset();
  78. }
  79. state MB100
  80. {
  81. action AddNpcText(76, "Please get 1500 metal ores.");
  82. action AddNpcInput(76, 1, "Alright");
  83.  
  84. rule InputNpc(1) goto Metal
  85. rule GotItems(694,1500) goto Give100
  86. }
  87. state Give100
  88. {
  89. action RemoveItem(694,1500);
  90. action GiveItem(693,100);
  91. action ShowHint("You have smithed 100 metal bars.");
  92. action Reset();
  93. }
  94. state Reset
  95. {
  96. action Reset();
  97. }
  98. State Milestone
  99. {
  100. desc "Talk to Nidhi the miner"
  101. action AddNpcText(76, "Hello, if you get level 100 in mining, then you will get an armor having 100 damage");
  102. action AddNpcInput(76, 1, "oh i see");
  103.  
  104. rule InputNpc(1) goto Reset
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement