I have this rather simple LUA script, it's my first as well so I used guides for this. So I can't really understand what's wrong, clicking on the object doesn't do anything.
Code:
function LesserWindStone_onUse(pUnit, Event)
local Choice=math.random(1, 4)
if Choice==1 then
pUnit:SpawnCreature(15211, -7964.16, 1826.29, 2.28, 2.84, 14, 240000)
elseif Choice==2 then
pUnit:SpawnCreature(15307, -7964.16, 1826.29, 2.28, 2.84, 14, 240000)
elseif Choice==3 then
pUnit:SpawnCreature(15209, -7964.16, 1826.29, 2.28, 2.84, 14, 240000)
elseif Choice==4 then
pUnit:SpawnCreature(15212, -7964.16, 1826.29, 2.28, 2.84, 14, 240000)
end
end
RegisterGameObjectEvent (180456, 2, "LesserWindStone_onUse")
Any help would be very appreciated and a nice 2x+Rep