Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Write to notecard..

Davy Flytrap
Registered User
Join date: 21 Feb 2005
Posts: 146
03-17-2005 16:48
Hi..

it is possible to have a script that when someone buys one of my products form my vendor it logs it?

Such as write to the notecard:
Mr Tickle paid you $50
Mr Strong paid you $100
etc..

There must be a way somewhere? or is there a way to make it send the data off to a PHP script?

Thanks Davy
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
03-17-2005 17:13
You can't write to a notecard, but you can send emails and XML-RPC messages. And yes, a PHP script can recieve them. (Note, however, that outbound RPC messages may only be replies. There isn't currently a mechanism to filter incoming RPC requests. You'll need to initiate from the other server, and that means using email, so you're probably better off using email for your entire project.)

See the LSL Wiki for more.
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Davy Flytrap
Registered User
Join date: 21 Feb 2005
Posts: 146
03-17-2005 18:11
I cant seem to get the email script working..

llEmail((string)llGetKey() + "@lsl.secondlife.com", "Test!", "This is a test message.";);

I tried that and im still waiting now for the email to my email account that i have put under my registration details.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
03-17-2005 18:49
That's because resident accounts are "@im.secondlife.com" - for example.
_____________________
---
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
03-17-2005 19:33
From: Jeffrey Gomez
That's because resident accounts are "@im.secondlife.com" - for example.


Actually that's not quite true. The key used with the @im.secondlife.com is the key of the "chat session" that was initiated with someone else in SL, not the key of the person you are talking to.

You cannot directly email an avatar from the outside world. Keeps spam down :)
_____________________
Davy Flytrap
Registered User
Join date: 21 Feb 2005
Posts: 146
03-17-2005 19:36
thanks guys..i just typed in my gmail account and it ent srtaight there.

another thing..

where it says message i put this

, id + " has just bought " + productName + " for " + productPrice);

it didnt seem to work
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
03-17-2005 20:38
From: Davy Flytrap
thanks guys..i just typed in my gmail account and it ent srtaight there.

another thing..

where it says message i put this

, id + " has just bought " + productName + " for " + productPrice);

it didnt seem to work


Try...

llKey2Name(id) + " has just bought " + productName + " for L$" + (string)productPrice);
_____________________
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
03-18-2005 03:59
From: Hank Ramos
llKey2Name(id) + " has just bought " + productName + " for L$" + (string)productPrice);


As an aside: Davy, if you're not sure how tyepecasting works, you should check out the LSL Wiki entry on 'Typecasting'.
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog