Hello, I would like to know how you could let a boss spawn a NPC with LUA.
Thanks if you show me
Greetings Sjoerd.
Question
Started by sjoerd, Aug 29 2008 06:59 AM
5 replies to this topic
#1
Posted 29 August 2008 - 06:59 AM
#2
Posted 29 August 2008 - 10:46 AM
function Diablo_0(Unit, event)
if Unit:GetHealthPct() < 90 then
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Come my Lost Soul's and get rid of this scum!")
x = Unit:GetX()
y = Unit:GetY()
z = Unit:GetZ()
o = Unit:GetO()
Unit:SpawnCreature(400212, x + 3, y + 3, z, o, 17, 100000)
Unit:SpawnCreature(400212, x - 3, y + 3, z, o, 17, 100000)
Unit:SpawnCreature(400212, x + 3, y - 3, z, o, 17, 100000)
Unit:SpawnCreature(400212, x - 3, y - 3, z, o, 17, 100000)
Unit:RegisterEvent("Diablo_Stomp",4000, 0)
Unit:RegisterEvent("Diablo_1",2000, 0)
end
endSnippet taken from the Diablo script.You can replace the x with the real x coord such as 249.994884 for example. The + 3's and such aren't needed in your script.
I hope this helped
#4
Posted 29 August 2008 - 11:03 AM
Quote
Thanks, are you the owner of Chaos Crusade?
Nah, been admin on it since the start though, must be 16 months or something
#5
Posted 29 August 2008 - 11:07 AM
Haha, oké Nice server (I think, because it has much votes etc )
#6
Posted 29 August 2008 - 12:16 PM
Quote
Haha, oké Nice server (I think, because it has much votes etc )
Oh yeah it's awesome, but it's normal to hear that from an employee isn't it?
Our latest addition, Dota-WoW! Although it's beta so not online all the time.
Similar Topics
![]() |
Poll A questionStarted by Larsi, 22 Nov 2011 |
|
|
|
![]() |
[Skyfire] [CODE]+[Question] SQL-batch for WoW-V-itemsStarted by Cerreth, 21 Jan 2012 |
|
|
|
![]() |
[Question] Is there any Custom Gear powerful enough to solo Raids / Instances ?Started by Ryan432120, 06 Mar 2012 |
|
|
|
![]() |
I got a questionStarted by prs, 19 Apr 2012 |
|
|
|
![]() |
QuestionStarted by Fluqsi33, 29 Mar 2012 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














