dopatheory.blogg.se

Terraria 1.3.4.4 too many items
Terraria 1.3.4.4 too many items









terraria 1.3.4.4 too many items

Return "This is a very nice house, I have one like it at home." Return "I sell various minerals, each with a different cost." Return "Hello, would you like to purchase any minerals?" Switch ((4)) //this are the messages when you talk to the npc Public override string GetChat() //Allows you to give this town NPC a chat message when a player talks to it. Public override void SetupShop(Chest shop, ref int nextSlot) Public override void OnChatButtonClicked(bool firstButton, ref bool openShop) Public override void SetChatButtons(ref string button, ref string button2) Public override bool CheckConditions(int left, int right, int top, int bottom) Public override bool CanTownNPCSpawn(int numTownNPCs, int money)

terraria 1.3.4.4 too many items

= 4 //this defines the party hat positionĪnimationType = NPCID.Guide //this copy the guide animation

terraria 1.3.4.4 too many items

= 10 //this defines the npc atack chance = 30 //this defines the npc attack speed = 1 //this is the attack type, 0 (throwing), 1 (shooting), or 2 (magic). = 150 //this defines the npc danger detect range Main.npcFrameCount = 26 //this defines how many frames the npc sprite sheet has Npc.knockBackResist = 0.5f //the npc knockback resistance Npc.DeathSound = SoundID.NPCDeath1 //the npc sound when he dies Npc.HitSound = SoundID.NPCHit1 //the npc sound when is hit Npc.aiStyle = 7 //this is the npc ai style, 7 is Pasive Ai Npc.friendly = true //this defines if the npc can hur you or not() Npc.townNPC = true //This defines if the npc is a town Npc or not Npc.name = "David" //the name displayed when hovering over the npc ingame. Public override bool Autoload(ref string name, ref string texture, ref string altTextures) Every time I leave my world, the custom NPC I made disappears.











Terraria 1.3.4.4 too many items