Initial upload
Initial upload
This commit is contained in:
30
_module/nss/jano_onrest.nss
Normal file
30
_module/nss/jano_onrest.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name On Succeful Rest Event
|
||||
//:: FileName asg_onr_dbplayer
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Place in your OnRestEvetns
|
||||
use as ExecuteScript("asg_onr_dbplayer",GetModule());
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Donny Wilbanks
|
||||
//:: Created On: 6/24/03
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "asg_i_dbplayer"
|
||||
|
||||
void main()
|
||||
{
|
||||
int iRestEvent = GetLastRestEventType();
|
||||
object oPlayer = GetLastPCRested();
|
||||
if (GetIsPC(oPlayer))
|
||||
{
|
||||
if (iRestEvent==REST_EVENTTYPE_REST_FINISHED)
|
||||
{
|
||||
// On Succesful Rest Update Player Recored
|
||||
PlayerDatabase("W",oPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user