Jump to content
  • 0

Skill NPC_INVINCIBLEOFF does't work?


QQfoolsorellina

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

my test script

prontera,150,168,4	script	summonnpc	719,{
monster "prontera",153,166,"--ja--",1023,1;
Close;
}

prontera,153,168,4	script	INVINCIBLEnpc	719,{
areamobuseskill "prontera",153,166,55,1023,685,1,0,0,26,0;
Close;
}


prontera,156,168,4	script	INVINCIBLEOFFnpc	719,{
areamobuseskill "prontera",153,166,55,1023,686,1,0,0,26,0;
Close;
}

When the summoned Orc Warrior become INVINCIBLE everything work as intended but it cant return to non-INVINCIBLE status. Is there anything wrong?

any help?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

Finally ,i find the solution by myself

status.c

find

if( tsc->data[sC_INVINCIBLE] )

replace with

if( tsc->data[sC_INVINCIBLE] && !tsc->data[sC_INVINCIBLEOFF] )

skill.c

case NPC_INVINCIBLE:
case NPC_INVINCIBLEOFF:

replace with

case NPC_INVINCIBLE:
	if(skillid== NPC_INVINCIBLE)
		status_change_end(bl, SC_INVINCIBLEOFF, INVALID_TIMER);
case NPC_INVINCIBLEOFF:

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   2
  • Joined:  07/24/12
  • Last Seen:  

tried it, still invincible

Link to comment
Share on other sites

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.

×
×
  • Create New...