Laerck Quinn
Registered User
Join date: 20 May 2005
Posts: 23
|
07-24-2005 06:30
This job would be better for someone that is good with scripting vendors and casino games. But I really need a script for a tier of commission of a object. So say someone buys a object, then I would get 30% of the profit, the previous owner of the object would get 25% of the profit and the current owner would get 45% of the object. So for instance say the object is bought from me for $10 by mr.j (I get $10) mr.g buys it from mr.j, I get 30% and 25% and mr.j gets 45% (I get $5.5, mr.j gets $4.5) mr.p buys it from mr.g, I get 30% and mr.j gets 25%, and mr.g gets 45% (I get $3, mr.j gets $2.5, mr.g gets $4.5) It is a litte confusing I know but I am still learning how to script and I just couldnt figure out how to program the events in the script for this to happen.
So a BIG THANKS to whoever can help me. I hope this script can be done but I think it would be a difficult one to write so help is greatly appreciated.
|
Minsk Oud
Registered User
Join date: 12 Jul 2005
Posts: 85
|
07-24-2005 07:05
Now that's sort of nifty. With proper tweaking could work for all sorts of things... hmm But as to your problem: I believe you're going to need to get debit permissions from the current owner. Then when the money event fires, you can forward the correct commission to the members of a list of previous owners. This list would be created via checking the owner whenever the changed(12  event fires. It will require a little extra state to track the fractional commission owed as llGiveMoney only takes integers. Might be worthwhile accumulating the commissions until they reach a certain level (say $50L) to reduce the number of transactions. And this whole thing will obviously have to be done very carefully, as debit permission is (obviously) dangerous.
|
Laerck Quinn
Registered User
Join date: 20 May 2005
Posts: 23
|
07-24-2005 14:54
So this is pretty much impossible to do unless I get debit permissions. But if there is a way for someone else to buy my product, sell it themselves and then I get all the profit, but there be a way for me to track the tier of commissions (like you said track the owner whenever the event fires) so that I can pay them in $50 increments, maybe a public board for people to see who has sold the most, and also how they made the profit (like tier1 or tier2, that way they can make sure their sales have been checked). Maybe I could have that online board and also a notecard dropped in my inventory every day that lists all the text that was on the board. Kind of hard to explain but I hope everyone understands.
|