scRO Posted April 22 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 09/12/16 Last Seen: 51 minutes ago Share Posted April 22 Good afternoon everyone. Can anyone tell me how to display hidden traps if there is a status on the character? static int skill_reveal_trap(struct block_list *bl, va_list ap) { TBL_SKILL *su = (TBL_SKILL*)bl; if (su->alive && su->group && su->hidden && skill_get_inf2(su->group->skill_id, INF2_ISTRAP)) { //Change look is not good enough, the client ignores it as an actual trap still. [Skotlex] //clif_changetraplook(bl, su->group->unit_id); su->hidden = false; skill_getareachar_skillunit_visibilty(su, AREA); return 1; } return 0; } Status: SC_INTRAVISION I tried adding this, but clearly I'm doing something wrong static int skill_reveal_trap(struct block_list *bl, va_list ap) { TBL_SKILL *su = (TBL_SKILL*)bl; status_change *tsc; tsc = status_get_sc(bl); if ((tsc->getSCE(SC_INTRAVISION) || (su->alive && su->group)) && su->hidden && skill_get_inf2(su->group->skill_id, INF2_ISTRAP)) { //Change look is not good enough, the client ignores it as an actual trap still. [Skotlex] //clif_changetraplook(bl, su->group->unit_id); su->hidden = false; skill_getareachar_skillunit_visibilty(su, AREA); return 1; } return 0; } Quote Link to comment Share on other sites More sharing options...
Question
scRO
Good afternoon everyone.
Can anyone tell me how to display hidden traps if there is a status on the character?
static int skill_reveal_trap(struct block_list *bl, va_list ap) { TBL_SKILL *su = (TBL_SKILL*)bl; if (su->alive && su->group && su->hidden && skill_get_inf2(su->group->skill_id, INF2_ISTRAP)) { //Change look is not good enough, the client ignores it as an actual trap still. [Skotlex] //clif_changetraplook(bl, su->group->unit_id); su->hidden = false; skill_getareachar_skillunit_visibilty(su, AREA); return 1; } return 0; }
Status: SC_INTRAVISION
I tried adding this, but clearly I'm doing something wrong
static int skill_reveal_trap(struct block_list *bl, va_list ap) { TBL_SKILL *su = (TBL_SKILL*)bl; status_change *tsc; tsc = status_get_sc(bl); if ((tsc->getSCE(SC_INTRAVISION) || (su->alive && su->group)) && su->hidden && skill_get_inf2(su->group->skill_id, INF2_ISTRAP)) { //Change look is not good enough, the client ignores it as an actual trap still. [Skotlex] //clif_changetraplook(bl, su->group->unit_id); su->hidden = false; skill_getareachar_skillunit_visibilty(su, AREA); return 1; } return 0; }
Link to comment
Share on other sites
0 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.