SQL Query/update to add item to all NPC's 35 and higher
Could really use some help with this query, I'm trying to figure out a way to add a specific item id with a 1% drop rate to all npcs level 35 and over.
I've got this so far Code:
select * from npc_types where `level` > 34 Help me eqemu community, you're my only hope. |
Would be 100 times easier to script this than do it in the database. In the database you would have to create a loot drop, then add it to every NPC's loot table and/or create a loot table if they don't already have one - or if they share one with NPC's that are under level 35.
If scripting it, you can just add it to global_npc.pl and do something like; Code:
sub EVENT_DEATH { |
This should work if you put it in the global_npc.pl file. the 12345 is whatever itemID (Untested of course)...
this also will not allow pets to get the item... Code:
sub EVENT_SPAWN{ |
Thanks, new to the idea of scripting drops but yeah, that seems a lot easier.
|
Ok, I have the following in C:\eqemu_server\quests\templates\global_npc.pl
Code:
sub EVENT_SPAWN{ But I can't seem to get my item to drop even after several tests, what am I missing? |
It's in the wrong folder, it needs to be in global folder
|
Woot, worked, thanks much.
|
All times are GMT -4. The time now is 12:42 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.