Jump to content

Recommended Posts

Hi, I'm Developing a small system and i need all users to delete items, I am using several functions but none do what I want Because the server cache does not allow me to delete items to all users, anyone knows how Could do something like? what I need is that the server is restarted, and remove a specific item to all players regardless of where the item is (deleting from SQL tables)

 

PD: Sorry me bad english

Link to comment
https://metin2.dev/topic/7989-delete-items-all-players/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1. stop the server.

2. truncate player.item.

3. start the server.

 

or copy the item purge command and make one for the players and make it accessible by lua

 

when login begin

    pc.item_purge()

end

 

Edited by metin2team
Link to comment
https://metin2.dev/topic/7989-delete-items-all-players/#findComment-49828
Share on other sites

a quest to remove item when he logs like metin2team posted above or turn of sv go player table and make a query to change that item vnum in item table into a potion one for example

 

for sql :

UPDATE `item` SET `vnum`='xxxx' WHERE (`vnum`='yyyyy')

 

login quest:

 

when login begin

pc.removeitem("xxxxxx", 200)

end

 

Link to comment
https://metin2.dev/topic/7989-delete-items-all-players/#findComment-49829
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.