Jump to content

im location


2toe Bigboots

Recommended Posts

A simpler solution is to simply have the MESSAGE say which store it is, and you just use your own Landmarks in your own inventory to go there.  Also make sure the units do not message you while you are offline. 

While I've built devices which give a unique LM (that you drop into the item) when the greeter goes off, I do not sell them nor do I recommend their usage. They fail to meet my criteria for usefullness.  Here's why.  You are logged out to sleep and 25 people step across 25 greeters.  What will be awaiting you when you log in again?  Not to mention this barrage of LMs and Messages will cap your offline IMs and keep you from getting real messages. 

Link to comment
Share on other sites

As Shockwave says, that will be a pretty useless and very annoying feature if you ever install it.  If that's what you want to do, though, just send yourself a SLURL for the shop.  You can create one easily by opening an LM for the shop, clicking Show on Map, and then clicking Copy SLURL to Clipboard.  (In Firestorm, you can do it by right clicking the LM in your inventory, selecting About Landmark, and then clicking the arrow in the Lower right corner of the new window and selecting Copy SLURL.)  However you do it, just put that SLURL into the message that you want to send.  It will be a clickable link in chat when received.

Link to comment
Share on other sites

Well heres what it is, I made a sencore that will be placed at my shop. when someone is in the shop it will im the "server" then the "server" will im employess from a note card. So i want it to have the function because its the easyest way i can think of and its already set up i jsut wanna add that...... so what would i add to the string there  ? llGetLocalPos ??

 

 

Also this doesnt do a POP up im window eather.

Link to comment
Share on other sites

As I said, you can just put a SLURL there as your message.  It's already a string.  If you don't like SLURLS, put llGetRegionName() + " " + (string)llGetPos() .  It won't be clickable, but it will tell your employees where the shop is, just in case they have forgotten.  :smileywink:  

Link to comment
Share on other sites

Where are you writing it in your script?  I assume that you have a later llInstantMessage command that is using that string variable.  If so, and if you have spelled MESSAGE the same way in both places (including capitalization), then it ought to work.  (You did close the line with a semicolon, right?  Not those three question marks.)

Link to comment
Share on other sites

Its at the top of the script

string NOTECARD_NAME = "userKeys";string MESSAGE = "customer at";key kQuery;integer iLine = 0;default {     state_entry() {              }        changed(integer change) 

 I want to just add to the string MESSAGE = "customer at";

So it will say   "customer at BLABLABLA <~~~~ being the slur or location 

I have to may locations to have to add the shop name everytime

 

Link to comment
Share on other sites

Oh. OK.  You can't do that at the top.  You'll have to assign the value in the state_entry event instead.  Just replace what you have with

string MESSAGE;

and in state_entry, add

MESSAGE = llGetRegionName() + " " + (string)llGetPos();

ETA: If you want to create a SLURL on the fly, put Innula's bit of code in state_entry too and inclorporate it into MESSAGE.

 

Link to comment
Share on other sites

string NOTECARD_NAME = "userKeys";string MESSAGE = "customer at";key kQuery;integer iLine = 0;default {     state_entry(MESSAGE = llGetRegionName() + " " + (string)llGetPos() {              }        changed(integer change)     {        llSay(0, "Contacting Agent...");        kQuery = llGetNotecardLine(NOTECARD_NAME, iLine);    } 

 So like this ?

If im to do this i loose the kQuery thats there. can i add to that with out loosing it ?

Link to comment
Share on other sites

<sigh>

string NOTECARD_NAME = "userKeys";string MESSAGE;key kQuery;integer iLine = 0;default {     state_entry()    {       MESSAGE = llGetRegionName() + " " + (string)llGetPos();    }//And so on....}

 You may want to review some of the basic LSL tutorials at http://wiki.secondlife.com/wiki/LSL_Tutorial .  They can be quite helpful if you are just starting to learn LSL.

  • Like 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...