Advertisement
Guest User

papa nyomkövető

a guest
May 24th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.13 KB | None | 0 0
  1. select
  2.     account.account_id,
  3.     `character`.name,
  4.     item1.name_english,
  5.     case when item1.id is not null then item1.id else item2.id end as item,
  6.     case plog.`type`
  7.         when 'M' then '(M)onsters Drop'
  8.         when 'P' then '(P)layers Drop/Take'
  9.         when 'L' then 'Mobs Drop (L)oot Drop/Take'
  10.         when 'T' then 'Players (T)rade Give/Take'
  11.         when 'V' then 'Players (V)ending Sell/Take'
  12.         when 'S' then '(S)hop Sell/Take'
  13.         when 'N' then '(N)PC Give/Take'
  14.         when 'C' then '(C)onsumable Items'
  15.         when 'R' then 'Sto(R)age'
  16.         when 'G' then '(G)uild Storage'
  17.         when 'E' then '(E)mail attachment'
  18.         when 'B' then '(B)uying Store'
  19.         when 'O' then 'Pr(O)duced Items/Ingredients'
  20.         when 'I' then 'Auct(I)oned Items'
  21.         when 'D' then '(D) Stolen from mobs'
  22.         when 'A' then '(A)dministrators Create/Delete'
  23.         when 'X' then '(X) Other'
  24.         when 'U' then '(U) MVP Prizes'
  25.         when 'F' then '(F) Guild/Party Bound retrieval'
  26.         when 'Y' then 'Lotter(Y)'
  27.         when 'Z' then '(Z) Merged Items'
  28.         when 'Q' then '(Q)uest'
  29.         when 'H' then 'Private Airs(H)ip'
  30.         else 'UNKNOWN'
  31.         end as drop_type,
  32.     plog.amount,
  33.     plog.`map`,
  34.     plog.unique_id,
  35.     plog.time,
  36.     concat(case when inv.nameid is not null then 'Inventory' else '' end,
  37.             case when gst.nameid is not null then 'Guild Storage' else '' end,
  38.             case when cart.nameid is not null then 'Cart' else '' end,
  39.             case when st.nameid is not null then 'Storage' else '' end,
  40.             case when mail.nameid is not null then 'Mail' else '' end)
  41.         as current_location
  42. from picklog plog
  43. join `char` as `character` on `character`.char_id = plog.char_id
  44. LEFT join item_db as item1 on item1.id = plog.nameid
  45. LEFT join item_db2 as item2 on item2.id = plog.nameid
  46. join login account on `character`.account_id = account.account_id
  47. left join inventory inv on inv.unique_id = plog.unique_id
  48. left join storage st on st.unique_id = plog.unique_id
  49. left join guild_storage gst on gst.unique_id = plog.unique_id
  50. left join cart_inventory cart on cart.unique_id = plog.unique_id
  51. left join mail_attachments mail on mail.unique_id = plog.unique_id
  52. where plog.unique_id > 0 and `character`.name like '%Zasura%'
  53. order by plog.unique_id desc, plog.`time` DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement