Aller à la page... |
sript tip jar qui donne un objet (cadeau)
Suivre Répondre |
|
Partager | Rechercher |
Alpha & Oméga
|
Hellow.....ça faisait un moment que j' avais pas dit qu'on ne peut pas payer un objet attaché, et voilou, c 'est fait !
![]() |
![]() |
|
Vicomte / Vicomtesse
|
|
![]() |
|
Vicomte / Vicomtesse
|
|
![]() |
|
Alpha & Oméga
|
mettre ça avant les llInstantMessage.....
llGiveInventory(tipper,llGetInventoryName(INVENTORY_OBJECT, 0);.....ça donne le premier objet trouvé dans l' inv. petit détail...je remplacerais aussi le 2eme llInstantMessage à l' owner par llOwnerSay("trucmuch a donné des pepettes..."); c 'est bcp moins lourd.... |
![]() |
|
Vicomte / Vicomtesse
|
Citation :
quand j ajoute llGiveInventory(tipper,llGetInventoryName(INVENTORY_OBJECT, 0) 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 = llGetDisplayName(llGetOwner()); llSetText((owner +"-Tip Jar MERCI POUR VOS TIPS"),(vector)textcolour,1); } money(key tipper, integer amount) { total += amount; string tipname = llGetDisplayName(tipper); llSetText(owner +"'s Tip Jar\n" + (string)amount + "L$ donated last\n" + (string)total + "L$ donated so far!",(vector)textcolour,1); llGiveInventory(tipper,llGetInventoryName(INVENTORY_OBJECT, 0); llInstantMessage(tipper,"💕 MERCI💋POUR💋TON💋TIPS 💕, " +(string)tipname); llInstantMessage(llGetOwner(),(string)tipname+" donated L$" + (string)amount); } } |
![]() |
|
Alpha & Oméga
|
manque une parenthèse...
llGiveInventory(tipper,llGetInventoryName(INVENTORY_OBJECT, 0)); |
![]() |
|
Vicomte / Vicomtesse
|
|
![]() |
|
Vicomte / Vicomtesse
|
|
![]() |
|
Vicomte / Vicomtesse
|
|
![]() |
|
Suivre Répondre |
Fil d'ariane
Connectés sur ce fil1 connecté (0 membre et 1 invité)
Afficher la liste détaillée des connectés
|