Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local npc = NPC({
- name = "Chondur",
- messages = {
- greet = "Be greeted, child. What do you want in an old shaman's hut?",
- farewell = "Good bye.",
- walkway = "Good bye!",
- sendTrade = "Well, I currently buy mysterious and enigmatic voodoo skulls and a few other things I might need for my rituals."
- },
- keywords = {
- ["rituals"] = "Hm. I don't think you need another one of my counterspells to cross the barrier on Goroma.",
- },
- shop = {
- {id = 5669, buy = 0, sell = 4000, name= "Mysterious Voodoo Skull"},
- {id = 5670, buy = 0, sell = 4000, name= "Enigmatic Voodoo Skull"},
- {id = 9969, buy = 0, sell = 4000, name= "black skull"},
- {id = 2798, buy = 0, sell = 500, name= "blood herb"},
- {id = 9447, buy = 0, sell = 10000, name= "blood goblet"},
- }
- })
- npc.topicHandler:addTopics({
- ---stampor mount
- {word = {"mount", "stampor"},
- answer = "You did bring all the items I requqested, cuild. Good. Shall I travel to the spirit realm and try finding a stampor compasion for you?",
- default = {
- reset = true
- },
- condition = {
- topicCondition.notCondition(topicCondition.haveMount(11), "You already have stampor mount.")
- },
- topics = {
- {
- word = "yes",
- answer = {
- "Ohhhhh Mmmmmmmmmmmm Ammmmmgggggggaaaaaaa ...",
- "Aaaaaaaaaahhmmmm Mmmaaaaaaaaaa Kaaaaaamaaaa ...",
- "Brrt! I think it worked! It's a male stampor. I linked this spirit to yours. You can probably already summon him to you ...",
- "So, since me are done here... I need to prepare another ritual, so please let me work, child."
- },
- reset = true,
- condition = {
- topicCondition.notCondition(topicCondition.haveMount(11), "You already have stampor mount."),
- topicCondition.haveItem(13299, 50, "Sorry you don't have the necessary items."),
- topicCondition.haveItem(13301, 30, "Sorry you don't have the necessary items."),
- topicCondition.haveItem(13300, 100, "Sorry you don't have the necessary items.")
- },
- action = {
- topicAction.removeItem(13299, 50),
- topicAction.removeItem(13301, 30),
- topicAction.removeItem(13300, 100),
- topicAction.giveMount(11),
- topicAction.playerMagicEffect(CONST_ME_MAGIC_RED)
- },
- },
- {
- word = "no",
- answer = "Maybe next time.",
- reset = true,
- }
- },
- },
- ---Shaman Outfit Quest
- --getting the first addon quest
- {word = "addon",
- answer = {
- "Deep in the Tiquandian jungle a monster lurks which is seldom seen. It is the revenge of the jungle against humankind. ...",
- "This monster, if slain, carries a rare root called Mandrake. If you find it, bring it to me. Also, gather 5 of the voodoo dolls used by the mysterious dworc voodoomasters. ...",
- "If you manage to fulfil this task, I will grant you your own staff. Have you understood everything and are ready for this test?"
- },
- default = {
- reset = true
- },
- condition = {
- topicCondition.haveOutfit(154, 158, "Come back when you can wear shamanic clothing."),
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, -1)
- },
- topics = {
- {
- word = "yes",
- answer = "Good! Come back once you found a mandrake and collected 5 dworcish voodoo dolls.",
- reset = true,
- condition = {
- topicCondition.haveOutfit(154, 158, "Come back when you can wear shamanic clothing."),
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, -1)
- },
- action = {
- topicAction.setStorage(Storage.OutfitQuest.ShamanAddons, 1)
- },
- },
- {
- word = "no",
- answer = "Maybe next time.",
- reset = true,
- }
- },
- },
- --back with items
- {word = {"addon", "dworc voodoo doll"},
- answer = "Have you gathered the mandrake and the 5 voodoo dolls from the dworcs?",
- default = {
- reset = true
- },
- condition = {
- topicCondition.haveOutfit(154, 158, "Come back when you can wear shamanic clothing."),
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, 1)
- },
- topics = {
- {
- word = "yes",
- answer = "I am proud of you, my child, excellent work. This staff shall be yours from now on!",
- reset = true,
- condition = {
- topicCondition.haveOutfit(154, 158, "Come back when you can wear shamanic clothing."),
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, 1),
- topicCondition.haveItem(5015, 1),
- topicCondition.haveItem(3955, 5)
- },
- conditionDefault = {
- message = "You don't have the required items."
- },
- action = {
- topicAction.setStorage(Storage.OutfitQuest.ShamanAddons, 2),
- topicAction.removeItem(5015, 1),
- topicAction.removeItem(3955, 5),
- topicAction.giveOutfitAddon(154, 158, 1)
- },
- },
- {
- word = "no",
- answer = "Maybe next time.",
- reset = true,
- }
- },
- },
- --second addon quest
- {word = "addon",
- answer = {
- " You have successfully passed the first task. If you can fulfil my second task, I will grant you a mask like the one I wear. Will you listen to the requirements?"
- },
- default = {
- reset = true
- },
- condition = {
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, 2),
- topicCondition.haveOutfitAddon(154, 158, 1)
- },
- topics = {
- {
- word = "yes",
- answer = {
- "The dworcs of Tiquanda like to wear certain tribal masks which I would like to take a look at. Please bring me 5 of these masks. ...",
- "Secondly, the high ape magicians of Banuta use banana staves. I would love to learn more about theses staves, so pleasebring me 5 of them also. ...",
- " If you manage to fulfil this task, I will grant you your own mask. Have you understood everything and are ready for this test?"
- },
- default = {
- reset = true
- },
- condition = {
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, 2),
- topicCondition.haveOutfitAddon(154, 158, 1)
- },
- topics = {
- {
- word = "yes",
- answer = {
- "Good! Come back once you have collected 5 tribal masks and 5 banana staves.",
- "I shall grant you a sign of your progress as shaman if you can fulfil my task."
- },
- reset = true,
- condition = {
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, 2),
- topicCondition.haveOutfitAddon(154, 158, 1)
- },
- action = {
- topicAction.setStorage(Storage.OutfitQuest.ShamanAddons, 3)
- },
- },
- {
- word = "no",
- answer = "Maybe next time.",
- reset = true,
- }
- },
- },
- {
- word = "no",
- answer = "Maybe next time.",
- reset = true,
- }
- },
- },
- {word = {"addon", "tribal masks"},
- answer = "Have you gathered the 5 tribal masks and the 5 banana staves?",
- default = {
- reset = true
- },
- condition = {
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, 3),
- topicCondition.haveOutfitAddon(154, 158, 1)
- },
- topics = {
- {
- word = "yes",
- answer = "Well done, my child! I hereby grant you the right to wear a shamanic mask. Do it proudly.",
- reset = true,
- condition = {
- topicCondition.haveOutfit(154, 158, "Come back when you can wear shamanic clothing."),
- topicCondition.haveStorage(Storage.OutfitQuest.ShamanAddons, 3),
- topicCondition.haveItem(3966, 5),
- topicCondition.haveItem(3967, 5)
- },
- conditionDefault = {
- message = "You don't have the required items."
- },
- action = {
- topicAction.setStorage(Storage.OutfitQuest.ShamanAddons, 4),
- topicAction.removeItem(3966, 5),
- topicAction.removeItem(3967, 5),
- topicAction.giveOutfitAddon(154, 158, 2),
- topicAction.playerMagicEffect(CONST_ME_MAGIC_GREEN),
- topicAction.giveAchievement("Way of the Shaman")
- },
- },
- {
- word = "no",
- answer = "Maybe next time.",
- reset = true,
- }
- },
- },
- --- Friend and Traders Quest - wooden stake
- {word = {"wooden stake", "stake"},
- answer = {
- "Ten prayers for a blessed stake? Don't tell me they made you travel whole Tibia for it! Listen, child, if you bring me a wooden stake, I'll bless it for you. <chuckles>"
- },
- default = { reset = true },
- condition = {
- topicCondition.haveStorage(Storage.FriendsandTraders.TheBlessedStake, 12),
- },
- topics = {
- {
- word = {"wooden stake", "stake"},
- answer = {
- "Would you like to receive a spiritual prayer to bless your stake?"
- },
- default = {
- reset = true
- },
- condition = {
- topicCondition.haveStorage(Storage.FriendsandTraders.TheBlessedStake, 12),
- ritualExaustionCondition
- },
- topics = {
- word = "yes",
- answer = "<mumblemumble> Sha Kesh Mar!",
- reset = true,
- condition = {
- topicCondition.haveStorage(Storage.FriendsandTraders.TheBlessedStake, 12),
- function (cid)
- local player = Player(cid)
- if (player:getStorageValue(Storage.FriendsandTraders.TheBlessedStakeWaitTime) + 7 * 24 * 60 * 60) < os.time() then
- return true
- else
- npcHandler:say("sorry I'm still exhausted from the last ritual. come back later and try again.", cid)
- end
- return false
- end,
- topicCondition.haveItem(5941, 1, "You don't have the stake."),
- },
- action = {
- topicAction.removeItem(5941, 1),
- topicAction.giveItem(5942, 1),
- topicAction.playerMagicEffect(CONST_ME_HOLYAREA),
- topicAction.giveAchievement("Blessed!"),
- function (cid)
- local player = Player(cid)
- player:setStorageValue(Storage.FriendsandTraders.TheBlessedStakeWaitTime, os.time())
- return true
- end
- },
- }
- }
- },
- },
- })
- function onCreatureAppear(cid) npc:onCreatureAppear(cid) end
- function onCreatureDisappear(cid) npc:onCreatureDisappear(cid) end
- function onCreatureSay(cid, type, msg) npc:onCreatureSay(cid, type, msg) end
- function onThink() npc:onThink() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement