Rune_PRC8/_module/nss/trn_greet.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

19 lines
454 B
Plaintext

void main()
{
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0) return;
{
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
object oPC = GetEnteringObject();
string sGreetString;
if (GetXP(oPC) == 0)
sGreetString = ". As a new character, you should speak to me first.";
else
sGreetString = ".";
AssignCommand(GetObjectByTag("CS1_SETUPHELPER"), SpeakString("Welcome, " + GetName(oPC) + sGreetString));
}
}