HoS_PRC8/_mod/_module/nss/rts_it_op1.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

20 lines
693 B
Plaintext

// rts_it_op1
void main()
{
object oPC=GetItemActivator();
object oItem=GetItemActivated();
location lLoc=GetItemActivatedTargetLocation();
object oArea=GetArea(oPC);
string sATag=GetTag(oArea);
object oMod=GetModule();
object oLeader=GetLocalObject(oMod,"oTeamLead"+sATag);
object oMine;
if (GetIsObjectValid(oLeader))
{ // valid target
oMine=CreateObject(OBJECT_TYPE_PLACEABLE,"rts_it_op1_pl",lLoc);
SendMessageToPC(oPC,"If you are wise you will RUN now!!");
if (GetIsObjectValid(oMine)) DestroyObject(oItem);
} // valid target
else { SendMessageToPC(oPC,"This item must be used inside of a lair. Recommend it NOT be your own lair!"); }
}