Jump to content
  • 0

requesting for Some Script


Question

Posted

requesting card remover that remove cards compund at costumes Costume Top / Mid / Lower... its just like a normal card remover but instead of removing card at general tab.. it will remove cards at costume tab... because i have a custom card that equips on costumes.... thx in advanced

3 answers to this question

Recommended Posts

Posted

try

prt_fild01,170,322,5	script	sdfg	56,{
	setarray .@equipped, getequipid( EQI_COSTUME_HEAD_LOW ), getequipid( EQI_COSTUME_HEAD_MID ), getequipid( EQI_COSTUME_HEAD_TOP ), getequipid( EQI_COSTUME_GARMENT );
	.@s = select( ( .@equipped[0] > 0 ? "Deslot costume low" : "" ),
					( .@equipped[1] > 0 ? "Deslot costume mid" : "" ),
					( .@equipped[2] > 0 ? "Deslot costume top" : "" ),
					( .@equipped[3] > 0 ? "Deslot costume garment" : "" ) ) -1;
	getinventorylist;
	for ( .@i = 0; .@i < @inventorylist_count; .@i++ )
		if ( .@equipped[.@s] == @inventorylist_id[.@i] && @inventorylist_equip[.@i] > 1000 && @inventorylist_equip[.@i] < 9000 ) break;
	if ( !@inventorylist_card1[.@i] && !@inventorylist_card1[.@i] && !@inventorylist_card1[.@i] && !@inventorylist_card1[.@i] ) {
		mes "none card inserted";
		close;
	}
	delequip (11+.@s);
	getitem2 .@equipped[.@s],1,1,@inventorylist_refine[.@i],@inventorylist_attribute[.@i],0,0,0,0;
	for ( .@j = 1; .@j <= 4; .@j++ )
		if ( getd( "@inventorylist_card"+ .@j +"["+ .@i +"]" ) > 0 )
			getitem getd( "@inventorylist_card"+ .@j +"["+ .@i +"]" ),1;
	end;
}

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