This is just a basic script any scripter should be able to do. But I thought I would place it on here for any of those beginner scripters, like myself. So they can take it, use and change it, or even learn from it.
I placed in on here, because I am learning to script and I believe that the scripts I personally write myself should he shared, to other newbies to NWScript. So here it is.
Basically what this script does is when a player enters an area, the script checks for there playername, cdkey and ip address.It sends the information to the player and also to all DMs on the module.
If you have alot of players on your mod, your DM channel can get rather over crowded, so I would reccomend this for small modules.
You can change, add or do what you like with this script. Just copy and paste from the code area, and place into your OnEnter of area or Module.
I only recently, like a few months ago, implimented a login script, that writes a timestamp, and database entry of the entering players Player Name, Character Name, IP Address, and Public CDKEY. The ordinary log entries of NWN are not that detailed, meaning you could end up having someone troll your Persistent World, logging in from different player Names etc. Sure, their public CDKey appears in the login event, but there are methods of getting that changed, not all of which requires the purchase of new CDkeys.
I personally store player logins to a MYSql db, to keep track of the IP address they log in from. Its more for a preventative reason. In case a player does start trolling, or being abusive, at least I will be able to tell if they are logging in from a different Ip address as another login etc. In most cases, if someone is Banned, that means THEY are banned, not their login. They shouldnt be able to simply get a new CDKEY and expect a warm welcome without recompense.
Thanks, fors the comments... great to see a supportive bunch on NWN.
Posted by Saduj at 2009-06-01 15:35:46 Voted 10.00 on 06/01/09
Welcome to the world of Neverwinter Scripting! lol
Well done for a "newbie" scripter, I'm using this for my server in fact :)
A good "extra credit" way to expand this code would be to SetLocalInt() the values on a player, and make a DM/Admin/Mod tool to GetLocalInt() values, as well as write to the server log upon login.
Happy scripting, and don't let negative comments ever get you down!
My first comment = "Posted by Anonymous ( 203.173.xxx.xxx ) at 2005-03-28 22:07:00
what, you think you can just do a retexture of the bioware blades and think your leet? ack.
Make some new models and learn to texture bro.
this sucks lama +blocked+."
Whether or not this or other submissions gets used by anyone is a moot point. That you are trying to learn and willing to share what you accomplish however is what makes most of the NWN Community a great bunch to interact with. Don't let the negative comments dissuade you ... or the praise go to your head either. Just make stuff and share what you wish .... and foremost, have fun. _________________________ The Savage Frontier and Surrounds - NWN PW based in the Forgotten Realms: Link
Oops, didn't notice that, and I wasnt sure where to place it, this is the first thing I have posted onto the vault. Whether it is useful or not, is up to the module builders, this was mainly placed here to show people how things can be done, I have been learning NWScript for about a week now, and just wanted to post my first real script I did on my own.
It's got better indentations that the script generator produces. That's something good.
I don't know how useful this would be to someone just starting out, so in that respect I can't judge this. (That's not a polite way of saying I think it's not useful -- I really don't know.) However, I do question how those people would find this. If its purpose is to demonstrate how things can be done, shouldn't it be in the "Tutorials" category?