Strand Posted January 3, 2015 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 102 Reputation: 2 Joined: 07/01/13 Last Seen: May 23, 2021 Share Posted January 3, 2015 Hello. I'm trying to restrict the use of my NPC only to these Jobs for my quest_custom: else if (BaseLevel >= 90 && quest_custom == 0 || BaseJob == Job_Lord_Knight || BaseJob == Job_High_Priest || BaseJob == Job_High_Wizard || BaseJob == Job_Whitesmith || BaseJob == Job_Sniper || BaseJob == Job_Assassin_Cross || BaseJob == Job_Lord_Knight2 || BaseJob == Job_Paladin || BaseJob == Job_Champion || BaseJob == Job_Professor || BaseJob == Job_Stalker || BaseJob == Job_Creator || BaseJob == Job_Clown || BaseJob == Job_Gypsy || BaseJob == Job_Paladin2 || BaseJob == Job_Ninja || BaseJob == Job_Gunslinger || BaseJob == Job_Taekwon || BaseJob == Job_Star_Gladiator || BaseJob == Job_Star_Gladiator2 || BaseJob == Job_Soul_Linker) { But apparently it doesnt detect the "BaseLevel >=90". i mean, i can do it at any level. Also if my quest_custom is more than 0, when i put @set quest_custom 5, it gets stuck in 0, says the same message everytime. I dont know whats going on, i would need some help please. Quote Link to comment Share on other sites More sharing options...
1 Azura Skyy Posted January 3, 2015 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 545 Reputation: 221 Joined: 03/01/13 Last Seen: January 2, 2023 Share Posted January 3, 2015 Hello. I'm trying to restrict the use of my NPC only to these Jobs for my quest_custom: else if (BaseLevel >= 90 && quest_custom == 0 || BaseJob == Job_Lord_Knight || BaseJob == Job_High_Priest || BaseJob == Job_High_Wizard || BaseJob == Job_Whitesmith || BaseJob == Job_Sniper || BaseJob == Job_Assassin_Cross || BaseJob == Job_Lord_Knight2 || BaseJob == Job_Paladin || BaseJob == Job_Champion || BaseJob == Job_Professor || BaseJob == Job_Stalker || BaseJob == Job_Creator || BaseJob == Job_Clown || BaseJob == Job_Gypsy || BaseJob == Job_Paladin2 || BaseJob == Job_Ninja || BaseJob == Job_Gunslinger || BaseJob == Job_Taekwon || BaseJob == Job_Star_Gladiator || BaseJob == Job_Star_Gladiator2 || BaseJob == Job_Soul_Linker) { But apparently it doesnt detect the "BaseLevel >=90". i mean, i can do it at any level. Also if my quest_custom is more than 0, when i put @set quest_custom 5, it gets stuck in 0, says the same message everytime. I dont know whats going on, i would need some help please. Please make use of the Forums code function- it makes reading scripts a lot nicer. As for your question, you have to be careful with your parenthesis and use of && versus ||. if ((BaseLevel >=90) && (quest_custom <= 1) && (Class == 4008 || Class == 4009 || Class == 4010)) { This is the line you should be using. Just continue the format I've used for new classes until you have all of the classes you desire and you should be good to go. Lastly, you mentioned an issue with '@set variable X,' are you having issue with the @command text in-game or with the script command? set quest_custom,5; //Proper way to set variable to a desired value within a script I hope this helped, ~AzuraSkyy Quote Link to comment Share on other sites More sharing options...
Question
Strand
Hello.
I'm trying to restrict the use of my NPC only to these Jobs for my quest_custom:
else if (BaseLevel >= 90 && quest_custom == 0 || BaseJob == Job_Lord_Knight || BaseJob == Job_High_Priest || BaseJob == Job_High_Wizard || BaseJob == Job_Whitesmith || BaseJob == Job_Sniper || BaseJob == Job_Assassin_Cross || BaseJob == Job_Lord_Knight2 || BaseJob == Job_Paladin || BaseJob == Job_Champion || BaseJob == Job_Professor || BaseJob == Job_Stalker || BaseJob == Job_Creator || BaseJob == Job_Clown || BaseJob == Job_Gypsy || BaseJob == Job_Paladin2 || BaseJob == Job_Ninja || BaseJob == Job_Gunslinger || BaseJob == Job_Taekwon || BaseJob == Job_Star_Gladiator || BaseJob == Job_Star_Gladiator2 || BaseJob == Job_Soul_Linker) {
But apparently it doesnt detect the "BaseLevel >=90". i mean, i can do it at any level.
Also if my quest_custom is more than 0, when i put @set quest_custom 5, it gets stuck in 0, says the same message everytime.
I dont know whats going on, i would need some help please.
Link to comment
Share on other sites
1 answer 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.