Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Yet another permissions question

Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
06-08-2006 11:51
OK.. I have all of my issues worked out... Almost...

I have 1 more thing that is killing me...

I have an object that is controlled by voice commands.
the voice commands should be limited to just the owner and whomever the owner places on the authorized list.

the authorized list also includes a player that is attached to this object because the player has to be able to pass commands to the object as well, since the player is using dialog boxes.

the thing is, I don't want the player to be able to say certain commands...

what I did was put an if statement in there to check to see if the person was the player, and if so. let him say other stuff, but not the admin stuff...

when I put these in, no matter what I say, it responds with the answer for the first if statement.

anybody else ever do this???

anyone have any ideas?
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
06-08-2006 12:03
Might it be a bug?

Psuedo code idea:

CODE

listen begin
if onauthlist
if onadminlist
admincommands
if onnormallist
normalcommands
end listen
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
06-08-2006 12:11
From: Keknehv Psaltery
Might it be a bug?

Psuedo code idea:

CODE

listen begin
if onauthlist
if onadminlist
admincommands
if onnormallist
normalcommands
end listen

I didn't think about doing that


the way I was looking at it was

Psuedo code
CODE

listen begin
if onauthlist
if onauthlist AND player
normal commands
else
admin commands
end listen


let me try it your way and see what happens