Метод | Описание | |
---|---|---|
Aggro ( |
Aggroes target, setting target and putting creature in battle stance.
|
|
CanTarget ( |
Returns whether the NPC can target the given creature.
|
|
Dispose ( ) : void |
Disposes AI.
|
|
GetFavor ( |
Returns favor of the NPC towards the other creature.
|
|
GetMemory ( |
Returns how well the NPC remembers the other creature.
|
|
GetNewNpcEntityId ( ) : long |
Returns a new, unused entity id in the NPC range.
|
|
GetStress ( |
Gets how much the other creature is stressing the NPC.
|
|
Kill ( |
Kills NPC, rewarding the killer.
|
|
ModifyFavor ( |
Modifies favor of the NPC towards the other creature.
|
|
ModifyMemory ( |
Sets how well the NPC remembers the other creature.
|
|
ModifyStress ( |
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 ( |
Sets favor of the NPC towards the other creature.
|
|
SetMemory ( |
Modifies how well the NPC remembers the other creature.
|
|
SetStress ( |
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, |
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. |
public CanTarget ( |
||
creature | ||
Результат | bool |
public static GetNewNpcEntityId ( ) : long | ||
Результат | long |
public ModifyFavor ( |
||
other | ||
value | int | |
Результат | int |
public ModifyMemory ( |
||
other | ||
value | int | |
Результат | int |
public ModifyStress ( |
||
other | ||
value | int | |
Результат | int |
public NPC ( ) : System.Collections.Generic | ||
Результат | System.Collections.Generic |
public NPC ( ActorData actorData ) : System.Collections.Generic | ||
actorData | ActorData | |
Результат | System.Collections.Generic |
public NPC ( int raceId ) : System.Collections.Generic | ||
raceId | int | |
Результат | System.Collections.Generic |
public SetFavor ( |
||
other | ||
value | int | |
Результат | int |
public SetMemory ( |
||
other | ||
value | int | |
Результат | int |
public SetStress ( |
||
other | ||
value | int | |
Результат | int |
protected ShouldSurvive ( float damage, |
||
damage | float | |
from | ||
lifeBefore | float | |
Результат | bool |
public Spawn ( int regionId, int x, int y ) : bool | ||
regionId | int | |
x | int | |
y | int | |
Результат | bool |
public Warp ( int regionId, int x, int y ) : bool | ||
regionId | int | |
x | int | |
y | int | |
Результат | bool |
public WarpFlash ( int regionId, int x, int y ) : bool | ||
regionId | int | |
x | int | |
y | int | |
Результат | bool |