Jump to content
  • 0

filter query search to make all weapon 4 slot while armor 2 slot on item_db_equip.yml


macmac88

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  21
  • Reputation:   0
  • Joined:  05/15/21
  • Last Seen:  

hi,

can someone help me change multiple entry in item_db_equip.yml like

changing only weapons to 4 slots and armor to 2 slots.

what is the correct search query for this new item_db_equip.yml?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

If you're using Notepad++, try using regular expressions (regex)

OR you can import item_db_equip then run an SQL command, something like

UPDATE `item_db` SET `slots` = 4 WHERE `type` = 'Weapon';

^this is for weapons, just change `type` for armors. Take note that using the above will make ALL weapons/armors 4 slotted.

After making changes, you can export as csv and use the included tool csv2yaml. <---- not sure if it'll work since I haven't tried it myself

I'm sure there are better ways of doing it.

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