bonjour voici un script tip jar mais il ne prend que le nom Sl par defaut
il faudrait qu'il puisse prendre le second nom le Display name.
string owner;
integer total;
string textcolour = "<1,1,1>";//change hovertext colour here. Values are red,green,blue. Range 0 to 1. Red = <1,0,0>, Green = <0,1,0>, <1,1,1> = white, <0,0,0> = black, etc.
default
{
on_rez( integer sparam )
{
llResetScript();
}
state_entry()
{
owner = llKey2Name( llGetOwner() );
llSetText((owner +"-Tip Jar MERCI POUR VOS TIPS"),(vector)textcolour,1);
}
money(key tipper, integer amount)
{
total += amount;
string tipname = llKey2Name(tipper);
llSetText(owner +"'s Tip Jar\n" + (string)amount + "L$ donated last\n" + (string)total + "L$ donated so far!",(vector)textcolour,1);
llInstantMessage(tipper,"💕 MERCI💋POUR💋TON💋TIPS 💕, " +(string)tipname);
llInstantMessage(llGetOwner(),(string)tipname+" donated L$" + (string)amount);
}
}
|