49 lines
831 B
Plaintext
49 lines
831 B
Plaintext
void LodPlayer(object oPC)
|
|
{
|
|
|
|
|
|
string playnam = GetPCPlayerName(oPC);
|
|
location playloc = GetLocation(oPC);
|
|
|
|
if(GetLocalInt(oPC, "load") <= 3){
|
|
DelayCommand(3.0, AssignCommand(oPC, JumpToLocation(GetCampaignLocation("trimmelonLocations", playnam, oPC))));
|
|
SetLocalInt(oPC, "load", 5);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void SavPlayer(object oPC) {
|
|
|
|
|
|
string playnam = GetPCPlayerName(oPC);
|
|
location playloc = GetLocation(oPC);
|
|
|
|
SetCampaignLocation("trimmelonLocations", playnam, playloc, oPC);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void SavAllPlayers() {
|
|
|
|
object oPC = OBJECT_INVALID;
|
|
|
|
|
|
oPC = GetFirstPC();
|
|
|
|
while (oPC != OBJECT_INVALID) {
|
|
PrintString("Saving all players: Found valid player");
|
|
|
|
if (GetIsObjectValid(GetArea(oPC)) == TRUE) {
|
|
|
|
SavPlayer(oPC);
|
|
}
|
|
|
|
oPC = GetNextPC();
|
|
}
|
|
}
|
|
|