CJonSL Posted May 28, 2011 Share Posted May 28, 2011 Hi,I'm new to SL scripting and trying to write a vendor script.I run into some problems and can't find anything related on the wiki or in the forums.Basicly i'm using llSetPayPrice with the money function which works fine.But i want to detect when an item has been bought by a customer and alter the items left hover text.And also when the no more items left, i want to disable the script with llSetScriptState(llGetScriptName(), FALSE); but i'm not sure where to put it in my script.If someone could point me to some more info about this process, that would help me alot.I have set the prim to pay object on touch.Thanks :)CJ. Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted May 28, 2011 Share Posted May 28, 2011 You have to use a money event - this will tell you whenever the vendor got money - it is there where you can count the items sold, change te hover text and disable the script Link to comment Share on other sites More sharing options...
CJonSL Posted May 28, 2011 Author Share Posted May 28, 2011 Thanks for the info. Indeed i just got it to work in the money event. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now