how to use the (isequipped) command to check if one of x items is equipped?
So is it the right way to do it?
if (! isequipped (13071)) {
message strcharinfo (0), "You have no equipped Upg weapon";
end;
if (! isequipped (18112)) {
message strcharinfo (0), "You have no equipped Upg weapon";
end;
if (! isequipped (21000)) {
message strcharinfo (0), "You have no equipped Upg weapon";
end;
if (! isequipped (1292)) {
message strcharinfo (0), "You have no equipped Upg weapon";
end;
I want this first check to accept any of the UPG weapons.
If any of them are equipped, npc does another check:
else if (countitem (6240) <1) {
message strcharinfo (0), "You need some ore so I can upgrade your weapon";
end;
else if (countitem (984) <1) {
message strcharinfo (0), "You need some ore so I can upgrade your weapon";
end;
Do I need to check one of the 5 UPG weapons and one ore from a list of 4 ores?
My npc will only start if any combination is hit, one of the weapons and one of the metals.
Question
Tassadar
how to use the (isequipped) command to check if one of x items is equipped?
So is it the right way to do it?
I want this first check to accept any of the UPG weapons.
If any of them are equipped, npc does another check:
Do I need to check one of the 5 UPG weapons and one ore from a list of 4 ores?
My npc will only start if any combination is hit, one of the weapons and one of the metals.
What is the correct way to do this?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.