FAQ   Search   Memberlist   Usergroups   Register   Profile   Log in to check your private messages   Log in 

[Help] Vendors sell only one of each item

 
Post new topic   Reply to topic    [elements] Forum Index -> Trashcan
View previous topic :: View next topic  
Author Message
Happy
Grunt
Grunt


Joined: 08 Nov 2007
Posts: 13
Location: South Africa

PostPosted: 11/11/2007 13:54    Post subject: [Help] Vendors sell only one of each item Reply with quote

I dont know what to do anymore guys please help.

All the items sold by vendors can only be bought once. Which means one empty vial for example... How do I fix this? Which fields do I edit ad to what must I change them?

Im using the Project Silvermoon database
Back to top
View user's profile Send private message
Wizlock
Sergeant
Sergeant
Wizlock

Joined: 16 Jan 2007
Posts: 50

PostPosted: 13/11/2007 14:17    Post subject: Reply with quote

using sqlyog:

in the "npc_vendor" execute:
Code:
update table_name set column_name=0

the "maxcount" column is for the vendor items quantity, don't forget to check the show all box.
_________________
[URL=http://elementsunited.myforum.ro/profile.php?mode=viewprofile&u=263][Help] Vendors sell only one of each item[/URL]
Remember to take all things in moderation (even World Of Warcraft!)
Back to top
View user's profile Send private message
Alizee
Main Administrator
Main Administrator
Alizee

Joined: 16 Aug 2006
Posts: 858
Location: Onesti

PostPosted: 13/11/2007 21:48    Post subject: Reply with quote

Wizlock wrote:
using sqlyog:

in the "npc_vendor" execute:
Code:
update table_name set column_name=0

the "maxcount" column is for the vendor items quantity, don't forget to check the show all box.



good but very not understanding ... and in this case all vendors will sell the given maxcount and will be applyed to all items
ex.
Code:
UPDATE `npc_vendor` SET maxcount=<value>;



execute this query type:

Code:
UPDATE `npc_vendor` SET maxcount=<value> WHERE item=<value>;


where maxcount value is max item count that the chosen vendor will sell
this is a global query for specific vendor query use :

Code:
UPDATE `npcvendor` SET maxcount=<value> WHERE item=<value> AND entry=<value>;

_________________
AuF_KEn - Trance/Techno/Progressive
LISTEN TO: [URL=http://myspace.com/aufken]AuF_KEn[/URL]
-----------------------------------------------------------
Elements Fonder~!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    [elements] Forum Index -> Trashcan All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro