Jump to content
  • 0

MVP Hunt [Request Plss..]


Musika

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   0
  • Joined:  08/23/12
  • Last Seen:  

Can i pls request of an NPC that is like:

 

1. You need to be Maxed Level and in a guild that is Level 50 to access the NPC.

 

2. When 5 or more Guild members are present, the GUILD LEADER needs to pay 100 TCG [7227] for

example.

 

3. Then they will choose from the menu the name of the MVP that they want to hunt.

 

4. Once they've chosen an MVP to Hunt, they will all be warped into the Exact location of the MVP.

Ex: Ifrit (thor_v03 x,y)

 

5. Then when the MVP is killed by them, it will announce:

The "guildname" guild have killed "MVPname" in "Mapname" "x,y".

 

thanks../thx

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

I don't have enough time to make this though i can give you a hint on how to do this :

 

1. 

if ( BaseLevel < 255 ) {
	mes "You must be level 255 in order to talk to me";
	close;
}

if ( !getcharid( 2 ) ) {
	mes "You don't have guild";
	close;
}

query_sql "SELECT `guild_lv` FROM `guild` WHERE `guild_id` = '"+ getcharid( 2 ) +"'",.@guild_lv;

if ( .@guild_lv < 50 ) {
	mes "Must be guild level 50 in order to talk to me";
	close;
}

2. 

getguildmember getcharid( 2 ), 1;
getguildmember getcharid( 2 ), 2;

for ( .@i = 0; .@i < $@guildmembercount; .@i++ )
	if ( isloggedin( $@guildmemberaid[ .@i ], $@guildmembercid[ .@i ] ) )
		.@count++;
		
if ( .@count < 5 ) {
	mes "Must have 5 guild members online";
	close;
} else {
	if ( countitem( 7227 ) < 100 ) {
		mes "Must have 100x " + getitemname( 7227 );
		close;
	}
	delitem 7227, 100;
}

3, 4, 5 :

setarray .Mobs[0],1832;
setarray .Map$[0],"thor_v03";
setarray .XCoord[0],150;
setarray .YCoord[0],150;
.size = getarraysize( .Mobs );
.@menu$ = "";
for ( .@i = 0; .@i < .size; .@i++ ) {
	.@menu$ += getmonsterinfo( .Mobs[ .@i ] , 0 );
	.@menu$ += ":";
}
.@s = select( .@menu$ ) - 1;

mes "So you want to hunt " + getmonsterinfo( .Mobs[ .@s ], 0 ) + "?";
next;
if ( select( "Yes:No" ) - 1 ) close;
warp .Map$[ .@s ], .XCoord[ .@s ], .YCoord[ .@s ];
monster .Map$[ .@s ], .XCoord[ .@s ], .YCoord[ .@s ], "--ja--", .Mobs[ .@s ], 1, strnpcinfo( 3 )+"::OnMVPKill";
close;

OnMVPKill:
	getmapxy( .@map$, .@x, .@y, 0 );
	announce "The " + getguildname( getcharid( 2 ) ) + " guild have killed " + getmonsterinfo( killedrid, 0 ) + " in " + .@map$ + " " + .@x + " " + .@y + ".",0;
	end;

Dunno though if this will post an error since i am not in my laptop to make this :P

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   0
  • Joined:  08/23/12
  • Last Seen:  

THANK YOU SOOOO MUCH SIR PATSKIE!!!../thx../thx


I'll give this a try and i'll inform you asap if there are any errors../thx

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...