Jump to content
  • 0

Named slotted items?


superman1001

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

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] ?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

as far as I know, the only thing you can get the item with name is @produce command..

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   101
  • Joined:  11/13/11
  • Last Seen:  

You can do this with very ugly source mods but the client will never see the equipped cards

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...