Titaniumsoul Posted November 7, 2009 Share Posted November 7, 2009 if anyone can post a script on how to do this: when you open a certain book you gain a key. i'v seen this done before so if anyone can post the script thank you! Link to comment Share on other sites More sharing options...
Branimirzg Posted November 7, 2009 Share Posted November 7, 2009 attach script to the book SCRIPT=======================scn "scriptname"begin onaddif getcontainer == playerplayer.add item -id- endifend Link to comment Share on other sites More sharing options...
Titaniumsoul Posted November 7, 2009 Author Share Posted November 7, 2009 ok I got like 6 warning signs when I try to save it Link to comment Share on other sites More sharing options...
Branimirzg Posted November 7, 2009 Share Posted November 7, 2009 what warnings? Link to comment Share on other sites More sharing options...
Pronam Posted November 7, 2009 Share Posted November 7, 2009 I've hit the button at the other topic, you've hit the submit button twice. scn scriptnamebegin onaddif getcontainer == playerplayer.additem -id-endifend Fill those in yourself to the relevance and there was a little space at additem. Link to comment Share on other sites More sharing options...
Branimirzg Posted November 8, 2009 Share Posted November 8, 2009 hmm... :biggrin: It's the same script i gave him...And hi has problems Woops...I see now...sorry its player.additem not player.add item Thanks Pronam Link to comment Share on other sites More sharing options...
Pronam Posted November 8, 2009 Share Posted November 8, 2009 LOL, I did use yours, I just used Bold Italic and underline to show where the op probably hasn't filled in anything and that little fixy :). If it was mine I would have done this: Open up the script-editor and get a new one.After scn, place the name of your script. Remember it as you're going to refer back to it at the book.After Player.Additem, put the ID of the Key as it shows up in CS (NOT the name.) If you haven't created a key, do so right now. Let's say its called MyBookKeyscn MyKeyBookScript Begin OnAdd If getcontainer == player Player.Additem MyBookKey Endif End After this is finished, create the book and add this script from the dropdown. It's better to be over-elaborative...that saves a few posts is my experience ;D. Link to comment Share on other sites More sharing options...
Branimirzg Posted November 8, 2009 Share Posted November 8, 2009 hehehe...cheater :P Link to comment Share on other sites More sharing options...
Titaniumsoul Posted November 8, 2009 Author Share Posted November 8, 2009 ok thanks it worked =) Link to comment Share on other sites More sharing options...
Recommended Posts