Rune_PRC8/_module/nss/k_xp_trap.nss

14 lines
445 B
Plaintext
Raw Permalink Normal View History

2024-09-13 09:10:39 -04:00
// This script gives XP to the creature that disarmed the trap.
//
// ============================================================================
// Part of the "Aspire" module foundation package.
// Author: Kaylor
// ============================================================================
void main()
{
object oCreature = GetLastDisarmed();
int iXP = GetTrapDisarmDC(OBJECT_SELF) + d8(2);
GiveXPToCreature(oCreature, iXP);
}