Jump to content
  • 0

searching an item


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

i am searching an item to my database... because i want to count or to know the people that has the items..example is item id 2541

i want to know who has it

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   2
  • Joined:  10/09/12
  • Last Seen:  

well, if u re using windows as server side, u can easily search it via mysql work bench

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

i am using linux sir

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   14
  • Joined:  11/21/11
  • Last Seen:  

if you're using phpmyadmin you can try running this in your sql query SELECT * FROM `inventory` WHERE `nameid` = 2541

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

works..but will this SELECT * FROM `inventory` WHERE `nameid` = 2541 will also search the item even if it is equiped or in storage or cart

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

select * from inventory where nameid = 2541;
select * from cart_inventory where nameid = 2541;
select * from storage where nameid = 2541;
select * from guild_storage where nameid = 2541;
select * from mail where nameid = 2541;
select * from auction where nameid = 2541;

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this...

http://pastebin.com/raw.php?i=UkUn1fwT

and...since the sql data are not updated immeadiately...you have to wait sometime to get the correct amount of item...

depend on the value you have set for default server saving time...

else..try create item then relog..and check again

EDIT :

/swt I get the idea wrongly LOL...suppose to show WHO get the item...and not the no of item exist in server.....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

about your post sir emistry?/how does it work??will i input the item id??

and does it work in eathena svn?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...