Jump to content
  • 0

Can you help me with this script.


Question

Posted (edited)

Can you revise this script. it should be All Party Member who killed the MVP will Recieve the Reward? THANK YOU

-    script    Items    -1,{

OnNPCKillEvent:
setarray .mobid[0],1039,1046,1059,1086,1087,1096,1112,1115,1120,1147,1150,1157,1159,1190,1251,1252,1272,1373,1388,1389,1418,1492,1511,1582,1583,1623,1630,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1832,1871,1873,1885,2022,1096,1873,1830,1839,1307,1283,1302,1582,1093,1205,1783,1681,1120,1259,1626,1720,1920,1918,1921,1833,1090,1289,1262,1203,1870,1700,1295,1320,1702,1831,1701,1755,1754,1703,1829,1710,1705,1707,1712,1711,1706,1704,1709,1204,1089,1092,1765; // MvP Ids

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


 

Edited by Cyro
USE CODE BOX

2 answers to this question

Recommended Posts

  • 1
Posted
1 hour ago, erollskie3 said:

Can you revise this script. it should be All Party Member who killed the MVP will Recieve the Reward? THANK YOU


-    script    Items    -1,{

OnNPCKillEvent:
setarray .mobid[0],1039,1046,1059,1086,1087,1096,1112,1115,1120,1147,1150,1157,1159,1190,1251,1252,1272,1373,1388,1389,1418,1492,1511,1582,1583,1623,1630,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1832,1871,1873,1885,2022,1096,1873,1830,1839,1307,1283,1302,1582,1093,1205,1783,1681,1120,1259,1626,1720,1920,1918,1921,1833,1090,1289,1262,1203,1870,1700,1295,1320,1702,1831,1701,1755,1754,1703,1829,1710,1705,1707,1712,1711,1706,1704,1709,1204,1089,1092,1765; // MvP Ids

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


 

1.Use code box, no one would like answer ur question if it looks messy
2.using code box makes forums looks clean 

here is the script

-	script	mvpannounce	-1,{
OnNPCKillEvent: 
	if ( !getmonsterinfo( killedrid, MOB_MVPEXP ) ) end; // all mvp's inlcuded
	if ( getcharid(1) ) {
		getpartymember getcharid(1), 1;
		getpartymember getcharid(1), 2;
		for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
			if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { 
				.@partymemberaid[.@c] = $@partymemberaid[.@i];
				.@c++;
			}
		}
		announce "Party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +"and got Prize Medal at "+ strcharinfo(3),0,0x00FF00;	}
		getitem 7615, 1, .@partymemberaid[.@i];	
end;
}

 

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