MuffinEater Posted October 12, 2016 Posted October 12, 2016 item drop penalty po ito based on karmakapag + karma ka may chance mahulugan ka ng itemang problema gusto ko po kasi sana for player vs player lang sya hindi sana kasama pag monster vs player - script penalty_drop -1,{ OnPCDieEvent: if ( killedrid != getcharid(3) && KARMAPOINTS > -800 ) { if ( KARMAPOINTS <= 1000 ) { .@drop_count = rand( 1,2 ); .@rate = 20; } else if ( KARMAPOINTS >= 1001 && KARMAPOINTS <= 20000 ) { .@drop_count = rand( 1,3 ); .@rate = 100; } else if ( KARMAPOINTS >= 20001 && KARMAPOINTS <= 30000 ) { .@drop_count = rand( 2,4 ); .@rate = 100; } else if ( KARMAPOINTS >= 30001 && KARMAPOINTS <= 40000 ) { .@drop_count = rand( 2,5 ); .@rate = 100; } else if ( KARMAPOINTS >= 40001 && KARMAPOINTS <= 50000 ) { .@drop_count = rand( 3,5 ); .@rate = 100; } else if ( KARMAPOINTS >= 50001 && KARMAPOINTS <= 60000 ) { .@drop_count = rand( 4,6 ); .@rate = 100; } else if ( KARMAPOINTS >= 60001 && KARMAPOINTS <= 70000 ) { .@drop_count = rand( 5,7 ); .@rate = 100; } else if ( KARMAPOINTS >= 70001 ) { .@drop_count = rand( 5,7 ); .@rate = 100; } if ( .@rate > 0 && .@drop_count > 0 ) { while( .@drop < .@drop_count ) { getinventorylist; if ( @inventorylist_count == 0 ) end; .@index = rand( @inventorylist_count ); getmapxy( .@map$,.@x,.@y,0 ); if ( countitem2(@inventorylist_id[.@index],@inventorylist_identify[.@index],@inventorylist_refine[.@index],@inventorylist_attribute[.@index],@inventorylist_card1[.@index],@inventorylist_card2[.@index],@inventorylist_card3[.@index],@inventorylist_card4[.@index]) ) { delitem2 @inventorylist_id[.@index],@inventorylist_amount[.@index],@inventorylist_identify[.@index],@inventorylist_refine[.@index],@inventorylist_attribute[.@index],@inventorylist_card1[.@index],@inventorylist_card2[.@index],@inventorylist_card3[.@index],@inventorylist_card4[.@index]; makeitem2 @inventorylist_id[.@index],@inventorylist_amount[.@index],.@map$,.@x,.@y,@inventorylist_identify[.@index],@inventorylist_refine[.@index],@inventorylist_attribute[.@index],@inventorylist_card1[.@index],@inventorylist_card2[.@index],@inventorylist_card3[.@index],@inventorylist_card4[.@index]; .@drop++; } } } } end; } Quote
Athan17 Posted October 12, 2016 Posted October 12, 2016 (edited) This stop the script if kill by a monster: OnPCDieEvent: if ( killerrid > 3000000 ) end; https://rathena.org/board/topic/82709-script-like-this/?p=199657 Edited October 12, 2016 by Athan17 Quote
MuffinEater Posted October 16, 2016 Author Posted October 16, 2016 how about killed by @die and NPC? Quote
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.