Akka's Diablo Loot Generator Script
This thing is pretty much the shit, it's a few years old but I've compiled it for all the people who have been wanting it over the years.
It is as is, have fun. http://wiki.eqemulator.org/p?Diablo_...ster_Reference :D |
Quote:
I liked how randomization was handled in UO for magic items. It wasn't so all over the place in terms of "RNG is RNG" randomization Diablo's known for. http://wiki.uosecondage.com/Item_ID |
Quote:
|
Quote:
|
Hmmm never mind then I guess it's more flexible than I was thinking or understand it at least. I'll have to read the wiki on it in more depth at some point.
|
Knowom, I've stolen this and modified it to include chance drops, let me know if you'd like me to post.
|
Quote:
|
I don't even know, I broke the script lol.
|
Attempting to run 'perl DiabloLoot.pl' from my Server dir and am receiving:
DBI connect(':localhost:3306','',...) failed: Access denied for user 'ODBC'@'localhost' (using password: NO) at DiabloLoot.pl line 35 DBI connect(':localhost:3306','',...) failed: Access denied for user 'ODBC'@'localhost' (using password: NO) at DiabloLoot.pl line 36 I've installed ppm install http://www.bribes.org/perl/ppm/DBD-mysql.ppd Am I missing something with my connect configuration? |
Quote:
|
I was under the impression the script looked inside eqemu_config.xml for DB credentials.
If this isn't the case, does DBI need to be configured in some manner? |
If it isn't looking into your eqemu_config.xml, yes, it will need the same database information used within the eqemu_config.xml.
|
It should read from the config file assuming it can find it in the current directory. If not it should print ""Unable to open config: eqemu_config.xml"
You could always modify the script to print what it found for those variables so you can maybe figure out where it went wrong. |
ok trying to learn how to do all this so bare with me ... I followed what I could from the wiki and I have the diabloloot.pl in the plugins folder of my server but how do i run the script? i get this when i try ... DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 109.
DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 95. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 97. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 99. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 105. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 107. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 109. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 95. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 97. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 99. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 105. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 107. DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 109. Generating General Loot... Please wait... DBD::mysql::st fetchrow_array failed: fetch() without execute() at Diabloloot.pl line 137. Items Processed: 0 DBD::mysql::st execute failed: No database selected at Diabloloot.pl line 186. Generating Augments Loot... Please wait... DBD::mysql::st fetchrow_array failed: fetch() without execute() at Diabloloot.pl line 189. Loot has been successfully generated Items Processed: 0 Job took 1 seconds C:\EQ\EQEMUServer> |
If you have DiabloLoot.pl in your plugin folder need to move it your your actually server directory folder in order to run it properly.
|
Yea i did that already I got the errors i posted above ... sorry thought i posted that...
|
Did you copy and paste the script out of the Wiki or did you go to the Pastebin?
You need to copy it from the Pastebin because there are some characters that mess up the parsing of the script in the Wiki. |
I got it from the wiki... what is or where is the pastebin?
|
Quote:
Make sure you run the script command line in the server directory, as in 'cd' to the directory and then run the script inside the directory. |
I did that .... this is what i did ... cd C:\EQ\EQEMUServer then it went to
C:\EQ\EQEMUServer> perl Diabloloot all and i got all those errrors.... am i suppose to put my database pw in or something like that ? and this step :•You will need this START and END code placed in your EVENT_SPAWN routing in your global_npc.pl, so that when your NPC spawns, the loot table can be added .... i cannot find a global_npc.pl in my server folder anywhere |
The global_npc.pl file is located in c:\EQ\EQEmuServer\Quests\global directory. Edit it with Notepad++ or whatever text editor you prefer.
This is a copy of what is in mine. I hope this helps. Code:
sub EVENT_SPAWN |
yea its not in mine ... only thing i have in there is global_player.pl
|
If you are using Notepad++ just click on New and copy and paste the code I posted above into it, then do a Save as, as global_npc.pl
Make sure you change the Save as type line under where you type in the file name to All types (*.*) and save it to the global folder. That will create the file. |
OK i got that file now but I still get the same errors ... execute failled no database selected at DiabloLoot.pl
|
I had issues with it parsing the info from my config file. I know this is because I have something wrong somewhere but I was able to get it to function by just commenting out the parser section like this:
Code:
# CONFIG VARIABLES - Parsed from eqemu_config.xml Then I manually added my db username and password to lines 35 & 36, like this: Code:
if(!$connect){ $connect = DBI->connect($dsn, USERNAME, PASSWORD); } |
I checked into these connection issues as they are long overdue.
There was an issue with the config parsing section which I've used hundreds of times but somehow some characters got messed up in the Wiki source editor. Here is the script, download it in raw here: http://wiki.eqemulator.org/i?Module=...Paste=o5AoEbke And, I've updated the Diablo Loot Generator documentation which you will need to read because it relies on the tables and information in the page. http://wiki.eqemulator.org/p?Diablo_...nerator_Script Enjoy |
Working now
|
OK my question is do i need to run it everytime i turn the server on?
|
Quote:
It creates thousands of loot tables based on the cust_npc_loot_scale definition table, that should have all been mentioned on the page. |
I did read that but wasnt sure what it ment exactly ... it creating thousands of loot tables means the mobs will have random loot on them now where as in my server most of them didnt drop anything? If so that is awesome
|
Corrected another issue where maxlevel was hitting a out of range value, I had this set to 250 on my server but the PEQ DB is 127 IIRC.
Redownload from the paste and you should be good to go. |
Ok testing this out right now and im in Qinimi killing lvl 50-60 stuff ... each mob drops atleast two high end 80s+ gear every kill
|
Quote:
|
got it thanks
|
hmm the changes are not taking effect... i put the loot chance to 0.05 which should be a 5% chance drop and it still droping every kill
|
Quote:
|
Yes serveral times ... it took the HP changes and is now set up decently for my server but wouldnt slow down the drop rate
|
Quote:
|
No I have the multiplier set at 2 ... isn't that just the number of items it can drop?
|
Ok I tried what you said and changed the multiplier to 1 but it still drops every time i kill ... nothing changed. any other suggestions?
|
All times are GMT -4. The time now is 03:43 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.