Changed folder name.
Changed folder name.
This commit is contained in:
26
_module/nss/reward_unlocker.nss
Normal file
26
_module/nss/reward_unlocker.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
//Script Name: reward_unlocker
|
||||
//////////////////////////////////////////
|
||||
//Created By: Genisys (Guile)
|
||||
//Created On: 8/19/08
|
||||
/////////////////////////////////////////
|
||||
/*
|
||||
Basically this rewards whoever unlocks
|
||||
the door, for unitlizing thier skills,
|
||||
It's nice to get a reward for using skills!
|
||||
Even if it was a spell!
|
||||
*/
|
||||
////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUnlocked();
|
||||
|
||||
if(GetIsPC(oPC))
|
||||
{
|
||||
GiveXPToCreature(oPC, 30);
|
||||
|
||||
//After 3 minutes set the lock on the door again..
|
||||
DelayCommand(180.0, SetLocked(OBJECT_SELF, TRUE));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user