Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.45 KB | None | 0 0
  1. // Old Forester
  2.  
  3. 018-1.gat,51,61,0   script  Old Forester    156,{
  4.     if(Old == 2) goto L_Done;
  5.     if(Old == 1) goto L_Progress;
  6.  
  7.     mes "[Old Forester]";
  8.     mes "\"Oh, hello friend.";
  9.     mes "What would you like?\"";
  10.     menu
  11.         "You looks so sad. What has happened?!", L_Q1,
  12.         "Who are you?", L_Answ1,
  13.         "Oh, nothing...", -;
  14.     close;
  15.  
  16. L_Answ1:
  17.     mes "[Old Forester]";
  18.     mes "\"Ah, it's very long story.";
  19.     mes "Let me know if you have some time to listen to me.\"";
  20.     menu
  21.         "I have some free time.", L_Answ2,
  22.         "Back.", L_main_menu,
  23.         "I have no time", -;
  24.     close;
  25.  
  26. L_Answ2:
  27.     mes "[Old Forester]";
  28.     mes "\"Good, lets start.";
  29.     mes "It happened today when I was getting items to make my own wooden shop.";
  30.     mes "I was walking in a forest, when suddenly mouboo hit me with its leg.";
  31.     mes "All mine small mushrooms and mouboos figurines fell on a ground and I ran to home.";
  32.     mes "I lost all of mine items, but can you help me?.";
  33.     mes "Also I saved Bunch of Parsley, and for me it's very lucky item.\"";
  34.     menu
  35.         "Exactly I can!.", L_Q1,
  36.         "What the Bunch Of Parsley is?!", L_Bunch,
  37.         "Never...", -;
  38.     close;
  39.  
  40. L_Q1:
  41.     mes "[Old Forester]";
  42.     mes "\"I lost my item and as I see you're ready to help.";
  43.     mes "Lets start from the list of item I need:";
  44.     mes "15 [Small Mushroom]s,";
  45.     mes "5 [Mouboo Figurine]s,";
  46.     mes "Can you get it?.\"";
  47.     menu
  48.         "Yes.", L_Q2,
  49.         "To hard...", -;
  50.     close;
  51.  
  52. L_Q2:
  53.     set @TEMP, rand(3);
  54.     if(@TEMP == 0) goto L_Q3;
  55.     if(@TEMP == 1) goto L_Q4;
  56.     if(@TEMP == 2) goto L_Q5;
  57.  
  58. L_Q3:
  59.     mes "[Old Forester]";
  60.     mes "\"Do you remember?";
  61.     mes "15 Small Mushrooms and 5 Mouboo Figurines.\"";
  62.     next;
  63.     goto L_Set;
  64.  
  65. L_Q4:
  66.     mes "[Old Forester]";
  67.     mes "\"Please, I'm to old and can't find my 15 [Small Mushroom]s and 5 [Mouboo Figurine]s.\"";
  68.     next;
  69.     goto L_Set;
  70.  
  71. L_Q5:
  72.     mes "[Old Forester]";
  73.     mes "\"Please, bring me 15 [Small Mushroom]s and 5 [Mouboo Figurine]s and I'll give you a small gift.\"";
  74.     next;
  75.     goto L_Set;
  76.  
  77. L_Set:
  78.     set Old,1;
  79.     mes "[Old Forester]";
  80.     mes "\"Please bring me them!\"";
  81.     close;
  82.  
  83. L_Progress:
  84.     if (countitem("SmallMushroom") < 15) goto L_NotEnough;
  85.     if (countitem("MoubooFigurine") < 5) goto L_NotEnough;
  86.     mes "[Old Forester]";
  87.     mes "\"Great!";
  88.     mes "Thank you for help very much!\"";
  89.     getinventorylist;
  90.     if ((@inventorylist_count - (countitem("SmallMushroom") == 15) - (countitem("MoubooFigurine") == 5)) > 99 - (countitem("BunchofParsley") == 0)) goto L_TooMany;
  91.     delitem "SmallMushroom", 15;
  92.     delitem "MoubooFigurine", 5;
  93.     getitem "BunchofParsley", 1;
  94.     set Old,2;
  95.     close;
  96.  
  97. L_NotEnough:
  98.     mes "[Old Forester]";
  99.     mes "\"Hurry up or you wouldn't like to get gift. Bring: 15 [Small Mushroom]s and 5 [Mouboo Figurine]s.\"";
  100.     close;
  101.  
  102. L_Done:
  103.     mes "[Old Forester]";
  104.     mes "\"Thank you, I made my own store!";
  105.     mes "Thank you again!\"";
  106.     close;
  107.  
  108. L_TooMany:
  109.     mes "[Old Forester]";
  110.     mes "\"You don't have room for my reward. I'll wait until you do.\"";
  111.     close;
  112.  
  113. L_Bunch:
  114.     mes "[Old Forester]";
  115.     mes "\"Ok, I'll tell you about it.";
  116.     mes "It began, when the god was living on the Earth.";
  117.     mes "He was making wood for a fire, when suddenly he noticed very beautifull brunch.";
  118.     mes "God touched it and it became smaller and smaller.";
  119.     mes "God took it, and it became as a bunch.";
  120.     mes "After this he gave it to people, and they called it parsley.";
  121.     mes "So, as you see I have bunch of parsley, which god made himelf.";
  122.     mes "Need something more?";
  123.     next;
  124.  
  125.     goto L_main_menu;
  126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement