ADD ITEMS EASILY
Requirements: - PHP version 5.4 and up is required to run this script. - JSON File of your item (examples at the end) Instructions: - Open up a terminal - Type in "php item_script.php" (without the quotes) Creating JSON File: The format should be like this (The ordering: https://rathena.org/....28Database.29) [26007,"Pink_Fluffy_Valkyrie_Helm","Pink Fluffy Valkyrie Helm",4,1,null,0,null,0,null,1,"0xFFFFFFFF",3,2,256,null,0,1,907,null,null,null] NOTES: - If the value is NULL, type it in small letters - Use quotes on string values. - Do not add comma on each line.
Download:
https://rathena.org/board/files/file/3453-tool-item-db-automation/
Any questions regarding my script are welcome. I'll try to add more features soon including editing and deleting if I'll have the time.
Hope you like my tool! As this make it easier for me.
Changelog
Version 1
- First release.
Version 1.1
- Added prompt in case you changed your mind.
- Improved checking of empty line in JSON file.
Version 2
- Added function to generate client-side resource files from the same JSON file (idnum2itemdisplaynametable, idnum2itemresnametable, etc.)
- It will either create a new file or append your current file if present.
Note: accname.lub and accessoryid.lub is not yet added.