PoA_PRC8/_module/nss/reward_unlocker.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

27 lines
565 B
Plaintext

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