Initial commit
Initial commit.
This commit is contained in:
15
_module/nss/use_drink.nss
Normal file
15
_module/nss/use_drink.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUsedBy();
|
||||
int iDrank = GetLocalInt(oPC,"drank");
|
||||
string sName = GetName(OBJECT_SELF);
|
||||
|
||||
if (iDrank == 1)
|
||||
SendMessageToPC(oPC,"Although you are not thirsty, you take a drink from the "+sName);
|
||||
else
|
||||
{
|
||||
SendMessageToPC(oPC,"You take a drink from the "+sName);
|
||||
SetLocalInt(oPC,"drank",1);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user