Reducto Posted August 23, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 231 Reputation: 9 Joined: 12/16/11 Last Seen: August 10, 2016 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted August 23, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 19 hours ago Share 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 Link to comment Share on other sites More sharing options...
Question
Reducto
I want to modify this command. I want @autotrade command to require a item to use it.
Help me please.
Link to comment
Share on other sites
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.