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

//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
  • 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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