Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-26-2013, 12:54 PM
werebat's Avatar
werebat
Hill Giant
 
Join Date: Oct 2010
Posts: 143
Default Add Skinspike Potions

I wrote this to add the skinspike potions to the PoK potion vendors. I use the peqdb and it works great. I run a private server and wanted to be able to buy these when I dont have a shammy.

Code:
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes I'), -100, 0, 0 from npc_types n where name = 'Elwin_Razorfur';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes II'), -100, 0, 0 from npc_types n where name = 'Elwin_Razorfur';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes III'), -100, 0, 0 from npc_types n where name = 'Elwin_Razorfur';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes IV'), -100, 0, 0 from npc_types n where name = 'Elwin_Razorfur';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes V'), -100, 0, 0 from npc_types n where name = 'Elwin_Razorfur';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes VI'), -100, 0, 0 from npc_types n where name = 'Ralkor_Stoneclaw';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes VII'), -100, 0, 0 from npc_types n where name = 'Ralkor_Stoneclaw';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes VIII'), -100, 0, 0 from npc_types n where name = 'Ralkor_Stoneclaw';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes IX'), -100, 0, 0 from npc_types n where name = 'Ralkor_Stoneclaw';
insert into merchantlist (merchantid, slot, item, faction_required, level_required, alt_currency_cost)
 select n.id, (select max(slot)+1 from merchantlist where merchantid = n.id), (select id from items where name = 'Distillate of Skinspikes X'), -100, 0, 0 from npc_types n where name = 'Ralkor_Stoneclaw';
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:03 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3