14 lines
445 B
Plaintext
14 lines
445 B
Plaintext
|
// 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);
|
||
|
}
|