Jump to content
  • 0

MVP invasion help fix the problem


Ace D Potgas

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  08/04/12
  • Last Seen:  

Hi guys,

im new to scripting. I have test mvp invasion script on my offline server.I set up the special MVP to be spawn 10 and normal mvp to be spawn 10 at a specific town. After the mvp invasion event start, the MVP keep on spawn even after i have kill those mvp. The loop keep going and the mvp spawn does not stop. This is not my script, i took it from eathena forum. I really hope you guys can help me fix this problem. Please make it stop after i kill all the number of MVP i have spawn for player. By the way, this script already been modified and i remove some part which give me error last time :P

mvpevent.txt

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

OnSpecialKill:
switch(rand(8)) {
 case 0:    getitem $@ItemID,$@Amount;    break;
 case 1:    getitem 969,100;    break;
 case 2:    getitem 12221,1;    break;
case 3:    getitem 12210,1;    break;
case 4:    getitem 12114,1;    break;
case 5:    getitem 12114,1;    break;
case 6:    getitem 12115,1;    break;
case 7:    getitem 12116,1;    break;
case 8:    getitem 12117,1;    break;
}

where is the END command ?

put below

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  08/04/12
  • Last Seen:  

Oh, thanks for the help Emistry. By the way, can you help me, i wanted to add anouncement about number of mvp left and also mvp invasion has ended. Thanks alot. Really appreciate your help

OnSpecialKill:
switch(rand(8)) {
 case 0:	getitem $@ItemID,$@Amount;	break;
 case 1:	getitem 969,100;	break;
 case 2:	getitem 12221,1;	break;
case 3:	getitem 12210,1;	break;
case 4:	getitem 12114,1;	break;
case 5:	getitem 12114,1;	break;
case 6:	getitem 12115,1;	break;
case 7:	getitem 12116,1;	break;
case 8:	getitem 12117,1;	break;
}

where is the END command ?

put below

end;

Oh, thanks for the help Emistry. By the way, can you help me, i wanted to add anouncement about number of mvp left and also mvp invasion has ended. Thanks alot. Really appreciate your help

Edited by Orange00
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

announce "Special : "+mobcount( $@Map$,strnpcinfo(0)+"::OnSpecialKill" )+" | Normal : "+mobcount( $@Map$,strnpcinfo(0)+"::OnNormalKill" ),0;

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...