docs/TallyDatabase

Tally.find_npc(npcId)

Finds the existing or creates a new NPC database entry for npcId.
Internal to TallyDatabase.

Parameters

npcId
Integer. The ID of the type of NPC to find or create.


Tally.find_npc_per_character(npcId)

Finds the existing or creates a new per-character NPC database entry for npcId.
Internal to TallyDatabase.

Parameters

npcId
Integer. The ID of the type of NPC to find or create.


Tally.get(npcId)

Gets details about mobs of type npcId

Parameters

npcId
Integer. The ID of the type of NPC in which the caller is interested.


Tally.record_item_loot_by_mob(itemId, mobs, items)

Notes that an item of type itemId has just been looted from one or more corpses.

Parameters

itemId
Integer. The ID of the type of item that has dropped.
mobs
items
Table. A table of npcId -> quantity.


Tally.record_mob(npcId, name, location)

Notes details of a mob that has presumably just been observed.

Parameters

npcId
Integer. The ID of the type of NPC that has been looted.
name
String. The mob's (localised) name. This will be the display name for mobs with this ID in future.
location
String. The zone name and subzone name where the mob should be noted as spawning.


Tally.record_mob_kill(npcId)

Notes that a mob of type npcId has just been killed.

Parameters

npcId
Integer. The ID of the type of NPC that has been looted.


Tally.record_mob_loot(npcId)

Notes that a mob of type npcId has just been looted and has dropped items.

Parameters

npcId
Integer. The ID of the type of NPC that has been looted.


Tally.record_mob_runs(npcId)

Notes that a mob of type npcId has just been observed running away in fear.

Parameters

npcId
Integer. The ID of the type of NPC that runs.


Tally.record_mob_runs_by_name(npcName)

Notes that a mob named npcName has just been observed running away in fear.

Parameters

npcName
String. The name of the type of NPC that runs.



Comments

Posts Quoted:
Reply
Clear All Quotes