43 lines
964 B
Plaintext
43 lines
964 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetEnteringObject();
|
||
|
object oNPC = GetModule();
|
||
|
object oItem1;
|
||
|
|
||
|
//Database item check Start
|
||
|
oItem1 = GetItemPossessedBy(oPC, "database001");
|
||
|
|
||
|
if (!GetIsObjectValid(oItem1))
|
||
|
{
|
||
|
CreateItemOnObject("database001", oPC, 1);
|
||
|
}
|
||
|
//Database item check End
|
||
|
|
||
|
//Race check Start
|
||
|
if (GetRacialType(oPC) != RACIAL_TYPE_HUMAN &&
|
||
|
!GetIsDM(oPC))
|
||
|
{
|
||
|
DelayCommand(3.0, FloatingTextStringOnCreature("Only Humans are an allowed race, you will be booted.", oPC, FALSE));
|
||
|
DelayCommand(10.0, BootPC(oPC));
|
||
|
}
|
||
|
//Race check End
|
||
|
|
||
|
//Allowed DMs Start
|
||
|
if (GetIsDM(oPC))
|
||
|
{
|
||
|
//Drakaden
|
||
|
if (GetPCPublicCDKey(oPC) != "FTMFTR33")
|
||
|
{
|
||
|
SendMessageToAllDMs("UN-AUTHORIZED DM ENTRY");
|
||
|
DelayCommand(0.1, BootPC(oPC));
|
||
|
}
|
||
|
|
||
|
}
|
||
|
//Allowed DMs End
|
||
|
|
||
|
//Send PC infos to DMs Start
|
||
|
SendMessageToAllDMs("CD-key: " + GetPCPublicCDKey(oPC) + ", Account Name: " + GetPCPlayerName(oPC) + ", Character Name: " + GetName(oPC) + ", IP: " + GetPCIPAddress(oPC) + "");
|
||
|
//Send PC infos to DMs End
|
||
|
}
|