Jump to content
  • 0

SQL


Syndicate

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   6
  • Joined:  08/27/12
  • Last Seen:  

How to add items in inventory using SQL?


ID# 552 ( CHAR ID )

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   14
  • Joined:  11/21/11
  • Last Seen:  

INSERT INTO `inventory` (`char_id`, `nameid`, `amount`, `identify`) VALUES (CHARID, ITEMID, AMOUNT, 1)

Edited by Feefty
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  133
  • Reputation:   14
  • Joined:  12/23/11
  • Last Seen:  

Uhh I'm using eAthena

 

INSERT INTO inventory (char_id, nameid, amount, equip, identify, refine, attribute, card0, card1, card2, card3, expire_time)

VALUES (ENTERCHARIDHERE, 552, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0)

 

Just change the ? to the charid of the player

 

of course I'm not good at this so you may ignore this post

 

Edit: oops

Edited by kenshn111
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...