Jump to content
  • 0

makeitem2 not dropping on floor


Onairda

Question


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.03
  • Content Count:  164
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

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

 


 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

If you're using a version after https://github.com/rathena/rathena/commit/26720f041a3cd0edbaa975bfc70345a30e9bf706

change

getmapxy( .@map$,.@x,.@y,0 );

to

getmapxy( .@map$,.@x,.@y,BL_PC );

 

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

×
×
  • Create New...