How to add custom item sprites to an rAthena server
Add a custom Ragnarok item to rAthena’s YAML imports, wire up the matching client sprite resources and verify the server entry and client patch together.
Create the server entry in the import database
This workflow uses rAthena’s YAML item database. Check that your revision and configuration use that database. The upstream item database loads the Renewal or Pre-Renewal data for the selected mode and imports db/import/item_db.yml for custom entries. Use the template from your server revision for its Header version and field names.
Create a custom item under Body using an unused Id and a unique AegisName. Fill in Name, Type and Locations to match the item you are adding. Start with a working item of the same type in your server’s active mode. For a wearable that uses a custom view ID, set View according to the appearance mapping you are installing. Keep your custom entry in the import file so it can be reviewed alongside upstream updates.
Here is the shape of an upper headgear entry for a YAML import. Replace the two angle-bracket placeholders with IDs you have verified in your own database and client mappings. Keep the existing Header and append the entry under Body with the same indentation as your other entries.
Body:
- Id: <unused item ID>
AegisName: Example_Lantern_Hat
Name: Lantern Hat
Type: Armor
Locations:
Head_Top: true
View: <mapped view ID>Connect the item to the client resources
- Use the same item ID in the client’s item information table. Set the resource names to match the supplied inventory, collection and ground-drop files where applicable.
- Install the equipped art in the locations used by your build. Headgears typically use accessory mappings. Weapons have separate client mappings and can need artwork for the character jobs they support. Compare a working item of the same type before choosing paths or reusing a View value.
- Put the client tables and art into your existing patch process. Confirm the client actually loads the expected versions before changing the server’s item entry again.
Validate both sides before publishing the patch
Load the new item database on a test server and inspect the map-server log for rejected fields or entries. Use a test account to obtain the item and check its display name, description, icon and equipment restrictions. Equip it and check the intended appearance on a second patched client. If it can be dropped, check the ground art separately.
If the server cannot load or grant the item, review the YAML header, indentation, fields and ID. If it can grant the item but only the appearance is wrong, review the view mapping and client asset paths. When both parts work, release the client patch with the server change and keep the previous versions available together.