MuffinEater Posted October 12, 2016 Share 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 ) { [email protected]_count = rand( 1,2 ); [email protected] = 20; } else if ( KARMAPOINTS >= 1001 && KARMAPOINTS <= 20000 ) { [email protected]_count = rand( 1,3 ); [email protected] = 100; } else if ( KARMAPOINTS >= 20001 && KARMAPOINTS <= 30000 ) { [email protected]_count = rand( 2,4 ); [email protected] = 100; } else if ( KARMAPOINTS >= 30001 && KARMAPOINTS <= 40000 ) { [email protected]_count = rand( 2,5 ); [email protected] = 100; } else if ( KARMAPOINTS >= 40001 && KARMAPOINTS <= 50000 ) { [email protected]_count = rand( 3,5 ); [email protected] = 100; } else if ( KARMAPOINTS >= 50001 && KARMAPOINTS <= 60000 ) { [email protected]_count = rand( 4,6 ); [email protected] = 100; } else if ( KARMAPOINTS >= 60001 && KARMAPOINTS <= 70000 ) { [email protected]_count = rand( 5,7 ); [email protected] = 100; } else if ( KARMAPOINTS >= 70001 ) { [email protected]_count = rand( 5,7 ); [email protected] = 100; } if ( [email protected] > 0 && [email protected]_count > 0 ) { while( [email protected] < [email protected]_count ) { getinventorylist; if ( @inventorylist_count == 0 ) end; [email protected] = rand( @inventorylist_count ); getmapxy( [email protected]$,[email protected],[email protected],0 ); if ( countitem2(@inventorylist_id[[email protected]],@inventorylist_identify[[email protected]],@inventorylist_refine[[email protected]],@inventorylist_attribute[[email protected]],@inventorylist_card1[[email protected]],@inventorylist_card2[[email protected]],@inventorylist_card3[[email protected]],@inventorylist_card4[[email protected]]) ) { delitem2 @inventorylist_id[[email protected]],@inventorylist_amount[[email protected]],@inventorylist_identify[[email protected]],@inventorylist_refine[[email protected]],@inventorylist_attribute[[email protected]],@inventorylist_card1[[email protected]],@inventorylist_card2[[email protected]],@inventorylist_card3[[email protected]],@inventorylist_card4[[email protected]]; makeitem2 @inventorylist_id[[email protected]],@inventorylist_amount[[email protected]],[email protected]$,[email protected],[email protected],@inventorylist_identify[[email protected]],@inventorylist_refine[[email protected]],@inventorylist_attribute[[email protected]],@inventorylist_card1[[email protected]],@inventorylist_card2[[email protected]],@inventorylist_card3[[email protected]],@inventorylist_card4[[email protected]]; [email protected]++; } } } } end; } Quote Link to comment Share on other sites More sharing options...
Athan17 Posted October 12, 2016 Share 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 Link to comment Share on other sites More sharing options...
MuffinEater Posted October 16, 2016 Author Share Posted October 16, 2016 how about killed by @die and NPC? Quote Link to comment Share on other sites More sharing options...