|
Turokhan Legion
Vortech Enterprises CEO
Join date: 22 Jul 2007
Posts: 32
|
12-22-2008 15:59
Hey all,
I've been searching high and low for this and was wondering if someone could point me in the right direction.
I have an object that I want, on touch to provide a map with a random location.
I have an itemin my inventory that does just that so I know it can be done but the script is no modify so I can't see how it works.
Any methods or samples anyone knows of?
Thanks guys
|
|
Ollj Oh
Registered User
Join date: 28 Aug 2007
Posts: 522
|
12-22-2008 16:28
You can create random coordinates. You can httprequest a regions name via coordinates. If the coordinates have no publically visible region and therefore no name is returned for your coordinates, create other coordinates. You can display a regions map via its found name.
If the name exists ask for acess permissions (if theres a valid parcel). if you have acess permissions you can show it on the map and teleport there.
You may even be able to display how many agents are on the region without being there.
The whole procedure may take at least 4 seconds and only 1 out of 10 coordinates may work.
Much more straightforward is the stargate system with a database of active stargates and random dialing. At least they want random visitors.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-22-2008 21:53
although to save problems in time to find a random destination, you could precompile a few addresses, then as each one is used, attempt to add another.
I'm with Ollj though, The Cleary Stargate Network (there are at least 2 others) has a decent random destination system. (I like them for the simplicity of design, plus you can tear theirs apart and rebuild it high prim if you're a purist)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|