PDA

View Full Version : Auto Talknig NPc



Milation
04-08-08, 02:05 AM
Could Some 1 Upload The Lua script for the auto talking Npc Plz in Lua Form Already? Bc when i save as auto.LUA my comp dosent accept it.

Boxxy
04-08-08, 02:33 AM
-------noobcraft was here-----

local time = 30000
local restart = 5000
local npc = 400009


local msg1 = ""
local msg2 = ""
local msg3 = ""
local msg4 = ""
local msg5 = ""


function Announcer_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, msg1)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer2_Yell", time, 0)
end

function Announcer2_Yell(pUnit, Event)
pUnit:SendChatMessage(12 ,0, msg2)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer3_Yell", time, 0)
end

function Announcer3_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, msg3)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer4_Yell", time, 0)
end

function Announcer4_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, msg4)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer5_Yell", time, 0)
end

function Announcer5_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, msg5)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer2_Yell", restart, 0)
end

function Announcer_Start(pUnit, Event)
pUnit:RegisterEvent("Announcer_Yell", 1000, 0)
end
RegisterUnitEvent(npc, 6, "Announcer_Start")



http://filebeam.com/7f4021bf1b7643a75db9cfcb12d3a001

Milation
04-08-08, 02:34 AM
can upload to filebeam as a LUA already