Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- BOSS SPAWN SCRIPT
- local NPC_ID = XXX -- Enter your npc id
- local BOSS_ID = XX -- BOSS ID
- function On_Gossip(event, player, unit)
- player:GossipMenuAddItem(0, "Summon boss", 0, 1)
- player:GossipSendMenu(1, unit)
- end
- function On_Select(event, player, creature, sender, intid, code)
- if (intid == 1) then
- local BOSS = PerformIngameSpawn(1, BOSS_ID, MAPID, INSTANCEID, X, Y, Z, O, false, 0, 1)
- end
- end
- RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
- RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement