insarius Posted October 9, 2012 Posted October 9, 2012 if(BaseJob == Job_Ninja) How do I add Kagerou and Oboro to that syntax? Quote
Emistry Posted October 9, 2012 Posted October 9, 2012 you mean these ? trunk/db/const.txt Job_Kagerou 4211 Job_Oboro 4212 Quote
EvilPuncker Posted October 9, 2012 Posted October 9, 2012 if(BaseJob == Job_Ninja || BaseJob == Job_Kagerou || BaseJob == Job_Oboro) Quote
insarius Posted October 9, 2012 Author Posted October 9, 2012 (edited) That's what I was looking for, thanks! EDIT : It worked for the kunai seller, but not for the other Ninja NPC's. que_ng,28,50,3 script Boshuu 709,{ if (BaseJob != Job_Ninja || BaseJob != Job_Kagerou){ If I change the !'s into ='s the script doesnt respond at all. Edited October 9, 2012 by insarius Quote
Vach Posted October 9, 2012 Posted October 9, 2012 It won't work with != because you will be checking if it does not equal multiple jobs at once causing the statement to always succeed. Use "&&" instead of "||". Quote
Emistry Posted October 9, 2012 Posted October 9, 2012 if ( Class != Job_Ninja && Class != Job_Kagerou){ or if ( Class == Job_Ninja || Class == Job_Kagerou){ Quote
Vach Posted October 12, 2012 Posted October 12, 2012 if ( Class != Job_Ninja && Class != Job_Kagerou){ or if ( Class == Job_Ninja || Class == Job_Kagerou){ Woot! That's way better. I should have been more specific. Quote
insarius Posted October 12, 2012 Author Posted October 12, 2012 Thanks guys, work perfectly now! Quote
Euphy Posted October 12, 2012 Posted October 12, 2012 BaseClass should be used for checking Ninja/Kagerou/Oboro: if (BaseClass == Job_Ninja) {} Quote
Question
insarius
if(BaseJob == Job_Ninja)
How do I add Kagerou and Oboro to that syntax?
8 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.