Jump to content
  • 0

Save Character SQL Item Data


alkhaleej

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  09/21/12
  • Last Seen:  

Please help. I want to save a character's item data on sql using script. I searched and found this:

 

http://rathena.org/board/topic/76537-save-character-data/

 

but is not specific to what I would like to happen.

 

The reason I want this is to check a card and delete it on its actual location the same time the script will check for it.

 

Can

*getinventorylist;

do this job? I've read about this inside 

 

trunk/doc/script_commands.txt

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

let me guess ...

you are trying to write an utility script which search for all characters with a certain mvp card ID

if the player has the mvp card ID, the gm can then proceed to remove the card

I know how to tackle this

its better to separate your search with online characters and offline characters

in online characters, use addrid and getinventorylist

in offline characters, use query_sql

then there's no need the hassle to update the table which might overwrite the value wrongly when the server do an interval character update

EDIT:

I just recall when I worked on a server ...

that admin used @ban character temporary when he suspect that player is cheating

then @unban when its done

this trick might work too ... lol

Edited by AnnieRuru
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  09/21/12
  • Last Seen:  

let me guess ...

you are trying to write an utility script which search for all characters with a certain mvp card ID

if the player has the mvp card ID, the gm can then proceed to remove the card

 

You've guessed it right Annie. I'll try *getinventorylist; instead. Thank you for the reply.

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