C# Класс Aura.Channel.World.Entities.NPC

Наследование: Creature
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Aggro ( Creature target ) : void

Aggroes target, setting target and putting creature in battle stance.

CanTarget ( Creature creature ) : bool

Returns whether the NPC can target the given creature.

Dispose ( ) : void

Disposes AI.

GetFavor ( Creature other ) : int

Returns favor of the NPC towards the other creature.

GetMemory ( Creature other ) : int

Returns how well the NPC remembers the other creature.

GetNewNpcEntityId ( ) : long

Returns a new, unused entity id in the NPC range.

GetStress ( Creature other ) : int

Gets how much the other creature is stressing the NPC.

Kill ( Creature killer ) : void

Kills NPC, rewarding the killer.

ModifyFavor ( Creature other, int value ) : int

Modifies favor of the NPC towards the other creature.

ModifyMemory ( Creature other, int value ) : int

Sets how well the NPC remembers the other creature.

ModifyStress ( Creature other, int value ) : int

Modifies how much the other creature is stressing the NPC.

NPC ( ) : System.Collections.Generic

Creates new NPC

NPC ( ActorData actorData ) : System.Collections.Generic

Creates new NPC from actor data.

NPC ( int raceId ) : System.Collections.Generic

Creates new NPC and loads defaults for race.

SetFavor ( Creature other, int value ) : int

Sets favor of the NPC towards the other creature.

SetMemory ( Creature other, int value ) : int

Modifies how well the NPC remembers the other creature.

SetStress ( Creature other, int value ) : int

Sets how much the other creature is stressing the NPC.

Spawn ( int regionId, int x, int y ) : bool

Sets SpawnLocation and places NPC in region.

Warp ( int regionId, int x, int y ) : bool

Moves NPC to target location and adds it to the region. Returns false if region doesn't exist.

WarpFlash ( int regionId, int x, int y ) : bool

Like Warp, except it sends a screen flash and sound effect to the departing region and arriving region.

Ideal for NPCs like Tarlach. Be careful not to "double flash" if you're swapping two NPCs. Only ONE of the NPCs needs to use this method, the other can use the regular Warp.

Защищенные методы

Метод Описание
ShouldSurvive ( float damage, Creature from, float lifeBefore ) : bool

NPCs may survive randomly.

http://wiki.mabinogiworld.com/view/Stats#Life More Will supposedly increases the chance. Unknown if this applies to players as well. Before certain Gs, NPCs weren't able to survive attacks under any circumstances.

Описание методов

Aggro() публичный Метод

Aggroes target, setting target and putting creature in battle stance.
public Aggro ( Creature target ) : void
target Creature
Результат void

CanTarget() публичный Метод

Returns whether the NPC can target the given creature.
public CanTarget ( Creature creature ) : bool
creature Creature
Результат bool

Dispose() публичный Метод

Disposes AI.
public Dispose ( ) : void
Результат void

GetFavor() публичный Метод

Returns favor of the NPC towards the other creature.
public GetFavor ( Creature other ) : int
other Creature
Результат int

GetMemory() публичный Метод

Returns how well the NPC remembers the other creature.
public GetMemory ( Creature other ) : int
other Creature
Результат int

GetNewNpcEntityId() публичный статический Метод

Returns a new, unused entity id in the NPC range.
public static GetNewNpcEntityId ( ) : long
Результат long

GetStress() публичный Метод

Gets how much the other creature is stressing the NPC.
public GetStress ( Creature other ) : int
other Creature
Результат int

Kill() публичный Метод

Kills NPC, rewarding the killer.
public Kill ( Creature killer ) : void
killer Creature
Результат void

ModifyFavor() публичный Метод

Modifies favor of the NPC towards the other creature.
public ModifyFavor ( Creature other, int value ) : int
other Creature
value int
Результат int

ModifyMemory() публичный Метод

Sets how well the NPC remembers the other creature.
public ModifyMemory ( Creature other, int value ) : int
other Creature
value int
Результат int

ModifyStress() публичный Метод

Modifies how much the other creature is stressing the NPC.
public ModifyStress ( Creature other, int value ) : int
other Creature
value int
Результат int

NPC() публичный Метод

Creates new NPC
public NPC ( ) : System.Collections.Generic
Результат System.Collections.Generic

NPC() публичный Метод

Creates new NPC from actor data.
public NPC ( ActorData actorData ) : System.Collections.Generic
actorData ActorData
Результат System.Collections.Generic

NPC() публичный Метод

Creates new NPC and loads defaults for race.
public NPC ( int raceId ) : System.Collections.Generic
raceId int
Результат System.Collections.Generic

SetFavor() публичный Метод

Sets favor of the NPC towards the other creature.
public SetFavor ( Creature other, int value ) : int
other Creature
value int
Результат int

SetMemory() публичный Метод

Modifies how well the NPC remembers the other creature.
public SetMemory ( Creature other, int value ) : int
other Creature
value int
Результат int

SetStress() публичный Метод

Sets how much the other creature is stressing the NPC.
public SetStress ( Creature other, int value ) : int
other Creature
value int
Результат int

ShouldSurvive() защищенный Метод

NPCs may survive randomly.
http://wiki.mabinogiworld.com/view/Stats#Life More Will supposedly increases the chance. Unknown if this applies to players as well. Before certain Gs, NPCs weren't able to survive attacks under any circumstances.
protected ShouldSurvive ( float damage, Creature from, float lifeBefore ) : bool
damage float
from Creature
lifeBefore float
Результат bool

Spawn() публичный Метод

Sets SpawnLocation and places NPC in region.
public Spawn ( int regionId, int x, int y ) : bool
regionId int
x int
y int
Результат bool

Warp() публичный Метод

Moves NPC to target location and adds it to the region. Returns false if region doesn't exist.
public Warp ( int regionId, int x, int y ) : bool
regionId int
x int
y int
Результат bool

WarpFlash() публичный Метод

Like Warp, except it sends a screen flash and sound effect to the departing region and arriving region.
Ideal for NPCs like Tarlach. Be careful not to "double flash" if you're swapping two NPCs. Only ONE of the NPCs needs to use this method, the other can use the regular Warp.
public WarpFlash ( int regionId, int x, int y ) : bool
regionId int
x int
y int
Результат bool