Jump to content
  • 0
behemothcze

Requesting for mvp points with different value

Question

anyone who have mvp points script with different value

 

for sample if someone kill phreeoni , doppelganger they`ll get 1 mvp points if drake/katalnux/ fallen bishop they get 2 if they kill satan morroc they get 100pts

if possible party kill can even share the points // party of 4 person kill satan morroc everyone gets 25pts after they kill it ..

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
-	script	mvp_point	-1,{
	end;

OnNPCKillEvent:
	if(!getmonsterinfo(killedrid,MOB_MVPEXP) || inarray(.mvp_point, killedrid) == -1) end;
	[email protected] = inarray(.mvp_point, killedrid) + 1;
	if(!getcharid(1)){
		#MVP_POINT += .mvp_point[[email protected]];
		dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
	} else {
		getmapxy([email protected]$,[email protected],[email protected],BL_PC);
		getpartymember getcharid(1),1;
		getpartymember getcharid(1),2;
		for([email protected] = 0; [email protected] < [email protected]; [email protected]++){
			if(attachrid([email protected][[email protected]])){
				if(strcharinfo(3) == [email protected]$ && isloggedin([email protected][[email protected]], [email protected][[email protected]])){
					[email protected]_id[getarraysize([email protected]_id)] =  [email protected][[email protected]];
				}
				detachrid;
			}
		}
		[email protected] = getarraysize([email protected]_id);
		if([email protected] == 1){
			#MVP_POINT += .mvp_point[[email protected]];
			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
			end;
		}
		if([email protected] > .mvp_point[[email protected]] || [email protected] == .mvp_point[[email protected]]){
			[email protected] = 1;
		} else {
			[email protected] = (.mvp_point[[email protected]]/[email protected]);
		}
		for([email protected] = 0;  [email protected] < [email protected]; [email protected]++){
			setd "#MVP_POINT",getd("#MVP_POINT") + [email protected],[email protected]_id[[email protected]];
			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".",0x00FF00,[email protected]_id[[email protected]];
		}			
	}		
end;
	
OnInit:
	setarray .mvp_point, //= MVP ID, Points
	1039,10,
	1046,20,
	1112,30;
end;
}

I haven't tested it yet. Just add all your MVP ID, Point on the array.

  • Upvote 1
Link to comment
Share on other sites

  • 0
12 hours ago, crazyarashi said:
-	script	mvp_point	-1,{
	end;

OnNPCKillEvent:
	if(!getmonsterinfo(killedrid,MOB_MVPEXP) || inarray(.mvp_point, killedrid) == -1) end;
	[email protected] = inarray(.mvp_point, killedrid) + 1;
	if(!getcharid(1)){
		#MVP_POINT += .mvp_point[[email protected]];
		dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
	} else {
		getmapxy([email protected]$,[email protected],[email protected],BL_PC);
		getpartymember getcharid(1),1;
		getpartymember getcharid(1),2;
		for([email protected] = 0; [email protected] < [email protected]; [email protected]++){
			if(attachrid([email protected][[email protected]])){
				if(strcharinfo(3) == [email protected]$ && isloggedin([email protected][[email protected]], [email protected][[email protected]])){
					[email protected]_id[getarraysize([email protected]_id)] =  [email protected][[email protected]];
				}
				detachrid;
			}
		}
		[email protected] = getarraysize([email protected]_id);
		if([email protected] == 1){
			#MVP_POINT += .mvp_point[[email protected]];
			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
			end;
		}
		if([email protected] > .mvp_point[[email protected]] || [email protected] == .mvp_point[[email protected]]){
			[email protected] = 1;
		} else {
			[email protected] = (.mvp_point[[email protected]]/[email protected]);
		}
		for([email protected] = 0;  [email protected] < [email protected]; [email protected]++){
			setd "#MVP_POINT",getd("#MVP_POINT") + [email protected],[email protected]_id[[email protected]];
			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".",0x00FF00,[email protected]_id[[email protected]];
		}			
	}		
end;
	
OnInit:
	setarray .mvp_point, //= MVP ID, Points
	1039,10,
	1046,20,
	1112,30;
end;
}

I haven't tested it yet. Just add all your MVP ID, Point on the array.

thanks it works perfectly 

Link to comment
Share on other sites

  • 0
On 10/22/2019 at 12:24 PM, crazyarashi said:
-	script	mvp_point	-1,{
	end;

OnNPCKillEvent:
	if(!getmonsterinfo(killedrid,MOB_MVPEXP) || inarray(.mvp_point, killedrid) == -1) end;
	[email protected] = inarray(.mvp_point, killedrid) + 1;
	if(!getcharid(1)){
		#MVP_POINT += .mvp_point[[email protected]];
		dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
	} else {
		getmapxy([email protected]$,[email protected],[email protected],BL_PC);
		getpartymember getcharid(1),1;
		getpartymember getcharid(1),2;
		for([email protected] = 0; [email protected] < [email protected]; [email protected]++){
			if(attachrid([email protected][[email protected]])){
				if(strcharinfo(3) == [email protected]$ && isloggedin([email protected][[email protected]], [email protected][[email protected]])){
					[email protected]_id[getarraysize([email protected]_id)] =  [email protected][[email protected]];
				}
				detachrid;
			}
		}
		[email protected] = getarraysize([email protected]_id);
		if([email protected] == 1){
			#MVP_POINT += .mvp_point[[email protected]];
			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
			end;
		}
		if([email protected] > .mvp_point[[email protected]] || [email protected] == .mvp_point[[email protected]]){
			[email protected] = 1;
		} else {
			[email protected] = (.mvp_point[[email protected]]/[email protected]);
		}
		for([email protected] = 0;  [email protected] < [email protected]; [email protected]++){
			setd "#MVP_POINT",getd("#MVP_POINT") + [email protected],[email protected]_id[[email protected]];
			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".",0x00FF00,[email protected]_id[[email protected]];
		}			
	}		
end;
	
OnInit:
	setarray .mvp_point, //= MVP ID, Points
	1039,10,
	1046,20,
	1112,30;
end;
}

I haven't tested it yet. Just add all your MVP ID, Point on the array.

How about adding a map. Example you can get mvp points in Bossnia level 1 to level 4 only.

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.