aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
index 003d3d4..4b05287 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
@@ -98,12 +98,14 @@ namespace SimpleApp
98 private LLUUID myID = LLUUID.Random(); 98 private LLUUID myID = LLUUID.Random();
99 public MyNpcCharacter( EventManager eventManager ) 99 public MyNpcCharacter( EventManager eventManager )
100 { 100 {
101 // startPos = new LLVector3(128, (float)(Util.RandomClass.NextDouble()*100), 2);
101 eventManager.OnFrame += Update; 102 eventManager.OnFrame += Update;
102 } 103 }
103 104
105 private LLVector3 startPos = new LLVector3(128, 128,2);
104 public virtual LLVector3 StartPos 106 public virtual LLVector3 StartPos
105 { 107 {
106 get { return new LLVector3(128, 100, 2); } 108 get { return startPos; }
107 set { } 109 set { }
108 } 110 }
109 111
@@ -122,9 +124,10 @@ namespace SimpleApp
122 get { return "Annoying"; } 124 get { return "Annoying"; }
123 } 125 }
124 126
127 private string lastName = "NPC" + Util.RandomClass.Next(1, 1000);
125 public virtual string LastName 128 public virtual string LastName
126 { 129 {
127 get { return "NPC"; } 130 get { return lastName; }
128 } 131 }
129 132
130 public virtual void OutPacket(Packet newPack) { } 133 public virtual void OutPacket(Packet newPack) { }
@@ -203,7 +206,7 @@ namespace SimpleApp
203 flyState = 0; 206 flyState = 0;
204 } 207 }
205 208
206 if (count >= 40) 209 if (count >= 200)
207 { 210 {
208 if (OnChatFromViewer != null) 211 if (OnChatFromViewer != null)
209 { 212 {