i want to make an npc that will give named swords[4] (id 1102), for example: if the char is named "char01" it will give "car01's sword".
if i use
getnameditem 1102,getcharid(0);
it give a "char01's sword" without slots.
so i used this:
getitem2 1102,1,1,0,0,255,0,getcharid(0)&0xffff,(getcharid(0)>>16)&0xffff;
same as getnameditem...
so i tryed this:
getitem2 1102,1,1,0,0,0,0,getcharid(0)&0xffff,(getcharid(0)>>16)&0xffff;
it give a non-named sword[4] with 2 empty slots and 2 slots with an apple inside...
so how to got a char01's sword[4] ?