- script MVP_Cards_Drop -1,{ OnNPCKillEvent: .@ID = killedrid; setd "MVPKills"+.@ID, getd("MVPKills"+.@ID) + 1; if(getd("MVPKills"+.@ID) >= .MVP_Kills[.@ID]){ dispbottom ""+getd("MVPKills"+.@ID); dispbottom "Поздравляем Вас! Вы убили "+.MVP_Kills[.@ID]+" "+getmonsterinfo(.@ID,0)+""; getitem .MVP_list[.@ID], 1; setd "MVPKills"+.@ID, 0; end; } else { setd "MVPKills"+.@ID, getd("MVPKills"+.@ID) + 1; dispbottom ""+getd("MVPKills"+.@ID); dispbottom "Вы убили "+getmonsterinfo(.@ID,0); dispbottom "Вам осталось убить "+(.MVP_Kills[.@ID]-getd("MVPKills"+.@ID))+" для того, чтобы получить карту."; end; } OnInit: query_sql("SELECT `mvp_id`,`mvp_card_id`,`mvp_kills` FROM mvp_table", .@ID, .@CardID, .@MVP_Kills); for (.@i=0; .@i < getarraysize(.@ID); .@i++) { .MVP_list[.@ID[.@i]] = .@CardID[.@i]; // .MVP_list[1002] will be equal to Poring's Card ID .MVP_Kills[.@ID[.@i]] = .@MVP_Kills[.@i]; } end; }