MikZ 5 Posted April 14, 2020 Good day! May I request help, I don't know how to get rid of these error. I am running PRE-RE but im getting error for RENEWAL MONSTER THAT are not included in the script. Please help me. thanks! Script: prontera,164,165,4 script MVP Checker::convex 2_BULLETIN_BOARD,{ for( .@i = 0; .@i < getarraysize( $MVP_MobID ); .@i++ ) { if($MVP_Status[.@i] == 2){ .status$[.@i] = "^008000ALIVE^000000"; } else .status$[.@i] = "^ff0000DEAD^000000"; mes ""+getmonsterinfo($MVP_MobID[.@i],MOB_NAME)+"" + "^000000 (^008080" + $MVP_Maps$[.@i] + "^000000) "+.status$[.@i]+""; } close; OnNPCKillEvent: if( getmonsterinfo(killedrid, MOB_MVPEXP) > 0 ) for( set .@i,0; .@i < getarraysize($MVP_MobID); set .@i, .@i+1 ) { if( (killedrid == $MVP_MobID[.@i]) && (strcharinfo(3) == $MVP_Maps$[.@i])) { $MVP_Status[.@i] = 1; $MVP_TimeStamp[.@i] = gettimetick(2); } } end; OnInit: setarray $MVP_MobID[0], 1511,1785,1785,1785,1785,1785,1039,1272,1272,1719, 1046,1046,1389,1112,1115,1115,1418,1252,1768,1086, 1885,1832,1734,1688,1373,1147,1147,1059,1150,1087, 1087,1190,1038,1157,1159,1623,1492,1251,1583,1312, 1751,1685,1630,1871,1873,1658; setarray $MVP_Maps$[0],"moc_pryd06","ra_fild02","ra_fild03","ra_fild04","ve_fild01","ve_fild02","prt_maze03","gl_chyard","gld_dun04","abyss_03", "gef_dun02","gld_dun02","gef_dun01","treasure02","gld_dun01","pay_fild11","gon_dun03","xmas_fild01","ra_san05","prt_sewb4", "mosk_dun03","thor_v03","kh_dun02","ayo_dun02","niflheim","gld_dun03","anthell02","mjolnir_04","pay_dun04","gef_fild02", "gef_fild14","gef_fild10","moc_pryd04","in_sphinx5","moc_fild17","ein_dun02","ama_dun03","xmas_dun02","beach_dun","tur_dun04", "odin_tem03","jupe_core","lou_dun03","abbey02","abbey03","lhz_dun02"; setarray $MVP_ResTime[0],60,240,180,300,180,360,120,60,480,180, 120,480,60,120,480,120,94,120,300,60, 120,660,120,420,91,480,120,120,60,1440, 60,120,60,60,120,125,91,60,300,60, 480,120,117,120,730,120; //Respawn only undead MVP's on server start or reload for( set .@i,0; .@i < getarraysize($MVP_MobID); set .@i, .@i+1 ) { //check whether MPV is alive or $MVP_Status variable is not yet set. //1 - Dead, 2 - Alive if ( $MVP_Status[.@i] == 2 || $MVP_Status[.@i] == 0 || $MVP_TimeStamp[.@i] == 0 ) { //monster $MVP_maps$[.@i],0,0,"--ja--",$MVP_MobID[.@i],1; $MVP_Status[.@i] = 2; } else { // don't respawn MVP and wait for next spawn time $MVP_Status[.@i] = 1; } } startnpctimer; OnTimer60000: //check every 60 seconds for( set .@i,0; .@i < getarraysize($MVP_MobID); set .@i, .@i+1 ) { set .@time, $MVP_ResTime[.@i]*60; if( ($MVP_TimeStamp[.@i] + .@time) <= gettimetick(2) && $MVP_Status[.@i] == 1 ) { //monster $MVP_Maps$[.@i],0,0,"--ja--",$MVP_MobID[.@i],1; //Defines last respawn $MVP_TimeStamp[.@i] = gettimetick(2); $MVP_Status[.@i] = 2; } } setnpctimer 0; end; } Quote Share this post Link to post Share on other sites
Good day!
May I request help,
I don't know how to get rid of these error. I am running PRE-RE but im getting error for RENEWAL MONSTER THAT are not included in the script.
Please help me. thanks!
Script:
prontera,164,165,4 script MVP Checker::convex 2_BULLETIN_BOARD,{ for( .@i = 0; .@i < getarraysize( $MVP_MobID ); .@i++ ) { if($MVP_Status[.@i] == 2){ .status$[.@i] = "^008000ALIVE^000000"; } else .status$[.@i] = "^ff0000DEAD^000000"; mes ""+getmonsterinfo($MVP_MobID[.@i],MOB_NAME)+"" + "^000000 (^008080" + $MVP_Maps$[.@i] + "^000000) "+.status$[.@i]+""; } close; OnNPCKillEvent: if( getmonsterinfo(killedrid, MOB_MVPEXP) > 0 ) for( set .@i,0; .@i < getarraysize($MVP_MobID); set .@i, .@i+1 ) { if( (killedrid == $MVP_MobID[.@i]) && (strcharinfo(3) == $MVP_Maps$[.@i])) { $MVP_Status[.@i] = 1; $MVP_TimeStamp[.@i] = gettimetick(2); } } end; OnInit: setarray $MVP_MobID[0], 1511,1785,1785,1785,1785,1785,1039,1272,1272,1719, 1046,1046,1389,1112,1115,1115,1418,1252,1768,1086, 1885,1832,1734,1688,1373,1147,1147,1059,1150,1087, 1087,1190,1038,1157,1159,1623,1492,1251,1583,1312, 1751,1685,1630,1871,1873,1658; setarray $MVP_Maps$[0],"moc_pryd06","ra_fild02","ra_fild03","ra_fild04","ve_fild01","ve_fild02","prt_maze03","gl_chyard","gld_dun04","abyss_03", "gef_dun02","gld_dun02","gef_dun01","treasure02","gld_dun01","pay_fild11","gon_dun03","xmas_fild01","ra_san05","prt_sewb4", "mosk_dun03","thor_v03","kh_dun02","ayo_dun02","niflheim","gld_dun03","anthell02","mjolnir_04","pay_dun04","gef_fild02", "gef_fild14","gef_fild10","moc_pryd04","in_sphinx5","moc_fild17","ein_dun02","ama_dun03","xmas_dun02","beach_dun","tur_dun04", "odin_tem03","jupe_core","lou_dun03","abbey02","abbey03","lhz_dun02"; setarray $MVP_ResTime[0],60,240,180,300,180,360,120,60,480,180, 120,480,60,120,480,120,94,120,300,60, 120,660,120,420,91,480,120,120,60,1440, 60,120,60,60,120,125,91,60,300,60, 480,120,117,120,730,120; //Respawn only undead MVP's on server start or reload for( set .@i,0; .@i < getarraysize($MVP_MobID); set .@i, .@i+1 ) { //check whether MPV is alive or $MVP_Status variable is not yet set. //1 - Dead, 2 - Alive if ( $MVP_Status[.@i] == 2 || $MVP_Status[.@i] == 0 || $MVP_TimeStamp[.@i] == 0 ) { //monster $MVP_maps$[.@i],0,0,"--ja--",$MVP_MobID[.@i],1; $MVP_Status[.@i] = 2; } else { // don't respawn MVP and wait for next spawn time $MVP_Status[.@i] = 1; } } startnpctimer; OnTimer60000: //check every 60 seconds for( set .@i,0; .@i < getarraysize($MVP_MobID); set .@i, .@i+1 ) { set .@time, $MVP_ResTime[.@i]*60; if( ($MVP_TimeStamp[.@i] + .@time) <= gettimetick(2) && $MVP_Status[.@i] == 1 ) { //monster $MVP_Maps$[.@i],0,0,"--ja--",$MVP_MobID[.@i],1; //Defines last respawn $MVP_TimeStamp[.@i] = gettimetick(2); $MVP_Status[.@i] = 2; } } setnpctimer 0; end; }
Share this post
Link to post
Share on other sites