Help With Random Loot Per Kill
Does anyone have a custom code to help with a chance to drop completely random loot after each kill? I have seen some things where it essentially rolls a dice and if you score higher than a number, it puts a piece of gear on the corpse or summons it.
I am new to this coding on the server, so please put it in noon speak:-). Wasn’t sure if this was done in the database tables or a .pl or .lua file. |
We have global loot tables.
|
How do you do that? Ultimately just trying to get random loot from any mob in any way shape or form. Wanted to play 1-60 with a few friends and thought it would be fun.
|
http://wiki.eqemulator.org/p?Diablo_...ster_Reference
And here is the example given in the wikki for using the plugin::AddLoot(amount, chance, @itemarray) Code:
sub EVENT_SPAWN{ |
Here is what I'm running on Anon. I know it could be tweaked better by an expert, but this works. Just change the ids to the range of items you want for the zone.
My default.pl from the zone warrens that drops crude defiant weapons and armor. Its a modified version from this link. http://www.eqemulator.org/forums/showthread.php?t=38286 Code:
|
Quote:
|
I've been using this for a few years now. Mostly to prevent the farming of greens for random drops.
Code:
sub EVENT_SPAWN { |
With the most recent updates to PEQ Editor you can now edit the actual loot tables from the global loot editor.
Hit the Loot tab, then click global loot, and you should be able to add or edit existing global loot entries. This doesn't do scripted remove like n0ctrnl posted, but it does do the stuff in spawn (and more!) |
Quote:
I only use the PEQ editor in EOC and don't see this feature. I guess its coming in the near future? I have been testing the script from N0ctrnl on Anon (Solo) where I also have gobal enabled on defiant. Any other suggestions on how to add to the global loot tables without PEQ? Editing was not a problem just looking up the loot table id's but adding new items manually to the table is what I'm looking for ideas on. |
Is there a working version of this floating around? Links to the old wiki are dead and gitbook has a link to GeorgeS's Tools website, which is also now gone.
|
This still seems to work.
Code:
sub EVENT_SPAWN { |
I know it could be tweaked better by an expert, but this works.
Just change the ids to the range of items you want for the zone. My default.pl from the zone warrens that drops crude defiant weapons and armor. Its a modified version from this link. Code:
http://www.eqemulator.org/forums/showthread.php?t=38286 Code:
sub EVENT_SPAWN { |
Heres a simple way of doing that where level is taken into account.
Note youll have to change some of it since its tailored to a custom server but left in comments to debug and explain what each part does :) Code:
function event_spawn(e) |
With the most recent updates to PEQ Editor you can now edit the actual loot tables from the global loot editor.
Hit the Loot tab, then click global loot, and you should be able to add or edit existing global loot entries. This doesn't do scripted remove like n0ctrnl posted, but it does do the stuff in spawn (and more!) |
All times are GMT -4. The time now is 02:52 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.