Jump to content
  • 0

Pk room


icegrave01

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   2
  • Joined:  05/29/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

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 $@min_zeny, 10000000;
//-------------------------------
/* special item you mentioned */
	set $@spcial_item, 7227; // item id
	set $@sitem_amount, 20; // item amount to be exchanged on npc
//-------------------------------
/* item to be exchanged */
	set $@ex_item, 501; // item id
	set $@exitem_amount, 1; //item amount
//-------------------------------

end;
}
-	script	PK#Room	-1,{
OnNPCKillEvent:
	getmapxy(@mapn$,@mapx,@mapy,0);
	if (@mapn$ == "guild_vs2"){
		if( killedrid ==  1002) {
			set .@rand, rand (10+30+100);
				if (.@rand < 10){
					getitem $@spcial_item,1;  // 10% of having 7227=tcg card as special item
				}
				else if (.@rand < 30){
					getitem 12103,20; // 30% rate of having bloody branch
				}
				else if (.@rand < 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 >= $@min_zeny){
						set Zeny,Zeny-$@min_zeny;
						warp "guild_vs2",0,0;
						end;
					}
					else{
						dispbottom "Insufficient zeny";
						close;
					}
				break;
			case 2:
				if (countitem($@spcial_item) >= $@sitem_amount){
					dispbottom "Deal is succesful!";
					getitem $@ex_item,$@exitem_amount;
					delitem $@spcial_item,$@sitem_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

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  07/25/15
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

remove

guild_vs2	mapflag	noteleport

from the end of the script

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   2
  • Joined:  05/29/12
  • Last Seen:  

 

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 $@min_zeny, 10000000;
//-------------------------------
/* special item you mentioned */
	set $@spcial_item, 7227; // item id
	set $@sitem_amount, 20; // item amount to be exchanged on npc
//-------------------------------
/* item to be exchanged */
	set $@ex_item, 501; // item id
	set $@exitem_amount, 1; //item amount
//-------------------------------

end;
}
-	script	PK#Room	-1,{
OnNPCKillEvent:
	getmapxy(@mapn$,@mapx,@mapy,0);
	if (@mapn$ == "guild_vs2"){
		if( killedrid ==  1002) {
			set .@rand, rand (10+30+100);
				if (.@rand < 10){
					getitem $@spcial_item,1;  // 10% of having 7227=tcg card as special item
				}
				else if (.@rand < 30){
					getitem 12103,20; // 30% rate of having bloody branch
				}
				else if (.@rand < 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 >= $@min_zeny){
						set Zeny,Zeny-$@min_zeny;
						warp "guild_vs2",0,0;
						end;
					}
					else{
						dispbottom "Insufficient zeny";
						close;
					}
				break;
			case 2:
				if (countitem($@spcial_item) >= $@sitem_amount){
					dispbottom "Deal is succesful!";
					getitem $@ex_item,$@exitem_amount;
					delitem $@spcial_item,$@sitem_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

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

He wants to allow players to teleport in the map so by removing the mapflag players can now teleport.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

 

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