LoD_PRC8/_module/nss/final_legend_giv.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

23 lines
764 B
Plaintext

#include "final_legend_inc"
void main()
{
object oPC = GetPCSpeaker();
int iDone = CheckExchangeItems(oPC,1);
effect eVis1 = EffectVisualEffect(VFX_DUR_PROTECTION_ELEMENTS);
effect eVis2 = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eVis1, oPC, 2.0f);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eVis2, oPC, 2.0f);
string sCharName = GetName(oPC);
string sName = GetPCPlayerName(oPC);
string sIP = GetPCIPAddress(oPC);
string sCD = GetPCPublicCDKey(oPC);
string sMessage = sName + " (" + sCharName + ") " + " (" + sIP + ") " + " (" + sCD + ") has won the Final Legend.";
WriteTimestampedLogEntry(sMessage);
SetCampaignInt("final_legend_player", sName, TRUE);
}