[Help] Creating a GM Shop In Interlude
Posted: Wed May 02, 2007 6:52 am
is it possible? if so, can anyone help or create me a guide. I have updated my server and players are getting annoyed xD
L2J Server Discussion Board
https://l2jserver.com/forum/
Code: Select all
DELETE FROM npc WHERE id = 30976;
INSERT INTO npc VALUES
(30976, 30976, "Missy", 1, "GM Shop", 1, "NPC.a_traderB_FHuman", 8, "20,5", 70, "female", "L2Merchant", 40, 3862, 1493, "11,85", "2,78", 40, 43, 30, 21, 20, 10, 0, 0, 1314, 470, 780, 382, 278, 0, 333, 0, 0, 0, 55, 132, "NULL", 0, 1, 0);
Code: Select all
<html>
<body>
Trader Missy:
<br>
Greetings. Everybody needs the items that we sell here. So, why don t you take a look?
<br>
<a action="bypass -h npc_%objectId%_Buy 700">Buy Soulshots and Spiritshots</a>
<br>
<a action="bypass -h npc_%objectId%_Buy 701">Buy Consumables and Minerals</a>
<br>
<a action="bypass -h npc_%objectId%_Buy 702">Armor and Weapons.</a>
<br>
<a action="bypass -h npc_%objectId%_Buy 703">Buy Fashion items</a>
<br>
<a action="bypass -h npc_%objectId%_Sell">Sell</a>
<br>
<a action="bypass -h npc_%objectId%_TerritoryStatus">See the Lord and Tax Rate Information</a>
<br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body>
</html>
Code: Select all
DELETE FROM merchant_shopids WHERE npc_id = 30976;
INSERT INTO merchant_shopids VALUES
(700, 30976),
(701, 30976),
(702, 30976),
(703, 30976);
DELETE FROM merchant_buylists WHERE shop_id IN (700,701,702,703);
INSERT INTO merchant_buylists VALUES
(1464, 100, 700, 1),
(1465, 200, 700, 2),
--keep adding (item_id, price, shop_id, order),
(1785, 275, 701, 1),
(734, 1320, 701, 2),
--keep adding (item_id, price, shop_id, order),
(92, 8680000, 702, 1),
(603, 358000, 702, 2),
--keep adding (item_id, price, shop_id, order),
(8911, 1000000, 703, 1),
(8916, 1000000, 703, 2);
--keep adding (item_id, price, shop_id, order)
-- last entry ends with ; not ,
Code: Select all
DELETE FROM merchant_shopids WHERE npc_id = 30976;
INSERT INTO merchant_shopids VALUES
(700, 30976),
(701, 30976),
(702, 30976),
(703, 30976);
DELETE FROM merchant_buylists WHERE shop_id IN (700,701,702,703);
INSERT INTO merchant_buylists VALUES
(1464, 100, 700, 1, -1, -1, 0, 0),
(1465, 200, 700, 2, -1, -1, 0, 0),
--keep adding (item_id, price, shop_id, order,count,currentCount,time,savetimer),
(1785, 275, 701, 1, -1, -1, 0, 0),
(734, 1320, 701, 2, -1, -1, 0, 0),
--keep adding (item_id, price, shop_id, order,count,currentCount,time,savetimer),
(92, 8680000, 702, 1, -1, -1, 0, 0),
(603, 358000, 702, 2, -1, -1, 0, 0),
--keep adding (item_id, price, shop_id, order,count,currentCount,time,savetimer),
(8911, 1000000, 703, 1, -1, -1, 0, 0),
(8916, 1000000, 703, 2, -1, -1, 0, 0);
--keep adding (item_id, price, shop_id, order,count,currentCount,time,savetimer)
-- your last entry should end with ; not ,
Try with thistylerrrgs wrote:I received this error when executing the first sql file we created in this guide.
[Err] 1136 - Column count doesn't match value count at row 1
[Err] INSERT INTO npc VALUES
(31440, 31440, "Lanna", 1, "Consumable Merchant", 1, "NPC.e_traderB_FDwarf", 8, "20,5", 70, "female", "L2Merchant", 40, 3862, 1493, "11,85", "2,78", 40, 43, 30, 21, 20, 10, 0, 0, 1314, 470, 780, 382, 278, 0, 333, 0, 0, 0, 55, 132, "NULL", 0, 1, 0);
[Msg] Finished - Unsuccessfully
Code: Select all
INSERT INTO `npc` VALUES (31440, 31440, 'Lanna', 1, 'Consumable Merchant',1, 'NPC.e_traderB_FDwarf', 8, 20,5, 70, 'female', 'L2Merchant', 40, 3862,1493, 11,85, 2,78, 40, 43, 30, 21, 20, 10, 0, 0, 1314, 470, 780, 382, 278,0, 333, 0, 0, 0, 55, 132, NULL, 0, 1, 0, 'LAST_HIT');
Code: Select all
INSERT INTO `npc` VALUES (101010, 31440, 'Margie', 1, 'Consumable Merchant',1, 'NPC.e_traderB_FDwarf', 8, 20, 70, 'female', 'L2Merchant', 40, 3862,1493, 0, 0, 40, 43, 30, 21, 20, 20, 0, 0, 1314, 470, 780, 382, 278,0, 333, 0, 0, 0, 30, 132, NULL, 0, 0, 0, 'LAST_HIT', 0, 0, 0, 'fighter', 'false');