condition if () in skill

Tio Akima

New member
Messages
349
Points
0
Age
36
Discord
TioAkima#0636
Github
Tio Akima
Emulator
I'm trying to put a condition on a custom skill ... But I'm having problems.
 
the condition is an if () that identifies the class of player .... and depending on the class, the skill performs a particular function.
 
I tried this:
 
if(pc->jobchange == 15 || 4016 || 4077){...break;} 
then I tried this:

Code:
if(sd->status.class_ == JOB_MONK || JOB_CHAMPION || JOB_SURA ){...break;}
And it did not work.
 
The intention is to verify the player's class that is using the skill.
 
help-me? 0/
 
(sd->class_&MAPID_UPPERMASK) == MAPID_STAR_GLADIATOR

by the way you might want to change "sd" to "tsd" or "dstsd" depending on where you are using it

 
oh thank Evilpuncker
 
in my case would be:
Code:
if(sd->class_&MAPID_UPPERMASK) == MAPID_MONK  ||  MAPID_CHAMPION ||  MAPID_SURA ){...break;}
 
you could explain to me the difference between them, '' sd '', '' tsd '' and '' dstsd '' or, in which case they apply better?
 
thank!  very thanks!
 
Back
Top