[RELEASE] Petshop!

Nice release but id remove the delete shop id bit just in case it was something important instead just upload some stupid number into it lyk 60000 then it wont be a problem

Also u need add this above the "INSERT INTO shopitems (shopid, itemid, price, position)" bit

Code:
INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(shop id goes here, npc id goes here);

Anyways nice work :thumbup:
 
but the npc has to have the shop id to match i dont know how to make an npc into a shop <-- nubness i know lol i soo nub with java but like i dunno how to change a normal npc like thmas into a shop seller i d k if thats even possible so i was like use a shop u dont want and replace it ... if there is a better way im sure there is please tell me lol
 
but the npc has to have the shop id to match i dont know how to make an npc into a shop <-- nubness i know lol i soo nub with java but like i dunno how to change a normal npc like thmas into a shop seller i d k if thats even possible so i was like use a shop u dont want and replace it ... if there is a better way im sure there is please tell me lol

ok... well its just a suggestion because u dont want lyk some random pot shop to go missing?

For the next bit. To make an npc a shop isn't to hard because the SQL that you run overides the script files within the source (unless the npc is incompatible which is rare i might add) so what u do is run something lyk this at the beggining of ur or end of the sql;

Code:
INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(1940, 1052002);

The shop id doesn't really matter aslong as it doesn't already exist. But see the npc id bit? that bit means that the npc id you inserted will open the shop when clicked on. So overall the code should look something like this;

Code:
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070000, 10000, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070001, 250000, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070008, 500000, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070002, 650000, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070009, 650000, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070012, 800000, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070013, 1500000, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070003, 1650000, 8);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070010, 1700000, 9);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070011, 2000000, 10);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070004, 5000000, 11);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070005, 15000000, 12);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070006, 25000000, 13);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070007, 35000000, 14);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070016, 50000000, 15);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (1940, 2070018, 75000000, 16);

INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(1940, 1052002);

That one is a custom star seller (from seans repack) + them 30 attack stars at the bottom. So what happens when u run that is JM From Da Streets (which is the default seller in this case) will no longer function as an item creator but as a shop (same as a pot shop).

Anyways hope that was some help but don't u use titan source anyways (c++) :/:
 
i use odin i used to use titan source back in the day.
moved to vana in its baby stages when it wasnt so good and i dont feel like goign back but yeah wow thanks for this major upgrade on my script tommrow i will test and fix it up! again i owe u haha do u have msn?
 
i use odin i used to use titan source back in the day.
moved to vana in its baby stages when it wasnt so good and i dont feel like goign back but yeah wow thanks for this major upgrade on my script tommrow i will test and fix it up! again i owe u haha do u have msn?

=s lol that isn't your script i just posted some random shop (i fink its was the star shop :S) i had but if u lyk i can fix urs :ott1:
 
yteah i know thats not my script lolz i ment ied fix mine i wanna fix mine no better way to make sure i learn it is if i do it myself :] but its late and i have school tommrow itll have to wait till tommrow
 
yteah i know thats not my script lolz i ment ied fix mine i wanna fix mine no better way to make sure i learn it is if i do it myself :] but its late and i have school tommrow itll have to wait till tommrow

Hahaha bummer aye. O well i was jus making sure xDD and yer btw i do have msn xD anyways have fun at skewl :ott1:
 
Back