Good day ! I have a script here that gives a player 60% chance to get an event coin for killing an MVP monster ... the problem here is I also have an MVP Room ... How will I make it disable on MVP Room maps ??? Please help because players are abusing it ,,Thankyou !
- script wztokens -1,{
OnNPCKillEvent:
setarray .mvpid[0],1916,1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1086,1885,1492,1734,1688,1373,2131,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685,1658,1871,1768,1832,1779,2022,1708,1874,1751,1917,1647,1649,1651,1646,1650,1648,1120,1204,1259,1283,1289,1302,1307,1388,1582,1829,1830;
setarray .minibossid[0],1120,1289,1302,1307,1388,1582;
//setarray .minibossid[0],1090,1091,1092,1093,1096, 1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1681,1700,1701,1702,1703,1704,1705,1706,1707,1720,1754,1755,1783,1829,1830,1831,1833,1839,1870;
set .@mvpchance, 650; // 500 = 5.00%
set .@minichance, 200; // 500 = 5.00%
//set .@mobchance, 2; // 500 = 5.00%
set .@rand, rand(1000); // Random Rate
for (set .@c, 0; .@c < getarraysize(.mvpid); set .@c, .@c + 1){
if (( killedrid == .mvpid[.@c] ) && .@rand < .@mvpchance ) {
//getmapxy .@map$, .@x, .@y, BL_PC;
//makeitem 677, 1, .@map$, .@x + 0, .@y + 0;
getitem 7539, 1;
//message strcharinfo(0), "Obtained 1 Roulette Token for killing MVP monster ("+.@mvpchance /10+"% chance)";
announce "["+strcharinfo(0)+"] has obtained 1 WZ Token for killing an MVP/Boss monster",bc_all;
end;
}
if (( killedrid == .mvpid[.@c] ) && vip_status(1) ) {
getitem 7539, 1;
//message strcharinfo(0), "Obtained 1 Roulette Token for killing MVP monster ("+.@mvpchance /10+"% chance)";
announce "["+strcharinfo(0)+"] has obtained 1 WZ Token for killing an MVP/Boss monster",bc_all;
end;
}
}
}
Question
Eross
Good day ! I have a script here that gives a player 60% chance to get an event coin for killing an MVP monster ... the problem here is I also have an MVP Room ... How will I make it disable on MVP Room maps ??? Please help because players are abusing it ,,Thankyou !
- script wztokens -1,{ OnNPCKillEvent: setarray .mvpid[0],1916,1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1086,1885,1492,1734,1688,1373,2131,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685,1658,1871,1768,1832,1779,2022,1708,1874,1751,1917,1647,1649,1651,1646,1650,1648,1120,1204,1259,1283,1289,1302,1307,1388,1582,1829,1830; setarray .minibossid[0],1120,1289,1302,1307,1388,1582; //setarray .minibossid[0],1090,1091,1092,1093,1096, 1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1681,1700,1701,1702,1703,1704,1705,1706,1707,1720,1754,1755,1783,1829,1830,1831,1833,1839,1870; set .@mvpchance, 650; // 500 = 5.00% set .@minichance, 200; // 500 = 5.00% //set .@mobchance, 2; // 500 = 5.00% set .@rand, rand(1000); // Random Rate for (set .@c, 0; .@c < getarraysize(.mvpid); set .@c, .@c + 1){ if (( killedrid == .mvpid[.@c] ) && .@rand < .@mvpchance ) { //getmapxy .@map$, .@x, .@y, BL_PC; //makeitem 677, 1, .@map$, .@x + 0, .@y + 0; getitem 7539, 1; //message strcharinfo(0), "Obtained 1 Roulette Token for killing MVP monster ("+.@mvpchance /10+"% chance)"; announce "["+strcharinfo(0)+"] has obtained 1 WZ Token for killing an MVP/Boss monster",bc_all; end; } if (( killedrid == .mvpid[.@c] ) && vip_status(1) ) { getitem 7539, 1; //message strcharinfo(0), "Obtained 1 Roulette Token for killing MVP monster ("+.@mvpchance /10+"% chance)"; announce "["+strcharinfo(0)+"] has obtained 1 WZ Token for killing an MVP/Boss monster",bc_all; end; } } }
Link to comment
Share on other sites
3 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.