Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/30/24 in Posts

  1. prontera,155,181,5 script Sample#exchange 4_F_KAFRA1,{ mes "Exchange these item?"; for ( .@i = 0; .@i < .item_size; .@i++ ) { mes " > "+ getitemname( .item[.@i] ); } if ( select( "Exchange","Cancel" ) == 1 ) { for ( .@i = 0; .@i < .item_size; .@i++ ) { .@count = countitem( .item[.@i] ); if ( .@count ) { delitem .item[.@i],.@count; .@total += .@count; } } getitem .reward, .@total; mes "Exchanged "+.@total+"x items to "+.@total+"x "+getitemname( .reward ); } close; OnInit: .reward = 909; setarray .item,512,506,507,508,509; .item_size = getarraysize( .item ); end; } try this.
    1 point
×
×
  • Create New...