Advertisement
Guest User

Untitled

a guest
Apr 19th, 2011
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.04 KB | None | 0 0
  1. Main
  2. {
  3.     questname   "Skywonder Rescue"
  4.     version     1.0
  5. }
  6. State Begin
  7. {
  8.     desc    "Talk to Jessica"
  9.     action  AddNpcText(13, "Hello, as you can see I live peacefully with the blobsies in the wonderful sky, then one day the wolfman and the foxes got into a fight and all the foxes moved to here");
  10.  
  11.     rule    TalkedToNpc(13) goto TalkToWolfLeader
  12. }
  13. State TalkToWolfLeader
  14. {
  15.     desc    "Talk to the Wolf Leader"
  16.     action  AddNpcText(13, "Go talk to the wolfman first im sure he\'s willing to compromise so we can all live in peace again.");
  17.     action  AddNpcText( 14, "Hello there, i see Jessica sent you, what do you want?");
  18.     action  AddNpcInput( 14, 1, "I come in peace");
  19.     action  AddNpcInput( 14, 2, "Nothing, bye");
  20.  
  21.     rule    InputNpc(1) goto GetBirdFeathers
  22.  
  23. }
  24. State GetBirdFeathers
  25. {
  26.     desc    "Find 10 bird feathers"
  27.     action  AddNpcText( 14, "We are currently at war with the birdmans on the other mountain. I am currently too busy to talk about peace with the foxes.");
  28.     action  AddNpcText( 14, "You know i hate those annoying birdmans, if you help us fight the birdmans and bring me 10 bird feathers I will think about your offer." );
  29.  
  30.     rule    GotItems(299,10) goto GiveFeathers
  31.  
  32. }
  33. State GiveFeathers
  34. {
  35.     desc    "Give 10 bird feathers"
  36.     action  AddNpcText(14, "Hi again, i can see you have been fighting with the birdmans, your help is greatly appreciated!");
  37.     action  AddNpcText(14, "Will you give me those bird feathers?");
  38.    
  39.     action  AddNpcInput(14, 2, "Ok, here you are");
  40.     action  AddNpcInput(14, 1, "No, these are mine");
  41.  
  42.     rule    InputNpc(2) goto TalkToJessica
  43.     rule    LostItems(299,10) goto GetBirdFeathers
  44.  
  45. }
  46. State TalkToJessica
  47. {
  48.     desc    "Go see Jessica for your reward"
  49.     action  RemoveItem(299,10);
  50.     action  AddNpcText(14, "Go tell Jessica we shall make peace with the Foxes");
  51.     action  AddNpcText(13, "Thank you so much for your help, please accept this reward");
  52.  
  53.     rule    TalkedToNpc(13) goto Reward
  54. }
  55. State Reward
  56. {
  57.     action      ShowHint("You gained 500 exp and 500 gold.");
  58.     action  GiveExp(500);
  59.     action    AddSpell(7,0);
  60. action  GiveItem(1, 500);
  61.     action  End();
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement