Reducto Posted August 23, 2012 Posted August 23, 2012 I want to modify this command. I want @autotrade command to require a item to use it. Help me please. Quote
Emistry Posted August 23, 2012 Posted August 23, 2012 you can do it easily like this.... - script Sample -1,{ OnInit: setarray .ItemID,7227,10; bindatcmd("autotrade",strnpcinfo(0)+"::OnAtcommand"); bindatcmd("at",strnpcinfo(0)+"::OnAtcommand"); end; OnAtcommand: if( countitem( .ItemID[0] ) < .ItemID[1] ){ dispbottom "You need "+.ItemID[1]+" x "+getitemname( .ItemID[0] ); }else if( !checkvending() ){ dispbottom "You have to open a Shop using Vending Skill"; }else{ delitem .ItemID[0],.ItemID[1]; atcommand "@autotrade"; } end; } 1 Quote
Question
Reducto
I want to modify this command. I want @autotrade command to require a item to use it.
Help me please.
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.