Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ###CARLSBERG###
- local npc_id = 72000
- function GossipOnTalk(pUnit, event, pPlayer)
- pUnit:GossipCreateMenu(100, pPlayer, 0)
- pUnit:GossipMenuAddItem(0, "Change my look", 1, 0)
- pUnit:GossipMenuAddItem(0, "Make me normal", 2, 0)
- pUnit:GossipSendMenu(pPlayer)
- end
- function GossipOnSelect(pUnit, event, pPlayer, id, intid, code)
- if (intid == 1) then
- local Choice = math.random(1, 6)
- if (Choice == 1) then
- pPlayer:SetModel(4875)
- elseif (Choice == 2) then
- pPlayer:SetModel(8715)
- elseif (Choice == 3) then
- pPlayer:SetModel(20976)
- elseif (Choice == 4) then
- pPlayer:SetModel(5293)
- elseif (Choice == 5) then
- pPlayer:SetModel(10318)
- elseif (Choice == 6) then
- pPlayer:SetModel(12064)
- end
- elseif (intid == 2) then
- pPlayer:DeMorph()
- end
- pPlayer:GossipComplete()
- end
- RegisterUnitGossipEvent(npc_id, 1, GossipOnTalk)
- RegisterUnitGossipEvent(npc_id, 2, GossipOnSelect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement