crashUnit = nil crashGo = nil function Crash_OnGossip(Unit, event, player) Unit:GossipCreateMenu(100, player, 0) Unit:GossipMenuAddItem( 0, "Test chat msg", 1, 0) Unit:GossipMenuAddItem( 0, "Crash Part 1", 2, 0) Unit:GossipMenuAddItem( 0, "Crash Part 2", 3, 0) Unit:GossipSendMenu(player) end function Crash_OnSelect(Unit, event, player, id, intid, code, pMisc) if (id == 0) then Unit:SendChatMessage(12, 0, "This is a chat msg. Lua script loaded and working.", 0) player:GossipComplete() end if (id == 1) then Unit:SendChatMessage(12, 0, "Choose Crash Part 2 to crash arcemu. Hold tight!", 0) player:GossipComplete() crashUnit = Unit:SpawnCreature(1126, player:GetX(), player:GetY(), player:GetZ(), player:GetO(), 56, 1)-- despawn after 1 ms crashGo = Unit:SpawnGameObject(194569, player:GetX(), player:GetY(), player:GetZ(), player:GetO(), 1, 19)--despawn after 1 ms end if (id == 2) then Unit:FullCastSpellOnTarget(57652, crashUnit) -- Crashing Wave spell Unit:FullCastSpellOnTarget(57652, crashGo) -- Crashing Wave spell Unit:SendChatMessage(12, 0, "Did you see this msg? Nice, no crash!", 0) player:GossipComplete() end end RegisterUnitGossipEvent(1000, 1, Crash_OnGossip) RegisterUnitGossipEvent(1000, 2, Crash_OnSelect)