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