Jump to content
  • 0

MVP autodrop TCG. HELP


alone20

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

i would like to ask help to make all MVP auto give TCG to player who kill them. Thank you in advance!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  


- script MvP_Kill -1,{

OnNPCKillEvent:

setarray .mobid[0],1511,1734,1492,1647,1785,1630,1399,1039,1874,1251,2068,1272,1719,1046,1389,1112,1115,1957,

1418,1871,1252,1768,1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,

1708,1312,1751,1685,1648,1917,1658; // MvP Ids

for (set .@c, 0; .@c < getarraysize(.mobid); set .@c, .@c + 1){

if (killedrid == .mobid[.@c]){

getitem 7227,1;

}

}

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   1
  • Joined:  03/05/13
  • Last Seen:  

-	script	MvP_Kill	-1,{

OnNPCKillEvent:
setarray .mobid[0],1511,1734,1492,1647,1785,1630,1399,1039,1874,1251,2068,1272,1719,1046,1389,1112,1115,1957,
1418,1871,1252,1768,1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,
1708,1312,1751,1685,1648,1917,1658; // MvP Ids

for (set .@c, 0; .@c < getarraysize(.mobid); set .@c, .@c + 1){
	if (killedrid == .mobid[.@c]){
		getitem 7227,1; 
		}
	}
	end;
}

 

Use OnInit for setarray .mobid dude -.-

or you can use my script

-	script	MvP_Kill	-1,{
	end;
	
	OnNPCKillEvent:
	.@checkmvp = compare(.MvPID$,""+killedrid);
	if( .@checkmvp ) {
	if( !.Chance || (.Chance && .Chance > rand(10000)) )
		getitem .Reward, 1;
	}
	end;

	OnInit:
	.Chance = 1000; // 1000 = 10%, 0 = turn off chance drop mode, 100% drop
	.MvPID$ = "1511,1734,1492,1647,1785,1630,1399,1039,1874,"+
	"1251,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,"+
	"1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,"+
	"1190,1038,1157,1159,1502,1623,1650,1583,"+
	"1708,1312,1751,1685,1648,1917,1658"; // MvP Ids
	.Reward = 501; // Reward Item ID
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

or...

-	script	sample	-1,{

OnNPCKillEvent:
	if(getmonsterinfo(killedrid,22))
		getitem 7227,1;
	end;

}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

thanks for the help guys!

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