forked from ornfelt/azerothcore_lua_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVincentADKMorph.lua
More file actions
56 lines (51 loc) · 1.44 KB
/
VincentADKMorph.lua
File metadata and controls
56 lines (51 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--[[
local morph_commands = {
["#sally"] = 2043,
["#newthrall"] = 4527,
["#oldthrall"] = 27656,
["#cairne"] = 4307,
["#velen"] = 17822,
["#sylvanas"] = 28213,
["#voljin"] = 10357,
["#anduin"] = 11655,
["#magni"] = 3597,
["#tyrande"] = 7274,
["#jaina"] = 2970,
["#varian"] = 28127,
["#bolvar"] = 5566,
["#oldtirion"] = 9477,
["#newtirion"] = 31011,
["#vereesa"] = 28222,
["#rhonin"] = 16024,
["#putress"] = 27611,
["#alexstraza"] = 28227,
["#chromie"] = 24877,
["#arthas"] = 24949,
["#lk"] = 22234,
["#saurfang"] = 14732,
["#onyxia"] = 8570,
["#nefarian"] = 9472,
["#darkranger"] = 30073,
["#millhouse"] = 19942,
}
local demorph_commands = {
["#demorph"] = true,
["#vincent"] = true,
}
local function ADK_MorphPlayer(event, player, message, type, language)
local lower_message = string.lower(message)
local morph_id = morph_commands[lower_message]
if morph_id then
player:SetDisplayId(morph_id)
player:CastSpell(player, 51908, true) -- Added visual transform spell
player:SendBroadcastMessage("You have been morphed into " .. lower_message:sub(2) .. "!")
return false
elseif demorph_commands[lower_message] then
player:DeMorph()
player:CastSpell(player, 51908, true) -- Added visual transform spell
player:SendBroadcastMessage("Your morph has been reset to your original appearance.")
return false
end
end
RegisterPlayerEvent(18, ADK_MorphPlayer)
]]