Z e r o Posted September 12, 2013 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 97 Reputation: 0 Joined: 02/11/13 Last Seen: September 14, 2017 Share Posted September 12, 2013 query to find all character that has item item im looking for XD cant find the table for the equipped items XD Quote Link to comment Share on other sites More sharing options...
Patskie Posted September 12, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 20 hours ago Share Posted September 12, 2013 SQL : Execute this on your database : SELECT CONCAT(`char`.`name`, " has item ", `inventory`.`nameid`) "Character Name" FROM `inventory` JOIN `char` ON `inventory`.`char_id` = `char`.`char_id` WHERE `inventory`.`nameid` = '2301'; Change 2301 to whatever item id you wishes to look for. Note also that this is only for inventory. Storage, auction, mail etc. is a different story. Quote Link to comment Share on other sites More sharing options...
Z e r o Posted September 12, 2013 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 97 Reputation: 0 Joined: 02/11/13 Last Seen: September 14, 2017 Author Share Posted September 12, 2013 ill try it thanks by the way im looking for cards i got no result Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 12, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted September 12, 2013 something like this ? http://upaste.me/r/54d5fb Quote Link to comment Share on other sites More sharing options...
Patskie Posted September 12, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 20 hours ago Share Posted September 12, 2013 ill try it thanks by the way im looking for cards i got no result Change nameid to card id? If you got no result meaning characters doesn't have those items Here is a screenshot of mine doing the query : Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 12, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted September 12, 2013 @Patskie perhap he refer to the card that compounded into the equipments.. in that case you have to check for these column card0 card1 card2 card3 or maybe within other location like storage guild storage cart mail etc @Zero be specify ~give more details.. Quote Link to comment Share on other sites More sharing options...
Schwierig Posted September 12, 2013 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 15 Reputation: 3 Joined: 09/11/13 Last Seen: September 22, 2014 Share Posted September 12, 2013 @Emistry But when you are doing that be careful to put everything in one query. Looping through 4 queries for "n"-times will kill your server pretty fast when you got a bigger playerbase Quote Link to comment Share on other sites More sharing options...
Question
Z e r o
query to find all character that has item item im looking for XD cant find the table for the equipped items XD
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.