These forums are CLOSED. Please visit the new forums HERE
Chat relay issue! |
|
|
Omegasun Harford
Owner Of TroubleMaker App
Join date: 15 Apr 2006
Posts: 50
|
12-13-2006 20:01
i recently scripted a chat relay. it is set to liste ONLY to the owner via llGetOwner() function. I gave the item to a friend and it wont relay chat through them but i can still relay chat through it. it shows her as owner yet it listens to me and not them tried several friends. Older objects i have using this script seem to work ok just th script i created today.
|
|
Omegasun Harford
Owner Of TroubleMaker App
Join date: 15 Apr 2006
Posts: 50
|
Chat relay issue!
12-13-2006 20:13
i recently scripted a chat relay. it is set to liste ONLY to the owner via llGetOwner() function. I gave the item to a friend and it wont relay chat through them but i can still relay chat through it. it shows her as owner yet it listens to me and not them tried several friends. Older objects i have using this script seem to work ok just th script i created today.
here is my current script CODE
it works fine when i type and not at all when others type if i take out the CODE if(llGetOwnerKey(id)==llGetOwner())line then i can style relay through it but they cant. any help would be greatly appreciated |
|
Peekay Semyorka
Registered User
Join date: 18 Nov 2006
Posts: 337
|
12-13-2006 20:26
The script is still using the old listener (filtered to you) and needs to be reset whenever it changes owner.
Just put an llResetScript() within a on_rez() handler, or do something like: CODE
-peekay |
|
Omegasun Harford
Owner Of TroubleMaker App
Join date: 15 Apr 2006
Posts: 50
|
12-13-2006 20:37
ah i should have known that thanks a ton working great
|
|
Kaklick Martin
Singer/Songwriter
Join date: 3 Oct 2005
Posts: 175
|
12-13-2006 21:11
From the wiki on the llGetOwner() funtion call:
Note: a script will only check to see its owner when llGetOwner is called. This can be annoying if you transfer ownership of the object to another user. If you're using llGetOwner in llListen or llRequestPermissions, consider putting llResetScript in the on_rez event, or even llListen in on_rez. Remember to remove your old listens with llListenRemove or they'll pile up! Depending on what you have in state_entry, llResetScript is usually the best method. _____________________
|
|
Dragon Eccleston
Registered User
Join date: 25 Dec 2005
Posts: 42
|
12-13-2006 23:10
plus if you're filtering with llListen you don't need to filter again in the listen event
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
12-14-2006 20:39
*merges threads*
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey |