Public Member Functions |
| CNpcTask (INpcSchedule& parentSchedule) |
| CNpcTask (string& name, INpcSchedule& parentSchedule) |
void | Init (bool keepParent=false) |
NpcTaskType | get_Type () |
string | get_Name () |
string | get_FullName () |
array< uint8 > | get_Hours () |
array< uint8 > | get_Minutes () |
INpcSchedule@ | ParentSchedule () |
uint | GetActions (array< INpcTaskAction@>& actionsList) |
void | Save (Buffer& buffer) |
void | Load (Buffer& buffer) |
void | AddAction (NpcTaskActionType type, FTaskAction& function, bool requireMap) final |
void | AddAction (NpcTaskActionType type, FTaskAction& function, array< uint8 > data, bool requireMap) final |
INpcTask@ | Roll (uint max) |
INpcTask@ | Container_Open (uint16 pid, uint16 hexX, uint16 hexY, uint anim2) |
INpcTask@ | Container_Close (uint16 pid, uint16 hexX, uint16 hexY, uint anim2) |
INpcTask@ | Container_OpenNear (uint anim2) |
INpcTask@ | Container_CloseNear (uint anim2) |
INpcTask@ | EditItem_Update () |
INpcTask@ | EditItem_SetFlag (uint flag) |
INpcTask@ | EditItem_UnsetFlag (uint flag) |
INpcTask@ | EditItem_Flags (uint flags) |
INpcTask@ | EditItem_PicMap (string& picmap) |
INpcTask@ | EditItem_SetScript (string& script) |
INpcTask@ | EditItem_SetEvent (int event, string& function) |
INpcTask@ | EditItem_PicInv (string& picinv) |
INpcTask@ | Home_Set (uint16 hexX, uint16 hexY, uint8 dir) |
INpcTask@ | Home_SetRandom (array< array< uint16 > > positions) |
INpcTask@ | Home_Save () |
INpcTask@ | Home_Load () |
INpcTask@ | Home_Reset () |
INpcTask@ | If_Never () |
INpcTask@ | If_Always () |
INpcTask@ | If_TaskVarLower (string& name, int value) |
INpcTask@ | If_TaskVarLowerEqual (string& name, int value) |
INpcTask@ | If_TaskVarEqual (string& name, int value) |
INpcTask@ | If_TaskVarNotEqual (string& name, int value) |
INpcTask@ | If_TaskVarGreater (string& name, int value) |
INpcTask@ | If_TaskVarGreaterEqual (string& name, int value) |
INpcTask@ | If_Percent (uint8 percent) |
INpcTask@ | If_Night () |
INpcTask@ | If_Day () |
INpcTask@ | If_Morning () |
INpcTask@ | If_Afternoon () |
INpcTask@ | If_Evening () |
INpcTask@ | If_Year (uint8 year) |
INpcTask@ | If_Month (uint8 month) |
INpcTask@ | If_DayOfMonth (uint8 day) |
INpcTask@ | If_Hour (uint8 hour) |
INpcTask@ | If_Minute (uint8 minute) |
INpcTask@ | If_Worldmap () |
INpcTask@ | If_NotWorldmap () |
INpcTask@ | If_MapPid (uint16 pid) |
INpcTask@ | If_MapPids (array< uint16 > pids) |
INpcTask@ | If_NotMapPid (uint16 pid) |
INpcTask@ | If_NotMapPids (array< uint16 > pids) |
INpcTask@ | If_ContainerOpened (uint16 hexX, uint16 hexY, uint16 pid) |
INpcTask@ | If_ContainerClosed (uint16 hexX, uint16 hexY, uint16 pid) |
INpcTask@ | If_ParamBaseLower (uint16 param, int value) |
INpcTask@ | If_ParamBaseLowerEqual (uint16 param, int value) |
INpcTask@ | If_ParamBaseEqual (uint16 param, int value) |
INpcTask@ | If_ParamBaseNotEqual (uint16 param, int value) |
INpcTask@ | If_ParamBaseGreater (uint16 param, int value) |
INpcTask@ | If_ParamBaseGreaterEqual (uint16 param, int value) |
INpcTask@ | If_ParamLower (uint16 param, int value) |
INpcTask@ | If_ParamLowerEqual (uint16 param, int value) |
INpcTask@ | If_ParamEqual (uint16 param, int value) |
INpcTask@ | If_ParamNotEqual (uint16 param, int value) |
INpcTask@ | If_ParamGreater (uint16 param, int value) |
INpcTask@ | If_ParamGreaterEqual (uint16 param, int value) |
INpcTask@ | EndIf () |
INpcTask@ | Inventory_AddItem (uint16 pid) |
INpcTask@ | Inventory_AddItem (uint16 pid, uint count) |
INpcTask@ | Inventory_SubItem (uint16 pid) |
INpcTask@ | Inventory_SubItem (uint16 pid, uint count) |
INpcTask@ | Inventory_SetFavouriteItem (uint8 slot, uint16 pid) |
INpcTask@ | Inventory_UseFavouriteItem (uint8 slot, uint16 pid) |
INpcTask@ | Map_CreateItem (uint16 pid, uint16 hexX, uint16 hexY, uint count) |
INpcTask@ | Map_DeleteItem (uint16 pid, uint16 hexX, uint16 hexY) |
INpcTask@ | Say (uint8 sayType, string& text) |
INpcTask@ | Say_Wait (uint8 sayType, string& text) |
INpcTask@ | Say_TaskVar (string& name) |
INpcTask@ | Say_Random (uint8 sayType, array< string >& text) |
INpcTask@ | TaskVar_Delete (string& name) |
INpcTask@ | TaskVar_Set (string& name, int value) |
INpcTask@ | TaskVar_Add (string& name) |
INpcTask@ | TaskVar_Sub (string& name) |
INpcTask@ | TaskVar_Add (string& name, int value_add) |
INpcTask@ | TaskVar_Sub (string& name, int value_sub) |
INpcTask@ | TaskVar_SetRandom (string& name, int from, int to) |
INpcTask@ | TaskVar_AddRandom (string& name, int from, int to) |
INpcTask@ | TaskVar_SubRandom (string& name, int from, int to) |
INpcTask@ | CopyToGameVar (string& name, uint8 varType, uint16 varId, bool map) |
INpcTask@ | CopyFromGameVar (string& name, uint8 varType, uint16 varId, bool map) |
INpcTask@ | TaskVar_CopyToGlobalVar (string& name, uint16 GVAR) |
INpcTask@ | TaskVar_CopyFromGlobalVar (string& name, uint16 GVAR) |
INpcTask@ | TaskVar_CopyToLocationVar (string& name, uint16 LLVAR) |
INpcTask@ | TaskVar_CopyFromLocationVar (string& name, uint16 LLVAR) |
INpcTask@ | TaskVar_CopyToMapVar (string& name, uint16 LMVAR) |
INpcTask@ | TaskVar_CopyFromMapVar (string& name, uint16 LMVAR) |
INpcTask@ | TaskVar_CopyToCritterVar (string& name, uint16 LVAR) |
INpcTask@ | TaskVar_CopyFromCritterVar (string& name, uint16 LVAR) |
INpcTask@ | Wait (uint time) |
INpcTask@ | Wait_Random (uint min, uint max) |
INpcTask@ | Wait_Home () |
INpcTask@ | Wait_FavouriteItem (uint8 slot) |
INpcTask@ | VerboseAction (string& text) |
INpcTask@ | DemandAnswer (uint8 sayType, string& text) |
INpcTask@ | Animate (uint anim2, bool clearSequence, bool delayPlay) |
INpcTask@ | Sleep () |
INpcTask@ | WakeUp () |
INpcTask@ | FixForcefield (uint16 hexX, uint16 hexY, uint anim2) |
INpcTask@ | Walk_Home (uint16 hexX, uint16 hexY, uint8 dir) |
INpcTask@ | Walk_Home (array< uint16 >& position) |
INpcTask@ | Walk_RandomHome (array< array< uint16 > > positions) |
INpcTask@ | Walk_Patrol (array< array< uint16 > >& patrol, bool saveHome) |
INpcTask@ | CustomAction (string& functionName, bool requireMap) |
Public Attributes |
string | name |
INpcSchedule@ | parentSchedule |
array< CNpcTaskAction@> | actions |
array< CNpcTaskAction@> | actionsQueue |
NpcTaskType | type |
array< uint8 > | hours |
array< uint8 > | minutes |
uint | roll |