Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

VERY Odd llGetNoteCardLine...

Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
10-18-2005 20:16
Done this before, and doin' it again and comin' up with a very odd event this time around...

...essentially using a Notecard to rip an object key and place it into an llemail address. The key sits on Notecard line 0.

Here is my code:

CODE

listen(integer channel, string name, key id, string message)
{
if(message == "address")
{
address = llGetNotecardLine("NDE Address", 0);
address = address + "@lsl.secondlife.com";
llSay(0, "Address changed to: " + address);
}
}


Here are my results as given in the llSay:

From: From SL Chat

Object: Object Key is: 2c7c2692-4439-6c44-dba0-81d0f25d6026
Object: Address changed to: [email]887d458d-992b-a4d3-9273-3b8f61954867@lsl.secondlife.com[/email]
Object: Address changed to: [email]7b909af3-62b8-0ffb-503c-5d7d781d8b21@lsl.secondlife.com[/email]
Object: Address changed to: [email]29ca2f4d-e853-fb1d-a8f2-0d94b38b34af@lsl.secondlife.com[/email]
Object: Address changed to: [email]4e6b5a63-e7e2-bcab-a1db-8b9f0494dbb4@lsl.secondlife.com[/email]
Object: Address changed to: [email]03a0f102-8a55-16a6-6b46-369985a32a1a@lsl.secondlife.com[/email]
Object: Address changed to: [email]e14abac7-bbfe-28df-aeb8-0acf6cafc370@lsl.secondlife.com[/email]
Object: Object Key is: 2c7c2692-4439-6c44-dba0-81d0f25d6026


The Object Key is the key I copied into notecard "NDE Address". You can see that my code has not picked up that address...and has decided to come up with a random address with each fetch...
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
10-18-2005 20:37
http://secondlife.com/badgeo/wakka.php?wakka=llGetNotecardLine

The key returned by llGetNotecardLine is a handle that you use in the dataserver event to cross-check against the data returned. Calling llGetNotecardline doesn't return the contents of the notecard. You need to use the dataserver event to receive the actual data. This is explained in the Wiki page linked above, with a working example for how to do this.
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
10-18-2005 21:05
Derrr...I'm smart...thanks :)