MMD_PRC8/_module/nss/disarm_trap.nss
Jaysyn904 adeff59f82 Initial commit
Initial commit.
2024-08-02 23:18:00 -04:00

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);
}