fix(0.9.3.10): bank script registration info for LSL (#174)
* fix(masterbank): expose exact script binding after owner debit consent * fix(masterbank): expose exact script binding after owner debit consent * fix(masterbank): expose exact script binding after owner debit consent * fix(masterbank): expose exact script binding after owner debit consent * fix(masterbank): expose exact script binding after owner debit consent * fix(masterbank): expose exact script binding after owner debit consent * test(masterbank): fix python regression comment
This commit is contained in:
1 parent
104a2b4876
commit
59ea8680fa
6 files changed
+83
-7
No files matched your search
@@ -3422,6 +3422,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Owner-only diagnostic: a script cannot query its task-inventory
|
||||
// item UUID using standard LSL. Never authorizes a bank transfer.
|
||||
// May be called while MasterBankEnabled=false.
|
||||
public LSL_String llNexBankRegistrationInfo()
|
||||
{
|
||||
SceneObjectPart root = m_host?.ParentGroup?.RootPart;
|
||||
if (root == null || m_item == null || root.OwnerID.IsZero() ||
|
||||
m_item.ItemID.IsZero() ||
|
||||
m_item.PermsGranter != root.OwnerID ||
|
||||
(m_item.PermsMask & ScriptBaseClass.PERMISSION_DEBIT) == 0 ||
|
||||
m_host.UUID != root.UUID ||
|
||||
!root.TaskInventory.ContainsKey(m_item.ItemID))
|
||||
return string.Empty;
|
||||
|
||||
return root.UUID.ToString() + "/" + m_item.ItemID.ToString();
|
||||
}
|
||||
|
||||
// Dedicated OGL payment primitive: never falls back to the owner
|
||||
// wallet, unlike standard llGiveMoney / llTransferLindenDollars.
|
||||
public LSL_Key llNexBankPayout(LSL_Key target, LSL_Integer amount)
|
||||
|
||||
@@ -234,6 +234,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void llGiveInventory(LSL_Key destination, LSL_String inventory);
|
||||
void llGiveInventoryList(LSL_Key destination, LSL_String folderName, LSL_List inventory);
|
||||
LSL_Integer llGiveMoney(LSL_Key destination, LSL_Integer amount);
|
||||
LSL_String llNexBankRegistrationInfo();
|
||||
LSL_Key llNexBankPayout(LSL_Key target, LSL_Integer amount);
|
||||
LSL_Key llTransferLindenDollars(LSL_Key destination, LSL_Integer amount);
|
||||
void llGodLikeRezObject(string inventory, LSL_Vector pos);
|
||||
|
||||
@@ -1113,6 +1113,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_LSL_Functions.llTransferLindenDollars(destination, amount);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public LSL_String llNexBankRegistrationInfo()
|
||||
{
|
||||
return m_LSL_Functions.llNexBankRegistrationInfo();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public LSL_Key llNexBankPayout(LSL_Key target, LSL_Integer amount)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user