Esc to clear, Enter to open the best match, click an export to open it in its page
Tools
Activity Log
WHIP keeps two timelines: one per character and one per item instance, so an admin can answer "where did this rifle come from". The admin tools read both, and your resource can write to them.
The Item LogServer owners#
/whip → Economy → Item Log has two tabs:
- Everything. Every item event, newest first, filtered by person, item, what happened, when (up to
Config.ActivityLogDays) and a minimum amount. Click a person, an item's whole life, or a place to teleport there. - Economy. One item at a time: how many are in the game now, what came in and went out by reason, and who holds or gained the most. Items inside other items, and a resource's own storage, aren't counted.
Rows that name no item (logins, dev tool use) stay on the person's timeline in the Player Manager. The reasons are the reason your resource passes to AddItem, PayPlayer and the rest.
Exports
Writes a row to a player's timeline. Pass an item's address as opts.slotData to add the row to that item's own history too, which also gives the item its uid if it has none.
| Param | Type | Description |
|---|---|---|
| source | number | Whose timeline |
| event | string | Short event name. Required |
| opts.detail | string? | Free text shown alongside it |
| opts.slotData | table? | An address with a slot: { kind = 'player', id = source, sub = 'player', slot = 4 }, the addr a use handler or FindItem gives you, or any store's (a gun in a stash) |
Returns:
true, or false, reason (no event name, a wrong address, an empty slot)-- On the player's timeline only
exports.whip_core:LogActivity(source, 'whiplash_entered', { detail = 'Bay 3' })
-- Inside a use handler: on the player's timeline and the used item's own history
exports.whip_core:LogActivity(source, 'lockpick_used', { detail = 'garage door', slotData = addr })
Pass the address, not the item. The table
GetItemAt returns is a copy, so a uid given to it belongs to nothing (a copy works only if the item already has a uid). A { container, slot } table is refused with a reason.Writes every pending log row now. Rows already save in the same transaction as the change they describe, so you only need this in tests and operations work.
Returns:
boolean: false if the database refused the rows (they're kept and tried again)