This is a very simple set of scripts that overwrites the standard treasure generation scrips found in the Placables of the Toolset. Just import the .erf and then place your placeables from the standard toolset. That's it. Very easy. The treasure respawns at the following rates: Low treasure = 15 minutes Med treasure = 20 minutes High treasure = 30 minutes Also included is what I call an 'ItemGenerator' this is an extra simple script that can be used in the OnOpen event of a placeable to create a single item every 12 hours (in game time) The TAG of the placeable must be exactly the same as the RESREF of the Custom item you want to be generated. This works great for keys, notes, books, etc. I just wanted a simple way to keep items generating without a complex set of scripts, triggers and such. Anyway, this is my first script post, I hope this prooves useful for someone. Please let me know if there are bugs.
There is an Invalid Declaration Type Error on line 2624 that I cannot fix. Everything seems all right to me. So I was wondering if anyone could trouble shoot that?
Here is that line.
*SetLocalInt(OBJECT_SELF,"Looted",1);* Ignore asterisks.
Wonderfull scripting yet again, thanks for your contribution.
This looks like an excellent setup. I like nwn's basic loot gen system in a few ways except that stuff didn't respawn! This fixs this for my PW =D
I do have one oddity though. nw_o2_classweap doesn't compile. An error around line 2600ish. Can't se anythin wrong but then again I'm not that good at scripting =P
This looks like an excellent setup. I like nwn's basic loot gen system in a few ways except that stuff didn't respawn! This fixs this for my PW =D
I do have one oddity though. nw_o2_classweap doesn't compile. An error around line 2600ish. Can't se anythin wrong but then again I'm not that good at scripting =P
This is a compilation of the old system into a single score. There were 2 that made this score of 9.50 then rounded to 10.
Posted by Sister Kylie ( ..xxx.xxx ) at 2003-11-24 16:06:00
:-) Thank you for this! *Curtsey*
Posted by Sister Kylie ( ..xxx.xxx ) at 2003-11-24 16:02:00
A superb script - thank you! :-)
Posted by ragozine ( ..xxx.xxx ) at 2003-11-18 08:55:00
I'm an idiot. At least a scripting idiot; that's exactly what I was doing. Thanks a lot for your response and thanks again for the script.
Posted by Xuubraiel ( ..xxx.xxx ) at 2003-11-17 20:53:00
Ragozine,
You must be talking about the ItemGenerator script... Im not sure how it would make two of the items only the first time. Are you sure you didn't have one of the items inside your placeable, and then the script created the second? I've done that before. :) The line of the script that says
CreateItemOnObject(sItem, OBJECT_SELF,1);;
The 1 in the sentence is the number of items to create so I'm not sure how you got two.
Xuubraiel
Posted by ragozine ( ..xxx.xxx ) at 2003-11-16 14:15:00
This seems like a real nice and simple script, thanks a lot! I tried it out, got it to work except . . . when I put a unique item in the chest, I got two when opening. Afterwards it respawned correctly. I'm sure I did something simple wrong, would appreciate some help. Thanks in advance.
You must be Logged In to post comments in this section.