UW2_PRC8/_module/nss/scan_pc_items.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

82 lines
2.0 KiB
Plaintext

#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);
}
}
}