diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules')
9 files changed, 94 insertions, 43 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 5cf478a..655f3a5 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -714,6 +714,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
714 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; | 714 | public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; |
715 | public event UpdatePrimFlags OnUpdatePrimFlags; | 715 | public event UpdatePrimFlags OnUpdatePrimFlags; |
716 | public event UpdatePrimTexture OnUpdatePrimTexture; | 716 | public event UpdatePrimTexture OnUpdatePrimTexture; |
717 | public event ClientChangeObject onClientChangeObject; | ||
717 | public event UpdateVector OnUpdatePrimGroupPosition; | 718 | public event UpdateVector OnUpdatePrimGroupPosition; |
718 | public event UpdateVector OnUpdatePrimSinglePosition; | 719 | public event UpdateVector OnUpdatePrimSinglePosition; |
719 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 720 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
@@ -818,6 +819,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
818 | public event ObjectOwner OnObjectOwner; | 819 | public event ObjectOwner OnObjectOwner; |
819 | public event DirPlacesQuery OnDirPlacesQuery; | 820 | public event DirPlacesQuery OnDirPlacesQuery; |
820 | public event DirFindQuery OnDirFindQuery; | 821 | public event DirFindQuery OnDirFindQuery; |
822 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | ||
821 | public event DirLandQuery OnDirLandQuery; | 823 | public event DirLandQuery OnDirLandQuery; |
822 | public event DirPopularQuery OnDirPopularQuery; | 824 | public event DirPopularQuery OnDirPopularQuery; |
823 | public event DirClassifiedQuery OnDirClassifiedQuery; | 825 | public event DirClassifiedQuery OnDirClassifiedQuery; |
@@ -834,7 +836,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
834 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 836 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
835 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 837 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
836 | public event ClassifiedDelete OnClassifiedDelete; | 838 | public event ClassifiedDelete OnClassifiedDelete; |
837 | public event ClassifiedDelete OnClassifiedGodDelete; | 839 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
838 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 840 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
839 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 841 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
840 | public event EventGodDelete OnEventGodDelete; | 842 | public event EventGodDelete OnEventGodDelete; |
@@ -864,6 +866,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
864 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 866 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
865 | public event SimWideDeletesDelegate OnSimWideDeletes; | 867 | public event SimWideDeletesDelegate OnSimWideDeletes; |
866 | public event SendPostcard OnSendPostcard; | 868 | public event SendPostcard OnSendPostcard; |
869 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
867 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 870 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
868 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 871 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
869 | public event GodlikeMessage onGodlikeMessage; | 872 | public event GodlikeMessage onGodlikeMessage; |
@@ -885,6 +888,11 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
885 | 888 | ||
886 | public void Close() | 889 | public void Close() |
887 | { | 890 | { |
891 | Close(true); | ||
892 | } | ||
893 | |||
894 | public void Close(bool sendStop) | ||
895 | { | ||
888 | Disconnect(); | 896 | Disconnect(); |
889 | } | 897 | } |
890 | 898 | ||
@@ -1690,5 +1698,10 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
1690 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) | 1698 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) |
1691 | { | 1699 | { |
1692 | } | 1700 | } |
1701 | |||
1702 | public void SendPartPhysicsProprieties(ISceneEntity entity) | ||
1703 | { | ||
1704 | } | ||
1705 | |||
1693 | } | 1706 | } |
1694 | } | 1707 | } |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs index 05678c0..8af3652 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |||
@@ -563,7 +563,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
563 | 563 | ||
564 | public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request) | 564 | public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request) |
565 | { | 565 | { |
566 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceGetPreloginHTTPHandler called"); | 566 | // m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceGetPreloginHTTPHandler called"); |
567 | 567 | ||
568 | Hashtable response = new Hashtable(); | 568 | Hashtable response = new Hashtable(); |
569 | response["content_type"] = "text/xml"; | 569 | response["content_type"] = "text/xml"; |
@@ -714,7 +714,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
714 | 714 | ||
715 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) | 715 | public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) |
716 | { | 716 | { |
717 | m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceSigninHTTPHandler called"); | 717 | //m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceSigninHTTPHandler called"); |
718 | // string requestbody = (string)request["body"]; | 718 | // string requestbody = (string)request["body"]; |
719 | // string uri = (string)request["uri"]; | 719 | // string uri = (string)request["uri"]; |
720 | // string contenttype = (string)request["content-type"]; | 720 | // string contenttype = (string)request["content-type"]; |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs index 70e2f7e..0be0a19 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs | |||
@@ -190,7 +190,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
190 | break; | 190 | break; |
191 | } | 191 | } |
192 | 192 | ||
193 | m_vivoxVoiceAccountApi = String.Format("http://{0}/api2", m_vivoxServer); | 193 | m_vivoxVoiceAccountApi = String.Format("https://{0}/api2", m_vivoxServer); |
194 | 194 | ||
195 | // Admin interface required values | 195 | // Admin interface required values |
196 | if (String.IsNullOrEmpty(m_vivoxServer) || | 196 | if (String.IsNullOrEmpty(m_vivoxServer) || |
@@ -749,7 +749,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
749 | } | 749 | } |
750 | 750 | ||
751 | 751 | ||
752 | private static readonly string m_vivoxLoginPath = "http://{0}/api2/viv_signin.php?userid={1}&pwd={2}"; | 752 | private static readonly string m_vivoxLoginPath = "https://{0}/api2/viv_signin.php?userid={1}&pwd={2}"; |
753 | 753 | ||
754 | /// <summary> | 754 | /// <summary> |
755 | /// Perform administrative login for Vivox. | 755 | /// Perform administrative login for Vivox. |
@@ -762,7 +762,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
762 | } | 762 | } |
763 | 763 | ||
764 | 764 | ||
765 | private static readonly string m_vivoxLogoutPath = "http://{0}/api2/viv_signout.php?auth_token={1}"; | 765 | private static readonly string m_vivoxLogoutPath = "https://{0}/api2/viv_signout.php?auth_token={1}"; |
766 | 766 | ||
767 | /// <summary> | 767 | /// <summary> |
768 | /// Perform administrative logout for Vivox. | 768 | /// Perform administrative logout for Vivox. |
@@ -774,7 +774,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
774 | } | 774 | } |
775 | 775 | ||
776 | 776 | ||
777 | private static readonly string m_vivoxGetAccountPath = "http://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}"; | 777 | private static readonly string m_vivoxGetAccountPath = "https://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}"; |
778 | 778 | ||
779 | /// <summary> | 779 | /// <summary> |
780 | /// Retrieve account information for the specified user. | 780 | /// Retrieve account information for the specified user. |
@@ -787,7 +787,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
787 | } | 787 | } |
788 | 788 | ||
789 | 789 | ||
790 | private static readonly string m_vivoxNewAccountPath = "http://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}"; | 790 | private static readonly string m_vivoxNewAccountPath = "https://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}"; |
791 | 791 | ||
792 | /// <summary> | 792 | /// <summary> |
793 | /// Creates a new account. | 793 | /// Creates a new account. |
@@ -802,7 +802,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
802 | } | 802 | } |
803 | 803 | ||
804 | 804 | ||
805 | private static readonly string m_vivoxPasswordPath = "http://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}"; | 805 | private static readonly string m_vivoxPasswordPath = "https://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}"; |
806 | 806 | ||
807 | /// <summary> | 807 | /// <summary> |
808 | /// Change the user's password. | 808 | /// Change the user's password. |
@@ -814,7 +814,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
814 | } | 814 | } |
815 | 815 | ||
816 | 816 | ||
817 | private static readonly string m_vivoxChannelPath = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}"; | 817 | private static readonly string m_vivoxChannelPath = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}"; |
818 | 818 | ||
819 | /// <summary> | 819 | /// <summary> |
820 | /// Create a channel. | 820 | /// Create a channel. |
@@ -888,7 +888,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
888 | return false; | 888 | return false; |
889 | } | 889 | } |
890 | 890 | ||
891 | private static readonly string m_vivoxChannelSearchPath = "http://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}"; | 891 | private static readonly string m_vivoxChannelSearchPath = "https://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}"; |
892 | 892 | ||
893 | /// <summary> | 893 | /// <summary> |
894 | /// Retrieve a channel. | 894 | /// Retrieve a channel. |
@@ -1032,7 +1032,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1032 | return false; | 1032 | return false; |
1033 | } | 1033 | } |
1034 | 1034 | ||
1035 | // private static readonly string m_vivoxChannelById = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; | 1035 | // private static readonly string m_vivoxChannelById = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; |
1036 | 1036 | ||
1037 | // private XmlElement VivoxGetChannelById(string parent, string channelid) | 1037 | // private XmlElement VivoxGetChannelById(string parent, string channelid) |
1038 | // { | 1038 | // { |
@@ -1056,7 +1056,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1056 | /// In this case the call handles parent and description as optional values. | 1056 | /// In this case the call handles parent and description as optional values. |
1057 | /// </summary> | 1057 | /// </summary> |
1058 | 1058 | ||
1059 | private static readonly string m_vivoxChannelDel = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; | 1059 | private static readonly string m_vivoxChannelDel = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; |
1060 | 1060 | ||
1061 | private XmlElement VivoxDeleteChannel(string parent, string channelid) | 1061 | private XmlElement VivoxDeleteChannel(string parent, string channelid) |
1062 | { | 1062 | { |
@@ -1072,7 +1072,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice | |||
1072 | /// Return information on channels in the given directory | 1072 | /// Return information on channels in the given directory |
1073 | /// </summary> | 1073 | /// </summary> |
1074 | 1074 | ||
1075 | private static readonly string m_vivoxChannelSearch = "http://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}"; | 1075 | private static readonly string m_vivoxChannelSearch = "https://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}"; |
1076 | 1076 | ||
1077 | private XmlElement VivoxListChildren(string channelid) | 1077 | private XmlElement VivoxListChildren(string channelid) |
1078 | { | 1078 | { |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index b60cd42..d39b847 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | |||
@@ -874,7 +874,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
874 | msg.dialog = dialog; | 874 | msg.dialog = dialog; |
875 | // msg.dialog = (byte)OpenMetaverse.InstantMessageDialog.GroupNotice; | 875 | // msg.dialog = (byte)OpenMetaverse.InstantMessageDialog.GroupNotice; |
876 | msg.fromGroup = true; | 876 | msg.fromGroup = true; |
877 | msg.offline = (byte)0; | 877 | msg.offline = (byte)1; // Allow this message to be stored for offline use |
878 | msg.ParentEstateID = 0; | 878 | msg.ParentEstateID = 0; |
879 | msg.Position = Vector3.Zero; | 879 | msg.Position = Vector3.Zero; |
880 | msg.RegionID = UUID.Zero.Guid; | 880 | msg.RegionID = UUID.Zero.Guid; |
diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs index c1957e2..59ff9b8 100644 --- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs +++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs | |||
@@ -121,12 +121,18 @@ namespace OpenSim.Region.OptionalModules | |||
121 | 121 | ||
122 | private bool CanObjectEnter(UUID objectID, bool enteringRegion, Vector3 newPoint, Scene scene) | 122 | private bool CanObjectEnter(UUID objectID, bool enteringRegion, Vector3 newPoint, Scene scene) |
123 | { | 123 | { |
124 | if ((newPoint.X > 257f || newPoint.X < -1f || newPoint.Y > 257f || newPoint.Y < -1f)) | ||
125 | return true; | ||
126 | |||
124 | SceneObjectPart obj = scene.GetSceneObjectPart(objectID); | 127 | SceneObjectPart obj = scene.GetSceneObjectPart(objectID); |
125 | Vector3 oldPoint = obj.GroupPosition; | 128 | Vector3 oldPoint = obj.GroupPosition; |
126 | int objectCount = obj.ParentGroup.PrimCount; | 129 | int objectCount = obj.ParentGroup.PrimCount; |
127 | ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y); | 130 | ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y); |
128 | ILandObject newParcel = scene.LandChannel.GetLandObject(newPoint.X, newPoint.Y); | 131 | ILandObject newParcel = scene.LandChannel.GetLandObject(newPoint.X, newPoint.Y); |
129 | 132 | ||
133 | if (newParcel == null) | ||
134 | return true; | ||
135 | |||
130 | int usedPrims = newParcel.PrimCounts.Total; | 136 | int usedPrims = newParcel.PrimCounts.Total; |
131 | int simulatorCapacity = newParcel.GetSimulatorMaxPrimCount(); | 137 | int simulatorCapacity = newParcel.GetSimulatorMaxPrimCount(); |
132 | 138 | ||
@@ -171,4 +177,4 @@ namespace OpenSim.Region.OptionalModules | |||
171 | return true; | 177 | return true; |
172 | } | 178 | } |
173 | } | 179 | } |
174 | } \ No newline at end of file | 180 | } |
diff --git a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs index 32659c8..11c87f8 100644 --- a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs | |||
@@ -42,17 +42,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcRouterModule | |||
42 | public class XmlRpcRouter : IRegionModule, IXmlRpcRouter | 42 | public class XmlRpcRouter : IRegionModule, IXmlRpcRouter |
43 | { | 43 | { |
44 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 44 | //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 45 | private bool m_enabled = false; | |
46 | public void Initialise(Scene scene, IConfigSource config) | 46 | public void Initialise(Scene scene, IConfigSource config) |
47 | { | 47 | { |
48 | IConfig startupConfig = config.Configs["Startup"]; | 48 | IConfig startupConfig = config.Configs["XMLRPC"]; |
49 | if (startupConfig == null) | 49 | if (startupConfig == null) |
50 | return; | 50 | return; |
51 | 51 | ||
52 | if (startupConfig.GetString("XmlRpcRouterModule", | 52 | if (startupConfig.GetString("XmlRpcRouterModule", |
53 | "XmlRpcRouterModule") == "XmlRpcRouterModule") | 53 | "") == "XmlRpcRouterModule") |
54 | { | 54 | { |
55 | scene.RegisterModuleInterface<IXmlRpcRouter>(this); | 55 | scene.RegisterModuleInterface<IXmlRpcRouter>(this); |
56 | m_enabled = true; | ||
57 | } | ||
58 | else | ||
59 | { | ||
60 | m_enabled = false; | ||
56 | } | 61 | } |
57 | } | 62 | } |
58 | 63 | ||
@@ -76,7 +81,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcRouterModule | |||
76 | 81 | ||
77 | public void RegisterNewReceiver(IScriptModule scriptEngine, UUID channel, UUID objectID, UUID itemID, string uri) | 82 | public void RegisterNewReceiver(IScriptModule scriptEngine, UUID channel, UUID objectID, UUID itemID, string uri) |
78 | { | 83 | { |
79 | scriptEngine.PostScriptEvent(itemID, "xmlrpc_uri", new Object[] {uri}); | 84 | if (m_enabled) |
85 | { | ||
86 | scriptEngine.PostScriptEvent(itemID, "xmlrpc_uri", new Object[] { uri }); | ||
87 | } | ||
80 | } | 88 | } |
81 | 89 | ||
82 | public void ScriptRemoved(UUID itemID) | 90 | public void ScriptRemoved(UUID itemID) |
diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs index 9c838d0..d206f69 100644 --- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs +++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs | |||
@@ -838,6 +838,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
838 | if (module != null) | 838 | if (module != null) |
839 | module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); | 839 | module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); |
840 | } | 840 | } |
841 | |||
842 | public void MoveMoney(UUID fromAgentID, UUID toAgentID, int amount, string text) | ||
843 | { | ||
844 | } | ||
841 | } | 845 | } |
842 | 846 | ||
843 | public enum TransactionType : int | 847 | public enum TransactionType : int |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 16ec34f..a2375fe 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
47 | private readonly string m_firstname; | 47 | private readonly string m_firstname; |
48 | private readonly string m_lastname; | 48 | private readonly string m_lastname; |
49 | private readonly Vector3 m_startPos; | 49 | private readonly Vector3 m_startPos; |
50 | private readonly UUID m_uuid = UUID.Random(); | 50 | private UUID m_uuid = UUID.Random(); |
51 | private readonly Scene m_scene; | 51 | private readonly Scene m_scene; |
52 | private readonly UUID m_ownerID; | 52 | private readonly UUID m_ownerID; |
53 | 53 | ||
@@ -169,7 +169,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
169 | #pragma warning disable 67 | 169 | #pragma warning disable 67 |
170 | public event Action<IClientAPI> OnLogout; | 170 | public event Action<IClientAPI> OnLogout; |
171 | public event ObjectPermissions OnObjectPermissions; | 171 | public event ObjectPermissions OnObjectPermissions; |
172 | 172 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | |
173 | public event MoneyTransferRequest OnMoneyTransferRequest; | 173 | public event MoneyTransferRequest OnMoneyTransferRequest; |
174 | public event ParcelBuy OnParcelBuy; | 174 | public event ParcelBuy OnParcelBuy; |
175 | public event Action<IClientAPI> OnConnectionClosed; | 175 | public event Action<IClientAPI> OnConnectionClosed; |
@@ -238,6 +238,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
238 | public event UpdatePrimTexture OnUpdatePrimTexture; | 238 | public event UpdatePrimTexture OnUpdatePrimTexture; |
239 | public event UpdateVector OnUpdatePrimGroupPosition; | 239 | public event UpdateVector OnUpdatePrimGroupPosition; |
240 | public event UpdateVector OnUpdatePrimSinglePosition; | 240 | public event UpdateVector OnUpdatePrimSinglePosition; |
241 | public event ClientChangeObject onClientChangeObject; | ||
241 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 242 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
242 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; | 243 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; |
243 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; | 244 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; |
@@ -375,7 +376,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
375 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 376 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
376 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 377 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
377 | public event ClassifiedDelete OnClassifiedDelete; | 378 | public event ClassifiedDelete OnClassifiedDelete; |
378 | public event ClassifiedDelete OnClassifiedGodDelete; | 379 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
379 | 380 | ||
380 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 381 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
381 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 382 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
@@ -414,6 +415,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
414 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 415 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
415 | public event SimWideDeletesDelegate OnSimWideDeletes; | 416 | public event SimWideDeletesDelegate OnSimWideDeletes; |
416 | public event SendPostcard OnSendPostcard; | 417 | public event SendPostcard OnSendPostcard; |
418 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
417 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 419 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
418 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 420 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
419 | public event GodlikeMessage onGodlikeMessage; | 421 | public event GodlikeMessage onGodlikeMessage; |
@@ -441,6 +443,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
441 | public virtual UUID AgentId | 443 | public virtual UUID AgentId |
442 | { | 444 | { |
443 | get { return m_uuid; } | 445 | get { return m_uuid; } |
446 | set { m_uuid = value; } | ||
444 | } | 447 | } |
445 | 448 | ||
446 | public UUID SessionId | 449 | public UUID SessionId |
@@ -849,8 +852,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
849 | 852 | ||
850 | public void Close() | 853 | public void Close() |
851 | { | 854 | { |
852 | // Remove ourselves from the scene | 855 | Close(true); |
853 | m_scene.RemoveClient(AgentId, false); | 856 | } |
857 | |||
858 | public void Close(bool sendStop) | ||
859 | { | ||
854 | } | 860 | } |
855 | 861 | ||
856 | public void Start() | 862 | public void Start() |
@@ -1184,5 +1190,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1184 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) | 1190 | public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) |
1185 | { | 1191 | { |
1186 | } | 1192 | } |
1193 | |||
1194 | public void SendPartPhysicsProprieties(ISceneEntity entity) | ||
1195 | { | ||
1196 | } | ||
1197 | |||
1187 | } | 1198 | } |
1188 | } | 1199 | } |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs index 2b8379d..68f21c8 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |||
@@ -144,29 +144,38 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
144 | // acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]); | 144 | // acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]); |
145 | // } | 145 | // } |
146 | 146 | ||
147 | lock (m_avatars) | 147 | ManualResetEvent ev = new ManualResetEvent(false); |
148 | { | ||
149 | scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd); | ||
150 | scene.AddNewClient(npcAvatar, PresenceType.Npc); | ||
151 | 148 | ||
152 | ScenePresence sp; | 149 | Util.FireAndForget(delegate(object x) { |
153 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) | 150 | lock (m_avatars) |
154 | { | 151 | { |
155 | // m_log.DebugFormat( | 152 | scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd); |
156 | // "[NPC MODULE]: Successfully retrieved scene presence for NPC {0} {1}", sp.Name, sp.UUID); | 153 | scene.AddNewClient(npcAvatar, PresenceType.Npc); |
157 | 154 | ||
158 | sp.CompleteMovement(npcAvatar, false); | 155 | ScenePresence sp; |
159 | m_avatars.Add(npcAvatar.AgentId, npcAvatar); | 156 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) |
160 | m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); | 157 | { |
158 | m_log.DebugFormat( | ||
159 | "[NPC MODULE]: Successfully retrieved scene presence for NPC {0} {1}", sp.Name, sp.UUID); | ||
160 | |||
161 | sp.CompleteMovement(npcAvatar, false); | ||
162 | m_avatars.Add(npcAvatar.AgentId, npcAvatar); | ||
163 | } | ||
164 | else | ||
165 | { | ||
166 | m_log.WarnFormat("[NPC MODULE]: Could not find scene presence for NPC {0} {1}", sp.Name, sp.UUID); | ||
167 | npcAvatar.AgentId = UUID.Zero; | ||
168 | } | ||
161 | 169 | ||
162 | return npcAvatar.AgentId; | ||
163 | } | ||
164 | else | ||
165 | { | ||
166 | m_log.WarnFormat("[NPC MODULE]: Could not find scene presence for NPC {0} {1}", sp.Name, sp.UUID); | ||
167 | return UUID.Zero; | ||
168 | } | 170 | } |
169 | } | 171 | ev.Set(); |
172 | }); | ||
173 | |||
174 | ev.WaitOne(); | ||
175 | |||
176 | // m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); | ||
177 | |||
178 | return npcAvatar.AgentId; | ||
170 | } | 179 | } |
171 | 180 | ||
172 | public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget) | 181 | public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget) |