Offical forum of LASP, a project to script all the areas in wow via LUA
HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­Donate!  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Welcome NPC

View previous topic View next topic Go down 
AuthorMessage
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Welcome NPC   Fri May 09, 2008 11:51 am

Code:
function Island Introducer_GossipTalk(Unit, Event)
Unit:SendChatMessage(11, 0, "Welcome to GM Island, And enjoy your statemnt!")
end

RegisterUnitEvent(555112, 1, "Island Introducer_GossipTalk")

I want him to talk when you get in-range. Why won't it work? Razz
Back to top Go down
View user profile http://www.nxwow.aowc.net
Darhan
Admin
Admin


Posts: 63
Join date: 2008-04-23

PostSubject: Re: Welcome NPC   Fri May 09, 2008 11:52 am

In-range isn't supported, It isn't defined in the core just like Gossiptalk.

Code:
--[[
The Announcer is a script made by Yerney - LASP for you. It yells text for your server every 3 minutes!
You need to edit the text / You could edit the timer if you want, this is just the "base"
--]]

function Announcer_Spawn(pUnit, Event)
pUnit:RegisterEvent("Announcer_Text", 180000, 0)
end

function Announcer_Text(pUnit, Event)
pUnit:SendChatMessage("14, 0, "Welcome to [Server Name] and enjoy your stay!")
end

RegisterUnitEvent(151575, 6, "Announcer_Spawn")


Try to use this one (only works with the newest core)
Back to top Go down
View user profile
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Re: Welcome NPC   Fri May 09, 2008 11:53 am

Can you have him saying stuffs. without anyone being there?
Back to top Go down
View user profile http://www.nxwow.aowc.net
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Re: Welcome NPC   Fri May 09, 2008 11:56 am

Thx allot!
Back to top Go down
View user profile http://www.nxwow.aowc.net
 

Welcome NPC

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
LUA Area Scripting Project :: General :: Support! If you want to ask anything, do it here-
Post new topic   Reply to topic