dinidini4000
Skeletron Prime
all i can think of is change recipe.AddTile(TileID.WorkBench); to recipe.AddTile(TileID.WorkBenches);
is that not the problem lol just a "s"
all i can think of is change recipe.AddTile(TileID.WorkBench); to recipe.AddTile(TileID.WorkBenches);
i don't see any posts of yours on that page.Can anyone just help me with the problem i posted on the 232-nd page?
problem could bei corrected it; 233-rd page
what?that is not the problem, the problem is the shoot function
I am trying to add a sword to my game, nothing much. Whenever I try to compile it, it says that there was "no suitable method found to override" I am pretty new to C#, and I don't really know what to do. The files are at https://goo.gl/vTZ7dH, and available for anyone to view.
out of curiosity, what is this for?public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { position.Y -= 110; }
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace ExampleMod.Items.Weapons
{
public class OrbitalFriend:red:Cannon : ModItem
{
public override void SetDefaults()
{
item.name = "Orbital Friend:red: Cannon";
item.damage = 100;
item.melee = true;
item.width = 21;
item.height = 32;
item.toolTip = "The Orbital Friend:red: Cannon - Free hugs!";
item.useTime = 1;
item.useAnimation = 13;
item.useStyle = 1;
item.knockBack = 1;
item.noMelee = true;
item.value = 666666;
item.rare = 11;
item.useSound = 1;
item.autoReuse = true;
item.shoot = mod.ProjectileType("Friend:red:");
item.shootSpeed = 16f;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
position.Y -= 110;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(BuffID.OnFire, 60);
target.AddBuff(BuffID.Cursed, 60);
target.AddBuff(BuffID.Confused, 60);
}
}
}
ah, that stuff isn't my strong suit, but is the projectile called
Friend ?
you have to make sure that the item.shoot is the same as the name of the projectile.no its Friend then "tihs" backwards
i checked it, how many times do i have to say it, the problem is in the SHOOT function
what do i need to type so it doesn't change a thing in the actual projectile shot so it just covers all, stopping the error
[DOUBLEPOST=1450549222,1450549164][/DOUBLEPOST]the error is that i used the shoot function and dont do s h i t exept tell the game where to spawn the projectile
i still don't know what you MEAN by that.the problem is in the SHOOT function
does that mean that you figured it out?the error is that i used the shoot function and dont do s h i t exept tell the game where to spawn the projectile