hannicaldummy 2 Posted October 15, 2013 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; Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted October 15, 2013 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; Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted October 15, 2013 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; Quote Share this post Link to post Share on other sites
0 hannicaldummy 2 Posted October 15, 2013 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 Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted October 15, 2013 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; Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted October 15, 2013 (edited) //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 October 15, 2013 by quesoph Quote Share this post Link to post Share on other sites
0 hannicaldummy 2 Posted October 16, 2013 THX!!! getitem2 works perfectly Quote Share this post Link to post Share on other sites
0 astralprojection 35 Posted December 3, 2014 do we have option like this? it very nice to have this for event rewards rentitem2 <id> <qty> <identify> <refine> <attribute> <bound> <card1> <card2> <card3> <card4> <time> What you think? Quote Share this post Link to post Share on other sites
How to a npc make a char use @item2 command?
Share this post
Link to post
Share on other sites