Foulcault Mechanique
Father Cheesemonkey
Join date: 28 Mar 2005
Posts: 557
|
06-02-2005 15:57
I was looking for a "pay to teleport" script but one that also allows certain people not have to pay to TP (land owner, managers, house maids, etc.) Would have to be able to be expanded on as people would be added and removed.
_____________________
Foulcault "Keep telling yourself that and someday you just might believe it." "Every Technomage knows the 14 words that will make someone fall in love with you forever, but she only needed one. "Hello"" Galen from Babylon 5 Crusade From: Jeska Linden I'm moving this over to Off-Topic for further Pez ruminations.
|
Sam Nielsen
Registered User
Join date: 23 Apr 2005
Posts: 7
|
06-03-2005 06:34
If you've got a script that almost works it shouldn't be too hard to modify. You could store a list of the names/keys of the people that are allowed to use it for free. You could add to this list by certain authorised people being able to add more approved users by talking, e.g. like this (just a vague design to help you on your way, haven't got time to write it at the moment  )
listen (integer channel, string text, key id, string message) { if (approvedUser) { // Allow them to add a new person freeUserList += text; }
approvedModerator would need to loop through the people who were allowed to update.
integer approvedModerator(keyId) { integer listLength;
listLength = llGetListLength(approvedUserList)
for (i=0; i<listLength; i++) { if user found return true }
}
when someone tries to use teleport you'd need to loop through and see if they're on the freeUsersList. That's the basic idea anyway, hope this helps.
|