tAPI .CS coders needed

Are you a modder?

  • yes

    Votes: 5 83.3%
  • no

    Votes: 1 16.7%
  • Whats modding

    Votes: 0 0.0%

  • Total voters
    6
Summoner and inflicting buffs on attacks
Both are considered buffs.
If you are asking about normal buffs (Cursed Flames) they usually involve a dust, light, and negative regen effect.
Example:
if(N.lifeRegen > 0) N.lifeRegen = 0;
N.lifeRegen -= 120 ;
N of which is NPC N, selected to be overridden.
 
Both are considered buffs.
If you are asking about normal buffs (Cursed Flames) they usually involve a dust, light, and negative regen effect.
Example:
if(N.lifeRegen > 0) N.lifeRegen = 0;
N.lifeRegen -= 120 ;
N of which is NPC N, selected to be overridden.
So will you still be a .cs coder in wepon mod?
 
player.AddBuff(74, 300, true);
what is wrong with this code when i hit the monster i get an error
heres the code (cs made it happen)

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;

using TAPI;
using Terraria;

namespace WM.NPCs
{
public class RandomNess_Sheet : ModNPC
{
public override bool CanSpawn( int x, int y, int type, Player spawnedOn)
{
if (y <= Main.worldSurface &&
((!Main.bloodMoon && !spawnedOn.zoneEvil && Main.rand.Next(3) == 0)))
{
return false;
}
return false;
}
}
}

and heres the error

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terraria.Main.PlaySound(System.Int32 type, System.Int32 x = -1, System.Int32 y = -1, System.Int32 Style = 1)
at Terraria.NPC.StrikeNPC(System.Int32 Damage, System.Single knockBack, System.Int32 hitDirection, System.Boolean crit = False, System.Boolean noEffect = False, System.Single critMult = 2)
at Terraria.NPC.UpdateNPC(System.Int32 i)

oh and sorry but i meant the whole cs code for inflicting fire
 
Back
Top Bottom