-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstuffMe.lua
More file actions
27 lines (22 loc) · 773 Bytes
/
stuffMe.lua
File metadata and controls
27 lines (22 loc) · 773 Bytes
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
local MODULE_NAME = "Eluna stuffMe"
local MODULE_VERSION = '1.0'
local MODULE_AUTHOR = "Mpromptu Gaming"
print("["..MODULE_NAME.."]: Loaded, Version "..MODULE_VERSION.." Active")
local function doStuff(player)
player:Say("I don't feel so good...", 0)
player:SetDisplayId(18082)
player:CastSpell(player, 27123, true)
end
local function undoStuff(player)
player:Say("I just can't get enough... of The Stuff!", 0)
player:DeMorph()
player:CastSpell(player, 49867, true)
end
local function onEatStuff(event, player, item, target)
if player:GetDisplayId() == 18082 then
undoStuff(player)
elseif math.random(1,100) == 1 and player:HasAura(50056) ~= true then
doStuff(player)
end
end
RegisterItemEvent(23364, 2, onEatStuff)