UW2_PRC8/_module/nss/startmercweap.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

19 lines
501 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object o11;
o11 = GetItemPossessedBy(oPC, "NW_WSWMLS013");
if(GetIsObjectValid(o11) != 0){
DestroyObject(o11);
}
// Either open the store with that tag or let the user know that no store exists.
object oStore = GetNearestObjectByTag("weapons1");
if(GetObjectType(oStore) == OBJECT_TYPE_STORE)
OpenStore(oStore, GetPCSpeaker());
else
ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK);
}