Jump to content
  • 0

makeitem2 not dropping on floor


Question

Posted

hi, i messing with this script so much hours , i dont see any drop items in the floor , the items is succesfully deleted on my inventory, but the items is not dropping on the ground and there is no error, and i think there was something wrong in makeitem2

 

prontera,150,155,3	script	penalty_drop	103,{

OnPCDieEvent:
	if ( .@karma > -1000 ) {
		.@rate = ( pkpoints / 1000 );
		if ( .@rate < 0 ) .@rate = 1;

		if ( .@rate < rand( 100 ) ) {
			for ( .@i = 1; .@i <= 10; .@i++ )
				if ( getequipid( .@i ) != -1 )
					.@equip_part_found++;
			
			if ( .@equip_part_found ) {
				do {
					.@equip_part = rand( 1,10 );
					.@item_id = getequipid( .@equip_part );
				} while( .@item_id == -1 );
				.@refine = getequiprefinerycnt( .@equip_part );
				for ( .@i = 0; .@i < 4; .@i++ ) 
					.@card[.@i] = getequipcardid( .@equip_part,.@i );
				getmapxy( .@map$,.@x,.@y,0 );
				delequip .@equip_part;
				makeitem2 .@item_id,1,.@map$,.@x,.@y,1,.@refine,0,.@card[0],.@card[1],.@card[2],.@card[3];
				dispbottom "One of your equipment dropped.";
			}
		}
	}
	end;
}

 


 

1 answer 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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...