Custom Fishing Rod

No promotion here please! Discuss building, collecting, and using community catchables and 7Seas-compatible buyables. Any registered user can start new threads here and reply.

Custom Fishing Rod

Postby Roenik » 13 Mar 2009, 15:37

Hello,

I'm new to LSL and I have an issue with the custom script for a rod I'm making.

I'm listening on channel 77077 with a few handles for cast, catch, miss, etc.

My problem is with llRequestPermissions for the animations.

Where do I include the requestpermissions statement?

Any help is appreciated.

Thank you.

-Roe
User avatar
Roenik
 
Posts: 3
Joined: 13 Mar 2009, 15:30

Re: Custom Fishing Rod

Postby Seven Shikami » 14 Mar 2009, 07:37

Pop open you OpenSeas kit (ask someone in Social to send it to you if you don't have one). There's an OpenRod script in there that probably does what you want already. :) At the very least it'll include examples of how to request permissions to animate.
From the workshop of Seven Shikami, Official 7Seas Code Monkey.
For technical support please contact 7Seas Sass by IM in Second Life.
User avatar
Seven Shikami
 
Posts: 144
Joined: 18 Dec 2008, 09:43

Re: Custom Fishing Rod

Postby Roenik » 14 Mar 2009, 19:38

Thank you Seven :)

I've got the custom rod working now, with animations.

Only one problem now is that the custom rod reacts to chat from other rods nearby. My listen statement uses the name "(7S) Invisible Pro Fishing Rod (No Animations) with channel -77077.

When other people cast/catch/miss it triggers my animations. I've tried using llGetOwner() in my listen but it doesn't help.

Cordially,

-Roe
User avatar
Roenik
 
Posts: 3
Joined: 13 Mar 2009, 15:30

Re: Custom Fishing Rod

Postby Seven Shikami » 14 Mar 2009, 20:24

The OpenRod script also deals with this problem nicely.

What it does is it leaves the channel open, but once it hears from an object owned by someone that matches the rod's owner, that means it can "lock on" to that rod and only listen to it. Prevents any crosstalk, cuts down on lag considerably. If the custom rod ever desyncs (say they un-wear their invisible rod and then re-wear it) it can resync with a single click.
From the workshop of Seven Shikami, Official 7Seas Code Monkey.
For technical support please contact 7Seas Sass by IM in Second Life.
User avatar
Seven Shikami
 
Posts: 144
Joined: 18 Dec 2008, 09:43

Re: Custom Fishing Rod

Postby Roenik » 15 Mar 2009, 04:57

Thank you kindly for your help Seven.

Kudos for a wonderful game system :)

-Roe
User avatar
Roenik
 
Posts: 3
Joined: 13 Mar 2009, 15:30


Return to OpenSeas Creations

Who is online

Users browsing this forum: No registered users and 3 guests

cron