View Single Post
  #2  
Old 12-15-2011, 02:37 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

You can mass assign loottables by zone using the following as long as the npc's follow the default numbering scheme.

This will set all npc's loottable_id in Plane of Knowledge(202) equal to X. The default starting point for npcid numbers is zoneidnumber * 1000. Generally the last npcid for any zone is ((zoneidnumber * 1000) +999).

Code:
update npc_types set loottable_id = X where id >= 202000 and id <= 202999;
There are probably other ways or even better ways to do this but I can't think of any atm.
Reply With Quote