Advertisement
iradap

easygopa lepsze?

Sep 1st, 2018
1,936
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. (function(_t) {
  2. let replies = {
  3. "I may be fed but I don't grow.": "Hope. ",
  4. "I am but I am not.": "A hole. ",
  5. "At the top of the hour I'm a bird, but not a swallow.": "None of above. ",
  6. "When everyone drinks, I don't.": "A carcass. ",
  7. "During the day I'm full of vermin.": "A forest cover. ",
  8. "My face is beautiful and I live in the woods.": "A dryad. ",
  9. "I run, but nobody chases me.": "None of above. ",
  10. "I hide so that somebody would bump into me.": "A snare. ",
  11. "Prove that you're worthy to go on!": "How am I supposed to do it? ",
  12. "Use your wisdom and solve my riddle!": "Speak, warrior! ",
  13. "Your wisdom is really huge. You may pass!": "end"
  14. }
  15.  
  16. function check(text) {
  17. for (let i in replies) {
  18. if (text.includes(i)) {
  19. return replies[i];
  20. }
  21. }
  22. return false;
  23. }
  24.  
  25. npcTalk = function(e) {
  26. _t.apply(this, arguments);
  27. if (e[4]) {
  28. let answer = check(e[4]);
  29. if (e[1] == "Ancient Warrior" && answer) {
  30. if(answer == "end") _g(`talk&id=${e[2]}&c=${e[5]}`);
  31. for (let z = 7; z < e.length; z += 3) {
  32. if (e[z] == answer) {
  33. _g(`talk&id=${e[2]}&c=${e[z+1]}`);
  34. break;
  35. }
  36. }
  37. }
  38. }
  39. }
  40. })(npcTalk)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement