NPC Methods
Perl
Lua
1
$npc->AI_SetRoambox(float distance, float max_x, float min_x, float max_y, float min_y, [uint32 max_delay = 2500], [uint32 min_delay = 2500])
2
$npc->AddAISpell(int priority, int spell_id, int type, int mana_cost, int recast_delay, int resist_adjust)
3
$npc->AddCash(uint16 copper, uint16 silver, uint16 gold, uint16 platinum)
4
$npc->AddDefensiveProc(int spell_id, int chance)
5
$npc->AddItem(uint32 item_id, [uint16 charges = 0], [bool equip_item = true], [uint32 aug1 = 0], [uint32 aug2 = 0], [uint32 aug3 = 0], [uint32 aug4 = 0], [uint32 aug5 = 0], [uint32 aug6 = 0])
6
$npc->AddLootTable([uint32 loottable_id])
7
$npc->AddMeleeProc(int spell_id, int chance)
8
$npc->AddRangedProc(int spell_id, int chance)
9
$npc->AssignWaypoints(uint32 grid_id)
10
$npc->CalculateNewWaypoint()
11
$npc->ChangeLastName(string name)
12
$npc->CheckNPCFactionAlly(int32 faction_id)
13
$npc->ClearItemList()
14
$npc->ClearLastName()
15
$npc->CountLoot()
16
$npc->DisplayWaypointInfo(client* target)
17
$npc->DoClassAttacks(mob* target)
18
$npc->GetAccuracyRating()
19
$npc->GetAttackDelay()
20
$npc->GetAttackSpeed()
21
$npc->GetAvoidanceyRating()
22
$npc->GetCombatState()
23
$npc->GetCopper()
24
$npc->GetGold()
25
$npc->GetGrid()
26
$npc->GetGuardPointX()
27
$npc->GetGuardPointY()
28
$npc->GetGuardPointZ()
29
$npc->GetLoottableID()
30
$npc->GetMaxDMG()
31
$npc->GetMaxDamage(uint8 target_level)
32
$npc->GetMaxWp()
33
$npc->GetMinDMG()
34
$npc->GetNPCFactionID()
35
$npc->GetNPCHate(mob* entity)
36
$npc->GetNPCSpellsID()
37
$npc->GetPetSpellID()
38
$npc->GetPlatinum()
39
$npc->GetPrimSkill()
40
$npc->GetPrimaryFaction()
41
$npc->GetScore()
42
$npc->GetSecSkill()
43
$npc->GetSilver()
44
$npc->GetSlowMitigation()
45
$npc->GetSp2()
46
$npc->GetSpawnKillCount()
47
$npc->GetSpawnPointH()
48
$npc->GetSpawnPointID()
49
$npc->GetSpawnPointX()
50
$npc->GetSpawnPointY()
51
$npc->GetSpawnPointZ()
52
$npc->GetSpellFocusDMG()
53
$npc->GetSpellFocusHeal()
54
$npc->GetSwarmOwner()
55
$npc->GetSwarmTarget()
56
$npc->GetWaypointMax()
57
$npc->IsAnimal()
58
$npc->IsGuarding()
59
$npc->IsOnHatelist(mob* target)
60
$npc->MerchantCloseShop()
61
$npc->MerchantOpenShop()
62
$npc->ModifyNPCStat(string key, string value)
63
$npc->MoveTo(float X, float Y, float Z, [float heading], [bool save_guard_location = false])
64
$npc->NextGuardPosition()
65
$npc->PauseWandering(int pause_time)
66
$npc->PickPocket(client* thief)
67
$npc->RecalculateSkills()
68
$npc->RemoveAISpell(int spell_id)
69
$npc->RemoveCash()
70
$npc->RemoveDefensiveProc(int spell_id)
71
$npc->RemoveFromHateList(mob* target)
72
$npc->RemoveItem(uint32 item_id, [uint16 quantity = 0], [uint16 slot_id = 0])
73
$npc->RemoveMeleeProc(int spell_id)
74
$npc->RemoveRangedProc(int spell_id)
75
$npc->ResumeWandering()
76
$npc->SaveGuardSpot(X, Y, Z, heading)
77
$npc->SetCopper(uint32 copper_amount)
78
$npc->SetGold(uint32 gold_amount)
79
$npc->SetGrid(int32 grid_id)
80
$npc->SetNPCFactionID(int32 faction_id)
81
$npc->SetPetSpellID(uint16 amount)
82
$npc->SetPlatinum(uint32 platinum_amount)
83
$npc->SetPrimSkill(int skill_id)
84
$npc->SetSaveWaypoint(uint16 waypoint)
85
$npc->SetSecSkill(int skill_id)
86
$npc->SetSilver(uint32 silver_amount)
87
$npc->SetSimpleRoamBox(box_size, move_distance, move_delay)
88
$npc->SetSp2(uint32 set_spawn_group_id)
89
$npc->SetSpellFocusDMG(int new_spell_focus_dmg)
90
$npc->SetSpellFocusHeal(int32 new_spell_focus_heal)
91
$npc->SetSwarmTarget(int target_id)
92
$npc->SetTaunting(bool toggle)
93
$npc->SetWaypointPause()
94
$npc->SignalNPC(int signal_id)
95
$npc->StartSwarmTimer(uint32 duration)
96
$npc->StopWandering()
97
$npc->UpdateWaypoint(int wp_index)
Copied!
1
npc:AI_SetRoambox(float dist, float max_x, float min_x, float max_y, float min_y); -- void
2
npc:AI_SetRoambox(float dist, float max_x, float min_x, float max_y, float min_y, uint32 delay, uint32 mindelay); -- void
3
npc:AddAISpell(int priority, int spell_id, int type, int mana_cost, int recast_delay, int resist_adjust); -- void
4
npc:AddAISpell(int priority, int spell_id, int type, int mana_cost, int recast_delay, int resist_adjust, int min_hp, int max_hp); -- void
5
npc:AddCash(int copper, int silver, int gold, int platinum); -- void
6
npc:AddItem(int item_id, int charges); -- void
7
npc:AddItem(int item_id, int charges, bool equip); -- void
8
npc:AddItem(int item_id, int charges, bool equip, int aug1); -- void
9
npc:AddItem(int item_id, int charges, bool equip, int aug1, int aug2); -- void
10
npc:AddItem(int item_id, int charges, bool equip, int aug1, int aug2, int aug3); -- void
11
npc:AddItem(int item_id, int charges, bool equip, int aug1, int aug2, int aug3, int aug4); -- void
12
npc:AddItem(int item_id, int charges, bool equip, int aug1, int aug2, int aug3, int aug4, int aug5); -- void
13
npc:AddItem(int item_id, int charges, bool equip, int aug1, int aug2, int aug3, int aug4, int aug5, int aug6); -- void
14
npc:AddLootTable(); -- void
15
npc:AddLootTable(int id); -- void
16
npc:AssignWaypoints(int grid); -- void
17
npc:CalculateNewWaypoint(); -- void
18
npc:CheckNPCFactionAlly(int faction); -- int
19
npc:ClearItemList(); -- void
20
npc:CountLoot(); -- int
21
npc:DisplayWaypointInfo(Lua_Client to); -- void
22
npc:DoClassAttacks(Lua_Mob target); -- void
23
npc:GetAccuracyRating(); -- int
24
npc:GetAttackDelay(); -- int
25
npc:GetAttackSpeed(); -- float
26
npc:GetAvoidanceRating(); -- int
27
npc:GetCopper(); -- uint32
28
npc:GetFollowCanRun(); -- bool
29
npc:GetFollowDistance(); -- int
30
npc:GetFollowID(); -- int
31
npc:GetGold(); -- uint32
32
npc:GetGrid(); -- int
33
npc:GetGuardPointX(); -- float
34
npc:GetGuardPointY(); -- float
35
npc:GetGuardPointZ(); -- float
36
npc:GetLoottableID(); -- int
37
npc:GetMaxDMG(); -- uint32
38
npc:GetMaxDamage(int level); -- uint32
39
npc:GetMaxWp(); -- int
40
npc:GetMinDMG(); -- uint32
41
npc:GetNPCFactionID(); -- int
42
npc:GetNPCHate(Lua_Mob ent); -- int
43
npc:GetNPCSpellsID(); -- int
44
npc:GetPetSpellID(); -- int
45
npc:GetPlatinum(); -- uint32
46
npc:GetPrimSkill(); -- int
47
npc:GetPrimaryFaction(); -- int
48
npc:GetRawAC(); -- int
49
npc:GetScore(); -- int
50
npc:GetSecSkill(); -- int
51
npc:GetSilver(); -- uint32
52
npc:GetSlowMitigation(); -- float
53
npc:GetSp2(); -- uint32
54
npc:GetSpawnKillCount(); -- int
55
npc:GetSpawnPointH(); -- float
56
npc:GetSpawnPointID(); -- int
57
npc:GetSpawnPointX(); -- float
58
npc:GetSpawnPointY(); -- float
59
npc:GetSpawnPointZ(); -- float
60
npc:GetSpellFocusDMG(); -- int
61
npc:GetSpellFocusHeal(); -- int
62
npc:GetSwarmOwner(); -- int
63
npc:GetSwarmTarget(); -- int
64
npc:GetWaypointMax(); -- int
65
npc:IsAnimal(); -- bool
66
npc:IsGuarding(); -- bool
67
npc:IsOnHatelist(Lua_Mob ent); -- bool
68
npc:MerchantCloseShop(); -- void
69
npc:MerchantOpenShop(); -- void
70
npc:ModifyNPCStat(const char *stat, const char *value); -- void
71
npc:MoveTo(float x, float y, float z, float h, bool save); -- void
72
npc:NextGuardPosition(); -- void
73
npc:PauseWandering(int pause_time); -- void
74
npc:PickPocket(Lua_Client thief); -- void
75
npc:RecalculateSkills(); -- void
76
npc:RemoveAISpell(int spell_id); -- void
77
npc:RemoveCash(); -- void
78
npc:RemoveItem(int item_id); -- void
79
npc:RemoveItem(int item_id, int quantity); -- void
80
npc:RemoveItem(int item_id, int quantity, int slot); -- void
81
npc:ResumeWandering(); -- void
82
npc:SaveGuardSpot(float x, float y, float z, float heading); -- void
83
npc:SetCopper(uint32 amt); -- void
84
npc:SetFollowCanRun(bool v); -- void
85
npc:SetFollowDistance(int dist); -- void
86
npc:SetFollowID(int id); -- void
87
npc:SetGold(uint32 amt); -- void
88
npc:SetGrid(int grid); -- void
89
npc:SetNPCFactionID(int id); -- void
90
npc:SetPetSpellID(int id); -- void
91
npc:SetPlatinum(uint32 amt); -- void
92
npc:SetPrimSkill(int skill_id); -- void
93
npc:SetSaveWaypoint(int wp); -- void
94
npc:SetSecSkill(int skill_id); -- void
95
npc:SetSilver(uint32 amt); -- void
96
npc:SetSimpleRoamBox(float box_size); -- void
97
npc:SetSimpleRoamBox(float box_size, float move_distance); -- void
98
npc:SetSimpleRoamBox(float box_size, float move_distance, int move_delay); -- void
99
npc:SetSp2(int sg2); -- void
100
npc:SetSpellFocusDMG(int focus); -- void
101
npc:SetSpellFocusHeal(int focus); -- void
102
npc:SetSwarmTarget(int target); -- void
103
npc:SetTaunting(bool t); -- void
104
npc:SetWaypointPause(); -- void
105
npc:Signal(int id); -- void
106
npc:StartSwarmTimer(uint32 duration); -- void
107
npc:StopWandering(); -- void
108
npc:UpdateWaypoint(int wp); -- void
Copied!
Last modified 1yr ago
Copy link