aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Examples')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
index c9c663e..1460b81 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
@@ -245,7 +245,15 @@ namespace SimpleApp
245 { 245 {
246 if (OnChatFromViewer != null) 246 if (OnChatFromViewer != null)
247 { 247 {
248 this.OnChatFromViewer(enc.GetBytes("Kind of quiet around here, isn't it! \0"), 2, 0, new LLVector3(128, 128, 26), this.FirstName + " " + this.LastName, this.AgentId); 248 ChatFromViewerArgs args = new ChatFromViewerArgs();
249 args.Message = "Kinda quiet around here, isn't it?";
250 args.Channel = 0;
251 args.From = this.FirstName + " " + this.LastName;
252 args.Position = new LLVector3(128, 128, 26);
253 args.Sender = this;
254 args.Type = ChatTypeEnum.Shout;
255
256 this.OnChatFromViewer(this, args);
249 } 257 }
250 count = -1; 258 count = -1;
251 259