- Type Parameters:
T-
- All Superinterfaces:
FieldedObject<T>,ScriptObject<T>
public interface NpcObject<T> extends FieldedObject<T>
This is a script proxy for npc objects.
should be your implementation of npc.
-
Method Summary
Modifier and Type Method Description booleandisableNpc()intgetTemplateId()booleanhideNpc()booleansetAction(String specialAction)Sets the NPC's current 'act'.Methods inherited from interface moe.maple.api.script.model.object.field.FieldedObject
getField, getFieldId, getObjectId, getX, getY
-
Method Details
-
getTemplateId
int getTemplateId()- Returns:
- the speakerId/templateId for packets to use. NOT objectId from odin.
-
disableNpc
boolean disableNpc() -
hideNpc
boolean hideNpc() -
setAction
Sets the NPC's current 'act'.- Parameters:
specialAction- A string action, you may find these in their WZ node.- Returns:
- true if the action was set successfully.
-