Jump to content
  • 0

Help with this MVP REWARDER


RagnaDevsPH

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  05/02/17
  • Last Seen:  

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

  • 1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

-	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 by Cyro
  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   77
  • Joined:  06/13/13
  • Last Seen:  

-	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

 

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...