Jump to content
MeredyddRogueStar

Dialog box for tip jar

Recommended Posts

Hi im trying to make my own tipjar script and this is waht i already got:

default
{
    state_entry()
    {
        llSetPayPrice(0, []);
    }
    money(key giver, integer amount)    {        string name = llGetDisplayName(giver);        llSay(0,"Thank you for the generous tip, "+name+",!");
        llSetText("Mere's Tipjar!", <1,1,1>,1); //Change the hovering text here
  }
   }

So far im liking it because i dont want it to state how much I in totally got in donations now the folowing.

I want to give it me a Dialog/text box telling me who donated how much and i need/want me the only one to see it.

 

Anyone here who can help me with that one

 

Thanks in advance

Share this post


Link to post
Share on other sites

After the line

llSetText("Mere's Tipjar!", <1,1,1>,1); //Change the hovering text here

Add

llDialog ( llGetOwner(), name + " tipped you " + (string)amount, [] , -9168 );

Change the -9168 to some other randon nnegative integer

Share this post


Link to post
Share on other sites

each dialog needs its own channel. Example

integer channel;

default
{
    touch_start(integer total_number)
    {
        --channel;
        llDialog(llGetOwner(), (string)channel, ["Hello"], channel);
    }
}

 

Edited by Mollymews
--

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...