rayleigh Posted May 20, 2015 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 220 Reputation: 0 Joined: 09/05/13 Last Seen: January 18, 2023 Share Posted May 20, 2015 npc that records players scores of the mvps they killed. They are ranked from 1-10 Each mvp monsters has a different points to give dependin on its difficulty. Only the player who is mvp will get the point and they will saw it on the mvp killer ladder. The gm99 can reset the scores. is this possible? Thanks for those who will help. Quote Link to comment Share on other sites More sharing options...
Brian Posted May 20, 2015 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 594 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted May 20, 2015 Yes, a script could display a MVP Ladder using the info from the mvplog table. Turn on mvplog in /conf/log_athena.conf // Log MVP Monster Drops (Note 1) // Outdated. Use Pick_Log instead. But this log could be useful to keep track slayed MVPs log_mvpdrop: yes Each mvp monsters has a different points to give dependin on its difficulty. Can you post a list of what you want the points to be for each MVP? Quote Link to comment Share on other sites More sharing options...
rayleigh Posted May 21, 2015 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 220 Reputation: 0 Joined: 09/05/13 Last Seen: January 18, 2023 Author Share Posted May 21, 2015 Thank you sir for a very user friendly reply. This is what i want. This is just for example. Eddga-1 point (p) Gtb - 1p stormy - 2p bapho - 10p so far and so on... if you could just specify sir the things i will edit or add. i will be the one to edit the script for experience matter. Ty so much sir. ill wai for the reply . Quote Link to comment Share on other sites More sharing options...
Shiodevs Posted May 23, 2015 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 50 Reputation: 4 Joined: 12/12/13 Last Seen: February 23, 2017 Share Posted May 23, 2015 (edited) //= MvP Rank Improved v1.0 //= --- //= This Rank will count every MvP you kill, //= to be more clear, will count every mob //= defined inside the array ".mobid[0]", //= so, if you add the poring ID will count in the rank //= you can modify and ad miniBoss because this array //= only have all MvPs, that's the idea, only MvPs... //= --- - script Rank MvP -1,{ OnInit: // Script Configuration setarray .mobid[0],1511,1647,1785,1630,1399,1039,1874,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,1086,1688,1646, 1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,1708,1312,1751,1685,1648,1917,1658; // MvP Ids set .a, 0; // Broadcast who killed the MvP and wich MvP and wick Map [0 Off - 1 On] set $@top, 10; // Max. Top Rank (Hihgly recommended between 5~10, more maybe bug the server (limited variables) end; OnNPCKillEvent: // Script execution for (set .@c, 0; .@c < getarraysize(.mobid); set .@c, .@c + 1) if (killedrid == .mobid[.@c]) set .@s, 1; // If a MvP if (!.@s) end; if (.a) // If announce On announce "The user [" +strcharinfo(0) +"] has killed a [" +getmonsterinfo(killedrid,0) +"] in the map [" +strcharinfo(3) +"]",bc_blue|bc_all; set MvP, MvP + 1; callfunc ("MvPRank",MvP,strcharinfo(0)); end; } // End Script prontera,147,166,3 script MvP Ranking 857,{ mes "[ MvP Rank Top " +$@top +" ]"; for (set .@c, 0; .@c < $@top; set .@c, .@c + 1) mes "^996600" +(.@c + 1) +"^000000: ^006699" +getd("$topmvp" +.@c +"$") +"^000000 with ^00AA00" +getd("$topmvp" +.@c) +"^000000 MvP killed."; close; } // End if function script MvPRank { set @mvptotal, getarg(0); set @nomb$, getarg(1); for (set .@c, 0; .@c < $@top; set .@c, .@c + 1) { if (@mvptotal >= getd("$topmvp" +.@c)) { if (strcharinfo(0) == getd("$topmvp" +.@c +"$")) { setd "$topmvp" +.@c, @mvptotal; setd "$topmvp" +.@c +"$", @nomb$; return; } else { if (getd("$topmvp" +(.@c + 1) +"$") == "") { setd "$topmvp" +.@c, @mvptotal; setd "$topmvp" +.@c +"$", @nomb$; return; } else { setd "$topmvp" +(.@c + 1), getd("$topmvp" +.@c); setd "$topmvp" +(.@c + 1) +"$", getd("$topmvp"+.@c+"$"); setd "$topmvp" +.@c, @mvptotal; setd "$topmvp" +.@c +"$", @nomb$; return; } // End if } // End if } // End if } // End loop return; } // End function Here you go =D. Credit = ?? Edited May 23, 2015 by Shiodevs Quote Link to comment Share on other sites More sharing options...
Question
rayleigh
npc that records players scores of the mvps they killed.
They are ranked from 1-10
Each mvp monsters has a different points to give dependin on its difficulty.
Only the player who is mvp will get the point and they will saw it on the mvp killer ladder.
The gm99 can reset the scores.
is this possible?
Thanks for those who will help.
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.