Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(_t) {
- let replies = {
- "I may be fed but I don't grow.": "Hope. ",
- "I am but I am not.": "A hole. ",
- "At the top of the hour I'm a bird, but not a swallow.": "None of above. ",
- "When everyone drinks, I don't.": "A carcass. ",
- "During the day I'm full of vermin.": "A forest cover. ",
- "My face is beautiful and I live in the woods.": "A dryad. ",
- "I run, but nobody chases me.": "None of above. ",
- "I hide so that somebody would bump into me.": "A snare. ",
- "Prove that you're worthy to go on!": "How am I supposed to do it? ",
- "Use your wisdom and solve my riddle!": "Speak, warrior! ",
- "Your wisdom is really huge. You may pass!": "end"
- }
- function check(text) {
- for (let i in replies) {
- if (text.includes(i)) {
- return replies[i];
- }
- }
- return false;
- }
- npcTalk = function(e) {
- _t.apply(this, arguments);
- if (e[4]) {
- let answer = check(e[4]);
- if (e[1] == "Ancient Warrior" && answer) {
- if(answer == "end") _g(`talk&id=${e[2]}&c=${e[5]}`);
- for (let z = 7; z < e.length; z += 3) {
- if (e[z] == answer) {
- _g(`talk&id=${e[2]}&c=${e[z+1]}`);
- break;
- }
- }
- }
- }
- }
- })(npcTalk)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement