mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-28 15:42:26 +00:00
Created Lua NPC (markdown)
parent
be9c33bd71
commit
21ea0a212d
97
Lua-NPC.md
Normal file
97
Lua-NPC.md
Normal file
@ -0,0 +1,97 @@
|
||||
Lua_NPC is a class exported to Lua that represent the NPC object from EQEmu. All Lua_NPC are also [Lua_Mob](Lua-Mob).
|
||||
|
||||
### Properties
|
||||
```
|
||||
npc.null -- Returns true if this object is null
|
||||
npc.valid -- Returns true if this object is not null
|
||||
```
|
||||
|
||||
### Member Functions
|
||||
```
|
||||
NPC() -- Creates a null NPC
|
||||
void Signal(int id);
|
||||
int CheckNPCFactionAlly(int faction);
|
||||
void AddItem(int item_id, int charges);
|
||||
void AddItem(int item_id, int charges, bool equip);
|
||||
void AddLootTable();
|
||||
void AddLootTable(int id);
|
||||
void RemoveItem(int item_id);
|
||||
void RemoveItem(int item_id, int quantity);
|
||||
void RemoveItem(int item_id, int quantity, int slot);
|
||||
void ClearItemList();
|
||||
void AddCash(int copper, int silver, int gold, int platinum);
|
||||
void RemoveCash();
|
||||
int CountLoot();
|
||||
int GetLoottableID();
|
||||
uint32 GetCopper();
|
||||
uint32 GetSilver();
|
||||
uint32 GetGold();
|
||||
uint32 GetPlatinum();
|
||||
void SetCopper(uint32 amt);
|
||||
void SetSilver(uint32 amt);
|
||||
void SetGold(uint32 amt);
|
||||
void SetPlatinum(uint32 amt);
|
||||
void SetGrid(int grid);
|
||||
void SetSaveWaypoint(int wp);
|
||||
void SetSp2(int sg2);
|
||||
int GetWaypointMax();
|
||||
int GetGrid();
|
||||
uint32 GetSp2();
|
||||
int GetNPCFactionID();
|
||||
int GetPrimaryFaction();
|
||||
int GetNPCHate(Lua_Mob ent);
|
||||
bool IsOnHatelist(Lua_Mob ent);
|
||||
void SetNPCFactionID(int id);
|
||||
uint32 GetMaxDMG();
|
||||
uint32 GetMinDMG();
|
||||
bool IsAnimal();
|
||||
int GetPetSpellID();
|
||||
void SetPetSpellID(int id);
|
||||
uint32 GetMaxDamage(int level);
|
||||
void SetTaunting(bool t);
|
||||
void PickPocket(Lua_Client thief);
|
||||
void StartSwarmTimer(uint32 duration);
|
||||
void DoClassAttacks(Lua_Mob target);
|
||||
int GetMaxWp();
|
||||
void DisplayWaypointInfo(Lua_Client to);
|
||||
void CalculateNewWaypoint();
|
||||
void AssignWaypoints(int grid);
|
||||
void SetWaypointPause();
|
||||
void UpdateWaypoint(int wp);
|
||||
void StopWandering();
|
||||
void ResumeWandering();
|
||||
void PauseWandering(int pause_time);
|
||||
void MoveTo(float x, float y, float z, float h, bool save);
|
||||
void NextGuardPosition();
|
||||
void SaveGuardSpot();
|
||||
void SaveGuardSpot(bool clear);
|
||||
bool IsGuarding();
|
||||
void AI_SetRoambox(float dist, float max_x, float min_x, float max_y, float min_y);
|
||||
void AI_SetRoambox(float dist, float max_x, float min_x, float max_y, float min_y, uint32 delay);
|
||||
int GetNPCSpellsID();
|
||||
int GetSpawnPointID();
|
||||
float GetSpawnPointX();
|
||||
float GetSpawnPointY();
|
||||
float GetSpawnPointZ();
|
||||
float GetSpawnPointH();
|
||||
float GetGuardPointX();
|
||||
float GetGuardPointY();
|
||||
float GetGuardPointZ();
|
||||
void SetPrimSkill(int skill_id);
|
||||
void SetSecSkill(int skill_id);
|
||||
int GetPrimSkill();
|
||||
int GetSecSkill();
|
||||
int GetSwarmOwner();
|
||||
int GetSwarmTarget();
|
||||
void SetSwarmTarget(int target);
|
||||
void ModifyNPCStat(const char *stat, const char *value);
|
||||
void AddAISpell(int priority, int spell_id, int type, int mana_cost, int recast_delay, int resist_adjust);
|
||||
void RemoveAISpell(int spell_id);
|
||||
void SetSpellFocusDMG(int focus);
|
||||
void SetSpellFocusHeal(int focus);
|
||||
float GetSlowMitigation();
|
||||
float GetAttackSpeed();
|
||||
int GetAccuracyRating();
|
||||
int GetSpawnKillCount();
|
||||
int GetScore();
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user