Jump to content
  • 0

[SOLVED]Custom MVP Quest HELP please


namerpus18

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.07
  • Content Count:  95
  • Reputation:   1
  • Joined:  11/15/22
  • Last Seen:  

OnNPCKillEvent:
	if(getmonsterinfo(killedrid, MOB_MVPEXP) > 1) {
		setarray .@arrayofMVP[0], 1511, 1039, 1272, 1046, 1389, 1112, 1115, 1252, 1086, 1251, 1147, 1059, 1150, 1087, 1190, 1038, 1157, 1159, 1583, 1312;
		addrid(1);
		for( .@i = 0;.@i != getarraysize(.@arrayofMVP); .@i++ ) {
		.@j = .@arrayofnumbers[.@i];
			switch(.@j) {
			case 1511:
				completequest (19000,getcharid(0));
				break;
			case 1039:
				completequest (19001,getcharid(0));
				break;
			...
			...
			...
			}
		setquest (.@quest_id+20,getcharid(0));
		end;

Hello everyone,

So I am doing a custom quest for every player within the map to complete each quest for MVP. This OnNPCKillEvent: is supposed to get RID of all players within the map and complete the quest. But I tried it with no error on the server but the quest is not completing when the MVP is killed. I dont know what I did wrong. Thank you so much for always. 

 

FOUND IT:   .@j = .@arrayofnumbers[.@i];

 

 

Edited by namerpus18
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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