Module commit
Module commit.
This commit is contained in:
20
_module/nss/kpb_on_activate.nss
Normal file
20
_module/nss/kpb_on_activate.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
void main()
|
||||
{
|
||||
object oItem=GetItemActivated();
|
||||
object oUser=GetItemActivator();
|
||||
location lLoc=GetItemActivatedTargetLocation();
|
||||
string sTag=GetTag(oItem);
|
||||
|
||||
if(sTag=="kpbwand")
|
||||
{
|
||||
if (GetIsDM(oUser) == TRUE)
|
||||
{
|
||||
AssignCommand(oUser, ActionStartConversation(oUser, "kpb_wand", TRUE));
|
||||
}
|
||||
else
|
||||
{
|
||||
DestroyObject(oItem);
|
||||
SendMessageToPC(oUser, "I am not an immortal, and I cannot use that item!");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user