egel
Number of posts : 23 Registration date : 2006-12-24
| Subject: inventory id's Wed 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. | |
|
Iceman Developer
Number of posts : 462 Registration date : 2006-11-28
| Subject: Re: inventory id's Wed Apr 18, 2007 7:48 am | |
| and u wont and i dont know if anyone will this guids are imposible to find or read | |
|
InfiniteSkillz
Number of posts : 33 Registration date : 2006-12-21
| Subject: Re: inventory id's Wed Apr 18, 2007 9:26 am | |
| | |
|
egel
Number of posts : 23 Registration date : 2006-12-24
| Subject: inventory id's Wed 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 | |
|
aceindy Sherif
Number of posts : 305 Registration date : 2006-11-28
| Subject: Re: inventory id's Wed Apr 18, 2007 12:12 pm | |
| Not as difficult as it seems - 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 | |
|
egel
Number of posts : 23 Registration date : 2006-12-24
| Subject: Re: inventory id's Wed 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 | |
|
Flexserve Senior Member
Number of posts : 124 Age : 51 Localisation : 127.0.0.1 Registration date : 2006-11-28
| Subject: Re: inventory id's Wed Apr 18, 2007 3:51 pm | |
| Now for an updated webgm!!! | |
|
Sponsored content
| Subject: Re: inventory id's | |
| |
|