diff --git a/Server/src/main/kotlin/rs09/game/node/entity/npc/other/YakNPC.kt b/Server/src/main/kotlin/rs09/game/node/entity/npc/other/YakNPC.kt new file mode 100644 index 000000000..c26ba2803 --- /dev/null +++ b/Server/src/main/kotlin/rs09/game/node/entity/npc/other/YakNPC.kt @@ -0,0 +1,30 @@ +package rs09.game.node.entity.npc.other + +import core.game.node.entity.npc.AbstractNPC +import core.game.world.map.Location +import core.plugin.Initializable +import core.tools.RandomFunction +import org.rs09.consts.NPCs + +@Initializable +class YakNPC : AbstractNPC { + //Constructor spaghetti because Arios I guess + constructor() : super(NPCs.ICE_TROLL_MALE_5474, null, true) {} + private constructor(id: Int, location: Location) : super(id, location) {} + + override fun construct(id: Int, location: Location, vararg objects: Any?): AbstractNPC { + return YakNPC(id,location) + } + + override fun getIds(): IntArray { + return intArrayOf(NPCs.YAK_5529) + } + + override fun tick() { + if(RandomFunction.roll(20)){ + sendChat("Moo") + } + super.tick() + } + +} \ No newline at end of file