Author Sticky: Post Working Scripts Here
Wildgoose Posted: Wednesday, 26 June 08:56AM
Script Name: Disarm Trap XP
What it does: Gives the disarming player XP equal to the trap DC.

Just add this script to ANY trap you have and it will adjust the XP depending on the trap's DC.
(Put it in OnTrapDisarm.)

NWScript:
//::-----------------------------------

//:: Disarm Trap Experience Giver

//::-----------------------------------

//:: Created By: Mark 'Wildgoose' Lake

//::-----------------------------------

void main()

{

    // Determine who Disarmed Trap

    object oPC = GetLastDisarmed();

    // Give XP equal to DisarmDC

    GiveXPToCreature(oPC, GetTrapDisarmDC(OBJECT_SELF));

}



_________________
That's what I like about them elven girls man... I get older; they stay the same age.