Jump to content

Question

Posted

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;
}

 

2 answers to this question

Recommended Posts

  • 1
Posted (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 by Cyro
  • Upvote 1
  • 1
Posted
-	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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...