hakuren Posted March 12, 2014 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Share Posted March 12, 2014 possible to attach only one person to nightmare mode? dropping of item? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted March 13, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted March 13, 2014 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 1 Quote Link to comment Share on other sites More sharing options...
Pneuma Posted March 12, 2014 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 846 Reputation: 138 Joined: 02/26/14 Last Seen: March 7, 2018 Share Posted March 12, 2014 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? Quote Link to comment Share on other sites More sharing options...
hakuren Posted March 12, 2014 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted March 12, 2014 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 Quote Link to comment Share on other sites More sharing options...
Pneuma Posted March 13, 2014 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 846 Reputation: 138 Joined: 02/26/14 Last Seen: March 7, 2018 Share Posted March 13, 2014 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 Quote Link to comment Share on other sites More sharing options...
sandbox Posted March 13, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted March 13, 2014 Random item that is equipped, or random item from the inventory, including equipped or not? Quote Link to comment Share on other sites More sharing options...
hakuren Posted March 13, 2014 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted March 13, 2014 (edited) 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 thank you so much i really love you annieruru your so kind !! thank you thank you thank you! Edited March 13, 2014 by hakuren Quote Link to comment Share on other sites More sharing options...
Question
hakuren
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.