Jump to content
  • 0
Sign in to follow this  
hannicaldummy

item2

Question

How to a npc make a char use @item2 command?

 

 

  atcommand "@item2 getequipid(6),1,1,getequiprefinerycnt(6),0,getequipcardid(4,0),getequipcardid(4,1),getequipcardid(4,2),getequipcardid(4,3)";
     atcommand "@item2 getequipid(4),1,1,getequiprefinerycnt(4),0";

     delitem getequipid(4),1;
     delitem getequipid(6),1;

 

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

try this 

atcommand "@item2 "+getequipid(6),1,1,getequiprefinerycnt(6),0,getequipcardid(4,0),getequipcardid(4,1),getequipcardid(4,2),getequipcardid(4,3);atcommand "@item2 "+getequipid(4),1,1,getequiprefinerycnt(4),0;delitem getequipid(4),1;delitem getequipid(6),1;

 

Share this post


Link to post
Share on other sites
  • 0

I'd try something like this:

 

atcommand "@item2 " + getequipid(6) + ",1,1," + getequiprefinerycnt(6) + ",0," + getequipcardid(4,0) + "," + getequipcardid(4,1) + "," + getequipcardid(4,2) + "," + getequipcardid(4,3);atcommand "@item2 " + getequipid(4) + ",1,1," + getequiprefinerycnt(4), + "0";delitem getequipid(4),1;delitem getequipid(6),1;

Share this post


Link to post
Share on other sites
  • 0

Every time I used @item or @item2 I've never been in need of adding commas. Try this instead:

 

 

atcommand "@item2 " + getequipid(6) + " 1 1 " + getequiprefinerycnt(6) + " 0 " + getequipcardid(4,0) + " " + getequipcardid(4,1) + " " + getequipcardid(4,2) + " " + getequipcardid(4,3);atcommand "@item2 " + getequipid(4) + " 1 1 " + getequiprefinerycnt(4) + " 0";delitem getequipid(4),1;delitem getequipid(6),1;

Share this post


Link to post
Share on other sites
  • 0

//createatcommand "@item2 " + getequipid(6) + " 1 1 " + getequiprefinerycnt(6) + " 0 " + getequipcardid(4,0) + " " + getequipcardid(4,1) + " " + getequipcardid(4,2) + " " + getequipcardid(4,3);atcommand "@item2 " + getequipid(4) + " 1 1 " + getequiprefinerycnt(4) + " 0 0 0 0 0";//delete?delitem getequipid(4),1;delitem getequipid(6),1;

 

why not use getitem2?

 

 

//creategetitem2 getequipid(6) , 1, 1, getequiprefinerycnt(6) , 0, getequipcardid(4,0) , getequipcardid(4,1) , getequipcardid(4,2) , getequipcardid(4,3);getitem2 getequipid(4) , 1, 1, getequiprefinerycnt(6) , 0, 0, 0, 0, 0;//delete?delitem getequipid(6),1;delitem getequipid(4),1;

@edit

No commas for @item2.

Edited by quesoph

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.