Database Questions (Maybe Log questions too)

06/19/2013 13:39 lolobama#1
How can I find out what items exist and on what accounts theyre on?
How can I See which accounts have traded to others?
06/19/2013 20:28 nubness#2
  • Existing items - PS_GameData
    • CharItems - Inventory
    • UserStoredItems - Warehouse
    • MarketItems - Auction Board
    • GuildStoredItems - Guild House Warehouse
  • Transaction Logs - PS_GameLog
    • ActionLog
      • ActionType = 117
06/19/2013 23:50 IonutTheDawg#3
You can find out wich characters have a specific item by running this query and replacing the 'itemid' with the item's id that you're intrested in. ( 's are optional)
Quote:
USE PS_GameData SELECT CharID
FROM CharItems
WHERE ItemID= 'itemid'
06/20/2013 04:23 lolobama#4
Thanks to both of you, is there a query that could be run to find specific user's trade logs?
06/20/2013 08:10 nubness#5
  • By UserID:
    Code:
    SELECT * FROM PS_GameLog.dbo.ActionLog
    WHERE UserUID = (SELECT UserUID FROM PS_UserData.dbo.Users_Master
    WHERE UserID = '[B][U][I]USER ID HERE[/I][/U][/B]')
  • By CharName:
    Code:
    SELECT * FROM PS_GameLog.dbo.ActionLog
    WHERE CharID = (SELECT CharID FROM PS_GameData.dbo.Chars
    WHERE CharName = '[B][U][I]CHAR NAME HERE[/I][/U][/B]')
  • All chars on that account, by specifying one CharID:
    Code:
    SELECT * FROM PS_GameLog.dbo.ActionLog
    WHERE UserUID = (SELECT UserUID FROM PS_GameData.dbo.Chars
    WHERE CharName = '[B][U][I]CHAR NAME HERE[/I][/U][/B]')