@Enderplayz_
You shouldn't put your vanilla player in the tmod files. If you get a mod item in that character then move it to the vanilla characters then I heard it can corrupt your character. It has happened to me. Also sounds like to me you didn't copy the files, you just dragged them. Copy the file from tmod players into vanilla players.
In other news, I have a random error AGAIN. Same exact error when I use Al0n37's regular files. The error goes on as:
c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\NPCs\Explorer.cs(35,46) : error CS1031: Type expected
c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\NPCs\Explorer.cs(35,60) : error CS1519: Invalid token ',' in class, struct, or interface member declaration
c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\NPCs\Explorer.cs(35,74) : error CS1519: Invalid token ')' in class, struct, or interface member declaration
c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\NPCs\Friendly\Explorer.cs(35,46) : error CS1031: Type expected
c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\NPCs\Friendly\Explorer.cs(35,61) : error CS1519: Invalid token ')' in class, struct, or interface member declaration
c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\NPCs\Friendly\Explorer.cs(35,77) : error CS1519: Invalid token ')' in class, struct, or interface member declaration
So. My code is:
Code:
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace LivenUP.NPCs
{
public class Explorer : ModNPC
{
public override bool Autoload(ref string name, ref string texture)
{
name = "Explorer";
return mod.Properties.Autoload;
}
public override void SetDefaults()
{
npc.name = "Explorer";
npc.townNPC = true;
npc.friendly = true;
npc.width = 17;
npc.height = 22;
npc.aiStyle = 7;
npc.damage = 0;
npc.defense = 5;
npc.lifeMax = 250;
npc.soundHit = 1;
npc.soundKilled = 1;
npc.knockBackResist = 0.0f;
Main.npcFrameCount[npc.type] = 25;
animationType = NPCID.Guide;
}
public override bool CanTownNPCSpawn(14 (numTownNPCs), 500000 (money))
{
return false;// this make that he will spawn when a house is available
}
public override string TownNPCName()
{ //NPC names
switch (WorldGen.genRand.Next(8))
{
case 0:
return "John";
case 1:
return "Ephraim";
case 2:
return "Andrew";
default:
return "Sam";
case 3:
return "Dave";
case 4:
return "Hunter";
case 5:
return "Eric";
case 6:
return "Carl";
}
}
public override string GetChat()
{ //npc chat
switch (Main.rand.Next(3))
{
case 0:
return "Please defend me, I'm just a kid. I can't defend myself, so these walls better be safe.";
case 1:
return "People judge me for being a kid. Atleast you accept me, right?";
default:
return "What time is it? I don't know, do YOU know?";
case 2:
return "I have found the greatest treasures in the land! What? You want some?";
case 3:
return "Huh? You think I'm amazing? Such happy.";
case 4:
return "It's a beautiful day... or night.";
}
}
public override void SetChatButtons(ref string button, ref string button2)
{
button = Lang.inter[28];
}
public override void OnChatButtonClicked(bool firstButton, ref bool shop)
{
if (firstButton)
{
shop = true;
}
}
public override void SetupShop(Chest shop, ref int nextSlot)
{
shop.item[nextSlot].SetDefaults(mod.ItemType(null, "GrabBag"));
}
}
}