open the cs thats named there, look at line 9 (as it states right there)
you are missing a { at line 9, it tells you right there
Thanks for the reply!!
[doublepost=1463577996,1463577892][/doublepost]
open the cs thats named there, look at line 9 (as it states right there)
you are missing a { at line 9, it tells you right there
like this??
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
{ namespace The Well Mod.Items.Weapons //where is located
{
public class SepultchuresSword : ModItem
{
public override void SetDefaults()
{
item.name = "SepultchuresSword"; //Sword name
item.damage = 30; //Sword damage
item.melee = true; //if it's melee
item.width = 90; //Sword width
item.height = 90; //Sword height
item.toolTip = "SepultchuresSwor"; //Item Description
item.useTime = 25; //how fast
item.useAnimation = 25;
item.useStyle = 1; //Style is how this item is used, 1 is the style of the sword
item.knockBack = 5; //Sword knockback
item.value = 100;
item.rare = 10;
item.useSound = 1; //1 is the sound of the sword
item.autoReuse = true; //if it's capable of autoswing.
item.useTurn = true;
item.shoot = mod.ProjectileType("YourProjectileName");
item.shootSpeed = 8f; //projectile speed
}
public override void AddRecipes() //How to craft this sword
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1); //you need 1 DirtBlock
recipe.AddTile(TileID.WorkBenches); //at work bench
recipe.SetResult(this);
recipe.AddRecipe();
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
player.AddBuff(mod.BuffType("BuffName"), 400); //400 is the buff time
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.Next(1) == 0)
{
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, mod.DustType("DustName"));
}
}
}
}
[doublepost=1463578108][/doublepost]not working..