Jump to content

Recommended Posts

item drop penalty po ito based on karma
kapag + karma ka may chance mahulugan ka ng item
ang 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;
}
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
Reply to this topic...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.