Legacy Development Community Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Legacy Development Community Forum

World of Warcraft Development Forums
 
HomeHome  PortalPortal  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  

 

 inventory id's

Go down 
5 posters
AuthorMessage
egel

egel


Number of posts : 23
Registration date : 2006-12-24

inventory id's Empty
PostSubject: inventory id's   inventory id's EmptyWed Apr 18, 2007 1:13 am

i have one question. how can i check out inventory of all players for some item? i don't understand table inventory. Cool
Back to top Go down
Iceman
Developer
Iceman


Number of posts : 462
Registration date : 2006-11-28

inventory id's Empty
PostSubject: Re: inventory id's   inventory id's EmptyWed Apr 18, 2007 7:48 am

and u wont
and i dont know if anyone will
this guids are imposible to find or read
Back to top Go down
InfiniteSkillz

InfiniteSkillz


Number of posts : 33
Registration date : 2006-12-21

inventory id's Empty
PostSubject: Re: inventory id's   inventory id's EmptyWed Apr 18, 2007 9:26 am

http://www.excalibur-wow.com/forum/viewtopic.php?t=270&postdays=0&postorder=asc&start=15
it possible to get the item id from guid but it's not easy.
Back to top Go down
egel

egel


Number of posts : 23
Registration date : 2006-12-24

inventory id's Empty
PostSubject: inventory id's   inventory id's EmptyWed Apr 18, 2007 10:15 am

thank you very much. so now i can find quickly theese bastichs who looted aegis sword before i changed loot tables:D here is sql. ofc somebody can tell me that is not perfect but it works.

Select
accounts.login,
accounts.`password`,
characters.name
From
accounts
Inner Join characters ON accounts.acct = characters.acct
Inner Join inventory ON characters.guid = inventory.player_guid
Inner Join item_instances ON item_instances.guid = inventory.item_guid
Where
item_instances.`data` Like '% 25000 %'

PS: 25000 means item id
Back to top Go down
aceindy
Sherif
aceindy


Number of posts : 305
Registration date : 2006-11-28

inventory id's Empty
PostSubject: Re: inventory id's   inventory id's EmptyWed Apr 18, 2007 12:12 pm

Not as difficult as it seems Laughing
Code:
SELECT
accounts.login,
accounts.`password`,
characters.name
FROM
accounts
INNER JOIN characters ON accounts.acct = characters.acct
INNER JOIN inventory ON characters.guid = inventory.player_guid
INNER JOIN item_instances ON item_instances.guid = inventory.item_guid
WHERE
SUBSTRING(`item_instances`.`data` FROM (@StrStarts:=LOCATE( '1073741824',`item_instances`.`data`) + 13 )  FOR (LOCATE( '1065353216',`item_instances`.`data`) - @StrStarts)) = [$ItemID]

PS it will ask for an itemID every time you run the query :p
Back to top Go down
egel

egel


Number of posts : 23
Registration date : 2006-12-24

inventory id's Empty
PostSubject: Re: inventory id's   inventory id's EmptyWed Apr 18, 2007 3:13 pm

yes ofc. good job. it is clear as a sky. i noticed just now theese number string are in every record. you're perfect cause now it works 100%
PS: it is handy isn't it:D
Back to top Go down
Flexserve
Senior Member
Flexserve


Number of posts : 124
Age : 51
Localisation : 127.0.0.1
Registration date : 2006-11-28

inventory id's Empty
PostSubject: Re: inventory id's   inventory id's EmptyWed Apr 18, 2007 3:51 pm

Now for an updated webgm!!!
Back to top Go down
http://www.mywowserver.com
Sponsored content





inventory id's Empty
PostSubject: Re: inventory id's   inventory id's Empty

Back to top Go down
 
inventory id's
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Legacy Development Community Forum :: Kobold Legacy-
Jump to: