i want to put an item of a player from his inventory into his storage using a npc script. When i use delitem and then query_sql update..., the player has to relog for the items to show up (if he opens his storage before relog, the updated items vanish from storage db). Is there any comfortable solution for this? Like a counterpart of storagedelitem? Or an option to refresh the players storage without relogging the char?
I guess that kafra storage is somehow writing into the db AND the memory of the server? Can i access this "memory" live via script maybe? Hope someone knows what i mean
EDIT: i finally found a solution. Had to use a source mod for an extra script command: storeitem. Thanks to all who thought about this
Question
moik
Hello,
i want to put an item of a player from his inventory into his storage using a npc script. When i use delitem and then query_sql update..., the player has to relog for the items to show up (if he opens his storage before relog, the updated items vanish from storage db). Is there any comfortable solution for this? Like a counterpart of storagedelitem? Or an option to refresh the players storage without relogging the char?
I guess that kafra storage is somehow writing into the db AND the memory of the server? Can i access this "memory" live via script maybe? Hope someone knows what i mean
EDIT: i finally found a solution. Had to use a source mod for an extra script command: storeitem. Thanks to all who thought about this
Edited by moikLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.