View difference between Paste ID: fHV7V8gA and w5F2e70E
SHOW: | | - or go back to the newest paste.
1
local NPC_ID = 112112
2
     
3
local function On_GossipMenu(event, player, unit)
4-
	if (player:IsInCombat()) then
4+
    if (player:IsInCombat()) then
5-
	player:SendNotification("You can not do that when in combat!")
5+
        player:SendNotification("You can not do that when in combat!")
6-
	else
6+
    else
7-
	if (player:IsGM()) then
7+
        if (player:IsGM()) then
8-
	player:GossipMenuAddItem(8, "GM Spells", 0, 1, 0)
8+
            player:GossipMenuAddItem(8, "GM Spells", 0, 1, 0)
9-
	end
9+
        end
10-
	player:GossipMenuAddItem(9, "Morphs", 0, 203, 0)
10+
        player:GossipMenuAddItem(9, "Morphs", 0, 203, 0)
11-
    	player:GossipMenuAddItem(2, "Max heal", 0, 2, 0)
11+
        player:GossipMenuAddItem(2, "Max heal", 0, 2, 0)
12-
   	player:GossipMenuAddItem(2, "Remove Resurrection Sickness", 0, 3, 0)
12+
        player:GossipMenuAddItem(2, "Remove Resurrection Sickness", 0, 3, 0)
13-
    	player:GossipMenuAddItem(3, "Learn weapon skills", 0, 4, 0)
13+
        player:GossipMenuAddItem(3, "Learn weapon skills", 0, 4, 0)
14-
    	player:GossipMenuAddItem(3, "Advance weapon skills", 0, 5, 0)
14+
        player:GossipMenuAddItem(3, "Advance weapon skills", 0, 5, 0)
15-
    	player:GossipMenuAddItem(3, "Artisan Riding", 0, 6, 0)
15+
        player:GossipMenuAddItem(3, "Artisan Riding", 0, 6, 0)
16-
	player:GossipMenuAddItem(3, "Dual Talent Specialization", 0, 200, 0)
16+
        player:GossipMenuAddItem(3, "Dual Talent Specialization", 0, 200, 0)
17-
	player:GossipMenuAddItem(3, "Reset Talents", 0, 201, 0)
17+
        player:GossipMenuAddItem(3, "Reset Talents", 0, 201, 0)
18-
	player:GossipMenuAddItem(3, "Remove Cooldowns", 0, 202, 0)
18+
        player:GossipMenuAddItem(3, "Remove Cooldowns", 0, 202, 0)
19-
	player:GossipSendMenu(1, unit)
19+
        player:GossipSendMenu(1, unit)
20-
	end
20+
    end
21
end
22
23
local function On_GossipSelect(event, player, unit, sender, intid, code)
24-
	On_GossipMenu(event, player, unit)
24+
25-
	if (intid == 2) then
25+
    if(intid == 203) then
26-
	player:SendAreaTriggerMessage("You are now fully healed!")
26+
        player:GossipMenuAddItem(9, "TEST1", 0, 0, 0)
27-
	player:CastSpell(69693)
27+
        player:GossipMenuAddItem(9, "TEST2", 0, 0, 0)
28-
	player:SetPower(0, 1000000)
28+
        player:GossipSendMenu(1, unit)
29-
	player:SetPower(3, 100)
29+
        return
30-
	
30+
    elseif (intid == 2) then
31-
	elseif (intid == 1) then
31+
        player:SendAreaTriggerMessage("You are now fully healed!")
32-
	player:LearnSpell(69693)
32+
        player:CastSpell(69693)
33-
	player:LearnSpell(35874)		-- Here you can add more GM spells
33+
        player:SetPower(0, 1000000)
34-
	player:LearnSpell(35912)
34+
        player:SetPower(3, 100)
35-
	player:LearnSpell(38734)
35+
    elseif (intid == 1) then
36
        player:LearnSpell(69693)
37-
	elseif (intid == 3) then
37+
        player:LearnSpell(35874)        -- Here you can add more GM spells
38-
	player:SendAreaTriggerMessage("Ressurection Sickness is now removed!")
38+
        player:LearnSpell(35912)
39-
	local aura = player:GetAura(15007)
39+
        player:LearnSpell(38734)
