Dragos Zaoh
Registered User
Join date: 11 Dec 2006
Posts: 58
|
06-28-2007 12:21
vector pos; string gName = "New Note"; integer gLine = 0; integer zlobby; integer zfloor2; integer j; string lobby; key gQueryID;
default { state_entry() { gQueryID = llGetNotecardLine(gName, gLine); llListen(0, "", NULL_KEY, ""); } dataserver(key query_id, string data) { if (query_id == gQueryID) { if (data != EOF) { if (gLine==1) { zlobby = (integer)data;} if (gLine==3) { zfloor2 = (integer)data;}
++gLine; gQueryID = llGetNotecardLine(gName, gLine); } }} listen(integer ch, string name, key id, string message) { pos = llGetPos(); llSay(2, "close"); llWhisper(0, "Going To " + message); llSleep(1.5); if (message == "The Lobby") { llSay(0,(string)zlobby); pos = llGetPos(); j = (integer)pos.z; if (j < zlobby) { for (j = (integer)pos.z; j < (zlobby + 1); j++) { llSetPos(<pos.x,pos.y,j>);} llSleep(1.5); llSay(2, "open"); } if (j > zlobby) { for (j = (integer)pos.z; j > (zlobby - 1); j--) { llSetPos(<pos.x,pos.y,j>);} llSleep(1.5); llSay(2, "open"); llWhisper(0, "Welcome to " + message);} } else if (message == "Floor 1") { llSay(0,(string)zfloor2); pos = llGetPos(); j = (integer)pos.z; if (j < zfloor2) { for (j = (integer)pos.z; j < (zfloor2 + 1); j++){ llSetPos(<pos.x,pos.y,j>);} llSleep(1.5); llSay(2, "open"); } if (j > zfloor2) { for (j = (integer)pos.z; j > (zfloor2 - 1); j--){ llSetPos(<pos.x,pos.y,j>);} llSleep(1.5); llSay(2, "open"); llWhisper(0, "Welcome to " + message);} } } }
The Notecard should look like this : Lobby 0 Level2 0
|
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
|
Original Thread
06-29-2007 00:21
_____________________
i've got nothing. 
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
02-22-2008 22:59
i'm not sure how to config this script. i want it to go 10m up from it's original position, what do i change on here?
|
Vladmir Ferraris
Registered User
Join date: 21 May 2007
Posts: 3
|
03-03-2008 09:43
From: Ruthven Willenov i'm not sure how to config this script. i want it to go 10m up from it's original position, what do i change on here? Simply!!! If your ground plane stay at 300m of Z axis coordinate put 310 down Level2 in the notecard! Example: House floor 300m First Floor 310m The Notecard should look like this : Lobby 300 Level2 310 Ps: Sry for bad english! I'm Italian!
|
Linnrenate Crosby
Registered User
Join date: 5 Jun 2007
Posts: 49
|
03-12-2008 15:13
This is not working for me.... it say it's going to the levels but the prim do not move
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
03-27-2008 10:21
From: Vladmir Ferraris Simply!!! If your ground plane stay at 300m of Z axis coordinate put 310 down Level2 in the notecard! Example: House floor 300m First Floor 310m
The Notecard should look like this : Lobby 300 Level2 310
Ps: Sry for bad english! I'm Italian! just saw your reply. so i got the note card configured, figured out it won't read decimals, not too much of a problem, except it seems to have the floors backwards (The Lobby goes up, Floor 2 goes down) i have the note card set like this: The Lobby 21 Floor 2 29 and all i commented out in the script was the messages that it says
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
03-27-2008 10:28
ok, so, i realized i needed to reset the script after i configured the note card, but the elevator keeps going up and down randomly. and how can i make it read the decimal in the Z location? it's .5 m diff from the height of the floor
|