Jump to content
  • 0

Top Adena script


Question

Posted

Hi i have little problem with my top adena web script. My problem is that when someone have adena in inventory and in warehouse too, he is in top adena rank two times. One with adena in inventory and one time with adena in warehouse. I need help with command that will show only total amount of adena per user. If someone can help i will be glad :)

 

this is what i got in script:

 

WHERE builder = 0 AND account_id > 0 AND user_item.item_type = 57

ORDER BY adena DESC

 

dunno what command should have for warehouse column to count as one...

 

Thanks

1 answer to this question

Recommended Posts

  • 0
Posted

1. Look up and create complicated join\inner\union Queries.

Google instead of ask - this is SQL, not L2Off.

 

2. Write 2 queries, one with warehouse = 0 and warehouse = 1.

Add together result in php\html where matched char_id.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...