Tdi123 Posted January 21, 2020 Group: Members Topic Count: 93 Topics Per Day: 0.03 Content Count: 195 Reputation: 3 Joined: 12/12/17 Last Seen: January 19 Share Posted January 21, 2020 (edited) I need help with this NPC. He can usually identify the status of the mvps when they die, however, after a while the status of the mvps will turn green again as if the mvps were alive. The idea would be to monitor in real time whether the mvp is alive or dead Thanks in advance! Quote // https://www.eathena.ws/board/index.php?&act=attach&type=post&id=5866 //===== eAthena Script ======================================= //= Super Convex Mirror //===== By: ================================================== //= Brian //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= //= Detects if every MVP is alive or dead. //===== Additional Comments: ================================= //= http://www.eathena.ws/board/index.php?showtopic=242050 //============================================================ geffen,140,173,5 script MVP Checker::convex 882,{ for( .@i = 0; .@i < getarraysize( .mvp_name$ ); .@i++ ) { switch (.@i) { case 42: .@alive = ( $@thana_summon < 6 || mobcount( "thana_boss", "#Death::OnThanaDead" ) ); break; default: .@alive = mobcount( .mvp_map$[.@i], "" ); break; } if ( .display_type == 2 ) .@menu$ = .@menu$ + ( ( .@alive ) ? "^008000" : "^FF0000" ) + .mvp_name$[.@i] + "^000000 (" + .mvp_map$[.@i] + "):"; else if ( .display_type == 1 ) mes ( ( .@alive ) ? "^FF0000" : "^008000" ) + .mvp_name$[.@i] + "^000000 (" + .mvp_map$[.@i] + ")"; } if ( .display_type == 1 ) close; .@num = select( .@menu$ ) - 1; if (.warp_to_mvp == 1) warp .mvp_map$[.@num],0,0; else if(.warp_to_mvp == 2) { sleep2 1000; sc_start SC_BOSSMAPINFO,600000,0; } end; OnInit: // 0 = disabled, 1 = enabled, 2 = enabled + SC_BOSSMAPINFO .warp_to_mvp = 0; setarray .mvp_map$, "moc_pryd06","ra_fild03","ra_fild04","ve_fild01","ve_fild02", "lou_dun03","prt_maze03","abbey03", "gl_chyard","abyss_03","gef_dun02","gef_dun01","treasure02", "pay_fild10","gon_dun03","abbey02","xmas_fild01","ra_san05", "prt_sewb4","mosk_dun03","thor_v03","ama_dun03", "kh_dun02","ayo_dun02","niflheim","anthell02", "mjolnir_04","pay_dun04","gef_fild03","gef_fild10", "moc_pryd04","in_sphinx5","moc_fild17","ein_dun02","xmas_dun02", "beach_dun","thana_boss","tur_dun04","odin_tem03", "jupe_core","lhz_dun02"; setarray .mvp_name$, "AmonRa","Atroce","Atroce","Atroce","Atroce", "Bacsojin","Baphomet","Beelzebub", "DarkLord","Detale","Doppelganger","Dracula","Drake", "Eddga","EvilSnakeLord","FallenBishop","Garm","GloomUnderNight", "GoldenThiefBug","Gopinich","Ifrit","IncantationSamurai", "KielD01","LadyTanee","LordofDeath","Maya", "Mistress","MoonlightFlower","OrcHero","OrcLord", "Osiris","Pharaoh","Phreeoni","RSX0806","Stormy Knight", "TaoGunka","Thanatos","TurtleGeneral","ValkyrieRandgris", "Vesper","Ygnizem"; .display_type = 1; if( .warp_to_mvp > 0 ) .display_type = 2; end; } Edited January 22, 2020 by Tdi123 Quote Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted January 23, 2020 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted January 23, 2020 this will need extra src, you can take src code of mobsearch or showmobs command, to make it compatible for your use with map name <> mob id match as query, you need to adjust the code for the map name. Quote Link to comment Share on other sites More sharing options...
0 Tdi123 Posted January 24, 2020 Group: Members Topic Count: 93 Topics Per Day: 0.03 Content Count: 195 Reputation: 3 Joined: 12/12/17 Last Seen: January 19 Author Share Posted January 24, 2020 On 1/23/2020 at 6:23 AM, Litro Endemic said: this will need extra src, you can take src code of mobsearch or showmobs command, to make it compatible for your use with map name <> mob id match as query, you need to adjust the code for the map name. How would I do that? I don't understand much about src Quote Link to comment Share on other sites More sharing options...
Question
Tdi123
I need help with this NPC.
He can usually identify the status of the mvps when they die, however, after a while the status of the mvps will turn green again as if the mvps were alive.
The idea would be to monitor in real time whether the mvp is alive or dead
Thanks in advance!
Link to comment
Share on other sites
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.