just took a crack on this http://herc.ws/board/topic/16648-iteml-function/
it seems your script command missing to view the costumes
>>> this script is tested on rathena
function script F_ITEML {
.@id = getarg(0);
.@itemid$ = callsub( S_Base62, .@id );
.@itemtype = getiteminfo( .@id, 2 );
if ( .@itemtype == IT_WEAPON || .@itemtype == IT_ARMOR )
.@show_slot = true;
.@equip_loc$ = callsub( S_Base62, getiteminfo( .@id, 5 ), 5 );
.@viewid$ = "&"+ callsub( S_Base62, getiteminfo( .@id, 11 ) );
return "<ITEML>"+ .@equip_loc$ + .@show_slot + .@itemid$ + .@viewid$ +"</ITEML>";
S_Base62:
.@num = getarg(0);
while ( .@num ) {
.@base62_value$ = $@base62$[ .@num % 62 ] + .@base62_value$;
.@num /= 62;
}
.@default_zeroes = getarg(1, 2);
while ( getstrlen(.@base62_value$) < .@default_zeroes )
.@base62_value$ = insertchar( .@base62_value$, "0", 0 );
return .@base62_value$;
}
- script ITEML FAKE_NPC,{
OnInit:
setarray $@base62$,"0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z";
end;
}
prontera,155,185,3 script itemlinktest#1 1_F_MARIA,{
input .@a;
npctalk itemlink(.@a);
npctalk F_ITEML(.@a);
debugmes itemlink(.@a);
debugmes F_ITEML(.@a);
end;
}
result in
[Debug]: script debug : 2000000 110000034 : <ITEML>0000011jZ</ITEML>
[Debug]: script debug : 2000000 110000034 : <ITEML>0004811jZ&2H</ITEML>
the difference is when input an item with costume enable
yours to the left, mine to the right
48 is convert as 256, which is EQP_HEAD_TOP
2H is 167, which is the ViewID