Initial Upload
Initial Upload
This commit is contained in:
26
_module/nss/l_sot.nss
Normal file
26
_module/nss/l_sot.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
int nEvent =GetUserDefinedItemEventNumber();
|
||||
object oItem=GetItemActivated();
|
||||
object oPC=GetItemActivator();
|
||||
object oArea=GetArea(oPC);
|
||||
|
||||
if (nEvent ==X2_ITEM_EVENT_UNEQUIP) return;
|
||||
if (nEvent ==X2_ITEM_EVENT_EQUIP) return;
|
||||
|
||||
|
||||
if(GetTag(oArea)=="jail" || GetTag(oArea)=="TheVoid")
|
||||
{
|
||||
SendMessageToPC(oPC,"You cannot use that item here.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(GetTag(oItem)=="l_sot")
|
||||
{
|
||||
object oActivator=GetItemActivator();
|
||||
AssignCommand(oActivator, ActionStartConversation(oActivator, "SoTravel", TRUE));
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user