Commche's Random Loot Generation System v1.1 (final)
(corpse system built in)
(socketed item system built in)
Corpse System (Blackfield's)
- Corpses generate a pool of blood
- Corpses clean themselves up after a set amount of time
- After looting or if a corpse expires, bones are left (looks pretty cool to return to the battlefield and see all the bones)
- Raisable corpses
- The system doesn�t touch default nw scripts. All you need is one command in the ondeath script (LeaveCorpse())
Loot Generator
- All loot types are generated: weapons, armor, jewellery, potions, scrolls, rods/staves, misc wearables (boots, cloaks etc)
- Loot is color coded and named based on the quality of the item
- The quality of the loot is determined by the level of the creature using a quality range system
- Wearable loot is generated with a variety of different names
- Chance for socketed, worn and broken items
- Chance for extra powerful item (1 in 5000 is default)
Socketed Item System (Scarface's)
- This is built into the loot system
- Socketed items will drop with a randomly chosen number of sockets (up to a max of 6)
- Socketable gems will be generated under the item quality system conditions
- Number of sockets left (next to the item name) is updated after using gems
- Socket and gem variables are reassigned to exported chars with such items on them or in their inventory (when they reenter)
Magic Level: See the screenies for typical drops. These were the first thing that spawned in the chest after changing the quality rating.
At the moment it's configured for my upcomming hack n slash mod. It's kind of low magic to begin with but gains momentum as you level.
You would only need a little scripting knowledge to tweak it to suit your tastes.
The system is quite random. For example, you could get an enchanted drop at lvl 30 or if you are lucky, a powerful one at lvl 7. There is always the chance of a broken item too. Worn and broken items won't drop from the chests in the demo. Only from the creatures.
Note* While module ready, this is a FRAMEWORK only. You can configure it as you like. Please email me at [email protected] if you need my help. I would be more than happy to expand, customise, tweak and help you get it to do exactly what you want it to.
the download is a .zip file, so mac users can also enjoy this system!
* Now included *
Item Sets
=========
- Class specific
- Incremental Set Bonuses
- Set Completion Bonus
- Dynamic No Of Set Items Possessed (displayed on each set-item that you possess)
- Set Bonus Effects
- Set Completion Effects
- Multiple Set Wearing
eg #1: You could possess 3 of the 6 mage set pieces and next to each of that set item's name would be "(3/6)". At the same time you could also have 2 of the 4 warrior set pieces which would be displayed as "(2/4)" in the name on EVERY set piece from that set in your possession.
*This is dynamically updated each time you acquire or drop a set-piece
eg #2: You could be wearing 4 of the mage's set for +INT and concealment whilst st the same time wearing 2 of the fighter's set for the +STR bonus
(not that you'd really want to - just an example)
Version History
===============
1.1 Changes:
- added 5 more monk glove appearances
- added 12 more monk glove names
- Fixed bug where broken or worn items come up as "Broken Armor" rather than using the name of the item
- added an excel doc with all of the generation data to help with the design phase of customisation.
1.2 changes
- fixed a bug where monk items dropped based on GetFirstPC() rather than GetLastKiller()
- fixed the animation bug where player stands up before finisging looting
- fixed a randomizing bug in the misc item dropping system
- added framework for ItemSet system (its all greyed out so it won't affect anything)
2.0 changes
- fixed item property duping which caused incorrect quality ratings
- revamped the quality naming convention
- fixed ranged & ammo property generation system
- increased ranged weapon drops for balancing
- implemented class item sets
- updated socketed items system
- load optimization for PWs
Also, @ thatrandomguy. Nice find. Wow, the drops sometimes made me wonder, but never marginally enough to set me on a bug hunt. Very nice work indeed. Cheers for fixing my more broken than realized system! _________________________ Modules: Shadows of Darkmoon The Arena of Champions Dragon's Bane Scripts: Random Loot Generation System v1.0 Supernatural Subrace System PW Monk-speed balancer
Posted by commche at 2012-04-0812:41:33
Its possible, but would require quite a bit of reworking. The module that it was written for actually applies random effects on the default weapons of monsters directly and buffs or debuffs them. Onspawn loot generation and equip scripting is a bit inefficient in terms of optimization, so considering that this system was designed to cater for persistent realms, I opted for a more optimal loot generation system. Definitely doable, but a tad cpu intensive given that the engine itself wasn't designed around the processing power that we enjoy today. _________________________ Modules: Shadows of Darkmoon The Arena of Champions Dragon's Bane Scripts: Random Loot Generation System v1.0 Supernatural Subrace System PW Monk-speed balancer
Posted by Daijin at 2011-11-2320:37:32
Anyone know how to set this up so it generates loot onspawn instead of when dying? So the mob can use the items generated? _________________________ Dream Well, Faith, Loyalty, Truth, Honor, Friendship always..... Daijin Dreamweaver, Leader of the Dream Warriors for 32 years, going strong. Nwn The Dunjon Shard: Link
Posted by ThatRandomGuy00 at on09/01/11
A well done script, albeit with a few errors in the sd_lootsystem script that's in the .erf, A glaring one considering it's what controls the item quality's coloring and naming; and by default it'll make everything in a particular level range correspond with the quality of that type, ala: iRange1=Superior (1-5) iRange2=Enchanted (6-10) iRange3=Powerful (11-19) iRange4=Master's (20-29) iRange5=Epic (30-40) Basically meaning if you kill something in say, the iRange 4 level range, the item dropped will ALWAYS be a Master's item, [4 enhancements] as opposed to what it actually is [It may actually have 6 enhancements on it.] And the same applies to every range with the corresponding item quality the same number represents. To fix this, open up sd_lootsystem and search for the line: SetQuality(oItem, sIName, iRange); You'll see it a couple of times in the script, and it's pretty obvious where, but.. To simply fix the problem, replace the "iRange" in every instance that comes up in sd_lootsystem with iQual, so that they all look like SetQuality(oItem, sIName, iQual); And voilà, properly named and colored items that correspond to the amount of enhancements they actually have, not the level range they were found in.
Posted by Fleshmelter at 23:19:32 Voted10.00
Heh, been using your script for ages on my PW. Currently undergoing some heavy overhaul, but should be up and running by mid week. _________________________ PW Action Server: | Chaosgate |
Posted by commche at 2011-07-2311:43:15
Have to be curious though. Nothing under your user submissions. Would love to know what server / mod your running the loot system on! Top secret? _________________________ Modules: Shadows of Darkmoon The Arena of Champions Dragon's Bane Scripts: Random Loot Generation System v1.0 Supernatural Subrace System PW Monk-speed balancer
Posted by commche at 2011-07-2311:41:22
Thanks! Im flattered that you have gotten extensive use from my loot system. _________________________ Modules: Shadows of Darkmoon The Arena of Champions Dragon's Bane Scripts: Random Loot Generation System v1.0 Supernatural Subrace System PW Monk-speed balancer
Posted by borojb at on07/11/11
Great tool to use straight out of the box, very flexible, easy to modify (if needed). I've used this, or a modified version(s) for years. Thanks alot for a great resource, and sorry I'm only voting now.
Posted by ryuhi2000 at 2011-06-2616:48:22
commche would you be email to send me a copy of this with only the loot generation feature? I don't really want or need any of the other features? My email is joesipos@gmail.com
Posted by commche at 2011-05-1009:10:09
props to the mods for removing all the spam. much appreciated! _________________________ Modules: Shadows of Darkmoon The Arena of Champions Dragon's Bane Scripts: Random Loot Generation System v1.0 Supernatural Subrace System PW Monk-speed balancer