The vendors are spawns from 0-49 what is with the other vendors?
Printable View
The vendors are spawns from 0-49 what is with the other vendors?
Seg....
The error would seem to indicate that your table structure maybe wrong to import the dump file.
Have you run the query at the very start of this topic (page1) before attempting to run the custom shop stuff?
Only problem I have is when the NPC spawn they run around and try to kill stuff, but at least it works I guess.
Itemextendedcost refers to itemextendedcost.dbc, setting it 100 would correspond to... 100,0,0,24245,0,0x0,,,1,0,0,0,0, requirement of item 24245 to buy the item. Please don't try to be smart and set them like that... read itemextendedcost.dbc before making suggestions to people using my vendors, so that your info can atleast be accurate.
He wants everything to cost 100 gold or something, similar to a query like this:
Code:UPDATE items SET buyprice = '1000000' WHERE entry IN (SELECT itemguid FROM vendors);
yeap ... i did ... the thing is i use ascent 989 because any higher core will make at the start of ascent.exe to say that creature_loot is using old don't know ... and there are no npc on the server ... so i'm using this core with Rev 8 ... but that character erorr always appear
sorry for my bad english
thanks a lot i kinda knew this was it i just wanted to be sure.. anyone that can tell me all tier guids ?
the thing is i wanna make
1. all tier 3 pieces cost 40g
2. all tier 4 pieces cost 60g
3. all tier 5 pieces cost 80g
4. all tier 6 pieces cost 100g
i have to write 4 queries and put all guid items from that shop. does anyone did this before? si i don't have to work that much ? :-s :D
Here you go:
Code:UPDATE items SET buyprice = '400000', itemextendedcost = '0' WHERE entry IN (SELECT itemguid FROM vendors AND vendorguid = '50005');
UPDATE items SET buyprice = '600000', itemextendedcost = '0' WHERE entry IN (SELECT itemguid FROM vendors AND vendorguid = '50006');
UPDATE items SET buyprice = '800000', itemextendedcost = '0' WHERE entry IN (SELECT itemguid FROM vendors AND vendorguid = '50007');
UPDATE items SET buyprice = '1000000', itemextendedcost = '0' WHERE entry IN (SELECT itemguid FROM vendors AND vendorguid = '50008');
thanks a lot.. this is very helpfull... i thought i had to update all items id to to buyprice which will have resulted in a lot of work.very good solution, change all items in a vendor :D.. thanks a lot
NEW ISSUE
how can i save a sql with the vendors that i spawn in-game as i delete the database very often to upgrade it..... i mean how can i make a sql batch file with my spawns form in-game... assuming i spawn them in game cause i don't know coordonates to use in vendor_custom_spawn.sql.... get it ?
Here:
Then export, only problem is that when you spawn my vendors, theres a delete query, so just dont use my spawn query anymore if you have your own.Code:SELECT * FROM creature_spawns WHERE entry BETWEEN '50000' AND '50080';
i'm just gonna deleteform u;r spawns as i would like them in gm island too .... thanks a lotCode:DELETE FROM creature_spawns WHERE entry BETWEEN '50000' AND '50080';
Channel_49
there is a bug in your change display query that comes with 3.0a.
You included creature_proto instead of creature_names.
It should look like this...
Code:UPDATE creature_names SET displayid = '21178' WHERE entry between '50000' and '50080';
UPDATE creature_spawns SET displayid = '21178' WHERE entry between '50000' and '50080';