Weapons
Adding a custom Weapon can be done with it's own animation files or without.
Custom Animation Files
- Open the
data\luafiles514\lua files\datainfo\weapontable.lub
(See explanation below)
Note: Add your entries always after the last entry and to add a,
after the previous one. Weapon_IDs
WEAPONTYPE_CustomWeapon = 103
WeaponNameTable
[Weapon_IDs.WEAPONTYPE_CustomWeapon] = "_customweapon"
Expansion_Weapon_IDs
[Weapon_IDs.WEAPONTYPE_CustomWeapon] = Weapon_IDs.WEAPONTYPE_
Assign a weapon type based on theWeapon_IDs
table but only up toWEAPONTYPE_SWORD_AXE = 30
are validBowTypeList
Weapon_IDs.WEAPONTYPE_CustomWeapon
This is only used for bows obviously.- Sprite Files
data\sprite\Àΰ£Á·
= Main Folder for Weapon Sprites
Each class has it's own folder and requires 2 files (.act.spr) of your custom weapon per gender.
While you can duplicate them and just rename it for a different class and gender, but the animations won't match the class' movement at all.
The file name depends on yourWeaponNameTable
entry above.
See Folder List for info.
Explanation¶
- Weapon_IDs = Table for each weapon type
These values are used for theClassNum
argument in youritemInfo.lub
entry, as well as your ViewID in your item db. - WeaponNameTable = Table for the file name
- Expansion_Weapon_IDs = Table to assign the weapon to a weapon type
- WeaponHitWaveNameTable = Table which .wav file should be played for your custom weapon type
- BowTypeList = Table for Bows