Jump to content
  • 0

Customizing Landprotector


Question

Posted (edited)

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 chowking

9 answers to this question

Recommended Posts

Posted (edited)

at long last i did it thank you lighta i just needed to add this, just directly copied ankle snare LOL!

in src/map/skill.c

case HT_ANKLESNARE: {	struct block_list* target = map_id2bl(group->val2);	if( target )		status_change_end(target, SC_ANKLE, INVALID_TIMER);}break;+case PF_SPIDERWEB: {+	struct block_list* target = map_id2bl(group->val2);+	if( target)+	status_change_end(target, SC_SPIDERWEB, INVALID_TIMER);+}+break;
Edited by chowking
Posted


case HT_ANKLESNARE: {	struct block_list* target = map_id2bl(group->val2);	if( target )		status_change_end(target, SC_ANKLE, INVALID_TIMER);}break;+case PF_SPIDERWEB: {+	struct block_list* target = map_id2bl(group->val2);+	if( target)+	status_change_end(target, SC_SPIDERWEB, INVALID_TIMER);+}+break;

can I ask which line should u input this?

already fix the problem thnx chowking

Posted

Hi sir, I'm having error on 

 

 

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;

 this need help.

Posted

BUMP! :) How do you fixed the problem I already tried this : 

 

at long last i did it thank you lighta i just needed to add this, just directly copied ankle snare LOL!

in src/map/skill.c

case HT_ANKLESNARE: {	struct block_list* target = map_id2bl(group->val2);	if( target )		status_change_end(target, SC_ANKLE, INVALID_TIMER);}break;+case PF_SPIDERWEB: {+	struct block_list* target = map_id2bl(group->val2);+	if( target)+	status_change_end(target, SC_SPIDERWEB, INVALID_TIMER);+}+break;

 

 

And yet i can deploy the spider web on the ground :) Howd you fixed it?

Posted

at long last i did it thank you lighta i just needed to add this, just directly copied ankle snare LOL!

in src/map/skill.c

case HT_ANKLESNARE: {	struct block_list* target = map_id2bl(group->val2);	if( target )		status_change_end(target, SC_ANKLE, INVALID_TIMER);}break;+case PF_SPIDERWEB: {+	struct block_list* target = map_id2bl(group->val2);+	if( target)+	status_change_end(target, SC_SPIDERWEB, INVALID_TIMER);+}+break;

 

sir how did you fix this? im having an error when i compile it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...