Initial upload
Initial upload
This commit is contained in:
39
_module/nss/check_toons.nss
Normal file
39
_module/nss/check_toons.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
object oTa = GetItemPossessedBy(oPC, "gen_token");
|
||||
object oTe = GetItemPossessedBy(oPC, "guild_pass");
|
||||
|
||||
if(GetIsDM(oPC))
|
||||
{ return; }
|
||||
if(oTa != OBJECT_INVALID || oTe != OBJECT_INVALID)
|
||||
{ return; }
|
||||
|
||||
int nStr = GetAbilityScore(oPC, ABILITY_STRENGTH, FALSE);
|
||||
int nDex = GetAbilityScore(oPC, ABILITY_DEXTERITY, FALSE);
|
||||
int nCon = GetAbilityScore(oPC, ABILITY_CONSTITUTION, FALSE);
|
||||
int nInt = GetAbilityScore(oPC, ABILITY_INTELLIGENCE, FALSE);
|
||||
int nCha =GetAbilityScore(oPC, ABILITY_CHARISMA, FALSE);
|
||||
int nWis =GetAbilityScore(oPC, ABILITY_WISDOM, FALSE);
|
||||
string sName = GetName(oPC);
|
||||
string sPC = GetPCPlayerName(oPC);
|
||||
string sCD = GetPCPublicCDKey(oPC, FALSE);
|
||||
string sIP = GetPCIPAddress(oPC);
|
||||
string sMsg;
|
||||
|
||||
if(nWis >=70 || nCha >=70 || nInt >=70 || nCon >=70 || nDex >=70 || nStr >=70)
|
||||
{
|
||||
sMsg = "******CHEATER LOGGING IN******* - DMs Check Character IMMEDIATELY! - ";
|
||||
sMsg += sName;
|
||||
sMsg += " / ";
|
||||
sMsg += sPC;
|
||||
sMsg += " / ";
|
||||
sMsg += sCD;
|
||||
sMsg += " / ";
|
||||
sMsg += sIP;
|
||||
|
||||
SendMessageToAllDMs(sMsg);
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user