I'm a new scripter to LSL and the forums, pls have mercy... (^v^*)
So I've successfully written a script that gives notecards to whitelisted individuals defined within the script. But because I'd like to sell this script on MP, I can't exactly just give away the script with modify rights, because, you know the whole copy paste tactic... And I've figured out how to make it recognize a notecard full of whitelisted usernames but am having a lot of difficulties trying to get the script to
1. recognize that upon distribution, I'd like everything else but the notecard entitled "whitelist" and the script itself to be given away.
Here's my attempt at that.
if (llGetOwner() == llDetectedKey(0) || llGetListLength(names) == 0 || llListFindList(names, [llDetectedName(0)]) >= 0)
{
llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD,0));
}
2. count the other notecards (whatever it may be named) rather than the one entitled "whitelist" and set certain texts accordingly.
I do realize that this part of the script is what causes the error I'm having at the moment, but here's my attempt at it.
if(llGetInventoryNumber(INVENTORY_NOTECARD()) == 1, !=INVENTORY_NOTECARD(Whitelist))
{
llSetText("!",<1,1,1>,1);;
}
else
{
llSetText(" Ø ", <1,1,1>, 1);
}
I hope that made sense, my english isnt too great (^v^*)
Please Help (T^T*)