True, however one of the features im using is flesh knuckle's targeting thing and i cant test it alone
(side note everyone here is WAY friendlier [and helpful] than the minecraft modding community)
I don't see anything unique to the flesh knuckles except this line "this.aggro += 400;" in it's UpdateEquips method, so you should be fine if you include that too. There is no multiplayer support yet anyway....so just hope for the best for now.
Um, I guess we're nice. Personally I'm just bored and I like helping people and I've always wanted to get involved in a project.
So say the paladin's sheild would it be PaladinsSheild ?
And while im on the topic how would you write the recipie.AddTile for the Tinker's Workshop
Would the numerical IDs be sufficient? or does Terraria/C# not like that?
While guessing might work, the best option would be to check the documentation because it's not always according to pattern.
You can find the correct tile for the Tinker's Workshop in the documentation as well.
Just using numbers is fine, but for your sanity, I'd recommend doing stuff like "ItemID.DirtBlock" since it is so much easier to understand than "2". Just make sure to include "using Terraria.ID;" at the top if you use this method.
Download Visual Studio 2015 Community edition. It's completely free. See a post a page back about setting it up for a mod.and if i am to download VS what version do you recommend?
[DOUBLEPOST=1442696642,1442696216][/DOUBLEPOST]
Anyway here is my code so far..... im about to test it for the first time. please point out any errors. i started coding in C# for the first time literally last night so there is bound to be something a bit wonky.
Code:using System; using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Tinkermore.Items { public class TankShield : ModItem { public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips) { equips.Add(EquipType.Shield); return true; } public override void SetDefaults() { item.name = "Tank Shield"; item.width = 24; item.height = 28; item.toolTip = "Absorbs 25% of damage done to players on your team when above 25% health"; item.toolTip2 = "Enemies are more likely to target you"; item.value = 65000; item.rare = 8; item.accessory = true; item.defense = 12; } public override void UpdateAccessory(Player player) { player.noKnockback = true; if ((double)player.statLife > (double)player.statLifeMax2 * 0.25) { if (i == Main.myPlayer) { player.paladinGive = true; } else if (player.miscCounter % 5 == 0) { int num3 = Main.myPlayer; if (Main.player[num3].team == player.team && player.team != 0) { float single = player.position.X - Main.player[num3].position.X; float y1 = player.position.Y - Main.player[num3].position.Y; if ((float)Math.Sqrt((double)(single * single + y1 * y1)) < 800f) { Main.player[num3].AddBuff(43, 10, true); } } } } { Player player297 = player; player297.aggro = player297.aggro + 400; } } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(Terraria.ID.ItemID.938); recipe.AddIngredient(Terraria.ID.ItemID.3016); recipe.AddTile(398); recipe.SetResult(this); recipe.AddRecipe(); } }}
"recipe.AddIngredient(Terraria.ID.ItemID.938);" is wrong. These is no variable in the Terraria.ID.ItemID class called 938. There is, however, a variable called "PaladinsShield" with the VALUE of 938. Either use "Terraria.ID.ItemID.PaladinsShield" or "938". They both resolve to the value of 938. Do the same for 3016.
Also, " if (i == Main.myPlayer)" will give you a compile error because "i" doesn't exist. It should probably be replaced with "player.whoAmI"