Randomize Loot drops
Is there a way to randomize loot among mobs other than the D2Loot tool, which right now is out of commission for this revision as of right now. Im trying to get it so any mob has a chance of dropping any item. Is there some simple query I could run to add all items to the loot tables of every mob?
Edit: I also don't care about no drop status or required levels since all these restrictions will be removed. |
it's not exactly 'simple', but you can add random loot to mobs via perl scripting without touching the original loot tables or the database at all.
example: i've got mine set up for a small chance at a single extra item (not visible to player - npc does not equip item) based on the npc's level. it's limited to npcs with existing loot tables (also controlled via script). the player gets a message indicating something is special about the encounter when they initially engage an npc with extra loot, and if the kill is trivial, the loot gets removed (the player gets another message). i had to make a slight source code modification to allow for the removal of loot before the corpse was created and a python script to automatically add the required lines in every single existing npc script, but it was well worth it. |
I'd write the query for you, but that's like giving a man a fish.
|
Quote:
|
this is a trimmed down version of the plugin i use to give a random item to an npc.
Code:
#!/usr/bin/perl Code:
import os, sys |
I have been trying to add in a extra chance of random loot and my last thing I tried ended up in disaster. But now the back up files are loaded I ran across this thread and it was a bit more tailored for what I was interested in.
The first part I got done, made a plugin GetRandomLoot but I am having problems with the Python script. I have Python 2.7 and been getting invalid syntax. python additem.py SKIPPING: .keep [not a directory] SKIPPING: .svn [hidden directory] CURRENT ZONE: abysmal Traceback (most recent call last): File "additem.py", line 73, in <module> parseScript(os.path.join(zone, script)) File "additem.py", line 45, in parseScript modEventDeath(content) NameError: global name 'modEventDeath' is not defined That is what I get when the bottom Script is ran. Hmmmmm, trying to make heads or tails of code is tough this late at night. Maybe in the morning it will be a bit clearer. Any clue to point me in the right direction would be much obliged. I really want to thank you c0ncrete and all the others that post so many examples of code to help us nonprogrammers. I have been trying to pick up some now and then (I can do Hello World in Python) but hard to with family and work taking up much time. Ruyen |
Think I got it figured out. Good night's sleep helps.
|
All times are GMT -4. The time now is 02:25 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.