I am the creator and owner of a object named 'A'.
When I send this object to someone else he/she will become the owner of it while I am still the creator of it. (duh)
Now I wonder if it is possible to pay the creator when the owner or another avatar pays the object 'A'. For now I can only see this pays the owner and I think its not possible to pay the creator of the object/script?
Ok I did this to solve it.
Included the llRequestPermissions(llGetOwner(),PERMISSION_DEBIT); in my state entry and included the money function like this:
/// This function will always pay the object owner ??
money(key id, integer amount)
{
if(amount != payprice)
{
/// if the owner pays his own object, but price is invalid. the object pays the amout back.
llGiveMoney(id, amount);
llInstantMessage(id, "You paid "+(string)amount+", which is the wrong price, the price is: "+(string)payprice);
}
else
{
/// if the owner pays his own object, and price is right. The object pays the avatar key in the function llGiveMoney.
llGiveMoney("xxx-xxx-xxx-xxx", amount);
llInstantMessage(id, "Right price recieved."
;}
}
I know the script above it working. Everyone who pays the object is paying the owner of it and the owner pays the inserted avatar key. What my question is.. is it possible to those object owners to script a workaround for this so it does not pay with the llGiveMoney() function? Is it a save way to do this?
Security 1: I already noticed that when using llGetCreator( ) in the llGiveMoney() function it has a really easy work around by simpely replacing the script in their own object so I included the parmanent avatar key here instead of the object creators key.
Security 2: I also noticed that when not using the 'run_time_permissions()' it is still possible to get the "Right price recieved" message from the function above. I included this function so owners of the object have to grand permission first before it switches to another state with the scripts.
More things?
Cheers already!
In other words, no. There is no llGiveMoveInATortuousWay().
