PoA_PRC8/_module/nss/reward_unlocker.nss

27 lines
565 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
//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));
}
}