Initial upload
Initial upload
This commit is contained in:
32
_module/nss/jano_heartbeat.nss
Normal file
32
_module/nss/jano_heartbeat.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Donny Wilbanks
|
||||
//:: Created On: 6/24/03
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "asg_i_dbplayer"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
int iLast = GetLocalInt(GetModule(),"LAST_PB_UPDATEjano");
|
||||
iLast = iLast + 1 ;
|
||||
float i = 0.0;
|
||||
if (iLast >= 50 )
|
||||
{
|
||||
SetLocalInt(GetModule(),"LAST_PB_UPDATEjano",0);
|
||||
|
||||
object oPlayer = GetFirstPC();
|
||||
while (GetIsObjectValid(oPlayer))
|
||||
{
|
||||
SendMessageToPC(oPlayer,"Saving All Character Files...");
|
||||
i = i +5.0;
|
||||
PlayerDatabase("W",oPlayer);
|
||||
DelayCommand(i,ExportSingleCharacter(oPlayer));
|
||||
oPlayer = GetNextPC();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalInt(GetModule(),"LAST_PB_UPDATEjano",iLast);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user