Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

commision

Jacob Thatch
Senior Member
Join date: 31 Mar 2005
Posts: 146
06-18-2005 14:21
Well over time i have colected many casino games and i have infact made sure the creators arnt in sl ne more some im just wanting to slap in a like only 2% commion and let it be sold for 0l, i have tweekd the scripts a [EDIT]LOT and belive there ready but i dont know anything about useing commision and i cant post the script here. Is anyone willing to give detailed instructions for adding commision to a game.
Jacob Thatch
Senior Member
Join date: 31 Mar 2005
Posts: 146
06-18-2005 23:53
heloooo out there lol (a guy with to much time)
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
06-20-2005 09:18
Well, the commission would have to be linked to the money event. If you modified the event just a bit and added this line:


CODE
    
money(key giver, integer amount)
{
llGiveMoney( yourkey, (integer)( amount * .02 ) );
//...Other stuff...
}


That will give 2 percent of all money payed to the object to you. Replace yourkey with whatever your key is...

However, if you couldn't figure out how to do that, I seriously doubt how much you tweaked the casino scripts.
Jacob Thatch
Senior Member
Join date: 31 Mar 2005
Posts: 146
06-20-2005 11:47
well thnx i got it working and also bite me, i did tweek it but it was mostly from doing ok change this, ok didnt get wut i want maybe if i do etc. dont accuse ppl of haveing a lack of scripting especialy on the scripting tips forums.
Zindorf Yossarian
Master of Disaster
Join date: 9 Mar 2004
Posts: 160
06-20-2005 16:48
Not to have everyone blamming you here, but you probably could have found that on the helpful lsl wiki!
_____________________
Badass Ninja Penguin: Killing stuff it doesn't like since sometime in May 2004.
Jacob Thatch
Senior Member
Join date: 31 Mar 2005
Posts: 146
06-20-2005 17:48
yeah sry i attacked back, but i hate ppl thinking the worst of others. Thnx.