Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Link Spy?

John Birkenfeld
Registered User
Join date: 31 May 2008
Posts: 3
07-02-2008 16:25
Hello all, I was attempting to mod a "spaceship" i had purchased with mod rights, however the scripts are "no mod" which is fine. the problem is I was wanting to add buttons on board to fire the weapons, etc. which are controlled through chat. is there a way to drop a script into the weapons to intercept which command is being sent via linkmessage so i can script my own buttons to send the same message?
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
07-02-2008 16:31
If the prims are modify-allowed, then yes, you just drop a link message listener into the prim, and it can hear/display any link messages sent to that prim.
John Birkenfeld
Registered User
Join date: 31 May 2008
Posts: 3
07-02-2008 16:43
you don't happen to have an example do ya? I've tried writing my own but I think it's just a lil beyond me or i'm having some issues :| searched for a script that would accomplish it but no luck
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
07-02-2008 18:49
CODE
default
{
link_message(integer src, integer n, string msg, key id)
{
llOwnerSay("Prim: " + (string)src + "N:" + (string)n + " says: " + msg + " id: " + (string)id);
}
}
John Birkenfeld
Registered User
Join date: 31 May 2008
Posts: 3
07-02-2008 19:22
Thanks. I guess I went semi-retarded with my scripting. Made it more complicated than it really is. :|