superman1001 Posted September 15, 2012 Posted September 15, 2012 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] ? Quote
Jezu Posted September 15, 2012 Posted September 15, 2012 as far as I know, the only thing you can get the item with name is @produce command.. Quote
Emistry Posted September 15, 2012 Posted September 15, 2012 i think this can only or might happen if you have somekind of custom mod in your src file...otherwise..this cant be happen through script..... normally, a named items cant have any slot.... Quote
GreenBox Posted September 15, 2012 Posted September 15, 2012 You can do this with very ugly source mods but the client will never see the equipped cards 1 Quote
Question
superman1001
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
it give a "char01's sword" without slots.
so i used this:
same as getnameditem...
so i tryed this:
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] ?
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.