Zayn Anthony Posted April 30, 2017 Posted April 30, 2017 (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 April 30, 2017 by Cyro USE CODE BOX Quote
1 Cyro Posted April 30, 2017 Posted April 30, 2017 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; } Quote
0 Zayn Anthony Posted April 30, 2017 Author Posted April 30, 2017 can you add sir only the players in the map who will have item every kill of mvp? Quote
Question
Zayn Anthony
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; }
USE CODE BOX
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.