the spider web will be target to the ground and act as a trap, so when a player steps on it , a timer that restricts a character's movement (can't move but can still use skill) . i'm missing a mod where, when Landprotector is casted on the spider web it also removes the status timer of the player. here's the code
i've recently edited the source of spider web following martin's mod
http://rathena.org/board/topic/53901-how-to-make-spider-web-works-like-ankle-snare-and-soul-link-that-adds-max-hp/
edited it a little.
the spider web will be target to the ground and act as a trap, so when a player steps on it , a timer that restricts a character's movement (can't move but can still use skill) . i'm missing a mod where, when Landprotector is casted on the spider web it also removes the status timer of the player. here's the code
starting at line 11427
case UNT_SPIDERWEB: if(sg->val2==0 && tsc){ int sec = skill_get_time2(sg->skill_id,sg->skill_lv); if( status_change_start(bl,type,10000,sg->skill_lv,sg->group_id,0,0,sec, tick) ) { const struct TimerData* td = tsc->data[type]?get_timer(tsc->data[type]->timer):NULL; if (td) sec = DIFF_TICK(td->tick, tick); unit_movepos(bl, src->bl.x, src->bl.y, 0, 0); clif_fixpos(bl); sg->val2=bl->id; } else sec = 20; } break;Edited by chowkingLink to comment
Share on other sites