generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
18
_module/nss/trn_greet.nss
Normal file
18
_module/nss/trn_greet.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user