33 lines
822 B
Plaintext
33 lines
822 B
Plaintext
|
//:://////////////////////////////////////////////
|
||
|
//:: 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);
|
||
|
}
|
||
|
}
|