40-
	if(aura) then
40+
    elseif (intid == 3) then
41-
    aura:Remove()
41+
        player:SendAreaTriggerMessage("Ressurection Sickness is now removed!")
42-
	end
42+
        local aura = player:GetAura(15007)
43-
	
43+
        if(aura) then
44-
	elseif (intid == 4) then
44+
            aura:Remove()
45-
	player:SendAreaTriggerMessage("You have learned all weapon skills!")
45+
        end
46-
	player:LearnSpell(201)
46+
    elseif (intid == 4) then
47-
	player:LearnSpell(202)
47+
        player:SendAreaTriggerMessage("You have learned all weapon skills!")
48-
	player:LearnSpell(196)
48+
        player:LearnSpell(201)
49-
	player:LearnSpell(197)
49+
        player:LearnSpell(202)
50-
	player:LearnSpell(227)
50+
        player:LearnSpell(196)
51-
	player:LearnSpell(200)
51+
        player:LearnSpell(197)
52-
	player:LearnSpell(266)
52+
        player:LearnSpell(227)
53-
	player:LearnSpell(264)
53+
        player:LearnSpell(200)
54-
	player:LearnSpell(5011)
54+
        player:LearnSpell(266)
55-
	player:LearnSpell(3018)
55+
        player:LearnSpell(264)
56-
	player:LearnSpell(198)
56+
        player:LearnSpell(5011)
57-
	player:LearnSpell(199)
57+
        player:LearnSpell(3018)
58-
	player:LearnSpell(1180)
58+
        player:LearnSpell(198)
59-
	player:LearnSpell(2567)
59+
        player:LearnSpell(199)
60-
	player:LearnSpell(2764)
60+
        player:LearnSpell(1180)
61-
	player:LearnSpell(5009)
61+
        player:LearnSpell(2567)
62-
	player:LearnSpell(5019)
62+
        player:LearnSpell(2764)
63-
	
63+
        player:LearnSpell(5009)
64-
	elseif (intid == 5) then
64+
        player:LearnSpell(5019)
65-
	player:SendAreaTriggerMessage("Your weapon skills are now maxed!")
65+
    elseif (intid == 5) then
66-
	player:AdvanceAllSkills(450)
66+
        player:SendAreaTriggerMessage("Your weapon skills are now maxed!")
67-
	player:AdvanceSkill (176, 450)
67+
        player:AdvanceAllSkills(450)
68-
	
68+
        player:AdvanceSkill (176, 450)
69-
	elseif (intid == 6) then
69+
    elseif (intid == 6) then
70-
	player:SendAreaTriggerMessage ("You have learned Artisan Riding!")
70+
        player:SendAreaTriggerMessage ("You have learned Artisan Riding!")
71-
	player:LearnSpell(34091)
71+
        player:LearnSpell(34091)
72-
	player:LearnSpell(54197)
72+
        player:LearnSpell(54197)
73-
	
73+
    elseif (intid == 200) then
74-
	elseif (intid == 200) then
74+
        player:SendAreaTriggerMessage("You now have Dual Talent Specialization!")
75-
	player:SendAreaTriggerMessage("You now have Dual Talent Specialization!")
75+
        player:CastSpell(63624)
76-
	player:CastSpell(63624)
76+
        player:LearnSpell(63706)
77-
	player:LearnSpell(63706)
77+
        player:LearnSpell(63707)
78-
	player:LearnSpell(63707)
78+
    elseif (intid == 201) then
79-
	
79+
        player:SendAreaTriggerMessage("Your talents have been reset!")
80-
	elseif (intid == 201) then
80+
        player:ResetTalents()
81-
	player:SendAreaTriggerMessage("Your talents have been reset!")
81+
    elseif (intid == 202) then
82-
	player:ResetTalents()
82+
        player:SendAreaTriggerMessage("Your cooldowns are removed!")
83-
	
83+
        player:ResetAllCooldowns()
84-
	elseif (intid == 202) then
84+
    end
85-
	player:SendAreaTriggerMessage("Your cooldowns are removed!")
85+
    On_GossipMenu(event, player, unit)
86-
	player:ResetAllCooldowns()
86+
87-
	end
87+
88
RegisterCreatureGossipEvent(NPC_ID, 2, On_GossipSelect)