| | Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE] |  | | 
02-12-2009
|  | Sergeant Major | | | Join Date: Dec 2008 Location: Pennsylvania
Posts: 170
Reputation: 51 Level up: 37%, 443 Points needed |   | | Lol, well. The script I posted earlier worked fine for me. Code: function Hargoral(Unit, event, player)
Unit:RegisterEvent("Hargoral_Say", 80000, 0)
end
function Hargoral_Say(Unit, event, player)
local chance = math.random(1,7)
if(chance == 1) then
Unit:SendChatMessage(14, 1, "Leave no single creature alive! No single building standing! Slay every alliance dog you find in your way! This day will be remembered for generations, as the day of the Stormwind's fall! Lok'thar Ogar!")
end
if(chance == 2) then
Unit:SendChatMessage(14, 1, "Since the dawn of times; Since before the First War; The Horde has been superior than the Alliance. We have had many proofs of this fact all along history! But now, we will give them a finnal proof! Bring them down!")
end
if(chance == 3) then
Unit:SendChatMessage(14, 1, "Of all the great battles in which I had the honour of drawing my sword for the Warchief there was not one which was lost. They were going to look at war, the red animal-war, the blood-swollen god. The mighty HORDE!")
end
if(chance == 4) then
Unit:SendChatMessage(14, 1, "Forty years after a battle it is easy for a non-combatant to reason about how it ought to have been fought. It is another thing personally and under fire to direct the fighting while involved in the obscuring smoke of it.")
end
if(chance == 5) then
Unit:SendChatMessage(14, 1, "But let it be sword, lance, or bolt that strikes me down: for I should think it shame to die from an iron ball from the fire-crake or bombard or any such unsoldierly weapon, which is only fitted to scare babes with its foolish noise and smoke.")
end
if(chance == 6) then
Unit:SendChatMessage(14, 1, "The Alliance have waged war for many centuries. Thus violent deeds live after men upon the earth, and traces of war and bloodshed will survive in mournful shapes long after those who worked the desolation are but atoms of earth themselves.")
end
if(chance == 7) then
Unit:SendChatMessage(14, 1, "Now order the ranks, and fling wide the banners, for our souls are God's and our bodies the king's, and our swords for the Warchief and for the Horde!")
end
end
function Hargoral_Died(Unit, event, player)
Unit:RemoveEvents()
end
RegisterUnitEvent(700001, 18, "Hargoral")
RegisterUnitEvent(700001, 4, "Hargoral_Died")
Just remember that the spawn ID of your NPC will be 700001 and to have Lua enabled on your server. Don't forget it goes in the 'scripts' folder. Just as well, that you will have to wait 80 seconds before it will say anything. I would change the time to like 45000, so it goes off every 45 seconds just to see if it works. | Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx. 
02-13-2009
|  | Knight-Lieutenant | | | Join Date: May 2008 Location: In your mouse
Posts: 300
Reputation: 50 Level up: 18%, 658 Points needed |     | | | Or... you could use the AI_Agents xD
__________________ Done by piersd
Gamer tag - Midnight133 | 
02-14-2009
|  | Sergeant | | | Join Date: Nov 2006
Posts: 57
Reputation: 6 | | | I made this script but he doesnt say anything
function Mogrash(Unit, event, player)
Unit:RegisterEvent("Morgrash_Talk", 35000, 0)
end
function Mogrash_Talk(Unit, event, player)
local chance = math.random(1,4)
if(chance == 1) then
Unit:SendChatMessage(12, 0, "Me make good weapons")
end
if(chance == 2) then
Unit:SendChatMessage(12, 0, "When break, me hungry")
end
if(chance == 3) then
Unit:SendChatMessage(12, 0, "Oh Oh Oh, Hot Hot Hot")
end
if(chance == 4) then
Unit:SendChatMessage(12, 0, "Me allways wanted to be cook")
end
end
function Mogrash_Died(Unit, event, player)
Unit:RemoveEvents()
end
RegisterUnitEvent(7000, 18, "Mogrash")
RegisterUnitEvent(7000, 4, "Mogrash_Died")
__________________ Nubbzorz 4 Li4e =D
Last edited by handofoberon; 02-14-2009 at 10:44 PM.
| 
02-14-2009
|  | Knight-Lieutenant | | | Join Date: May 2008 Location: In your mouse
Posts: 300
Reputation: 50 Level up: 18%, 658 Points needed |     | | | Fixed
--------------------------------------------------------------------------------
I made this script but he doesnt say anything
function Mogrash(Unit, event, player)
Unit:RegisterEvent("Morgrash_Talk", 7000, 0)
end
function Mogrash_Talk(Unit, event, player)
local chance = math.random(1,4)
if(chance == 1) then
Unit:SendChatMessage(12, 0, "Me make good weapons")
end
if(chance == 2) then
Unit:SendChatMessage(12, 0, "When break, me hungry")
end
if(chance == 3) then
Unit:SendChatMessage(12, 0, "Oh Oh Oh, Hot Hot Hot")
end
if(chance == 4) then
Unit:SendChatMessage(12, 0, "Me allways wanted to be cook")
end
end
function Mogrash_Died(Unit, event, player)
Unit:RemoveEvents()
end
RegisterUnitEvent(7000, 18, "Mogrash")
RegisterUnitEvent(7000, 4, "Mogrash_Died")
__________________ Done by piersd
Gamer tag - Midnight133 | 
02-15-2009
|  | Sergeant | | | Join Date: Nov 2006
Posts: 57
Reputation: 6 | | | hes still not saying anything.
__________________ Nubbzorz 4 Li4e =D | 
02-16-2009
|  | Sergeant Major | | | Join Date: Dec 2008 Location: Pennsylvania
Posts: 170
Reputation: 51 Level up: 37%, 443 Points needed |   | | Quote:
Originally Posted by handofoberon I made this script but he doesnt say anything
function Mogrash(Unit, event, player)
Unit:RegisterEvent("Morgrash_Talk", 35000, 0)
end
function Mogrash_Talk(Unit, event, player)
local chance = math.random(1,4)
if(chance == 1) then
Unit:SendChatMessage(12, 0, "Me make good weapons")
end
if(chance == 2) then
Unit:SendChatMessage(12, 0, "When break, me hungry")
end
if(chance == 3) then
Unit:SendChatMessage(12, 0, "Oh Oh Oh, Hot Hot Hot")
end
if(chance == 4) then
Unit:SendChatMessage(12, 0, "Me allways wanted to be cook")
end
end
function Mogrash_Died(Unit, event, player)
Unit:RemoveEvents()
end
RegisterUnitEvent(7000, 18, "Mogrash")
RegisterUnitEvent(7000, 4, "Mogrash_Died") | You sure that 7000 is the .npc spawn ID? | 
02-16-2009
|  | Sergeant | | | Join Date: Nov 2006
Posts: 57
Reputation: 6 | | | Yeah that's what it is
__________________ Nubbzorz 4 Li4e =D | 
02-16-2009
|  | Sergeant Major | | | Join Date: Dec 2008 Location: Pennsylvania
Posts: 170
Reputation: 51 Level up: 37%, 443 Points needed |   | | Let's try taking out the 'player' Code: function Mogrash(Unit, Event)
Unit:RegisterEvent("Mogrash_Talk", 35000, 0)
end
function Mogrash_Talk(Unit, Event)
local chance = math.random(1,4)
if(chance == 1) then
Unit:SendChatMessage(12, 0, "Me make good weapons.")
end
if(chance == 2) then
Unit:SendChatMessage(12, 0, "When break, me hungry.")
end
if(chance == 3) then
Unit:SendChatMessage(12, 0, "Oh Oh Oh, Hot Hot Hot!")
end
if(chance == 4) then
Unit:SendChatMessage(12, 0, "Me always wanted to be cook.")
end
end
function Mogrash_Died(Unit, Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(7000, 18, "Mogrash")
RegisterUnitEvent(7000, 4, "Mogrash_Died")
It worked for me, I'm using ArcEmu. | 
02-24-2009
| | Corporal | | | Join Date: Jan 2009
Posts: 20
Reputation: 10 Level up: 71%, 117 Points needed | | | Quote:
Originally Posted by handofoberon Yeah that's what it is |
Mate, its Say not Talk thats the proplem you have. | 
02-28-2009
|  | Sergeant Major | | | Join Date: Dec 2008 Location: Pennsylvania
Posts: 170
Reputation: 51 Level up: 37%, 443 Points needed |   | | Quote:
Originally Posted by iday Mate, its Say not Talk thats the proplem you have.  | It doesn't matter what the function is called. You could even have it called dhiodha, all that maters is that the first funtion registers it, and the registration at the bottom is 18. | 
02-28-2009
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: May 2007
Posts: 36
Reputation: -2 Level up: 44%, 283 Points needed | | | seems like a pretty good guide |  | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -4. The time now is 07:08 PM. |