Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer touchable; //Global Variables - start
- key touched; //Global Variables - end
- default
- {
- state_entry()
- {
- llSetTimerEvent(600);
- llRequestPermissions(llGetOwner(), PERMISSION_DEBIT ); //Do you want to pay out on true events?
- }
- timer()
- {
- touchable = TRUE; //Set Status to touchable
- }
- touch_start(integer total_num)
- {
- touched=llDetectedKey(0); //name of the person who touched
- if(touchable ) //Am i touchable check
- {
- llInstantMessage(touched, llKey2Name(llDetectedKey(0)) + " touched Vic's cube and got L$1!");
- touchable = FALSE;
- llGiveMoney(llDetectedKey(0), 1);
- }
- else
- {
- llInstantMessage(touched, llKey2Name(llDetectedKey(0)) + " touched Vic's cube and got nothing!" );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement