Jump to content
  • 0

R>Pvp Rewards Chance Per Kill


GodKnows Jhomz

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   66
  • Joined:  09/05/12
  • Last Seen:  

I want to request a PvP Script that gives a player with TCG Card (7227) when killing in pvp room (multiple maps if can).

Here's the scenario : 

I have 5 Items. (Just countitem to check the level)
Level 1 to 5 Items that gives additional chances to get the TCG from pvp.
Level 1 : 5%
Level 2 : 10%
Level 3 : 15%
Level 4 : 25%
Level 5 : 50%

So, if I have the Level 1 item, I have a 5% chance to get TCG when killing.
If I have the Level 5, 50% chance to get TCG when killing.

I hope someone can provide a script for my request.
Thank you in advance.

Edited by GodKnows Jhomz
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

-	script	kill_countitem_tcg_drop	-1,{
	
	OnPCKillEvent:
		switch ( countitem( 512 ) ) {
			case 1: .@rate = 5; break;
			case 2: .@rate = 10; break;
			case 3: .@rate = 15; break;
			case 4: .@rate = 25; break;
			case 5: .@rate = 50; break;
			default: end;
		}
		if ( rand( 100 ) < .@rate ) {
			getitem 513,1;
		}
		end;
}

 

Edited by Emistry
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   66
  • Joined:  09/05/12
  • Last Seen:  

1 hour ago, Emistry said:

-	script	kill_countitem_tcg_drop	-1,{
	
	OnPCKillEvent:
		switch ( countitem( 512 ) ) {
			case 1: .@rate = 5; break;
			case 2: .@rate = 10; break;
			case 3: .@rate = 15; break;
			case 4: .@rate = 25; break;
			case 5: .@rate = 50; break;
			default: end;
		}
		if ( rand( 100 ) < .@rate ) {
			getitem 513,1;
		}
		end;
}

 

Thanks, I just got the idea and solved my problem.

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