@Kido
Could make an array for items, so would make a loop for getitem, and will optimize the script enough.
Example:
//Array
OnInit:
setarray .@swordsman_itens, 2229, 1117, 2104, 2506, 2406, 2680;
setarray .@swordsman_qtd, 0, 0, 0, 0, 0, 0; // Should you require.
end;
//Looping
for ( set .@i, 0; .@i < getarraysize(.@swordsman_itens); set .@i, .@i + 1)
getitem .@swordsman_itens[.@i], .@swordsman_qtd[.@i];
break;