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;
}