Skip to content

[Mod] Modify Ranged Items

Berti11 edited this page Jun 2, 2011 · 9 revisions

This tutorial was made by berti11

An example of a bow:

            this.useStyle = 5;// this is the item type, we won't be touching this for now.

            this.useAnimation = 0x19;//this is the Hexadecimal(you can use normal values) value for the animation we won't be touching that either

            this.useTime = 0x19;//This value however we can change , it determines how fast you can shoot.

            this.name = "Demon Bow";//Obviously the name of the item

            this.width = 12;//the width of the item (i dont recommend touching since it's not a sword so it won't affect it

            this.height = 0x1c;//the heighth of the item

            this.shoot = 1;////this is the projectile the bow shoots for a list of these 

look here

            this.useAmmo = 1;//this is rhe ammo usage

            this.useSound = 5;//Obviously the sound effect used

            this.damage = 13;//The damage the bow makes

            this.shootSpeed = 6.7f;//this is the speed at what the projectiles go

            this.knockBack = 1f;//the knockback on enemys

            this.alpha = 30;//the alpha of the weapon

            this.rare = 1;//rarrity of the weapon

            this.noMelee = true;//defines if it can be used in mele

            this.value = 0x4650;//the hexadecimal value for sell price or buy price

Clone this wiki locally