Changed folder name.
Changed folder name.
This commit is contained in:
81
_module/nss/scan_pc_items.nss
Normal file
81
_module/nss/scan_pc_items.nss
Normal file
@@ -0,0 +1,81 @@
|
||||
#include "gc_prop_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
int nInt = GetLocalInt(oPC, "SCANNED");
|
||||
|
||||
//if It's not a PC entering...
|
||||
if (!GetIsPC(oPC) || GetIsDM(oPC)) return; //Stop here!
|
||||
|
||||
//Do this only once per PC!
|
||||
if(nInt >=2)
|
||||
{return;}
|
||||
else
|
||||
{ SetLocalInt(oPC, "SCANNED", 3); }
|
||||
|
||||
//The msg to the DMs and the log...
|
||||
string sName = GetPCPlayerName(oPC);
|
||||
string sCDKey = GetPCPublicCDKey(oPC, FALSE);
|
||||
string sMsg;
|
||||
sMsg = "****Player " + GetName(oPC) + " " + sName + " " + sCDKey + " " +
|
||||
" Has Entered The Module and their character sheet needs to be investigated.";
|
||||
|
||||
//ONLY CHECK NON-GUILD MEMBERS!
|
||||
if(GetItemPossessedBy(oPC, "guildpass")==OBJECT_INVALID)
|
||||
{
|
||||
|
||||
//Remove bad item properties from their items!
|
||||
DelayCommand(2.0, CheckWorn(oPC));
|
||||
DelayCommand(5.0, CheckInventory(oPC));
|
||||
|
||||
//Check to see if the PC playing on the module is LEGIT!
|
||||
if(GetAbilityScore(oPC, ABILITY_STRENGTH, TRUE)>=60)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Strength!");
|
||||
}
|
||||
if(GetAbilityScore(oPC, ABILITY_WISDOM, TRUE)>=60)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Wisdom!");
|
||||
}
|
||||
if(GetAbilityScore(oPC, ABILITY_INTELLIGENCE, TRUE)>=60)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Intelligence!");
|
||||
}
|
||||
if(GetAbilityScore(oPC, ABILITY_CHARISMA, TRUE)>=60)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Charisma!");
|
||||
}
|
||||
if(GetAbilityScore(oPC, ABILITY_DEXTERITY, TRUE)>=60)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Dexterity!");
|
||||
}
|
||||
if(GetAbilityScore(oPC, ABILITY_CONSTITUTION, TRUE)>=60)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Constitution!");
|
||||
}
|
||||
if(GetCurrentHitPoints(oPC)>=2000)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Hit Points!");
|
||||
}
|
||||
if(GetBaseAttackBonus(oPC)>=60)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg + " They have UBER Attack Bonus!");
|
||||
}
|
||||
if(GetAC(oPC)>=111)
|
||||
{
|
||||
WriteTimestampedLogEntry(sMsg);
|
||||
SendMessageToAllDMs(sMsg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user