Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
18
_module/nss/eye_dm_sub1.nss
Normal file
18
_module/nss/eye_dm_sub1.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "eye_dm_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oDM = GetPCSpeaker();
|
||||
int iChoice = GetLocalInt(oDM, "SubscriberWand");
|
||||
if (iChoice == 1) // add subscription
|
||||
{
|
||||
DM_SubscribeToMessage(oDM, SUBSCRIPTION_01);
|
||||
SetCustomToken(14000, "You succesfully subscribed to '" + SUBSCRIPTION_01 + "'");
|
||||
}
|
||||
else if (iChoice == 2) // remove subscription
|
||||
{
|
||||
DM_UnSubscribeToMessage(oDM, SUBSCRIPTION_01);
|
||||
SetCustomToken(14000, "You succesfully unsubscribed '" + SUBSCRIPTION_01 + "'");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user