item2

hannicaldummy

New member
Messages
31
Points
0
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;

 
try this 

Code:
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;
 
I'd try something like this:

Code:
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;
 
I'd try on item and goes, but on item2 the both the same error "@item2 failled"

atcommand "@item "+getequipid(4)+",1";

Work perfectly, but not work on item2
default_sad.png


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

Code:
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;
 
//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.

 
Last edited by a moderator:
do we have option like this? it very nice to have this for event rewards
default_biggrin.png


rentitem2 <id> <qty> <identify> <refine> <attribute> <bound> <card1> <card2> <card3> <card4> <time>

What you think?

 
Back
Top