This is a very simple script which when pasted into the OnSpawn of a creature or creatues that you want to spawn treasure. The script first looks at the CR or Creature Rating of the creature in question. Then depending on the creatures CR it will have a certain percentage chance to generate various loot (low, med, high, boss). You can easily change the percentages to your liking! This is for people who want to add some spice to their loot drops but don't want to do anything too crazy and want to be able to control the amount of loot dropped easily. This 'should' work with any custom loot tables as long as the names of the custom tables are the same names as the old ones, example overwriting your old loot tables with the custom ones. Just add this into your void main near the bottom somewhere.
Posted by Anonymous ( 69.197.xxx.xxx ) at 2005-01-27 06:41:00
i get this error on line 71 no right bracket on expression. what would cause this
Posted by Anonymous ( 216.88.xxx.xxx ) at 2004-12-28 07:22:00
put this before main
#include "NW_O2_CONINCLUDE"
Posted by Anonymous ( 81.178.xxx.xxx ) at 2004-06-27 05:04:00
ERROR: UNDEFINED IDENTIFIER (GenerateTreasure)
This is what i get when i try to save it
Posted by SCRIPT WRITER ( 66.234.xxx.xxx ) at 2004-05-05 11:13:00
I *HIGHLY* recommend that you edit the % chances of the loot appearing and lower them because they are set pretty high in this script. Also feel free to comment out or change the sections that tell it how many items to give of that type (example it says d2 or d3).
You must be Logged In to post comments in this section.