Guest User

Untitled

a guest
May 17th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. Main
  2. {
  3. questname "Snakes"
  4. version 1.0
  5. }
  6. state Begin
  7. {
  8. desc "Speaking with jake"
  9. action AddNpcText(1, "Hello [name] do you think you could help me?");
  10. action AddNpcInput(1,1,"With what?");
  11. rule InputNpc(1) goto withwhat
  12. }
  13. state withwhat
  14. {
  15. desc "Speaking with jake"
  16. action AddNpcText(1, "These pesky snakes are invading my feild and tearing up all the grass!");
  17. action AddNpcText(1, "Can you please get rid of them for me? I'll pay you greatly.");
  18. action AddNpcInput(1,1,"Yes");
  19. action AddNpcInput(1,2,"Not");
  20. rule InputNpc(1) goto Yes
  21. rule InputNpc(2) goto No
  22. }
  23. state No
  24. {
  25. desc "Speaking with jake"
  26. action AddNpcText(1, "It's a shame you won't help me.");
  27. action Reset();
  28. }
  29. state Yes
  30. {
  31. desc "Speaking with jake"
  32. action AddNpcText(1, "Great! Please go kill 20 snakes and come back to me when you're finished");
  33. rule KilledNpcs(6,20) goto Next
  34. }
  35. state Next
  36. {
  37. action ShowHint("You've killed 20 snakes, return to Jake");
  38. action AddNpcText(1, "Thank you so much, here is your reward");
  39. action GiveItem(1,500);
  40. action GiveItem(4,30);
  41. action End();
  42. }
Advertisement
Add Comment
Please, Sign In to add comment