Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Flight booking scenario

Bjoern Aeon
Registered User
Join date: 1 Dec 2007
Posts: 2
01-26-2008 06:06
Hi,

I'm currently working on creating a flight booking demo.

So far I have created a terminal, that interacts with the user (mostly via llDialog) and collects data like the desired carrier id, connection id, and flight date.

I also have a demo "airplane" with a few seats. In every seat there is a script, that requests it status (available or reserved) from a web service and changes the color to green or red accordingly. The script in every seat knows its seat number from the object's name (seat_01A, seat 01B,...).

My idea is that the airplane is stored within the terminal (the seats are not linked with the airplane cabin). As soon as the user has provided the needed data (carrier id, connection id, and flight date), the airplane would be rezzed and the flight data should be passed on.

However, I am not sure how to do so.

The ideal way would be to put the flight data in the seats' description field, when they are rezzed, so that the webservice inside knows the date and flight number.

Or maybe some objects could be put in their inventory containing this data.

Or should each script listen on some channel for the flight data from the terminal. (I really don't like this solution, though)

Do you have any suggestions? How should I do this?

Thanks a lot for your help in advance. :)

Bjoern
Bjoern Aeon
Registered User
Join date: 1 Dec 2007
Posts: 2
01-26-2008 10:44
I think I found a solution. I will set the terminal's description with the flight data, and then have the seats use llGetObjectDetails to receive the data on state_entry().

Thanks anyway.