• 0
Sign in to follow this  
Deadly Brothers

Help Me For This Script To Add PvP On/PvP Off Die a Mvp Boss

Question

how to put pvp on when the mvp monster respawn on his map then how can he pvp off when the mvp boss monster is dead on the map

-	script	MVPBadge	FAKE_NPC,{
OnNPCKillEvent:
	if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 70 ) {
		if ( getcharid(1) ) {
			getpartymember getcharid(1), 1;
			getpartymember getcharid(1), 2;
			getpartymember getcharid(1), 3;
			getpartymember getcharid(1), 4;
			getpartymember getcharid(1), 5;
			for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) {
				if ( isloggedin( [email protected][[email protected]], [email protected][[email protected]] ) ) { // what happens if someone in the party member is offline =/
					[email protected][[email protected]] = [email protected][[email protected]];
					[email protected]++;
				}
			}
			getitem 607, 1, [email protected][ rand( [email protected] ) ];
			announce "Party ["+ strcharinfo(1) +"] Has Killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" At "+ strcharinfo(3), 0;
		}
		else {
			getitem 607, 1;
			announce "Player ["+ strcharinfo(0) +"] Has Killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" At "+ strcharinfo(3), 0;
		}
	}
	end;
}

 

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0
1 hour ago, dev LOOLP said:

 

i will try this but i have a error for this recompile error code

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Deadly Brothers said:

i will try this but i have a error for this recompile error code

its work, post your error here, i cant read your mind to guess your error

image.thumb.png.884570b30bf93d54559ba4cd3d634879.png

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Zack- said:

its work, post your error here, i cant read your mind to guess your error

image.thumb.png.884570b30bf93d54559ba4cd3d634879.png

this latest emulator zack??

Share this post


Link to post
Share on other sites
  • 0
9 minutes ago, Deadly Brothers said:

i will input now but no show in pvp on the map

there is something wrong wth what u did,, it would be helpful if u provide a screenshot of ur error

 

With MVP alive is working the pvp counter in the lower right is shown,

345009354_withmvp.thumb.png.e1ff775813e1eb51a271e8c9d38fa762.png

 

When the MVP dead, is working to, the pvp counter in the lower right is gone

506661580_withoutmvp.thumb.png.e630d5dadf3600b62d99a0b30e580474.png

Share this post


Link to post
Share on other sites
  • 0
25 minutes ago, Zack- said:

there is something wrong wth what u did,, it would be helpful if u provide a screenshot of ur error

 

With MVP alive is working the pvp counter in the lower right is shown,

345009354_withmvp.thumb.png.e1ff775813e1eb51a271e8c9d38fa762.png

 

When the MVP dead, is working to, the pvp counter in the lower right is gone

506661580_withoutmvp.thumb.png.e630d5dadf3600b62d99a0b30e580474.png

this my error

1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(879): warning C4013: 'map_setmapflag' undefined; assuming extern returning int
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(879): error C2065: 'MF_PVP' : undeclared identifier
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(967): error C2065: 'MF_PVP' : undeclared identifier
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(2793): error C2065: 'MF_PVP' : undeclared identifier

 

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Deadly Brothers said:

this my error

1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(879): warning C4013: 'map_setmapflag' undefined; assuming extern returning int
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(879): error C2065: 'MF_PVP' : undeclared identifier
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(967): error C2065: 'MF_PVP' : undeclared identifier
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(2793): error C2065: 'MF_PVP' : undeclared identifier

 

Update to latest rA

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, Deadly Brothers said:

this my error

1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(879): warning C4013: 'map_setmapflag' undefined; assuming extern returning int
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(879): error C2065: 'MF_PVP' : undeclared identifier
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(967): error C2065: 'MF_PVP' : undeclared identifier
1>c:\users\deadly\desktop\ro trunk\src\map\mob.c(2793): error C2065: 'MF_PVP' : undeclared identifier

 

 

 

i think u havent see the latest code, ok here we go

mvppkLatest.diff - credit to Chun3

Share this post


Link to post
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.

Loading...
Sign in to follow this