Jump to content
  • 0

MVP Rank with different poin


Question

Posted

I wanna use AnnieRuru Weekly MVP script
but i want it with different MVP poin like crazyarashi script
 

Quote

-	script	mvp_point	-1,{
	end;

OnNPCKillEvent:
	if(!getmonsterinfo(killedrid,MOB_MVPEXP) || inarray(.mvp_point, killedrid) == -1) end;
	.@index = inarray(.mvp_point, killedrid) + 1;
	if(!getcharid(1)){
		#MVP_POINT += .mvp_point[.@index];
		dispbottom "You got " + .mvp_point[.@index] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
	} else {
		getmapxy(.@map$,.@x,.@y,BL_PC);
		getpartymember getcharid(1),1;
		getpartymember getcharid(1),2;
		for(.@i = 0; .@i < $@partymembercount; .@i++){
			if(attachrid($@partymemberaid[.@i])){
				if(strcharinfo(3) == .@map$ && isloggedin($@partymemberaid[.@i], $@partymembercid[.@i])){
					.@member_id[getarraysize(.@member_id)] =  $@partymembercid[.@i];
				}
				detachrid;
			}
		}
		.@size = getarraysize(.@member_id);
	


Can someone help me with this?
thank you in advance

weeklyMVP.txt

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
2 hours ago, polong said:

I wanna use AnnieRuru Weekly MVP script
but i want it with different MVP poin like crazyarashi script

and where is crazyarashi script ?

Edited by AnnieRuru
  • 0
Posted (edited)

my bad, i don't copy the whole thing

this is the complete script
 

Quote

-	script	mvp_point	-1,{
	end;

OnNPCKillEvent:
	if(!getmonsterinfo(killedrid,MOB_MVPEXP) || inarray(.mvp_point, killedrid) == -1) end;
	.@index = inarray(.mvp_point, killedrid) + 1;
	if(!getcharid(1)){
		#MVP_POINT += .mvp_point[.@index];
		dispbottom "You got " + .mvp_point[.@index] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
	} else {
		getmapxy(.@map$,.@x,.@y,BL_PC);
		getpartymember getcharid(1),1;
		getpartymember getcharid(1),2;
		for(.@i = 0; .@i < $@partymembercount; .@i++){
			if(attachrid($@partymemberaid[.@i])){
				if(strcharinfo(3) == .@map$ && isloggedin($@partymemberaid[.@i], $@partymembercid[.@i])){
					.@member_id[getarraysize(.@member_id)] =  $@partymembercid[.@i];
				}
				detachrid;
			}
		}
		.@size = getarraysize(.@member_id);
		if(.@size == 1){
			#MVP_POINT += .mvp_point[.@index];
			dispbottom "You got " + .mvp_point[.@index] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
			end;
		}
		if(.@size > .mvp_point[.@index] || .@size == .mvp_point[.@index]){
			.@point = 1;
		} else {
			.@point = (.mvp_point[.@index]/.@size);
		}
		for(.@i = 0;  .@i < .@size; .@i++){
			setd "#MVP_POINT",getd("#MVP_POINT") + .@point,.@member_id[.@i];
			dispbottom "You got " + .mvp_point[.@index] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".",0x00FF00,.@member_id[.@i];
		}			
	}		
end;

OnInit:
	setarray .mvp_point, //= MVP ID, Points
	1039,10,
	1046,20,
	1112,30;
end;
}

 

Edited by polong

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