RagnaDevsPH Posted May 3, 2017 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 12 Reputation: 0 Joined: 05/02/17 Last Seen: February 24, 2020 Share Posted May 3, 2017 can you please edit this script. can you make it to all party members will receive the reward including the one who kill it. and for solo mvp hunter can receive the rewards as well. thanks also please add the MINI MVP - script Mvp Hunter -1,{ OnNPCKillEvent: if ( !getmonsterinfo( killedrid, MOB_MVPEXP ) ) end; if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 7227, 1, .@partymemberaid[ rand( .@c ) ]; announce "Party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } else { getitem 7227, 1; announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } end; } Quote Link to comment Share on other sites More sharing options...
1 Cyro Posted May 3, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 1138 Reputation: 290 Joined: 04/29/13 Last Seen: July 20, 2024 Share Posted May 3, 2017 (edited) - script mvpscript -1,{ OnNPCKillEvent: if ( !getmonsterinfo( killedrid, MOB_MVPEXP ) ) end; if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 7227, 1, .@partymemberaid[.@i]; announce "Party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Party Got 1 TCG at "+ strcharinfo(3),0,0x00FF00; } else { getitem 7227, 1; announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and Got 1 TCG at "+ strcharinfo(3),0,0x00FF00; } end; } you can list all mini-bosses which you want to drop TCG with an array and can use OnNPCKillEvent: example OnNPCKillEvent: setarray .mobid[0],1002,1005; // boss Id's for (set .@d, 0; .@d < getarraysize(.mobid); set .@d, .@d + 1){ if (killedrid == .mobid[.@d]){ announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; getitem 7227,1; } Edited May 3, 2017 by Cyro 1 Quote Link to comment Share on other sites More sharing options...
1 Litro Endemic Posted May 4, 2017 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 May 4, 2017 - script Mvp Hunter -1,{ OnNPCKillEvent: //if ( !getmonsterinfo( killedrid, MOB_MVPEXP ) ) end; // add mvp & mini boss mob id's here setarrays .@monster_list, 1002, 1003; for (.@i = 0; .@i < getarraysize(.@monster_list); .@i++) { if (killedrid == .@monster_list[.@i]) break; } if (.@i == getarraysize(.@monster_list)) end; if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ if ( attachrid( $@partymemberaid[.@i] ) ) { getitem 7227, 1; } } } announce "Party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } else { getitem 7227, 1; announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } end; } this script may help you, you have to add mob ids that you want it to be given reward when killed Quote note: i'm lazy to get id of mvps and mini bosses do it your self 1 Quote Link to comment Share on other sites More sharing options...
Question
RagnaDevsPH
can you please edit this script. can you make it to all party members will receive the reward including the one who kill it.
and for solo mvp hunter can receive the rewards as well. thanks
also please add the MINI MVP
- script Mvp Hunter -1,{ OnNPCKillEvent: if ( !getmonsterinfo( killedrid, MOB_MVPEXP ) ) end; if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 7227, 1, .@partymemberaid[ rand( .@c ) ]; announce "Party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } else { getitem 7227, 1; announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and rewarded 1 TCG at "+ strcharinfo(3), 0; } end; }
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.