Advertisement
WIXXZI

Untitled

Jul 26th, 2022 (edited)
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. -- BOSS SPAWN SCRIPT
  2.  
  3. local NPC_ID = XXX -- Enter your npc id
  4. local BOSS_ID = XX -- BOSS ID
  5.  
  6. function On_Gossip(event, player, unit)
  7.  
  8. player:GossipMenuAddItem(0, "Summon boss", 0, 1)
  9. player:GossipSendMenu(1, unit)
  10. end
  11.  
  12. function On_Select(event, player, creature, sender, intid, code)
  13.  
  14. if (intid == 1) then
  15. local BOSS = PerformIngameSpawn(1, BOSS_ID, MAPID, INSTANCEID, X, Y, Z, O, false, 0, 1)
  16. end
  17. end
  18.  
  19. RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
  20. RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement