$AccessoryVar[, $AccessoryType] = $AccessoryType; For AccessoryType reference: $AccessoryVar[YourWeaponName, $SpecialVar] = ; For SpecialVar reference: $AccessoryVar[YourWeaponName, $Weight] = ; $AccessoryVar[YourWeaponName, $MiscInfo] = ; $SkillType[YourWeaponName] = $Skill; For SkillType reference: $SkillRestriction[YourWeaponName] = $SkillName @ ; $ItemCost[YourWeaponName] = GenerateItemCost(YourWeaponName); //**************************************** // YourWeaponName //**************************************** ItemImageData YourWeaponNameImage { shapeFile = ; For shapeFile reference: mountPoint = 0; weaponType = 0; // Single Shot reloadTime = 0; fireTime = GetDelay(YourWeaponName); minEnergy = 0; maxEnergy = 0; accuFire = true; sfxFire = ; For sfxFire reference: sfxActivate = ; For sfxActivate reference: }; ItemData YourWeaponName { heading = "bWeapons"; description = ; className = "Weapon"; shapeFile = "WillAutoFill"; hudIcon = ; For hudIcon reference: shadowDetailMask = 4; imageType = YourWeaponNameImage; price = 0; showWeaponBar = true; }; function YourWeaponNameImage::onFire(%player, %slot) { MeleeAttack(%player, GetRange(YourWeaponName), YourWeaponName); }
Download this Utility.