Jump to content
  • 0

pvp_nightmare mode


hakuren

Question


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

possible to attach only one person to nightmare mode?

dropping of item?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

random drop (including equipped)

-	script	kjhfksjdf	-1,{
OnPCDieEvent:
	if ( strcharinfo(3) != "prontera" ) end; // set your map
	if ( pkpoints < 100 ) end; // decide on the pk points
	getinventorylist;
	if ( !@inventorylist_count ) end;
	.@r = rand( @inventorylist_count );
	delitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	getmapxy .@map$, .@x, .@y, 0;
	makeitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], .@map$, .@x, .@y, @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	end;
}
random drop (don't drop equipped items)

function	script	rand__	{
	.@range = getarg(0);
	.@count = getarg(2, 0);
	if ( !.@count || .@count > .@range )
		.@count = .@range;
	else if ( .@count > 128 )
		.@count = 128;
	while ( .@i < .@count ) {
		.@r = .@save = rand( .@i, .@range -1 ) ;
		if ( !getd( ".@tmp1_"+ .@i ) ) {
			.@r = ( getd(".@tmp1_"+ .@r ) )? getd( ".@tmp2_"+ .@r ) : .@r;
			setd ".@tmp2_"+ .@i, .@r;
			setd ".@tmp2_"+ .@save , .@i;
			setd ".@tmp1_"+ .@save , 1;
			set getelementofarray( getarg(1), .@i ), .@r;
			if ( .@save < .@count )
				set getelementofarray( getarg(1), .@save ), .@i;
		}
		.@i++;
	}
	return .@count;
}

-	script	kjhfksjdf2	-1,{
OnPCDieEvent:
	if ( strcharinfo(3) != "prontera" ) end; // set your map
	if ( pkpoints < 100 ) end; // decide on the pk points
	getinventorylist;
	if ( !@inventorylist_count ) end;
	callfunc "rand__", @inventorylist_count, $@r;
	for ( .@i = 0; .@i < @inventorylist_count; .@i++ )
		if ( !@inventorylist_equip[ .@i[ $@r ] ] )
			break;
	.@r = .@i[ $@r ];
	delitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	getmapxy .@map$, .@x, .@y, 0;
	makeitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], .@map$, .@x, .@y, @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	end;
}

PS: to Hakuren

I purposely pick this topic to answer because I remember I have supported Hakuren during my stay in rathena

if you still like getting support by me, then ask in hercules forum too :P

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

possible to attach only one person to nightmare mode?

dropping of item?

Do you want more than one item to drop when someone dies on Nightmare Mode?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

possible to attach only one person to nightmare mode?

dropping of item?

Do you want more than one item to drop when someone dies on Nightmare Mode?

yes..

hmm i want just like this

if player has 100 points like set pkpoints it that will determine the droprate of items

ex. player 1 has pkpoints of 100

droprate of all item will be 100% but its random item can be drop

so for my english im not good on it :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

 

 

possible to attach only one person to nightmare mode?

dropping of item?

Do you want more than one item to drop when someone dies on Nightmare Mode?

 

yes..

hmm i want just like this

if player has 100 points like set pkpoints it that will determine the droprate of items

ex. player 1 has pkpoints of 100

droprate of all item will be 100% but its random item can be drop

so for my english im not good on it :(

 

Hmm...You may beable to do this with a script that calls for OnPCDieEvent: and then checks the points and multiplies the % based on how many points; I'll try fiddling around and see if I can make what you're requesting

Sorry, I tried making it work lol

 

Any good scripter:

Simply use an OnPCDieEvent: and make an array of the dead user's inventory and have it delete a random item and give it to the killerid player; remember to check for the player's pkpoints :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Random item that is equipped, or random item from the inventory, including equipped or not?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

random drop (including equipped)

-	script	kjhfksjdf	-1,{
OnPCDieEvent:
	if ( strcharinfo(3) != "prontera" ) end; // set your map
	if ( pkpoints < 100 ) end; // decide on the pk points
	getinventorylist;
	if ( !@inventorylist_count ) end;
	.@r = rand( @inventorylist_count );
	delitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	getmapxy .@map$, .@x, .@y, 0;
	makeitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], .@map$, .@x, .@y, @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	end;
}
random drop (don't drop equipped items)

function	script	rand__	{
	.@range = getarg(0);
	.@count = getarg(2, 0);
	if ( !.@count || .@count > .@range )
		.@count = .@range;
	else if ( .@count > 128 )
		.@count = 128;
	while ( .@i < .@count ) {
		.@r = .@save = rand( .@i, .@range -1 ) ;
		if ( !getd( ".@tmp1_"+ .@i ) ) {
			.@r = ( getd(".@tmp1_"+ .@r ) )? getd( ".@tmp2_"+ .@r ) : .@r;
			setd ".@tmp2_"+ .@i, .@r;
			setd ".@tmp2_"+ .@save , .@i;
			setd ".@tmp1_"+ .@save , 1;
			set getelementofarray( getarg(1), .@i ), .@r;
			if ( .@save < .@count )
				set getelementofarray( getarg(1), .@save ), .@i;
		}
		.@i++;
	}
	return .@count;
}

-	script	kjhfksjdf2	-1,{
OnPCDieEvent:
	if ( strcharinfo(3) != "prontera" ) end; // set your map
	if ( pkpoints < 100 ) end; // decide on the pk points
	getinventorylist;
	if ( !@inventorylist_count ) end;
	callfunc "rand__", @inventorylist_count, $@r;
	for ( .@i = 0; .@i < @inventorylist_count; .@i++ )
		if ( !@inventorylist_equip[ .@i[ $@r ] ] )
			break;
	.@r = .@i[ $@r ];
	delitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	getmapxy .@map$, .@x, .@y, 0;
	makeitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], .@map$, .@x, .@y, @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r];
	end;
}

PS: to Hakuren

I purposely pick this topic to answer because I remember I have supported Hakuren during my stay in rathena

if you still like getting support by me, then ask in hercules forum too :P

thank you so much i really love you annieruru your so kind !! thank you thank you thank you!

Edited by hakuren
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...