13 lines
216 B
Plaintext
13 lines
216 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetLastDisarmed();
|
|
|
|
int iTrapDC = GetTrapDisarmDC(OBJECT_SELF);
|
|
int iLevel = GetHitDice(oPC);
|
|
int iXP = (iTrapDC*5)-iLevel;
|
|
|
|
if (GetIsPC(oPC) == TRUE)
|
|
GiveXPToCreature(oPC,iXP);
|
|
|
|
}
|