These are two codes that will give xp based on level of the character and the DC of the trap/door.
The unlock script is set up so that the would be unlocker can not get xp for repeatedly unlocking the same lock. He may unlock it again, but will not recieve xp for it. He can only do it once every 10 minutes.
Just import the scripts from the erf.
To use Unlock script, put the nw_xp_unlock script on the unlock event of the placable or door. When the player unlocks the the lock, it will compair the DC of the lock against the skill level and of the player to base the xp reward.
To use the Disarm script, put the nw_xp_disarm on the disarm event on the trap tab of the placable or door. When the player disarms the trap, he will get xp based off the dc of the trap vs the skill level of the player.
// Removed code and put in a erf for ease of install.
Posted by kamal at 2009-12-29 07:05:40 Voted 10.00 on 12/29/09
Does exactly what it says, and provides functionality that should have been in the game from the beginning. _________________________ Shadow Thief: Crimmor and Path of Evil blog Link
Haven't tried it yet but I have followed this discussion with interest in the forums. Thanks for taking time to post this. I am still thinking about if to implement it on my server or not though. _________________________ X-Fire NWN1 guild page: Link
Posted by williamushunteri at 2008-06-15 06:00:55 Voted 10.00 on 06/15/08
Excellent little bit of scripting, and a wonderful idea too. Thanks for posting this.
Posted by Pattycake1 at 2008-05-27 23:52:47 Voted 10.00 on 05/27/08
I always have to vote for my submisions. But this is not just my work but the communities also.
You must be Logged In to post comments in this section.