Jump to content
  • 0

When have many item, How to query?


Mechomorph XD

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   1
  • Joined:  03/06/12
  • Last Seen:  

Hi /meh If player use an item which have many each (because created from alchemist class). How could I do query stack into array?

e.g. Player have A's BOX 20 ea and B's BOX 12 ea.
I want to stack item id and amount in an array.
$@item_id[0] = 1000, $@card[0] = blah blah blah, $@amount[0] = 20
$@item_id[1] = 1000, $@card[0] = blah blah blah, $@amount[1] = 12

How to check it with sql query?

Thank You.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

can i see your table in sql?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   1
  • Joined:  03/06/12
  • Last Seen:  

It's a inventory table. I'm doing NPC convert item to box but problem is if player have similar box (e.g. A's and B's Box) but each creator then player click B's Box which in inventory table B's Box info live bottom A's Box info, In Script sql will query A's Box info instead B's Box

How to check it? /meh

I dont know about this, Thank You

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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