23 lines
764 B
Plaintext
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);
|
|
}
|