i see this and try to use but... when i use he change the job anyway... somehow can me explain how can i change to only change the appearance like he say he does?
Spoiler
BUILDIN_FUNC(changebase)
{
TBL_PC *sd=NULL;
int vclass;
vclass = script_getnum(st,2);
if(vclass == JOB_WEDDING)
{
if (!battle_config.wedding_modifydisplay || //Do not show the wedding sprites
sd->class_&JOBL_BABY //Baby classes screw up when showing wedding sprites. [Skotlex] They don't seem to anymore.
)
return SCRIPT_CMD_SUCCESS;
}
if(!sd->disguise && vclass != sd->vd.class_) {
status_set_viewdata(&sd->bl, vclass);
//Updated client view. Base, Weapon and Cloth Colors.
clif_changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
clif_changelook(&sd->bl,LOOK_WEAPON,sd->status.weapon);
if (sd->vd.cloth_color)
clif_changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);
if (sd->vd.body_style)
clif_changelook(&sd->bl,LOOK_BODY2,sd->vd.body_style);
clif_skillinfoblock(sd);
}
return SCRIPT_CMD_SUCCESS;
}
Question
GyokuAkuma
i see this and try to use but... when i use he change the job anyway... somehow can me explain how can i change to only change the appearance like he say he does?
BUILDIN_FUNC(changebase)
{
TBL_PC *sd=NULL;
int vclass;
if( !script_mapid2sd(3,sd) )
return SCRIPT_CMD_SUCCESS;
vclass = script_getnum(st,2);
if(vclass == JOB_WEDDING)
{
if (!battle_config.wedding_modifydisplay || //Do not show the wedding sprites
sd->class_&JOBL_BABY //Baby classes screw up when showing wedding sprites. [Skotlex] They don't seem to anymore.
)
return SCRIPT_CMD_SUCCESS;
}
if(!sd->disguise && vclass != sd->vd.class_) {
status_set_viewdata(&sd->bl, vclass);
//Updated client view. Base, Weapon and Cloth Colors.
clif_changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
clif_changelook(&sd->bl,LOOK_WEAPON,sd->status.weapon);
if (sd->vd.cloth_color)
clif_changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);
if (sd->vd.body_style)
clif_changelook(&sd->bl,LOOK_BODY2,sd->vd.body_style);
clif_skillinfoblock(sd);
}
return SCRIPT_CMD_SUCCESS;
}
Ty everyone and have a nice day.
Link to comment
Share on other sites
3 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.