Jump to content
  • 0
icegrave01

Pk room

Question

Can i request this

 

1. map area must be pk room(any pvp room available) 
2. monsters summon (3mins if killed) only few is available
   - item droped random
*50 pcs gold 100% drop rate
*20pcs bloody branch 30% drop rate
*1pc special item 10% drop rate
3. special item exchanger npc ( for example 20pcs special item for 1pc ESG)
4. kill room npc with entrance fee 10m
5. if killed inside the room player must respawn outside(main town)
6. no warp no memo no tele.+
7. only through npc can enter this room.
 
 
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

How about this?
 

//
// NOTE: Remove gvg mapflag on guild_vs2 (default on this script) if you want to use this map as pk room
//

-	script	PK#config	-1,{
OnInit:
/* minimum zeny needed to enter */
	set [email protected]_zeny, 10000000;
//-------------------------------
/* special item you mentioned */
	set [email protected]_item, 7227; // item id
	set [email protected]_amount, 20; // item amount to be exchanged on npc
//-------------------------------
/* item to be exchanged */
	set [email protected]_item, 501; // item id
	set [email protected]_amount, 1; //item amount
//-------------------------------

end;
}
-	script	PK#Room	-1,{
OnNPCKillEvent:
	getmapxy(@mapn$,@mapx,@mapy,0);
	if (@mapn$ == "guild_vs2"){
		if( killedrid ==  1002) {
			set [email protected], rand (10+30+100);
				if ([email protected] < 10){
					getitem [email protected]_item,1;  // 10% of having 7227=tcg card as special item
				}
				else if ([email protected] < 30){
					getitem 12103,20; // 30% rate of having bloody branch
				}
				else if ([email protected] < 100){
					getitem 969,50; // 100% rate of having gold
				}
				else {
					getitem 969,50;	// 100% rate of having gold
				}
			end;
		}
	}
	else{
		end;
	}
OnPCDieEvent:
	getmapxy(@mapn$,@mapx,@mapy,0);
	if (@mapn$ == "guild_vs2"){
		sleep2 1000;
		warp "prontera",150,150;
		end;
	}
	end;
}
prontera,155,184,4	script	rAthena	100,{
set @npc$,"[rAthena]";
		mes @npc$;
		mes "What do you want to do?";
		switch(select("Enter PVP Room","Exchange Items")){
			case 1:
					if (Zeny >= [email protected]_zeny){
						set Zeny,[email protected]_zeny;
						warp "guild_vs2",0,0;
						end;
					}
					else{
						dispbottom "Insufficient zeny";
						close;
					}
				break;
			case 2:
				if (countitem([email protected]_item) >= [email protected]_amount){
					dispbottom "Deal is succesful!";
					getitem [email protected]_item,[email protected]_amount;
					delitem [email protected]_item,[email protected]_amount;
					close;
				}
				else {
					dispbottom "Insufficient items";
					close;
				}
		}
		close;
				
}

/* mapflags and monster spawn */
guild_vs2,0,0,0,	monster	Poring	1002,1,180000,0,0
guild_vs2	mapflag	nomemo
guild_vs2	mapflag	pvp
guild_vs2	mapflag	noteleport
Link to comment
Share on other sites

  • 0

 

How about this?

 

//
// NOTE: Remove gvg mapflag on guild_vs2 (default on this script) if you want to use this map as pk room
//

-	script	PK#config	-1,{
OnInit:
/* minimum zeny needed to enter */
	set [email protected]_zeny, 10000000;
//-------------------------------
/* special item you mentioned */
	set [email protected]_item, 7227; // item id
	set [email protected]_amount, 20; // item amount to be exchanged on npc
//-------------------------------
/* item to be exchanged */
	set [email protected]_item, 501; // item id
	set [email protected]_amount, 1; //item amount
//-------------------------------

end;
}
-	script	PK#Room	-1,{
OnNPCKillEvent:
	getmapxy(@mapn$,@mapx,@mapy,0);
	if (@mapn$ == "guild_vs2"){
		if( killedrid ==  1002) {
			set [email protected], rand (10+30+100);
				if ([email protected] < 10){
					getitem [email protected]_item,1;  // 10% of having 7227=tcg card as special item
				}
				else if ([email protected] < 30){
					getitem 12103,20; // 30% rate of having bloody branch
				}
				else if ([email protected] < 100){
					getitem 969,50; // 100% rate of having gold
				}
				else {
					getitem 969,50;	// 100% rate of having gold
				}
			end;
		}
	}
	else{
		end;
	}
OnPCDieEvent:
	getmapxy(@mapn$,@mapx,@mapy,0);
	if (@mapn$ == "guild_vs2"){
		sleep2 1000;
		warp "prontera",150,150;
		end;
	}
	end;
}
prontera,155,184,4	script	rAthena	100,{
set @npc$,"[rAthena]";
		mes @npc$;
		mes "What do you want to do?";
		switch(select("Enter PVP Room","Exchange Items")){
			case 1:
					if (Zeny >= [email protected]_zeny){
						set Zeny,[email protected]_zeny;
						warp "guild_vs2",0,0;
						end;
					}
					else{
						dispbottom "Insufficient zeny";
						close;
					}
				break;
			case 2:
				if (countitem([email protected]_item) >= [email protected]_amount){
					dispbottom "Deal is succesful!";
					getitem [email protected]_item,[email protected]_amount;
					delitem [email protected]_item,[email protected]_amount;
					close;
				}
				else {
					dispbottom "Insufficient items";
					close;
				}
		}
		close;
				
}

/* mapflags and monster spawn */
guild_vs2,0,0,0,	monster	Poring	1002,1,180000,0,0
guild_vs2	mapflag	nomemo
guild_vs2	mapflag	pvp
guild_vs2	mapflag	noteleport

Sorry for late reply, i'm kinda busy at work. Thank you for making this script,. 

 

 

remove

guild_vs2	mapflag	noteleport

from the end of the script

Why remove?

Link to comment
Share on other sites

  • 0

 

remove

guild_vs2	mapflag	noteleport

from the end of the script

Why remove?

 

 

Sorry, that was in response to this.

 

Hi i want to enable use of fly wing in my gold room? would you help with the script?

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.