Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC_ID = 65048
- local function ShowMenu(plr, unit, sender, intid, code)
- if (intid == 0) then
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_guardianspirit:30:30:-25|tWings of the Archangel", 0, 1)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_divinespirit:30:30:-25|tWings of the Divinity", 0, 2)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_demonicempowerment:30:30:-25|tWings of the Devil", 0, 3)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_improveddemonictactics:30:30:-25|tWings of the Demon", 0, 4)
- plr:GossipSendMenu(80000, unit)
- end
- end
- local function On_Gossip(event, plr, unit)
- if (plr:IsInCombat()) then
- plr:SendAreaTriggerMessage("You're in combat!")
- plr:GossipComplete()
- return
- end
- ShowMenu(plr, unit, 0, 0)
- end
- function On_Select(event, plr, unit, sender, intid, code)
- ShowMenu(plr, unit, sender, intid)
- local NameLink = plr:GetName()
- if (intid == 1) then -- Archangel
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 10)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 14)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 2) then -- Divinity
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 11)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 15)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 3) then -- Devil
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 12)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 16)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 4) then -- Demon
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 13)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 17)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- ------------------------- Here the actions begin! Begin Quest --------------------
- local Quest0 = GetQuest(80000)
- local Quest1 = GetQuest(80001)
- local Quest2 = GetQuest(80002)
- local Quest3 = GetQuest(80003)
- if (intid == 10) then
- plr:AddQuest(80000)
- plr:GossipComplete()
- plr:SendBroadcastMessage("[|cFFFF0000Challenge Mode System|r]: You have started the quest "..GetQuest(Quest0).." you have 1 hour to complete it. Good luck.")
- end
- if (intid == 11) then
- plr:AddQuest(80001)
- plr:GossipComplete()
- end
- if (intid == 12) then
- plr:AddQuest(80002)
- plr:GossipComplete()
- end
- if (intid == 13) then
- plr:AddQuest(80003)
- plr:SendBroadcastMessage("[|cFFFF0000Challenge Mode System|r]: You have started the quest "..Quest3.." you have 1 hour to complete it. Good luck.")
- plr:GossipComplete()
- end
- --------------------------- Preview Menu -------------------------
- if (intid == 14) then
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_guardianspirit:25:25:-25|tShow me the Archangel wings on creature.", 0, 30)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Archangel wings on "..NameLink..".", 0, 20)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
- plr:GossipSendMenu(65015, unit)
- end
- if (intid == 15) then
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_divinespirit:25:25:-25|tShow me the Divinity Wings on creature.", 0, 31)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Wings of Divinity on "..NameLink..".", 0, 21)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 16) then
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_demonicempowerment:25:25:-25|tShow me the Devil Wings on creature.", 0, 32)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Wings of Devil on "..NameLink..".", 0, 22)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 17) then
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_improveddemonictactics:25:25:-25|tShow me the Demon Wings on creature.", 0, 33)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Wings of Demon on "..NameLink..".", 0, 23)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- -------------------------------Ends here -------------
- if (intid == 20) then
- local aura = unit:AddAura(150000, plr)
- if aura then
- aura:SetDuration(15000)
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Archangel for 15 seconds.", plr)
- end
- end
- if (intid == 21) then
- local aura = unit:AddAura(150002, plr)
- if aura then
- aura:SetDuration(15000)
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Divinity for 15 seconds.", plr)
- end
- end
- if (intid == 22) then
- local aura = unit:AddAura(150001, plr)
- if aura then
- aura:SetDuration(15000)
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Devil for 15 seconds.", plr)
- end
- end
- if (intid == 23) then
- local aura = unit:AddAura(150003, plr)
- if aura then
- aura:SetDuration(15000)
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Demon for 15 seconds.", plr)
- end
- end
- ------------------------- Ends Here --------------
- if (intid == 30) then -- Archangel
- if ALREADY_SPAWNED then
- unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
- plr:GossipComplete()
- return
- else
- CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
- ALREADY_SPAWNED = true
- end
- PerformIngameSpawn(1, 65038, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
- plr:GossipComplete()
- end
- if (intid == 31) then -- Divinity
- if ALREADY_SPAWNED then
- unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
- plr:GossipComplete()
- return
- else
- CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
- ALREADY_SPAWNED = true
- end
- PerformIngameSpawn(1, 65039, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
- plr:GossipComplete()
- end
- if (intid == 32) then -- Devil
- if ALREADY_SPAWNED then
- unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
- plr:GossipComplete()
- return
- else
- CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
- ALREADY_SPAWNED = true
- end
- PerformIngameSpawn(1, 65037, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
- plr:GossipComplete()
- end
- if (intid == 33) then -- Demon
- if ALREADY_SPAWNED then
- unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
- plr:GossipComplete()
- return
- else
- CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
- ALREADY_SPAWNED = true
- end
- PerformIngameSpawn(1, 65036, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
- plr:GossipComplete()
- end
- end
- RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
- RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement