hi. I want Thomas Miller to speak.
But i dont now what its UnitEvent.
I want to say Fresh bread for free every 20 secs.
i used CREATURE_EVENT_ON_SPAWN = 6,
but its not worked.
(sorry for bad english)
Just talk
Started by Jannini, Aug 22 2008 11:20 AM
4 replies to this topic
#1
Posted 22 August 2008 - 11:20 AM
#2
Posted 22 August 2008 - 12:23 PM
Try to do this.
I actually don't know if this is good. But it's with LUA. Try to do it.
function Thomas_Miller_OnCombat(Unit, Event)
Unit:RegisterEvent("Thomas_Miller_Phase1_",2000,0)
end
function phase_1(pUnit, Event)
if Unit:GetHealththPct() < 100 then
Unit:RemoveEvents();
Unit:SendChatMessage(12, 0, "Fresh Bread!")
end
end
RegisterUnitEvent(3518), 1, "Thomas_Miller_OnCombat"I actually don't know if this is good. But it's with LUA. Try to do it.
#3
Posted 22 August 2008 - 06:13 PM
You fail Sjoerd. He said on spawn not on combat rofl, like when you aggro him, BUY MY BREAD OR DIE!!!
anyways.....
anyways.....
function Thomas_Miller_onSpawn(pUnit, event)
pUnit:RegisterEvent("Thomas_Miller_Bread",20000,0)
end
function Thomas_Miller_Bread(pUnit, event)
pUnit:RemoveEvents();
pUnit:SendChatMessage(12, 0, "Fresh Bread!")
end
RegisterUnitEvent(3518, 6, "Thomas_Miller_onSpawn")
Similar Topics
![]() |
Let's talk 64 bit or less games (SNES, N64, Genesis, etc)Started by SickBoy, 03 Apr 2013 |
|
|
|
![]() |
Lets talk about: graphics vs gameplayStarted by Santewi, 28 Jul 2012 |
|
|
|
![]() |
Lets talk about: texturesStarted by Santewi, 23 May 2012 |
|
|
|
![]() |
Dr Who - Talk About it!Started by eatos92, 18 Sep 2011 |
|
|
|
![]() |
Poll Let's talk about HoN/LoL/DotA.Started by Blackfang, 16 May 2011 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













