Jump to content
  • 0

MVP invasion help fix the problem


Question

Posted

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

3 answers to this question

Recommended Posts

Posted

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;

Posted (edited)

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

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